diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-proxy/dnsproxy |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-proxy/dnsproxy')
-rw-r--r-- | net-proxy/dnsproxy/Manifest | 8 | ||||
-rw-r--r-- | net-proxy/dnsproxy/dnsproxy-1.16-r2.ebuild | 42 | ||||
-rw-r--r-- | net-proxy/dnsproxy/files/dnsproxy-1.16-include.patch | 10 | ||||
-rw-r--r-- | net-proxy/dnsproxy/files/dnsproxy.confd | 3 | ||||
-rw-r--r-- | net-proxy/dnsproxy/files/dnsproxy.initd | 31 | ||||
-rw-r--r-- | net-proxy/dnsproxy/metadata.xml | 9 |
6 files changed, 103 insertions, 0 deletions
diff --git a/net-proxy/dnsproxy/Manifest b/net-proxy/dnsproxy/Manifest new file mode 100644 index 000000000000..6e07caae5e7f --- /dev/null +++ b/net-proxy/dnsproxy/Manifest @@ -0,0 +1,8 @@ +AUX dnsproxy-1.16-include.patch 265 SHA256 85e507a5c858cf037b4bc3acd2cb4c605dd08bf88db74e1427f3ed154a7501d1 SHA512 b97be76ef6d9fe4be6720bb14b3cff1fc02f5b25400629a6538fe2aee003323e0f577a80dd4750242dc008bd2e7912332c66e87bd7f653eeb2f9ecf2ddc29b25 WHIRLPOOL 6419930de581265ed76b8a3fc6e1bcfade1b94560c49fa75e7b2479634151f03c1f05daf6ced84271eb117910f6a4a33d05cb3853020c9e66656e427b15185c1 +AUX dnsproxy.confd 153 SHA256 e955c254d81323baa40f1ef844465407c1fa2d61994578edd83489c283861113 SHA512 5aa16ba6f507509bb25677c68d5cef31b88b01ca1dbf7629e7702240870795327c0c4b0bcf77e643baada42c844d1d41d95aebe8b6271ede1c5ce3fa1507a8b6 WHIRLPOOL ce56e283aace8af159fed5b3bae2d388a6343fdac4a281fa4c6581b70fd46b9e14f29119910aee6ae9ff95e0cf5951d6fe347dd67607788db56515326de43645 +AUX dnsproxy.initd 704 SHA256 da3317fa9bc0ea6bed8d2e8c5318c08ab1d9b57cfbb8e6e8d048cf1950d8b09b SHA512 d36034ff8847c508844f617678257d699f172a8d680e9ff1f9cf6843b56d2461f68387c7c3d60afb369131a073fd9f8e43c343d47819457661e549b87aa59d8a WHIRLPOOL a56d068a8cdbb95223dd54243d02128c93d3907f1393d332d4e42b2ef06b0b45b20dba13aa9131aae76ea02b9291e19636ccd6a7f47c68246c13cf282845911a +DIST dnsproxy-1.16.tar.gz 47239 SHA256 5d9df5ce547409a0e33888853f0fbaf7c599311992191c939010d2bc57ed63de SHA512 f02498de963555556b656be432612e6d9ed72f29c838672c45ed2b4100cd6ae30b19091cbd33587259935342c86a733b820d2df54a8c3c1c699edb050b1b3d2b WHIRLPOOL cc55fd72966236be4329f6d9320b9d1da0bd630634db5d025d83134f1f4a00a6662ab0af53163b642930f539d07c9a406a85ffccbe608a8b36fa5db62649db6e +EBUILD dnsproxy-1.16-r2.ebuild 772 SHA256 b7dbe888671e2882c244da1093ac5c9af461adf5f160f6971222893874f564a9 SHA512 b353b4bf8eaf6fb9650a9eed99ff944640e8a15087fc906cc2c15d1a2c18d2b23fad75f8b93f2fe9a5373f4e574cfac6e143efde7c9e55ac579bf7dee3707425 WHIRLPOOL d180ac72502e084f1c2dd62e8909db3211102244355f74b829fa369dea13dbcf8c6da1ab2dbfcbd9754e5026b03d2198095c97a5769ed3ef87a9b87eb3f40eb1 +MISC ChangeLog 3528 SHA256 1f0e144a918933ec4af045c95279a0b0807f87603ab8af49854eba89f4a4e126 SHA512 1b153220ab80265164109515cda9cdd542b27fa61201ca091609326b1956d78b877195c2fd2a708c0cb95e925d00f47e54747e741a4b54a1a05a8f47f0a5f412 WHIRLPOOL e9d66894cf20c4d8038115b3e108d720497926fb94f93d6708329e34d32647b8c38f7b9e7e434816df438ce753eaa716792364d5548f14383e87413b1fa7e6df +MISC ChangeLog-2015 2199 SHA256 e5244a31a6aca96d42d78c3b89d86feafac1cdd593466118de5f80f99a94df87 SHA512 a87f28cc34af4dcb801f4b4fdbf55a948ceed2b66f26b65aa33f78055dbec6b5f8bd8b3294f4f19ac7cbb36b7de7f314ba24f0103df475baf5debee38874ded3 WHIRLPOOL 38584ec282fb6a02ce41785adc9ecdf96c74a565c239536cf8728166f9d224d155ea52320e5c9681c80e204542b580deb678a1786c9ca856d0e0b287a857d5c4 +MISC metadata.xml 468 SHA256 89a7c040045057b0a6ce61a1f1d4d6939f4975d44959808549dabc5e6cdf026b SHA512 a74c88be1f57a3a2a850554d24226fc40433184a8533ba2acb4980c2d38ec7f8f62454ae25301b9f1bfa2b011e51462e159a65996c59701ca6555204a11f3c87 WHIRLPOOL 25cfcc3042a0e4bb1fbc903fa9408e79df8d32a80f9c688cc29bf693e19efc755cd2e2fb1eb9bb8a648ebb0ace92ba749f9a5d193ace646b1951a4d6fa3fe288 diff --git a/net-proxy/dnsproxy/dnsproxy-1.16-r2.ebuild b/net-proxy/dnsproxy/dnsproxy-1.16-r2.ebuild new file mode 100644 index 000000000000..05398e13326a --- /dev/null +++ b/net-proxy/dnsproxy/dnsproxy-1.16-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils flag-o-matic + +DESCRIPTION="The dnsproxy daemon is a proxy for DNS queries" +HOMEPAGE="http://www.wolfermann.org/dnsproxy.html" +SRC_URI="http://www.wolfermann.org/${P}.tar.gz" + +LICENSE="MIT GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-libs/libevent" +RDEPEND="${DEPEND}" + +src_prepare() { + eapply -p0 "${FILESDIR}"/${P}-include.patch + append-cppflags -D_GNU_SOURCE + + default +} + +src_compile() { + emake ${PN} +} + +src_install() { + dosbin ${PN} + keepdir /var/empty + + newconfd "${FILESDIR}"/${PN}.confd ${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + insinto /etc/${PN} + newins ${PN}.conf ${PN}.conf.dist + + dodoc README + doman ${PN}.1 +} diff --git a/net-proxy/dnsproxy/files/dnsproxy-1.16-include.patch b/net-proxy/dnsproxy/files/dnsproxy-1.16-include.patch new file mode 100644 index 000000000000..96296f5ed2d8 --- /dev/null +++ b/net-proxy/dnsproxy/files/dnsproxy-1.16-include.patch @@ -0,0 +1,10 @@ +--- dnsproxy.c.orig 2010-01-11 16:02:00.000000000 +0100 ++++ dnsproxy.c 2010-10-27 05:07:05.000000000 +0200 +@@ -28,6 +28,7 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <grp.h> /* setgroups() */ + #include <unistd.h> + + #define GLOBALS 1 diff --git a/net-proxy/dnsproxy/files/dnsproxy.confd b/net-proxy/dnsproxy/files/dnsproxy.confd new file mode 100644 index 000000000000..48f8a51e57f0 --- /dev/null +++ b/net-proxy/dnsproxy/files/dnsproxy.confd @@ -0,0 +1,3 @@ +# Options for dnsproxy daemon (rarely you need to change these) +DNSPROXY_CONFFILE="/etc/dnsproxy/dnsproxy.conf" +DNSPROXY_PIDFILE="/var/run/dnsproxy.pid" diff --git a/net-proxy/dnsproxy/files/dnsproxy.initd b/net-proxy/dnsproxy/files/dnsproxy.initd new file mode 100644 index 000000000000..7af2199cfab2 --- /dev/null +++ b/net-proxy/dnsproxy/files/dnsproxy.initd @@ -0,0 +1,31 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +checkconfig() { + if [ ! -e "${DNSPROXY_CONFFILE}" ] ; then + eerror "You need to create and select the configuration file first." + eerror "An example can be found in /etc/dnsproxy/dnsproxy.conf.dist" + return 1 + fi +} + +start() { + ebegin "Starting dnsproxy" + checkconfig && \ + start-stop-daemon --start --make-pidfile \ + --quiet -b --pidfile ${DNSPROXY_PIDFILE} \ + --exec /usr/sbin/dnsproxy -- -c "${DNSPROXY_CONFFILE}" + eend $? +} + +stop() { + ebegin "Stopping dnsproxy" + start-stop-daemon --stop --quiet \ + --pidfile ${DNSPROXY_PIDFILE} + eend $? +} diff --git a/net-proxy/dnsproxy/metadata.xml b/net-proxy/dnsproxy/metadata.xml new file mode 100644 index 000000000000..a737ca9d17d4 --- /dev/null +++ b/net-proxy/dnsproxy/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<longdescription>The dnsproxy daemon is a proxy for DNS queries. It forwards these queries to +two previously configured nameservers: one for authoritative queries and another +for recursive queries. The received answers are sent back to the client unchanged. +No local caching is done.</longdescription> +</pkgmetadata> |