Commit 69c098af authored by Francesco Colista's avatar Francesco Colista

community/dnscrypt-proxy: removed subdir in /var/run for pid file

parent f41c7ecc
......@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=dnscrypt-proxy
pkgver=2.0.9b2
pkgrel=3
pkgrel=4
pkgdesc="A tool for securing communications between a client and a DNS resolver"
url="https://dnscrypt.info"
arch="all"
......@@ -36,7 +36,6 @@ build() {
package() {
cd "$builddir"/$pkgname
mkdir -p "$pkgdir"/var/log/$pkgname
mkdir -p "$pkgdir"/var/run/$pkgname
mkdir -p "$pkgdir"/var/empty
mkdir -p $pkgdir/usr/share/licenses/$pkgname
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
......@@ -53,7 +52,6 @@ package() {
install -vDm 644 "example-whitelist.txt" \
"${pkgdir}/etc/${pkgname}/example-whitelist.txt"
chown dnscrypt "$pkgdir"/var/log/$pkgname
chown dnscrypt "$pkgdir"/var/run/$pkgname
chown dnscrypt "$pkgdir"/var/empty
chown dnscrypt "$pkgdir"/etc/$pkgname
install -m 644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname
......@@ -68,6 +66,6 @@ setup() {
}
sha512sums="d64cc8e0b61e1e548b63531dc4c733af1605ccda89a9f905227e97cb966a3488104ac9af229521909ca88bde283dce224e712326b4d1717af70be2d04821c6c2 dnscrypt-proxy-2.0.9b2.tar.gz
8d3a31a0685fa148ea5005e22fd4cf6067545fa7970f9673a2df514cf42322f45e3b16979f026f0267466793935d16aa06bf044abcb33abdb3ab86585caa38db dnscrypt-proxy.initd
219fbd61ef75d6ef2cf5ac71b1a7090fb8620136d6c97f67318eb8daf72fa68449c37a3e4a88638e49a0c6193c31d2e69bf1a42e78529375d546d1f210f98e4d 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/${SVCNAME}/${SVCNAME}.pid"
pidfile="/run/${SVCNAME}.pid"
start_stop_daemon_args="--background --make-pidfile"
depend() {
......@@ -16,7 +16,6 @@ depend() {
start_pre() {
checkpath -q -d -m 0775 -o "${command_user}" \
/var/cache/"${SVCNAME}" \
/var/log/"${SVCNAME}" \
/var/run/"${SVCNAME}"
/var/log/"${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