summaryrefslogtreecommitdiff
path: root/net/xray-core
diff options
context:
space:
mode:
authorTianling Shen <cnsztl@immortalwrt.org>2022-09-08 09:54:40 +0800
committerRosen Penev <rosenp@gmail.com>2022-09-09 15:17:38 -0700
commit975153f93da132e545353d90ff3eb76b16ed0938 (patch)
tree6e37ddf4cfe0be375c3fe61b92301913413c98c3 /net/xray-core
parent6461d1b055d32021de6591bebae4f3301a755fd0 (diff)
v2ray-geodata: split from xray-geodata
This can be used for v2ray, Xray, v2rayA and some other projects, make it generic. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Diffstat (limited to 'net/xray-core')
-rw-r--r--net/xray-core/Makefile33
1 files changed, 0 insertions, 33 deletions
diff --git a/net/xray-core/Makefile b/net/xray-core/Makefile
index ad1119b69..6a67ba75d 100644
--- a/net/xray-core/Makefile
+++ b/net/xray-core/Makefile
@@ -78,32 +78,6 @@ define Package/xray-core/conffiles
/etc/config/xray
endef
-GEOIP_VER:=202208250104
-GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
-define Download/geoip
- URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
- URL_FILE:=geoip.dat
- FILE:=$(GEOIP_FILE)
- HASH:=8fadefdcbb973c5294f81a2142ffcfb0d138e6f8285e643f929d2fe035096075
-endef
-
-GEOSITE_VER:=20220829045350
-GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
-define Download/geosite
- URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
- URL_FILE:=dlc.dat
- FILE:=$(GEOSITE_FILE)
- HASH:=107a52601a94baf02fe0d877f0a0f469606c87b9a0df2b7569630004dcb8f86e
-endef
-
-define Build/Prepare
- $(call Build/Prepare/Default)
-ifneq ($(CONFIG_PACKAGE_xray-geodata),)
- $(call Download,geoip)
- $(call Download,geosite)
-endif
-endef
-
define Package/xray-core/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
$(INSTALL_DIR) $(1)/usr/bin/
@@ -124,12 +98,5 @@ define Package/xray-example/install
$(INSTALL_DATA) $(CURDIR)/files/vpoint_vmess_freedom.json $(1)/etc/xray/
endef
-define Package/xray-geodata/install
- $(INSTALL_DIR) $(1)/usr/share/xray/
- $(INSTALL_DATA) $(DL_DIR)/$(GEOIP_FILE) $(1)/usr/share/xray/geoip.dat
- $(INSTALL_DATA) $(DL_DIR)/$(GEOSITE_FILE) $(1)/usr/share/xray/geosite.dat
-endef
-
$(eval $(call BuildPackage,xray-core))
$(eval $(call BuildPackage,xray-example))
-$(eval $(call BuildPackage,xray-geodata))