summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hierling <mad@cc.fh-luh.de>2006-06-26 14:15:53 +0000
committerMartin Hierling <mad@cc.fh-luh.de>2006-06-26 14:15:53 +0000
commit7f199705a5b7417a4f9b95082b76dd8fcbf1aad0 (patch)
treeaa0fd844748712618267d69cb1a698c37ce4956d /net-proxy
parentx11-themes/polyester - New ebuild, based on ebuild provided by upstream. Bug ... (diff)
downloadsunrise-7f199705a5b7417a4f9b95082b76dd8fcbf1aad0.tar.gz
sunrise-7f199705a5b7417a4f9b95082b76dd8fcbf1aad0.tar.bz2
sunrise-7f199705a5b7417a4f9b95082b76dd8fcbf1aad0.zip
New Ebuild for bug 104208 net-proxy/dnsproxy thanks to Tomoyuki Sakurai
svn path=/sunrise/; revision=325
Diffstat (limited to 'net-proxy')
-rw-r--r--net-proxy/dnsproxy/ChangeLog7
-rw-r--r--net-proxy/dnsproxy/Manifest5
-rw-r--r--net-proxy/dnsproxy/dnsproxy-1.15.ebuild26
-rw-r--r--net-proxy/dnsproxy/files/confd10
-rw-r--r--net-proxy/dnsproxy/files/digest-dnsproxy-1.151
-rw-r--r--net-proxy/dnsproxy/files/initd35
6 files changed, 84 insertions, 0 deletions
diff --git a/net-proxy/dnsproxy/ChangeLog b/net-proxy/dnsproxy/ChangeLog
new file mode 100644
index 000000000..4dc8b02ac
--- /dev/null
+++ b/net-proxy/dnsproxy/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for net-dns/dnsproxy
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 26 Jun 2006; Martin Hierling <mad@cc.fh-luh.de> ChangeLog:
+ New Ebuild for bug 104208 net-dns/dnsproxy thanks to Tomoyuki Sakurai
+
diff --git a/net-proxy/dnsproxy/Manifest b/net-proxy/dnsproxy/Manifest
new file mode 100644
index 000000000..2cda76d3b
--- /dev/null
+++ b/net-proxy/dnsproxy/Manifest
@@ -0,0 +1,5 @@
+MD5 402ae6d7449c6630cbb343a49a8ed43d ChangeLog 251
+MD5 84552d2ecde34e9fb6a297e28461f248 dnsproxy-1.15.ebuild 558
+MD5 dd1ad38ad64858ee3c1ecc49f9c114b1 files/confd 297
+MD5 0f41464d3234fd6811e6b569acb2e549 files/digest-dnsproxy-1.15 65
+MD5 014840e6426c7af958c263164a9985be files/initd 598
diff --git a/net-proxy/dnsproxy/dnsproxy-1.15.ebuild b/net-proxy/dnsproxy/dnsproxy-1.15.ebuild
new file mode 100644
index 000000000..1fd35b39d
--- /dev/null
+++ b/net-proxy/dnsproxy/dnsproxy-1.15.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+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"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+ dosbin dnsproxy
+ dodoc README
+ doman dnsproxy.1
+ insinto /etc/dnsproxy
+ newins dnsproxy.conf dnsproxy.conf-dist
+ newconfd ${FILESDIR}/confd dnsproxy
+ newinitd ${FILESDIR}/initd dnsproxy
+}
+
diff --git a/net-proxy/dnsproxy/files/confd b/net-proxy/dnsproxy/files/confd
new file mode 100644
index 000000000..fdcc59a70
--- /dev/null
+++ b/net-proxy/dnsproxy/files/confd
@@ -0,0 +1,10 @@
+# options for dnsproxy
+#
+# -c file Read configuration from file.
+# -d Detach from current terminal and run as background process.
+# (do NOT use here, start-stop-daemon does it for you)
+
+# rarely you need to change these
+OPTIONS="-c /etc/dnsproxy/dnsproxy.conf"
+PIDFILE="/var/run/dnsproxy.pid"
+
diff --git a/net-proxy/dnsproxy/files/digest-dnsproxy-1.15 b/net-proxy/dnsproxy/files/digest-dnsproxy-1.15
new file mode 100644
index 000000000..fb4864ae9
--- /dev/null
+++ b/net-proxy/dnsproxy/files/digest-dnsproxy-1.15
@@ -0,0 +1 @@
+MD5 52851b2ebe0ab3fe58158a7a64d98811 dnsproxy-1.15.tar.gz 116565
diff --git a/net-proxy/dnsproxy/files/initd b/net-proxy/dnsproxy/files/initd
new file mode 100644
index 000000000..3d517877d
--- /dev/null
+++ b/net-proxy/dnsproxy/files/initd
@@ -0,0 +1,35 @@
+opts="depend checkconfig start stop"
+BIN="dnsproxy"
+CONF="/etc/dnsproxy/dnsproxy.conf"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e ${CONF} ] ; then
+ eerror "You need to create ${CONF} first."
+ eerror "An example can be found in ${CONF}-dist"
+ return 1
+ fi
+}
+start() {
+ ebegin "Starting ${BIN}"
+ checkconfig && \
+ start-stop-daemon --start --make-pidfile \
+ --quiet -b --pidfile ${PIDFILE} \
+ --exec /usr/sbin/${BIN} -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${BIN}"
+ start-stop-daemon --stop --quiet \
+ --pidfile ${PIDFILE} \
+ && rm ${PIDFILE}
+ eend $?
+}
+
+restart() {
+
+}