From: Georgy Yakovlev Date: Wed, 4 Dec 2019 20:57:29 +0000 (-0800) Subject: net-dns/dnscrypt-proxy: fix missing initfile X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=fddb0093047f7894988be85053367612d550db48;p=gentoo.git net-dns/dnscrypt-proxy: fix missing initfile accidentally mv file on bump instead of copying. Package-Manager: Portage-2.3.79, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev --- diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd new file mode 100644 index 000000000000..e0fc08ad6a0c --- /dev/null +++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/dnscrypt-proxy" +command_args="${DNSCRYPT_PROXY_OPTS:--config /etc/dnscrypt-proxy/dnscrypt-proxy.toml}" +command_user="${DNSCRYPT_PROXY_USER:-dnscrypt-proxy}:${DNSCRYPT_PROXY_GROUP:-dnscrypt-proxy}" +pidfile="/run/${RC_SVCNAME}.pid" +start_stop_daemon_args="--background --make-pidfile" + +depend() { + use logger net + provide dns +} + +start_pre() { + checkpath -q -d -m 0775 -o "${command_user}" /var/cache/"${RC_SVCNAME}" + checkpath -q -d -m 0775 -o "${command_user}" /var/log/"${RC_SVCNAME}" +}