|
@ -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,6 +63,12 @@ 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) |
|
|
|
|
|
|
|
@ -97,6 +111,12 @@ define Package/xray-core/install |
|
|
$(LN) xray $(1)/usr/bin/v2ray |
|
|
$(LN) xray $(1)/usr/bin/v2ray |
|
|
endef |
|
|
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 |
|
|
|
|
|
|
|
|
define Package/xray-geodata/install |
|
|
define Package/xray-geodata/install |
|
|
$(INSTALL_DIR) $(1)/usr/share/xray/ |
|
|
$(INSTALL_DIR) $(1)/usr/share/xray/ |
|
|
$(INSTALL_DATA) $(DL_DIR)/$(GEOIP_FILE) $(1)/usr/share/xray/geoip.dat |
|
|
$(INSTALL_DATA) $(DL_DIR)/$(GEOIP_FILE) $(1)/usr/share/xray/geoip.dat |
|
@ -104,4 +124,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)) |