Skip to content

Commit

Permalink
dev-libs/v2ray-rules-dat: new package, add 202306292209
Browse files Browse the repository at this point in the history
Signed-off-by: ston <[email protected]>
  • Loading branch information
st0nie committed Jun 30, 2023
1 parent 93b6ef0 commit 75604ce
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 2 deletions.
1 change: 1 addition & 0 deletions app-alternatives/v2ray-geoip/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
</maintainer>
<use>
<flag name="v2fly">use dev-libs/v2ray-geoip-bin</flag>
<flag name="loyalsoldier">use dev-libs/v2ray-rules-dat</flag>
</use>
</pkgmetadata>
3 changes: 2 additions & 1 deletion app-alternatives/v2ray-geoip/v2ray-geoip-0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
EAPI=8

ALTERNATIVES=(
v2fly:dev-libs/v2ray-geoip-bin
v2fly:dev-libs/v2ray-geoip-bin
"loyalsoldier:dev-libs/v2ray-rules-dat[geoip]"
)

inherit app-alternatives
Expand Down
1 change: 1 addition & 0 deletions app-alternatives/v2ray-geosite/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
</maintainer>
<use>
<flag name="v2fly">use dev-libs/v2ray-domain-list-community-bin</flag>
<flag name="loyalsoldier">use dev-libs/v2ray-rules-dat</flag>
</use>
</pkgmetadata>
3 changes: 2 additions & 1 deletion app-alternatives/v2ray-geosite/v2ray-geosite-0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
EAPI=8

ALTERNATIVES=(
v2fly:dev-libs/v2ray-domain-list-community-bin
v2fly:dev-libs/v2ray-domain-list-community-bin
"loyalsoldier:dev-libs/v2ray-rules-dat[geosite]"
)

inherit app-alternatives
Expand Down
2 changes: 2 additions & 0 deletions dev-libs/v2ray-rules-dat/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST v2ray-rules-dat-202306292209-geoip.dat 10009023 BLAKE2B 50560622b8ddfbb409600256d0f0709bc81f9d6fcb8c48e2e90db55e97a15677ce1aa907ef8ff2074c8c2d7a22a76729b3e0baf66554d72d4180c09f43aed14a SHA512 e6a748aaedfb575f254942c042d79e72f59a3a766b3da2e09271acdadd806536b27018fad04bc5534208d18cc1715629f1b47ffeaa141351a222bf411cd1d007
DIST v2ray-rules-dat-202306292209-geosite.dat 4039909 BLAKE2B 12e6b9c324961e78917c51222595aa72d9449e3df42873f038aefd557ef382d23305c0bc907228c1647299946a413b22b4ed720225c386b43837207f7774894d SHA512 89bf721034948279b9a26cdfe206b99019c15f09ff68d908a1caa5c68cb55f52382d87b6ff8b89f2b7d444783f9e35b6da66179811bfae349dbc76806703ed29
17 changes: 17 additions & 0 deletions dev-libs/v2ray-rules-dat/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE
pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>ston</name>
<email>[email protected]</email>
</maintainer>
<use>
<flag name="geosite">Install geosite.dat</flag>
<flag name="geoip">Install geoip.dat</flag>
</use>
<upstream>
<remote-id type="github">
Loyalsoldier/v2ray-rules-dat</remote-id>
</upstream>
</pkgmetadata>
29 changes: 29 additions & 0 deletions dev-libs/v2ray-rules-dat/v2ray-rules-dat-202306292209.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Enhanced edition of V2Ray rules dat files."
HOMEPAGE="https://github.com/Loyalsoldier/v2ray-rules-dat"
SRC_URI="
https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${PV}/geosite.dat -> ${P}-geosite.dat
https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/${PV}/geoip.dat -> ${P}-geoip.dat
"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
IUSE="+geosite +geoip"

S="${WORKDIR}"

src_install() {
if use geosite; then
insinto /usr/share/geosite/
newins "${DISTDIR}/${P}-geosite.dat" loyalsoldier.dat
fi
if use geosite; then
insinto /usr/share/geoip/
newins "${DISTDIR}/${P}-geoip.dat" loyalsoldier.dat
fi
}

0 comments on commit 75604ce

Please sign in to comment.