v2ray-geodata: provide a virtual package

Switch v2ray-geodata provides to use the new virtual provides semantic that
enables v2ray-geoip and v2ray-geosite to be installed side-by-side.

Related: https://github.com/openwrt/openwrt/pull/21288/
Related: #28235
Signed-off-by: TeleostNaCl Dai <teleostnacl@gmail.com>
(cherry picked from commit a69761a228)
This commit is contained in:
TeleostNaCl Dai
2026-01-01 15:49:14 +08:00
committed by Tianling Shen
parent faa9a172a0
commit 19a0fcddc9
+4 -4
View File
@@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=v2ray-geodata
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
@@ -50,7 +50,7 @@ endef
define Package/v2ray-geoip
$(call Package/v2ray-geodata/template)
TITLE:=GeoIP List for V2Ray
PROVIDES:=v2ray-geodata xray-geodata xray-geoip
PROVIDES:=@v2ray-geodata @xray-geodata @xray-geoip
VERSION:=$(GEOIP_VER)-r$(PKG_RELEASE)
LICENSE:=CC-BY-SA-4.0
endef
@@ -58,7 +58,7 @@ endef
define Package/v2ray-geosite
$(call Package/v2ray-geodata/template)
TITLE:=Geosite List for V2Ray
PROVIDES:=v2ray-geodata xray-geodata xray-geosite
PROVIDES:=@v2ray-geodata @xray-geodata @xray-geosite
VERSION:=$(GEOSITE_VER)-r$(PKG_RELEASE)
LICENSE:=MIT
endef
@@ -66,7 +66,7 @@ endef
define Package/v2ray-geosite-ir
$(call Package/v2ray-geodata/template)
TITLE:=Iran Geosite List for V2Ray
PROVIDES:=xray-geosite-ir
PROVIDES:=@xray-geosite-ir
VERSION:=$(GEOSITE_IRAN_VER)-r$(PKG_RELEASE)
LICENSE:=MIT
endef