diff options
author | DuckSoft | 2020-09-05 00:06:57 +0800 |
---|---|---|
committer | DuckSoft | 2020-09-05 00:06:57 +0800 |
commit | 6ba03eacd1c7bc12d3f2d7f11951c0ac95d9ee81 (patch) | |
tree | 315c068189cf2d6ea8039687a2368105383ff882 | |
parent | 75fd049f17e6c9db896a7f8d2e46b51fbf69256f (diff) | |
download | aur-v2ray-cap-git.tar.gz |
updating according to upstream
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | v2ray-cap.hook | 4 | ||||
-rwxr-xr-x | v2ray-cap.sh | 4 |
4 files changed, 10 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = v2ray-cap-git pkgdesc = V2Ray Core with Capabilities for Transparent Proxies - pkgver = 0.0.1 + pkgver = 1.0.0 pkgrel = 1 url = https://github.com/v2ray/v2ray-core install = v2ray-cap.sh @@ -11,8 +11,8 @@ pkgbase = v2ray-cap-git provides = v2ray-cap source = v2ray-cap.hook source = v2ray-cap.sh - sha512sums = 90d16c05802b7b45742131fcb38fde26a343462a11452e0dbcfa9ef6dc39c27cff355bd8fadb654255dd9f09126835e26681940a3f9fb245b583dad4d06ca1ac - sha512sums = 75238188db3d49b36a9d3003d997af30c6a82edcaa5fc0a6657e2c5338d62d58bbed1fdf3c34ba361086032da8b3c2623842ae461cf2c3cbd8db12792c94d1a8 + sha512sums = 31ebfe2bbccf6bcc9804446090cf0ef08ea4c8b7143eddfeb550d88b1551831353ac0cfbf8c07a146b1ee74250a249a64a9e62a526271fdb8eb50197c195c515 + sha512sums = 050cde19902d2376af850d7f8482c25f4130597f19d82ddfaf372e16eba93f274db40b3ed85cd2a5e628a5a99a39c2c28963df3b683bff52c3a4620084fd2517 pkgname = v2ray-cap-git @@ -1,6 +1,6 @@ # Maintainer: DuckSoft <realducksoft at gmail dot com> pkgname=v2ray-cap-git -pkgver=0.0.1 +pkgver=1.0.0 pkgrel=1 pkgdesc="V2Ray Core with Capabilities for Transparent Proxies" arch=(x86_64) @@ -9,8 +9,8 @@ license=(MIT) depends=(v2ray libcap) provides=(v2ray-cap) source=(v2ray-cap.hook v2ray-cap.sh) -sha512sums=('90d16c05802b7b45742131fcb38fde26a343462a11452e0dbcfa9ef6dc39c27cff355bd8fadb654255dd9f09126835e26681940a3f9fb245b583dad4d06ca1ac' - '75238188db3d49b36a9d3003d997af30c6a82edcaa5fc0a6657e2c5338d62d58bbed1fdf3c34ba361086032da8b3c2623842ae461cf2c3cbd8db12792c94d1a8') +sha512sums=('31ebfe2bbccf6bcc9804446090cf0ef08ea4c8b7143eddfeb550d88b1551831353ac0cfbf8c07a146b1ee74250a249a64a9e62a526271fdb8eb50197c195c515' + '050cde19902d2376af850d7f8482c25f4130597f19d82ddfaf372e16eba93f274db40b3ed85cd2a5e628a5a99a39c2c28963df3b683bff52c3a4620084fd2517') install='v2ray-cap.sh' package() { diff --git a/v2ray-cap.hook b/v2ray-cap.hook index 8325e2340fad..db35cb3d2ff4 100644 --- a/v2ray-cap.hook +++ b/v2ray-cap.hook @@ -2,13 +2,13 @@ Operation = Install Operation = Upgrade Type = Path -Target = usr/lib/v2ray/v2ray +Target = usr/bin/v2ray [Action] Description = setcap to v2ray Depends = libcap When = PostTransaction -Exec = /usr/bin/setcap "cap_net_bind_service=+ep cap_net_admin=+ep" /usr/lib/v2ray/v2ray +Exec = /usr/bin/setcap "cap_net_bind_service=+ep cap_net_admin=+ep" /usr/bin/v2ray NeedsTargets diff --git a/v2ray-cap.sh b/v2ray-cap.sh index 872d4a6b9bef..ad04f37534b6 100755 --- a/v2ray-cap.sh +++ b/v2ray-cap.sh @@ -2,10 +2,10 @@ post_install() { echo 'Granting Capabilities to V2Ray Core...' - /usr/bin/setcap 'cap_net_bind_service=+ep cap_net_admin=+ep' /usr/lib/v2ray/v2ray + /usr/bin/setcap 'cap_net_bind_service=+ep cap_net_admin=+ep' /usr/bin/v2ray } post_remove() { echo 'Revoking Capabilities from V2Ray Core...' - /usr/bin/setcap 'cap_net_bind_service=-ep cap_net_admin=-ep' /usr/lib/v2ray/v2ray + /usr/bin/setcap 'cap_net_bind_service=-ep cap_net_admin=-ep' /usr/bin/v2ray } |