net-dns/dnscrypt-proxy: drop, the new version already in ::gentoo\ (#760)
plugins use flag only in old version Signed-off-by: liangyongxiang <tanekliang@gmail.com>
This commit is contained in:
4 files changed
-105
No files matched your search
@@ -1,42 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit eutils systemd user git-r3
|
||||
|
||||
DESCRIPTION="A tool for securing communications between a client and a DNS resolver"
|
||||
HOMEPAGE="http://dnscrypt.org/"
|
||||
EGIT_REPO_URI="https://github.com/jedisct1/${PN}"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="+plugins ldns systemd"
|
||||
|
||||
DEPEND="dev-libs/libsodium
|
||||
ldns? ( net-libs/ldns )"
|
||||
RDEPEND="${DEPEND}
|
||||
systemd? ( sys-apps/systemd )"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog COPYING NEWS README.markdown README-PLUGINS.markdown
|
||||
TECHNOTES THANKS )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dnscrypt
|
||||
enewuser dnscrypt -1 -1 /var/empty dnscrypt
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable plugins) \
|
||||
$(use_with systemd )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
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,36 +0,0 @@
|
||||
#!/sbin/runscript
|
||||
|
||||
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 --pidfile=${pidfile} --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 $?
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
[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
|
||||
Reference in new issue
Block a user