diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2018-04-15 02:27:27 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-04-15 02:27:27 +0000 |
commit | 69c098affe35e96409e7948a476fa0d4387530ed (patch) | |
tree | f2ba756f0dcf034c82792057b7debac112ede34d /community/dnscrypt-proxy | |
parent | f41c7ecc8b30d72f43a3cf0855c615fcf5e107f4 (diff) | |
download | aports-69c098affe35e96409e7948a476fa0d4387530ed.tar.bz2 aports-69c098affe35e96409e7948a476fa0d4387530ed.tar.xz |
community/dnscrypt-proxy: removed subdir in /var/run for pid file
Diffstat (limited to 'community/dnscrypt-proxy')
-rw-r--r-- | community/dnscrypt-proxy/APKBUILD | 6 | ||||
-rw-r--r-- | community/dnscrypt-proxy/dnscrypt-proxy.initd | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/community/dnscrypt-proxy/APKBUILD b/community/dnscrypt-proxy/APKBUILD index d5dd1e8881..ebd85fa4a3 100644 --- a/community/dnscrypt-proxy/APKBUILD +++ b/community/dnscrypt-proxy/APKBUILD @@ -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" diff --git a/community/dnscrypt-proxy/dnscrypt-proxy.initd b/community/dnscrypt-proxy/dnscrypt-proxy.initd index dfe004b576..bd6c1070a1 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/${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}" } |