Commit 16384706 authored by Francesco Colista's avatar Francesco Colista

community/dnscrypt-proxy: fixed /var/run path init, added dependency

parent dd01b979
......@@ -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"
......@@ -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}"
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment