|
@ -2,10 +2,10 @@ include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=xray-core |
|
|
PKG_NAME:=xray-core |
|
|
PKG_VERSION:=1.2.4 |
|
|
PKG_VERSION:=1.2.4 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_RELEASE:=$(AUTORELEASE) |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE_URL:=https://codeload.github.com/XTLS/xray-core/tar.gz/v$(PKG_VERSION)? |
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/XTLS/Xray-core/tar.gz/v$(PKG_VERSION)? |
|
|
PKG_HASH:=25f6c9edec0ac1f98328943cd2bb760ac7b69107582f9d27e43559da39dc01ed |
|
|
PKG_HASH:=25f6c9edec0ac1f98328943cd2bb760ac7b69107582f9d27e43559da39dc01ed |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@project-openwrt.eu.org> |
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@project-openwrt.eu.org> |
|
@ -31,7 +31,7 @@ define Package/xray/template |
|
|
TITLE:=A platform for building proxies to bypass network restrictions |
|
|
TITLE:=A platform for building proxies to bypass network restrictions |
|
|
SECTION:=net |
|
|
SECTION:=net |
|
|
CATEGORY:=Network |
|
|
CATEGORY:=Network |
|
|
URL:=https://xtls.github.io |
|
|
|
|
|
|
|
|
URL:=https://xray.sh |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/xray-core |
|
|
define Package/xray-core |
|
@ -40,10 +40,18 @@ define Package/xray-core |
|
|
PROVIDES:=v2ray-core |
|
|
PROVIDES:=v2ray-core |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/xray-example |
|
|
|
|
|
$(call Package/xray/template) |
|
|
|
|
|
TITLE+= (example configs) |
|
|
|
|
|
DEPENDS:=xray-core |
|
|
|
|
|
PKGARCH:=all |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
define Package/xray-geodata |
|
|
define Package/xray-geodata |
|
|
$(call Package/xray/template) |
|
|
$(call Package/xray/template) |
|
|
TITLE+= (geodata files) |
|
|
TITLE+= (geodata files) |
|
|
DEPENDS:=xray-core |
|
|
DEPENDS:=xray-core |
|
|
|
|
|
PKGARCH:=all |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/xray/description |
|
|
define Package/xray/description |
|
@ -55,12 +63,23 @@ define Package/xray-core/description |
|
|
$(call Package/xray/description) |
|
|
$(call Package/xray/description) |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/xray-example/description |
|
|
|
|
|
$(call Package/xray/description) |
|
|
|
|
|
|
|
|
|
|
|
This includes example configuration files for xray-core. |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
define Package/xray-geodata/description |
|
|
define Package/xray-geodata/description |
|
|
$(call Package/xray/description) |
|
|
$(call Package/xray/description) |
|
|
|
|
|
|
|
|
This includes GEO datas used for xray-core. |
|
|
This includes GEO datas used for xray-core. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/xray-core/conffiles |
|
|
|
|
|
/etc/xray/ |
|
|
|
|
|
/etc/config/xray |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
GEOIP_VER:=202101280019 |
|
|
GEOIP_VER:=202101280019 |
|
|
GEOIP_FILE:=geoip.dat.$(GEOIP_VER) |
|
|
GEOIP_FILE:=geoip.dat.$(GEOIP_VER) |
|
|
|
|
|
|
|
@ -91,10 +110,26 @@ endef |
|
|
|
|
|
|
|
|
define Package/xray-core/install |
|
|
define Package/xray-core/install |
|
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) |
|
|
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) |
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin/ |
|
|
$(INSTALL_DIR) $(1)/usr/bin/ |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/main $(1)/usr/bin/xray |
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/main $(1)/usr/bin/xray |
|
|
$(LN) xray $(1)/usr/bin/v2ray |
|
|
$(LN) xray $(1)/usr/bin/v2ray |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/xray/ |
|
|
|
|
|
$(INSTALL_CONF) $(CURDIR)/files/config.json.example $(1)/etc/xray/ |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config/ |
|
|
|
|
|
$(INSTALL_CONF) $(CURDIR)/files/xray.conf $(1)/etc/config/xray |
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/ |
|
|
|
|
|
$(INSTALL_BIN) $(CURDIR)/files/xray.init $(1)/etc/init.d/xray |
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/capabilities/ |
|
|
|
|
|
$(INSTALL_DATA) $(CURDIR)/files/xray.capabilities $(1)/etc/capabilities/xray.json |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
define Package/xray-example/install |
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/xray/ |
|
|
|
|
|
$(INSTALL_CONF) $(CURDIR)/files/vpoint_socks_vmess.json $(1)/etc/xray/ |
|
|
|
|
|
$(INSTALL_CONF) $(CURDIR)/files/vpoint_vmess_freedom.json $(1)/etc/xray/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/xray-geodata/install |
|
|
define Package/xray-geodata/install |
|
@ -104,4 +139,5 @@ define Package/xray-geodata/install |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,xray-core)) |
|
|
$(eval $(call BuildPackage,xray-core)) |
|
|
|
|
|
$(eval $(call BuildPackage,xray-example)) |
|
|
$(eval $(call BuildPackage,xray-geodata)) |
|
|
$(eval $(call BuildPackage,xray-geodata)) |