diff options
author | Yixun Lan <dlan@gentoo.org> | 2014-12-22 14:30:41 +0000 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2014-12-22 14:30:41 +0000 |
commit | 275948330f056115a49fa561ed59c5bf1bc5dc47 (patch) | |
tree | 60580a80108280776da54362b287f05251df7ecd /net-dns | |
parent | Non-maintainer commit: add GPL-2 to the list of licenses, wrt bug #425968 (diff) | |
download | gentoo-2-275948330f056115a49fa561ed59c5bf1bc5dc47.tar.gz gentoo-2-275948330f056115a49fa561ed59c5bf1bc5dc47.tar.bz2 gentoo-2-275948330f056115a49fa561ed59c5bf1bc5dc47.zip |
initial version contributed by Jiajun Wang, bug 504074
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/dnscrypt-proxy/ChangeLog | 11 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/Manifest | 7 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild | 43 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd | 7 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd | 48 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service | 20 | ||||
-rw-r--r-- | net-dns/dnscrypt-proxy/metadata.xml | 20 |
7 files changed, 156 insertions, 0 deletions
diff --git a/net-dns/dnscrypt-proxy/ChangeLog b/net-dns/dnscrypt-proxy/ChangeLog new file mode 100644 index 000000000000..5599d4a46df5 --- /dev/null +++ b/net-dns/dnscrypt-proxy/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-dns/dnscrypt-proxy +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/dnscrypt-proxy/ChangeLog,v 1.1 2014/12/22 14:30:41 dlan Exp $ + +*dnscrypt-proxy-1.4.2 (22 Dec 2014) + + 22 Dec 2014; Yixun Lan <dlan@gentoo.org> +dnscrypt-proxy-1.4.2.ebuild, + +files/dnscrypt-proxy.confd, +files/dnscrypt-proxy.initd, + +files/dnscrypt-proxy.service, +metadata.xml: + initial version contributed by Jiajun Wang, bug 504074 + diff --git a/net-dns/dnscrypt-proxy/Manifest b/net-dns/dnscrypt-proxy/Manifest new file mode 100644 index 000000000000..437b681e603e --- /dev/null +++ b/net-dns/dnscrypt-proxy/Manifest @@ -0,0 +1,7 @@ +AUX dnscrypt-proxy.confd 286 SHA256 11d635f9a504899e450e8f742952b3a736a5fc7da61eeff83eba416f3618c304 SHA512 7135d5fccf3b61981a1d085460f256d23cc63a28acf327f3b87ffed2ee3eb55ecad7703c9d4e4825bf5639d7469366933ff120ef0e7914cc756db829ce0f3d9d WHIRLPOOL 5d1938a9fade6a7e5f8dc0993a3dce6c46f47fde27badbc05d5dbda0273aacdfc861d36f5d82c351cb4214670b2d8113c5d70e0add2caa6492f63b3ef4ef19ba +AUX dnscrypt-proxy.initd 1269 SHA256 e812d73fb2967ee8441525f1e711d05f156e46e433bd26ae8abaaafc66e53d83 SHA512 ecc159ca4e7f61d5f5b5c1199aa2ed46735f2988d5ba1ad7f57614c18bd53328dcebe17b84ce720e4fa38a656be7e39a51de21923bf8eb8e11c9fe2ae2052778 WHIRLPOOL 0536a16cc9eb6461efe4251f66269edf8ba6340ee98f7953da4f738cba824efc8c22bb95455d0f8a59cebe90272a5c256e935d814d1d6f031016429ac53fd01c +AUX dnscrypt-proxy.service 675 SHA256 5955f2b1494d52113e878c8168c66f3b7c7168735815447af96570b371ca8e99 SHA512 e859a9582b6fdb5a0e7de323597f9145cd0c615e99b6eb2e42d6bfe80cde1e212182182507b79666c1c9aef3b37b67c543600d0a32586dcd49cea0e95702552c WHIRLPOOL 6ef8267756336183f59a25e06ea64ba6d51d2a588569a823f44a026eedd56b19716ce736bf37b0f563fce9636d6db9c709e1cf06d7661f1d7ac55c873db18f9b +DIST dnscrypt-proxy-1.4.2.tar.gz 1592962 SHA256 1d519068c30868bb60a151908f0e300a1754b234f7bc2ad1d749ad9d0d977076 SHA512 ecb81b5d20cf88a610421bb1266861a2f5dd34d0ce916c54507507ca5dbe5d9e49e95916f76fa7997b112860f2bc37793f075ed812c75b2904adf6cdf32cac17 WHIRLPOOL ddfa3da3de933f6cbb8721ccd6435e97b9e893d32311e1c3badbc23b6a0547b6cb0f8d6037baaf0027ca1eb972c4be167dc9ce56194f7f6fa54fac974ca0bd24 +EBUILD dnscrypt-proxy-1.4.2.ebuild 930 SHA256 6f4bd1806a432448f9c7b8ce4caf0dc5946697c89dc8e8f1f762713cdfb9b1eb SHA512 b63a49c07ff8f70c2b36fa41bfa0857f027f36afe27de100a8cd4f85cf1bb0cec0d7e8e6aa85b2ad1389494292d04fdc55cf1281e0584f0b7b7bbbb878229067 WHIRLPOOL fcaca5e32f70ef258f0d621846a0fcdf801df17caa6c538892a478fffd63d2327037f6ad1b26fe0a9d0f59ada5ffa2a3a277d24c9c33742f1dff3ff9d7fc1118 +MISC ChangeLog 399 SHA256 33a10713dc01ac80eb3bab6ececc4ccab29e56ca959bfd2226306f2903a23d55 SHA512 894e61673e399230d84d1874f38dadb3bfdd38858d27681c4a57fea64fcb9a6487fa4967cc04aa2e5c84db875140171549011272819089fadfb53ad495258989 WHIRLPOOL 97ef44a0827b3f6d70148e3957420f4094943bda739daf91e7e5bff8f66343939c9f28c4fafb2b4c85e29b28b895e4105f0022cbcc76b4ca42f06c3794d4d205 +MISC metadata.xml 874 SHA256 c71dc0311a91ce5ef6ee73607af9eca36842c499b51b9006fc5c40e49f95ff86 SHA512 20833600718ce70ebec2f0036b18d994cf228b7acc6ca4777811c853e0363587b55adb2b1bab6fb1181b48d12a661899bc21f57ea877df14ea41253a1d9b37c0 WHIRLPOOL 1b8295066fcde71c9828935340e6c6581082f5b15802c1f5529c210491d4ae3f7c89014c39bd9f04670de565ca5f0e98971a650db932ce617888fecbf1f32430 diff --git a/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild new file mode 100644 index 000000000000..2bb8279b74b5 --- /dev/null +++ b/net-dns/dnscrypt-proxy/dnscrypt-proxy-1.4.2.ebuild @@ -0,0 +1,43 @@ +# 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/dnscrypt-proxy-1.4.2.ebuild,v 1.1 2014/12/22 14:30:41 dlan Exp $ + +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/files/dnscrypt-proxy.confd b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd new file mode 100644 index 000000000000..ceedd454b5fb --- /dev/null +++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.confd @@ -0,0 +1,7 @@ +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 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..a01076517faf --- /dev/null +++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.initd @@ -0,0 +1,48 @@ +#!/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 $? +} diff --git a/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service new file mode 100644 index 000000000000..414c0b498c5e --- /dev/null +++ b/net-dns/dnscrypt-proxy/files/dnscrypt-proxy.service @@ -0,0 +1,20 @@ +[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 diff --git a/net-dns/dnscrypt-proxy/metadata.xml b/net-dns/dnscrypt-proxy/metadata.xml new file mode 100644 index 000000000000..03ba21e513a4 --- /dev/null +++ b/net-dns/dnscrypt-proxy/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>proxy-maintainers</herd> +<maintainer> + <email>amesists@gmail.com</email> + <name>Jiajun Wang</name> + <description>Primary Maintainer, Assign bugs</description> +</maintainer> +<longdescription lang="en"> +dnscrypt-proxy provides local service which can be used directly as your local resolver +or as a DNS forwarder, encrypting and authenticating requests using the DNSCrypt protocol +and passing them to an upstream server. +</longdescription> +<use> + <flag name="ldns">Use <pkg>net-libs/ldns</pkg> for DNSSEC/SSHFP validation</flag> + <flag name="plugins">Enable plugin support to inspect and modify queries and responses</flag> + <flag name="systemd">Use systemd's socket activation instead of creating the sockets itself</flag> +</use> +</pkgmetadata> |