Skip to content

Commit

Permalink
net-proxy/v2rayA: add 2.2.4.1, drop 2.2.4
Browse files Browse the repository at this point in the history
Signed-off-by: liuyujielol <[email protected]>
  • Loading branch information
liuyujielol authored and liangyongxiang committed Nov 6, 2023
1 parent 3a4fca3 commit 14e779c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
6 changes: 3 additions & 3 deletions net-proxy/v2rayA/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DIST v2rayA-2.2.4-go-vendor.tar.gz 8761575 BLAKE2B b47681b90ded0c17ed7bd529d4883e3b11dfbc6fda3bf661730bc067332b1ca1fd11b2f6bd03f55699600eeef38b2b3d7a880f7170b7d26862441bd2bb8ba7e4 SHA512 e3904f90679be32fe5c31ddd6104fad6b3511ebc014f223c0ab1c0bcaa81e597bd9b50055735c49394aca0a83fb3b4fc8c934e595ea2b8e1a9c9e45fe8d2fcbd
DIST v2rayA-2.2.4-web.tar.gz 2807621 BLAKE2B 78425542a527cd61f18eb8a602eadb8000aaa6e447890e7faede4a30b0ec89963418f15caee4ca055c0df235ec2cdfe0e914d9978687ab962127a605aa29f139 SHA512 07acac9345f415ed0021cf6192244243d7cfc2ece8064043254116588b38be4c942d6032817d016b340e943309f41caabc08ed8a18b362138bb44260b9eed7d5
DIST v2rayA-2.2.4.tar.gz 1034933 BLAKE2B b30107575bef51106fd4f0eb4670d14eec696432a3018de071fd207f916642d346b4e67d3885507c20996be332ee26027f0f686038a8d7b51089b7af54167067 SHA512 99cb2bc8fe89ce2af92d7e84839a62ab76ad83f9ef3a5eb3438ce24914ab6f63ec67e838e1f808ce15e3f0ddbc24846e12df87a9259867bc6a59bf8868384d55
DIST v2rayA-2.2.4.1-vendor.tar.xz 5460732 BLAKE2B 5f2b9893d11afafcf831fb23016b0a248c925ef5a9bd7701c2c31cbf45a893dcc4320d0df7d06d76166308e456600d904b83af908a8a1c89a448a7f7d0a9462f SHA512 e254e764f36305fc7ac7b6cf2074c07ccb7a0dd87d90742a2098bc1d7f879fbfc2023ff97e1861e3fcab6ad8df76dbf1df31aa3983ddf8cc151d9af807f5b4b7
DIST v2rayA-2.2.4.1-web.tar.gz 2798277 BLAKE2B d6ff6d5d61f38d9f322788ac4e84d29729148e3b6b335dc9762efcabdb6d3d92a0f9495ccce7958495a4387ae6f368dd57fe30a8c6bb8caf9c0c3f172ae985bf SHA512 722483a884570d8763502bc09e18a1e11a20f5fe1a1b2bc2c992b17e1ed156d2063e5ea18bb84b91d0603ee4d26cbf0125e367fa1e9670ddee1b35c8bc966763
DIST v2rayA-2.2.4.1.tar.gz 1037928 BLAKE2B 92bafa856f529d6c2910ccfb597d78f4011edf6582cc0a576946af4c30feb15a0fa6dd5da266051d617d11114eb1bf5c8fb9f5f95de86f2229b9777ae2966a39 SHA512 c203c45b01fe822d2b42b84e47b8206f7106bef3270a9658f946ad67f95747b910fe24211ff4cb113a3b8b61b592ddc88f63ee2be67a9fd1e0aa3ac55e0b0d6c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ SRC_URI="
https://github.com/v2rayA/v2rayA/releases/download/v${PV}/web.tar.gz -> ${P}-web.tar.gz
"
# maintainer generated vendor
# generated with https://github.com/liuyujielol/rei-overlay/blob/main/net-proxy/v2rayA/scripts/v2rayA_vendor_gen.sh
# generated with liuyujielol/gentoo-go-deps/.github/workflows/generator.yml
SRC_URI+="
https://github.com/liuyujielol/vendors/releases/download/${PN}/${P}-go-vendor.tar.gz
https://github.com/liuyujielol/gentoo-go-deps/releases/download/${P}/${P}-vendor.tar.xz
"

LICENSE="AGPL-3"
Expand Down Expand Up @@ -47,9 +47,9 @@ src_unpack() {
src_compile() {
mv -v "${WORKDIR}/web" "${S}/service/server/router/web" || die

for file in $(find "${S}/service/server/router/web" |grep -v png |grep -v index.html|grep -v .gz)
do
if [ ! -d $file ]; then
for file in $(find "${S}/service/server/router/web" |grep -v png |grep -v index.html|grep -v .gz); do
if [ ! -d $file ];then
einfo "compress $file"
gzip -9 $file
fi
done
Expand All @@ -63,18 +63,12 @@ src_install() {
# directory for runtime use
keepdir "/etc/v2raya"

# generate default config
cat <<-EOF > "${S}"/v2raya || die
# v2raya config example
# Everything has defaults so you only need to uncomment things you want to
# change
EOF
./service/v2raya --report config | sed '1,6d' | fold -s -w 78 | sed -E 's/^([^#].+)/# \1/'\
>> "${S}"/v2raya || die
>> "${S}"/install/universal/v2raya.default || die

# config /etc/default/v2raya
insinto "/etc/default"
doins "${S}"/v2raya
newins "${S}"/install/universal/v2raya.default v2raya

systemd_dounit "${S}"/install/universal/v2raya.service
systemd_douserunit "${S}"/install/universal/v2raya-lite.service
Expand All @@ -85,7 +79,7 @@ src_install() {
newconfd "${FILESDIR}/${PN}.confd" v2raya
newconfd "${FILESDIR}/${PN}-user.confd" v2raya-user

newicon -s 512 "${S}"/gui/public/img/icons/android-chrome-512x512.png v2raya.png
doicon -s 512 "${S}"/install/universal/v2raya.png
domenu "${S}"/install/universal/v2raya.desktop
}

Expand Down
6 changes: 3 additions & 3 deletions net-proxy/v2rayA/v2rayA-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ src_compile() {
fi
OUTPUT_DIR="${S}/service/server/router/web" yarn build || die "yarn build failed"

for file in $(find "${S}/service/server/router/web" |grep -v png |grep -v index.html|grep -v .gz)
do
if [ ! -d $file ]; then
for file in $(find "${S}/service/server/router/web" |grep -v png |grep -v index.html|grep -v .gz); do
if [ ! -d $file ];then
einfo "compress $file"
gzip -9 $file
fi
done
Expand Down

0 comments on commit 14e779c

Please sign in to comment.