aboutsummaryrefslogtreecommitdiff
path: root/net/irrd/files/irrd.in
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2014-09-02 18:01:38 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2014-09-02 18:01:38 +0000
commita5a9cdf79fb052ed4da0fd53782135888e5c21c1 (patch)
tree4936c966f3244f3f12a68dcc37df309d1f04aecf /net/irrd/files/irrd.in
parent4d2406103b0a4fcdd36fe505baccea42e3ec9e99 (diff)
downloadports-a5a9cdf79fb052ed4da0fd53782135888e5c21c1.tar.gz
ports-a5a9cdf79fb052ed4da0fd53782135888e5c21c1.zip
- Resurrect net/irrd with stagify.
- Take maintainership. - Strip installed binary. - Use shebangfix for perl scripts.
Notes
Notes: svn path=/head/; revision=367069
Diffstat (limited to 'net/irrd/files/irrd.in')
-rw-r--r--net/irrd/files/irrd.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/irrd/files/irrd.in b/net/irrd/files/irrd.in
new file mode 100644
index 000000000000..72ac0ecefe40
--- /dev/null
+++ b/net/irrd/files/irrd.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: irrd
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# Define these irrd_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/irrd
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+irrd_enable="${irrd_enable:-NO}" # Enable irrd
+#irrd_program="%%PREFIX%%/sbin/irrd" # Location of irrd
+irrd_flags="${irrd_flags:--u}" # Flags to irrd program
+
+. /etc/rc.subr
+
+name="irrd"
+rcvar=irrd_enable
+command="%%PREFIX%%/sbin/irrd"
+required_files="%%PREFIX%%/etc/irrd.conf"
+
+load_rc_config $name
+run_rc_command "$1"