Files
ports/security/xray-core/Makefile
Dag-Erling Smørgrav 75d873b56a many: Unpin Go ports
* Ports that were pinned to a deprecated version of Go (1.23 or older)
  have been unpinned.

* Ports that were pinned to a still-supported version of Go (1.24 or
  newer) have been converted to requesting that as their minimum Go
  version.

* Ports that had been forcibly deprecated for pinning an expired Go
  version have been undeprecated.
2025-12-16 00:06:00 +01:00

44 lines
1.2 KiB
Makefile

PORTNAME= xray-core
DISTVERSIONPREFIX= v
DISTVERSION= 25.12.8
CATEGORIES= security
MASTER_SITES= https://github.com/v2fly/geoip/releases/download/202512050148/:geoip \
https://github.com/v2fly/domain-list-community/releases/download/20251212112114/:geosite
DISTFILES= geoip.dat:geoip \
dlc.dat:geosite
EXTRACT_ONLY= XTLS-Xray-core-v${DISTVERSION}_GH0.tar.gz
MAINTAINER= kirill@drlebedev.com
COMMENT= Set of network penetration tools
WWW= https://github.com/XTLS/Xray-core
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.25+,modules
USE_GITHUB= yes
GH_ACCOUNT= XTLS
GH_PROJECT= Xray-core
USE_RC_SUBR= xray
GO_MOD_DIST= github
GO_MODULE= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET= ./main:xray
SUB_FILES= pkg-message
SUB_LIST= GROUP="${GROUPS}" \
USER="${USERS}"
USERS= v2ray
GROUPS= v2ray
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR} \
${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/geoip.dat ${STAGEDIR}${DATADIR}/geoip.dat
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/dlc.dat ${STAGEDIR}${DATADIR}/geosite.dat
${INSTALL_DATA} ${FILESDIR}/*.json.sample ${STAGEDIR}${ETCDIR}/
.include <bsd.port.mk>