summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-proxy/dnsproxy/files')
-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
3 files changed, 46 insertions, 0 deletions
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() {
+
+}