]> Pileus Git - ~andy/sunrise/commitdiff
New Ebuild for bug 104208 net-proxy/dnsproxy thanks to Tomoyuki Sakurai
authorMartin Hierling <mad@cc.fh-luh.de>
Mon, 26 Jun 2006 14:15:53 +0000 (14:15 +0000)
committerMartin Hierling <mad@cc.fh-luh.de>
Mon, 26 Jun 2006 14:15:53 +0000 (14:15 +0000)
svn path=/sunrise/; revision=325

net-proxy/dnsproxy/ChangeLog [new file with mode: 0644]
net-proxy/dnsproxy/Manifest [new file with mode: 0644]
net-proxy/dnsproxy/dnsproxy-1.15.ebuild [new file with mode: 0644]
net-proxy/dnsproxy/files/confd [new file with mode: 0644]
net-proxy/dnsproxy/files/digest-dnsproxy-1.15 [new file with mode: 0644]
net-proxy/dnsproxy/files/initd [new file with mode: 0644]

diff --git a/net-proxy/dnsproxy/ChangeLog b/net-proxy/dnsproxy/ChangeLog
new file mode 100644 (file)
index 0000000..4dc8b02
--- /dev/null
@@ -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 (file)
index 0000000..2cda76d
--- /dev/null
@@ -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 (file)
index 0000000..1fd35b3
--- /dev/null
@@ -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 (file)
index 0000000..fdcc59a
--- /dev/null
@@ -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 (file)
index 0000000..fb4864a
--- /dev/null
@@ -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 (file)
index 0000000..3d51787
--- /dev/null
@@ -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() {
+
+}