summaryrefslogtreecommitdiff
path: root/net/igmpproxy/files/igmpproxy.in
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2009-03-18 15:18:53 +0000
committerBruce M Simpson <bms@FreeBSD.org>2009-03-18 15:18:53 +0000
commit7ac2945bced4f873e42fac1321169c8a3d3eefb8 (patch)
treeab60f45622f4280c31bf45c071987ef3d2183c61 /net/igmpproxy/files/igmpproxy.in
parentUpdate PostgreSQL to latest versions. (diff)
Add new port igmpproxy.
This is an IGMPv2 aware multicast forwarding proxy. It cannot be run simultaneously with other multicast routing daemons. PR: ports/130174 Submitted by: Alexander Chernikov
Notes
Notes: svn path=/head/; revision=230360
Diffstat (limited to 'net/igmpproxy/files/igmpproxy.in')
-rw-r--r--net/igmpproxy/files/igmpproxy.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/net/igmpproxy/files/igmpproxy.in b/net/igmpproxy/files/igmpproxy.in
new file mode 100644
index 000000000000..d579251515f2
--- /dev/null
+++ b/net/igmpproxy/files/igmpproxy.in
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: igmpproxy
+# REQUIRE: NETWORKING
+
+# The following variables are provided to control startup of igmpproxy
+# rc configuration file (eg /etc/rc.conf):
+# igmpproxy_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable igmpproxy.
+
+. %%RC_SUBR%%
+
+name="igmpproxy"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/sbin/${name}"
+required_files="%%PREFIX%%/etc/igmpproxy.conf"
+igmpproxy_enable=${igmpproxy_enable-"NO"}
+
+load_rc_config $name
+run_rc_command "$1"