-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-libs/v2ray-rules-dat: new package, add 202306292209
Signed-off-by: ston <[email protected]>
- Loading branch information
Showing
7 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
29
dev-libs/v2ray-rules-dat/v2ray-rules-dat-202306292209.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |