New package: shadowsocks-libev-3.2.0

This commit is contained in:
whoami 2018-08-20 23:45:34 +03:00 committed by Helmut Pozimski
parent 3de567a62b
commit 936fd6a04c
5 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1 @@
shadowsocks-libev

View File

@ -0,0 +1,8 @@
case "${ACTION}" in
post)
setcap cap_net_bind_service+ep usr/bin/ss-local
setcap cap_net_bind_service+ep usr/bin/ss-server
setcap cap_net_bind_service+ep usr/bin/ss-tunnel
setcap cap_net_bind_service,cap_net_admin+ep usr/bin/ss-redir
;;
esac

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u shadowsocks:shadowsocks ss-local -c /etc/shadowsocks-libev/config.json

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec chpst -u shadowsocks:shadowsocks ss-server -c /etc/shadowsocks-libev/config.json

View File

@ -0,0 +1,32 @@
# Template file for 'shadowsocks-libev'
pkgname=shadowsocks-libev
version=3.2.0
revision=1
build_style=gnu-configure
configure_args="--with-pcre=${XBPS_CROSS_BASE}/usr"
hostmakedepends="pkg-config asciidoc xmlto"
makedepends="pcre-devel mbedtls-devel libsodium-devel c-ares-devel libev-devel"
short_desc="Lightweight secured socks5 proxy for embedded devices and low end boxes"
maintainer="whoami <whoami@systemli.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/shadowsocks/shadowsocks-libev"
distfiles="${homepage}/releases/download/v${version}/${pkgname}-${version}.tar.gz"
checksum=5521cf623a07fd1e393528516a83acd2b66c5d4bb4535a52662806a6a060c606
system_accounts="shadowsocks"
make_dirs="/etc/${pkgname} 0750 shadowsocks shadowsocks"
post_install() {
vsv ${pkgname}-server
vsv ${pkgname}-client
vsconf debian/config.json
}
shadowsocks-libev-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib
}
}