aboutsummaryrefslogtreecommitdiff
path: root/security/ike
diff options
context:
space:
mode:
authorJohan van Selst <johans@FreeBSD.org>2010-10-31 11:39:39 +0000
committerJohan van Selst <johans@FreeBSD.org>2010-10-31 11:39:39 +0000
commit20332d20d66af1848a26199a35348687defcfff1 (patch)
treefa671629c689bc3d1f5a36cb0cdffc8b14d6602b /security/ike
parent35df8da65ccb9520759eb6914c78e152e71a4704 (diff)
downloadports-20332d20d66af1848a26199a35348687defcfff1.tar.gz
ports-20332d20d66af1848a26199a35348687defcfff1.zip
Add rc.d file forgotten in previous commit
Reported by: QAT
Notes
Notes: svn path=/head/; revision=263834
Diffstat (limited to 'security/ike')
-rw-r--r--security/ike/files/iked.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/ike/files/iked.in b/security/ike/files/iked.in
new file mode 100644
index 000000000000..03ad7f80caf5
--- /dev/null
+++ b/security/ike/files/iked.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# rc.d script for iked
+#
+# $Id$
+
+# PROVIDE: iked
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable iked:
+#
+# #required
+# iked_enable="YES"
+#
+
+. "/etc/rc.subr"
+
+# defaults
+iked_enable=${iked_enable:-"NO"}
+
+name=iked
+rcvar=`set_rcvar`
+load_rc_config $name
+command=/usr/local/sbin/iked
+command_args="-p /var/run/iked.pid > /dev/null"
+
+run_rc_command "$1"