aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns/files/pdns_recursor.sh.in
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-18 12:59:51 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-18 12:59:51 +0000
commit9d658f56fa7fa8f67c127b0f9fffa5941a44cebc (patch)
treee8cf786d0254d91efac7a565694a85bfe01f4732 /dns/powerdns/files/pdns_recursor.sh.in
parentecd685d3d657f3521b18d5107dffe948dc41c540 (diff)
downloadports-9d658f56fa7fa8f67c127b0f9fffa5941a44cebc.tar.gz
ports-9d658f56fa7fa8f67c127b0f9fffa5941a44cebc.zip
Notes
Diffstat (limited to 'dns/powerdns/files/pdns_recursor.sh.in')
-rw-r--r--dns/powerdns/files/pdns_recursor.sh.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/dns/powerdns/files/pdns_recursor.sh.in b/dns/powerdns/files/pdns_recursor.sh.in
new file mode 100644
index 000000000000..006f16e21a12
--- /dev/null
+++ b/dns/powerdns/files/pdns_recursor.sh.in
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: pdns_recursor
+# REQUIRE: DAEMON
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable dovecot:
+#
+#pdns_recursor_enable="YES"
+#
+# See http://rtfm.powerdns.com for flags.
+#
+
+. %%RC_SUBR%%
+
+name=pdns_recursor
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/pdns_recursor
+
+# set defaults
+
+pdns_recursor_enable=${pdns_recursor_enable:-"NO"}
+pdns_recursor_conf=${pdns_recursor_conf:-"%%PREFIX%%/etc/recursor.conf"}
+pdns_recursor_flags=${pdns_recursor_flags:-""}
+
+load_rc_config ${name}
+
+required_files=${pdns_recursor_conf}
+
+run_rc_command "$1"