diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | redsocks2.install | 6 |
3 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = redsocks2-git pkgdesc = redsocks2 adapted to compile with openssl 1.0 pkgver = 0.66.r39.gc9618cd - pkgrel = 2 + pkgrel = 3 url = https://github.com/semigodking/redsocks install = redsocks2.install arch = i686 @@ -5,7 +5,7 @@ pkgname=redsocks2-git pkgver=0.66.r39.gc9618cd -pkgrel=2 +pkgrel=3 pkgdesc='redsocks2 adapted to compile with openssl 1.0' arch=('i686' 'x86_64') url='https://github.com/semigodking/redsocks' diff --git a/redsocks2.install b/redsocks2.install index ed641f16a9e6..b99e837d8e43 100644 --- a/redsocks2.install +++ b/redsocks2.install @@ -7,7 +7,12 @@ add_redsocks_user() { } post_install() { + setcap cap_net_bind_service,cap_net_admin+ep usr/bin/redsocks2 2>/dev/null +} + +post_install() { add_redsocks_user + post_install cat << EOF To launch redsocks2: @@ -24,6 +29,7 @@ EOF post_upgrade() { add_redsocks_user + post_install } post_remove() { |