summaryrefslogtreecommitdiff
path: root/net/linuxigd/files/linuxigd.in
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2007-06-16 12:49:58 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2007-06-16 12:49:58 +0000
commitf4e93f459e1dc468d70583dfbdd4f865353a27fa (patch)
tree810ffcd0bb9d9551d606fe4ed63a06ade8955d19 /net/linuxigd/files/linuxigd.in
parent- Update MASTER_SITE_FEDORA_LINUX (diff)
- update to 1.0
- drop maintainership Note: I myself no longer use linuxigd, and I don't have environment to test it. Now it builds and runs, but not sure if it works. Please test it by yourself.
Diffstat (limited to 'net/linuxigd/files/linuxigd.in')
-rw-r--r--net/linuxigd/files/linuxigd.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/linuxigd/files/linuxigd.in b/net/linuxigd/files/linuxigd.in
new file mode 100644
index 000000000000..4715ecf7eacd
--- /dev/null
+++ b/net/linuxigd/files/linuxigd.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# PROVIDE: linuxigd
+# REQUIRE: NETWORKING SERVERS
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable linuxigd:
+#
+# linuxigd_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=linuxigd
+rcvar=`set_rcvar`
+
+load_rc_config $name
+
+command=%%PREFIX%%/sbin/upnpd
+required_files="%%PREFIX%%/etc/linuxigd/gatedesc.xml %%PREFIX%%/etc/upnpd.conf"
+
+: ${linuxigd_enable="NO"}
+: ${linuxigd_extif="fxp0"}
+: ${linuxigd_intif="fxp1"}
+: ${command_args="${linuxigd_extif} ${linuxigd_intif}"}
+
+run_rc_command "$1"