dlan        14/12/22 14:30:41

  Added:                dnscrypt-proxy.service dnscrypt-proxy.confd
                        dnscrypt-proxy.initd
  Log:
  initial version contributed by Jiajun Wang, bug 504074
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
0xAABEFD55)

Revision  Changes    Path
1.1                  net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service?rev=1.1&content-type=text/plain

Index: dnscrypt-proxy.service
===================================================================
[Unit]
Description=A tool for securing communications between a client and a DNS 
resolver

[Service]
Type=forking
PIDFile=/var/run/dnscrypt-proxy.pid
EnvironmentFile=/etc/conf.d/dnscrypt-proxy
ExecStartPre=/bin/rm -f /var/run/dnscrypt-proxy.pid
ExecStart=/usr/sbin/dnscrypt-proxy --daemonize \
        --pidfile=/var/run/dnscrypt-proxy.pid \
        --logfile=/var/log/dnscrypt-proxy.log \
        --local-address=${DNSCRYPT_LOCALIP}:${DNSCRYPT_LOCALPORT} \
        --resolver-address=${DNSCRYPT_RESOLVERIP}:${DNSCRYPT_RESOLVERPORT} \
        --provider-name=${DNSCRYPT_PROVIDER_NAME} \
        --provider-key=${DNSCRYPT_PROVIDER_KEY} \
        --user=${DNSCRYPT_USER}
Restart=on-abort

[Install]
WantedBy=multi-user.target



1.1                  net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd?rev=1.1&content-type=text/plain

Index: dnscrypt-proxy.confd
===================================================================
DNSCRYPT_LOCALIP=127.0.0.1
DNSCRYPT_LOCALPORT=53
DNSCRYPT_USER=dnscrypt
DNSCRYPT_PROVIDER_NAME=2.dnscrypt-cert.opendns.com
DNSCRYPT_PROVIDER_KEY=B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79
DNSCRYPT_RESOLVERIP=208.67.220.220
DNSCRYPT_RESOLVERPORT=443



1.1                  net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd?rev=1.1&content-type=text/plain

Index: dnscrypt-proxy.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: 
/var/cvsroot/gentoo-x86/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd,v 1.1 
2014/12/22 14:30:41 dlan Exp $

DNSCRYPT_LOGFILE=${DNSCRYPT_LOGFILE:-/var/log/dnscrypt-proxy.log}

rundir=${rundir:-/var/run/dnscrypt-proxy}
pidfile=${pidfile:-${rundir}/dnscrypt-proxy.pid}
rundir=${rundir:-/var/run/dnscrypt-proxy}
runas_user=${runas_user:-dnscrypt}
runas_group=${runas_user:-dnscrypt}

depend() {
        use net
        before dns
        after logger
}

start() {
        if [ ! -d "${rundir}" ]; then
                mkdir "${rundir}"
                if [ -n "${runas_user}" ]; then
                        touch  ${DNSCRYPT_LOGFILE}
                        chown ${runas_user}:${runas_group} ${DNSCRYPT_LOGFILE}
                        chown -R ${runas_user}:${runas_group} "${rundir}"
                fi
        fi

        ebegin "Starting dnscrypt-proxy"
        start-stop-daemon --start --quiet \
                --exec /usr/sbin/dnscrypt-proxy \
                -- \
                --pidfile=${pidfile} \
                --logfile=${DNSCRYPT_LOGFILE} \
                --daemonize --user=${runas_user} \
                --local-address=${DNSCRYPT_LOCALIP}:${DNSCRYPT_LOCALPORT} \
                
--resolver-address=${DNSCRYPT_RESOLVERIP}:${DNSCRYPT_RESOLVERPORT} \
                --provider-name=${DNSCRYPT_PROVIDER_NAME} \
                --provider-key=${DNSCRYPT_PROVIDER_KEY}
        eend $?
}

stop() {
        ebegin "Stopping dnscrypt-proxy"
        start-stop-daemon --stop --quiet --exec /usr/sbin/dnscrypt-proxy
        eend $?
}




Reply via email to