aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-04-14 23:21:00 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-04-14 23:21:06 +0000
commit16384706001e9d272c45f747f6428d9428af2a20 (patch)
tree31b71a5dc26d48b92e21bfeb41ee25aedb22c43c /community
parentdd01b9795bc9a40c1cdc76124f5440b5d598a4ee (diff)
downloadaports-16384706001e9d272c45f747f6428d9428af2a20.tar.bz2
aports-16384706001e9d272c45f747f6428d9428af2a20.tar.xz
community/dnscrypt-proxy: fixed /var/run path init, added dependency
Diffstat (limited to 'community')
-rw-r--r--community/dnscrypt-proxy/APKBUILD7
-rw-r--r--community/dnscrypt-proxy/dnscrypt-proxy.initd9
2 files changed, 10 insertions, 6 deletions
diff --git a/community/dnscrypt-proxy/APKBUILD b/community/dnscrypt-proxy/APKBUILD
index 7f375af854..d5dd1e8881 100644
--- a/community/dnscrypt-proxy/APKBUILD
+++ b/community/dnscrypt-proxy/APKBUILD
@@ -2,12 +2,13 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dnscrypt-proxy
pkgver=2.0.9b2
-pkgrel=2
+pkgrel=3
pkgdesc="A tool for securing communications between a client and a DNS resolver"
url="https://dnscrypt.info"
arch="all"
license="custom"
-makedepends="$depends_dev libsodium-dev ldns-dev go"
+depends="ca-certificates"
+makedepends="libsodium-dev ldns-dev go"
install="$pkgname.pre-install"
options="!check" #upstream does not provide check/test
pkgusers=dnscrypt
@@ -67,6 +68,6 @@ setup() {
}
sha512sums="d64cc8e0b61e1e548b63531dc4c733af1605ccda89a9f905227e97cb966a3488104ac9af229521909ca88bde283dce224e712326b4d1717af70be2d04821c6c2 dnscrypt-proxy-2.0.9b2.tar.gz
-c38095ee38054fb0d3b51c002b5038cb073b8b9ec0ababf975e70d27e4c1bd90c0c3f846863e052f30ff2ac6d4ce84c5d4192ebae0eebfa013eb08edf840f8bf dnscrypt-proxy.initd
+8d3a31a0685fa148ea5005e22fd4cf6067545fa7970f9673a2df514cf42322f45e3b16979f026f0267466793935d16aa06bf044abcb33abdb3ab86585caa38db dnscrypt-proxy.initd
44a2d792aa80a048ea6bdb4a79c1e436bcad3610a28a963ebed5c0e77a8b2a733c45311a66268fc4026d1c4c9b1f222813aeeea9c619832bbcb7c227542b65a8 dnscrypt-proxy.confd
66dd43d84117a0151ae41f34d82b716760382a5a491424bf6418228ffd21f0dfbc88e34cc5074e11f97f006335d97b85367bb9ab1d96747a48e893c022ad52d0 dnscrypt-proxy.setup"
diff --git a/community/dnscrypt-proxy/dnscrypt-proxy.initd b/community/dnscrypt-proxy/dnscrypt-proxy.initd
index e24085f127..dfe004b576 100644
--- a/community/dnscrypt-proxy/dnscrypt-proxy.initd
+++ b/community/dnscrypt-proxy/dnscrypt-proxy.initd
@@ -5,7 +5,7 @@
command="/usr/bin/dnscrypt-proxy"
command_args="${DNSCRYPT_OPTS:---config /etc/dnscrypt-proxy/dnscrypt-proxy.toml}"
command_user="${DNSCRYPT_USER:-dnscrypt}:${DNSCRYPT_GROUP:-dnscrypt}"
-pidfile="/run/dnscrypt-proxy/${SVCNAME}.pid"
+pidfile="/run/${SVCNAME}/${SVCNAME}.pid"
start_stop_daemon_args="--background --make-pidfile"
depend() {
@@ -14,6 +14,9 @@ depend() {
}
start_pre() {
- checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${SVCNAME}"
- checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${SVCNAME}"
+ checkpath -q -d -m 0775 -o "${command_user}" \
+ /var/cache/"${SVCNAME}" \
+ /var/log/"${SVCNAME}" \
+ /var/run/"${SVCNAME}"
+ setcap cap_net_bind_service=+ep "${command}"
}