net/mdns-bridge: New port

daemon for forwarding mDNS data between network interfaces. It
is intended for use by firewalls to provide service discovery
across network segments, with and without filtering, for both
IPv4 and IPv6.

PR:		282569
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Denny Page 2024-11-20 08:22:37 -03:00 committed by Renato Botelho
parent 8ce5383558
commit bb1dea909c
6 changed files with 61 additions and 0 deletions

View file

@ -465,6 +465,7 @@
SUBDIR += mailimporter SUBDIR += mailimporter
SUBDIR += malo-firmware-kmod SUBDIR += malo-firmware-kmod
SUBDIR += mcjoin SUBDIR += mcjoin
SUBDIR += mdns-bridge
SUBDIR += mdns-repeater SUBDIR += mdns-repeater
SUBDIR += measurement-kit SUBDIR += measurement-kit
SUBDIR += mediastreamer SUBDIR += mediastreamer

21
net/mdns-bridge/Makefile Normal file
View file

@ -0,0 +1,21 @@
PORTNAME= mdns-bridge
PORTVERSION= 1.0.1
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= dennypage@me.com
COMMENT= Multicast DNS Bridge
WWW= https://github.com/dennypage/mdns-bridge
LICENSE= BSD2CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= dennypage
USE_RC_SUBR= mdns_bridge
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>

3
net/mdns-bridge/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1730828610
SHA256 (dennypage-mdns-bridge-v1.0.1_GH0.tar.gz) = e4c42db1b2f1f49e7427db92da0553b54f36225c6e4dd6af9679174840e6f492
SIZE (dennypage-mdns-bridge-v1.0.1_GH0.tar.gz) = 26051

View file

@ -0,0 +1,30 @@
#!/bin/sh
# PROVIDE: mdns_bridge
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# mdns_bridge_enable (bool): Set to NO by default.
# Set it to YES to enable mdns-bridge.
# mdns_bridge_config (path): Set to %%PREFIX%%/etc/mdns-bridge.conf
# by default.
. /etc/rc.subr
name=mdns_bridge
rcvar=mdns_bridge_enable
load_rc_config $name
: ${mdns_bridge_enable:=NO}
: ${mdns_bridge_config=%%PREFIX%%/etc/mdns-bridge.conf}
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.pid
command_args="-s -p $pidfile -c $mdns_bridge_config"
run_rc_command "$1"

View file

@ -0,0 +1,4 @@
daemon for forwarding mDNS data between network interfaces. It
is intended for use by firewalls to provide service discovery
across network segments, with and without filtering, for both
IPv4 and IPv6.

View file

@ -0,0 +1,2 @@
bin/mdns-bridge
@sample etc/mdns-bridge.conf.sample