mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
xray-core: add example configs
Thry're from v2fly/v2ray-core wikis, used as examples. Signed-off-by: Tianling Shen <cnsztl@project-openwrt.eu.org>
This commit is contained in:
@@ -40,10 +40,18 @@ define Package/xray-core
|
||||
PROVIDES:=v2ray-core
|
||||
endef
|
||||
|
||||
define Package/xray-example
|
||||
$(call Package/xray/template)
|
||||
TITLE+= (example configs)
|
||||
DEPENDS:=xray-core
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
define Package/xray-geodata
|
||||
$(call Package/xray/template)
|
||||
TITLE+= (geodata files)
|
||||
DEPENDS:=xray-core
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
define Package/xray/description
|
||||
@@ -55,6 +63,12 @@ define Package/xray-core/description
|
||||
$(call Package/xray/description)
|
||||
endef
|
||||
|
||||
define Package/xray-example/description
|
||||
$(call Package/xray/description)
|
||||
|
||||
This includes example configuration files for xray-core.
|
||||
endef
|
||||
|
||||
define Package/xray-geodata/description
|
||||
$(call Package/xray/description)
|
||||
|
||||
@@ -97,6 +111,12 @@ define Package/xray-core/install
|
||||
$(LN) xray $(1)/usr/bin/v2ray
|
||||
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
|
||||
$(INSTALL_DIR) $(1)/usr/share/xray/
|
||||
$(INSTALL_DATA) $(DL_DIR)/$(GEOIP_FILE) $(1)/usr/share/xray/geoip.dat
|
||||
@@ -104,4 +124,5 @@ define Package/xray-geodata/install
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,xray-core))
|
||||
$(eval $(call BuildPackage,xray-example))
|
||||
$(eval $(call BuildPackage,xray-geodata))
|
||||
|
||||
Reference in New Issue
Block a user