diff options
author | soredake <fdsfgs@krutt.org> | 2017-03-28 23:13:39 +0300 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2017-04-08 23:24:01 +0200 |
commit | 77fd2070512923b418b55bdd45dca8cfc797332d (patch) | |
tree | e99ff6577a21dbe286b689a229eb0033f310ce98 /net-dns | |
parent | net-dns/dnscrypt-proxy: version bump to 1.9.4. (diff) | |
download | gentoo-77fd2070512923b418b55bdd45dca8cfc797332d.tar.gz gentoo-77fd2070512923b418b55bdd45dca8cfc797332d.tar.bz2 gentoo-77fd2070512923b418b55bdd45dca8cfc797332d.zip |
net-dns/dnscrypt-proxy: clean up old.
Closes: https://github.com/gentoo/gentoo/pull/4320
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/dnscrypt-proxy/Manifest | 5 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild | 42 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.3.ebuild | 42 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0-r1.ebuild | 57 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0.ebuild | 57 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.1.ebuild | 57 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/dnscrypt-proxy-1.7.0.ebuild | 57 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd-1.6.0-r1 | 13 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.0-r1 | 59 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.1 | 64 |
10 files changed, 0 insertions, 453 deletions
diff --git a/net-dns/dnscrypt-proxy/Manifest b/net-dns/dnscrypt-proxy/Manifest index abfc5a7fef27..ffe882a34a7b 100644 --- a/net-dns/dnscrypt-proxy/Manifest +++ b/net-dns/dnscrypt-proxy/Manifest @@ -1,6 +1 @@ -DIST dnscrypt-proxy-1.4.2.tar.gz 1592962 SHA256 1d519068c30868bb60a151908f0e300a1754b234f7bc2ad1d749ad9d0d977076 SHA512 ecb81b5d20cf88a610421bb1266861a2f5dd34d0ce916c54507507ca5dbe5d9e49e95916f76fa7997b112860f2bc37793f075ed812c75b2904adf6cdf32cac17 WHIRLPOOL ddfa3da3de933f6cbb8721ccd6435e97b9e893d32311e1c3badbc23b6a0547b6cb0f8d6037baaf0027ca1eb972c4be167dc9ce56194f7f6fa54fac974ca0bd24 -DIST dnscrypt-proxy-1.4.3.tar.gz 1560345 SHA256 f10f10c18e25ced3c5ec5d0c4145d33270f9cfa991fd1b18d5d9af00e4d9b68e SHA512 3aae9f20bc06087b0860a24488bcda117010a34218d7aef3c68a0f155f8164ce06a88865a9caf1ce5c5eaa8588518ccc2c8a61a97cc39f527f7b2b14cdf8c118 WHIRLPOOL 49915b0f95d340828c79febc9b7d94c4f0c444e016b9f78d134e05f43945b446ab71bbc6a230d6e15d5f1f4c0b97d9f671b6001314cc157cdcd419b01bf23550 -DIST dnscrypt-proxy-1.6.0.tar.gz 1579293 SHA256 7703a41a1040fc30b19fdfbbaba36b411e66d998584b0e2fa5088f734f4f86be SHA512 1937a80ab0e6e5786b0d004fef1c007d9d8a4df335542ae6f96c1eac7739920f2ff4b469d30abac774c12a41d275c2a8bf31b5514d7af446028cedeeb3efcf02 WHIRLPOOL b24eb58bca1ff8fa55fec3836399a3ee5c66823d8b459e5f8ce7aa653454407dc3b80d7dc050b76e5c0595fc0e2d854478a6f949ef859b149f6b20e127c98274 -DIST dnscrypt-proxy-1.6.1.tar.gz 1721006 SHA256 c519012a66f3ee30be02113d1e0139be08ccd2ec45ca4102eac35be731a65340 SHA512 8d49be73e4b2fe1131349846191f54c7f212ff301a6a6c2a77505225f81b0615e968c945013e732c4fce3b6090606245ec7343fb0d6145bb10b67dd4112d2367 WHIRLPOOL ca5a1c3792728ff54ee5e3c5a8815deb1ce2e1bdd016438ad0b84d89458064e0178df3c1dee77c8a685894092e48a305b521dc8e4bfc3cb40a0d7ac7e7e66d18 -DIST dnscrypt-proxy-1.7.0.tar.gz 1714401 SHA256 be9827f66401f38fd4bdb372046eff9b5802ab5f3d188878a0dcd7bd20074c09 SHA512 611d9cd9d9c086ec8e2b60f6c574451eae71ea07de85973049be7090cfbd8bf790d41f8a4a2b39d74091fba7091551967b93b85a8661c03ecad43d868df597a3 WHIRLPOOL 0c3902bfcc3571175f0f8638327cbaf5eada512565f214232732d14dc6a83f55a0babedd68007cbaeec1b584bcb1d3cc621df8b07638bacfe5893c6222d12997 DIST dnscrypt-proxy-1.9.4.tar.gz 1660333 SHA256 40543efbcd56033ac03a1edf4581305e8c9bed4579ac55e6279644f07c315307 SHA512 b19103dc39655f199c85ec69daab949d07adc12e64411d2323308afb398e6ac6563bbc17f2e317bfe1e6c95c810487d8d62da3f4c7f7257bdcf837cd0390bfb0 WHIRLPOOL 4e9494c2765ecf9d625f7b44c0f58c40e491e1334a58552111730ecd3b95cba10667b2bfa2b29e291ccfa97a5678bbbc398dd14e888914bfddc6f7e61bac4a3a diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild deleted file mode 100644 index 36ff81038386..000000000000 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils systemd user - -DESCRIPTION="A tool for securing communications between a client and a DNS resolver" -HOMEPAGE="http://dnscrypt.org/" -SRC_URI="http://download.dnscrypt.org/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~x86" -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 -} diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.3.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.3.ebuild deleted file mode 100644 index 5af435bbe77e..000000000000 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.3.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils systemd user - -DESCRIPTION="A tool for securing communications between a client and a DNS resolver" -HOMEPAGE="http://dnscrypt.org/" -SRC_URI="http://download.dnscrypt.org/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~x86" -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 -} diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0-r1.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0-r1.ebuild deleted file mode 100644 index 7935118328ce..000000000000 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0-r1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit systemd user - -DESCRIPTION="A tool for securing communications between a client and a DNS resolver" -HOMEPAGE="http://dnscrypt.org/" -SRC_URI="http://download.dnscrypt.org/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+plugins systemd" - -CDEPEND=" - dev-libs/libsodium - net-libs/ldns - systemd? ( sys-apps/systemd )" -RDEPEND="${CDEPEND}" -DEPEND="${CDEPEND} - virtual/pkgconfig" - -DOCS="AUTHORS ChangeLog NEWS README* 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-1.6.0-r1 ${PN} - newconfd "${FILESDIR}"/${PN}.confd-1.6.0-r1 ${PN} - systemd_dounit "${FILESDIR}"/${PN}.service -} - -pkg_postinst() { - elog "After starting the service you will need to update your" - elog "/etc/resolv.conf and replace your current set of resolvers" - elog "with:" - elog - elog "nameserver <DNSCRYPT_LOCALIP>" - elog - elog "where <DNSCRYPT_LOCALIP> is what you supplied in" - elog "/etc/conf.d/dnscrypt-proxy, default is \"127.0.0.1\"." - elog - elog "Also see https://github.com/jedisct1/dnscrypt-proxy#usage." -} diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0.ebuild deleted file mode 100644 index b1beb34c0c49..000000000000 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.0.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit systemd user - -DESCRIPTION="A tool for securing communications between a client and a DNS resolver" -HOMEPAGE="http://dnscrypt.org/" -SRC_URI="http://download.dnscrypt.org/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+plugins systemd" - -CDEPEND=" - dev-libs/libsodium - net-libs/ldns - systemd? ( sys-apps/systemd )" -RDEPEND="${CDEPEND}" -DEPEND="${CDEPEND} - virtual/pkgconfig" - -DOCS="AUTHORS ChangeLog NEWS README* 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 -} - -pkg_postinst() { - elog "After starting the service you will need to update your" - elog "/etc/resolv.conf and replace your current set of resolvers" - elog "with:" - elog - elog "nameserver <DNSCRYPT_LOCALIP>" - elog - elog "where <DNSCRYPT_LOCALIP> is what you supplied in" - elog "/etc/conf.d/dnscrypt-proxy, default is \"127.0.0.1\"." - elog - elog "Also see https://github.com/jedisct1/dnscrypt-proxy#usage." -} diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.1.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.1.ebuild deleted file mode 100644 index 142a3acf682d..000000000000 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.6.1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit systemd user - -DESCRIPTION="A tool for securing communications between a client and a DNS resolver" -HOMEPAGE="http://dnscrypt.org/" -SRC_URI="http://download.dnscrypt.org/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="+plugins systemd" - -CDEPEND=" - dev-libs/libsodium - net-libs/ldns - systemd? ( sys-apps/systemd )" -RDEPEND="${CDEPEND}" -DEPEND="${CDEPEND} - virtual/pkgconfig" - -DOCS="AUTHORS ChangeLog NEWS README* THANKS *txt" - -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-1.6.1 ${PN} - newconfd "${FILESDIR}"/${PN}.confd-1.6.0-r1 ${PN} - systemd_dounit "${FILESDIR}"/${PN}.service -} - -pkg_postinst() { - elog "After starting the service you will need to update your" - elog "/etc/resolv.conf and replace your current set of resolvers" - elog "with:" - elog - elog "nameserver <DNSCRYPT_LOCALIP>" - elog - elog "where <DNSCRYPT_LOCALIP> is what you supplied in" - elog "/etc/conf.d/dnscrypt-proxy, default is \"127.0.0.1\"." - elog - elog "Also see https://github.com/jedisct1/dnscrypt-proxy#usage." -} diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.7.0.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.7.0.ebuild deleted file mode 100644 index a136524376ed..000000000000 --- a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.7.0.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit systemd user - -DESCRIPTION="A tool for securing communications between a client and a DNS resolver" -HOMEPAGE="https://dnscrypt.org/" -SRC_URI="https://download.dnscrypt.org/${PN}/${P}.tar.gz" - -LICENSE="ISC" -SLOT="0" -KEYWORDS="~amd64 ~arm ~x86" -IUSE="+plugins systemd" - -CDEPEND=" - dev-libs/libsodium - net-libs/ldns - systemd? ( sys-apps/systemd )" -RDEPEND="${CDEPEND}" -DEPEND="${CDEPEND} - virtual/pkgconfig" - -DOCS="AUTHORS ChangeLog NEWS README* THANKS *txt" - -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-1.6.1 ${PN} - newconfd "${FILESDIR}"/${PN}.confd-1.6.0-r1 ${PN} - systemd_dounit "${FILESDIR}"/${PN}.service -} - -pkg_postinst() { - elog "After starting the service you will need to update your" - elog "/etc/resolv.conf and replace your current set of resolvers" - elog "with:" - elog - elog "nameserver <DNSCRYPT_LOCALIP>" - elog - elog "where <DNSCRYPT_LOCALIP> is what you supplied in" - elog "/etc/conf.d/dnscrypt-proxy, default is \"127.0.0.1\"." - elog - elog "Also see https://github.com/jedisct1/dnscrypt-proxy#usage." -} diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd-1.6.0-r1 b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd-1.6.0-r1 deleted file mode 100644 index 5b1b28dd5ab1..000000000000 --- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd-1.6.0-r1 +++ /dev/null @@ -1,13 +0,0 @@ -DNSCRYPT_LOCALIP=127.0.0.1 -DNSCRYPT_LOCALPORT=53 -DNSCRYPT_USER=dnscrypt -DNSCRYPT_OPTIONS="--ephemeral-keys" -# Pick exactly ONE of the following sets: -# option 1) selection from CSV file, uses the first column as the key -DNSCRYPT_RESOLVER_NAME=cisco # Cisco OpenDNS -DNSCRYPT_RESOLVERS_LIST=/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv -# option 2) manually specified parameters -#DNSCRYPT_RESOLVERIP=203.0.133.53 -#DNSCRYPT_RESOLVERPORT=443 -#DNSCRYPT_PROVIDER_NAME=2.dnscrypt-cert.example.com -#DNSCRYPT_PROVIDER_KEY=1234:5678:90AB:CDEF:DEAD:BEEF:CAFE:BEA7:1234:5678:90AB:CDEF:DEAD:BEEF:CAFE:BEA7 diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.0-r1 b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.0-r1 deleted file mode 100644 index db5e3223132a..000000000000 --- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.0-r1 +++ /dev/null @@ -1,59 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -DNSCRYPT_LOGFILE=${DNSCRYPT_LOGFILE:-/var/log/dnscrypt-proxy.log} -DNSCRYPT_RESOLVERS_LIST=${DNSCRYPT_RESOLVERS_LIST:-/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv} - -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 - - if [ -n "$DNSCRYPT_RESOLVER_NAME" -a -n "$DNSCRYPT_RESOLVERIP" ]; then - eerror "You must set exactly one of DNSCRYPT_RESOLVER_NAME or DNSCRYPT_RESOLVERIP!" - return 1 - elif [ -n "$DNSCRYPT_RESOLVER_NAME" ]; then - resolver_opts="--resolvers-list=${DNSCRYPT_RESOLVERS_LIST} --resolver-name=${DNSCRYPT_RESOLVER_NAME}" - elif [ -n "$DNSCRYPT_RESOLVERIP" ]; then - resolver_opts="--resolver-address=${DNSCRYPT_RESOLVERIP}:${DNSCRYPT_RESOLVERPORT} --provider-name=${DNSCRYPT_PROVIDER_NAME} --provider-key=${DNSCRYPT_PROVIDER_KEY}" - else - eerror "You must set exactly one of DNSCRYPT_RESOLVER_NAME or DNSCRYPT_RESOLVERIP!" - return 1 - fi - - ebegin "Starting dnscrypt-proxy" - start-stop-daemon --start --quiet \ - --exec /usr/sbin/dnscrypt-proxy \ - -- \ - ${DNSCRYPT_OPTIONS} \ - --pidfile="${pidfile}" \ - --logfile="${DNSCRYPT_LOGFILE}" \ - --daemonize --user=${runas_user} \ - --local-address=${DNSCRYPT_LOCALIP}:${DNSCRYPT_LOCALPORT} \ - $resolver_opts - eend $? -} - -stop() { - ebegin "Stopping dnscrypt-proxy" - start-stop-daemon --stop --quiet --exec /usr/sbin/dnscrypt-proxy - eend $? -} diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.1 b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.1 deleted file mode 100644 index 453ab0b3149e..000000000000 --- a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd-1.6.1 +++ /dev/null @@ -1,64 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -DNSCRYPT_LOGFILE=${DNSCRYPT_LOGFILE:-syslog} -DNSCRYPT_RESOLVERS_LIST=${DNSCRYPT_RESOLVERS_LIST:-/usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv} - -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 - - if [ -n "$DNSCRYPT_RESOLVER_NAME" -a -n "$DNSCRYPT_RESOLVERIP" ]; then - eerror "You must set exactly one of DNSCRYPT_RESOLVER_NAME or DNSCRYPT_RESOLVERIP!" - return 1 - elif [ -n "$DNSCRYPT_RESOLVER_NAME" ]; then - resolver_opts="--resolvers-list=${DNSCRYPT_RESOLVERS_LIST} --resolver-name=${DNSCRYPT_RESOLVER_NAME}" - elif [ -n "$DNSCRYPT_RESOLVERIP" ]; then - resolver_opts="--resolver-address=${DNSCRYPT_RESOLVERIP}:${DNSCRYPT_RESOLVERPORT} --provider-name=${DNSCRYPT_PROVIDER_NAME} --provider-key=${DNSCRYPT_PROVIDER_KEY}" - else - eerror "You must set exactly one of DNSCRYPT_RESOLVER_NAME or DNSCRYPT_RESOLVERIP!" - return 1 - fi - - if [[ "${DNSCRYPT_LOGFILE}" == "syslog" ]]; then - logopt="--syslog" - else - logopt="--logfile='${DNSCRYPT_LOGFILE}'" - fi - ebegin "Starting dnscrypt-proxy" - start-stop-daemon --start --quiet \ - --exec /usr/sbin/dnscrypt-proxy \ - -- \ - $logopt \ - --pidfile="${pidfile}" \ - --daemonize --user=${runas_user} \ - --local-address=${DNSCRYPT_LOCALIP}:${DNSCRYPT_LOCALPORT} \ - $resolver_opts \ - ${DNSCRYPT_OPTIONS} - eend $? -} - -stop() { - ebegin "Stopping dnscrypt-proxy" - start-stop-daemon --stop --quiet --exec /usr/sbin/dnscrypt-proxy - eend $? -} |