From nobody Wed Nov 20 11:24:19 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XtfC806nfz5dd8P; Wed, 20 Nov 2024 11:24:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XtfC76W4Hz4mPb; Wed, 20 Nov 2024 11:24:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732101859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ObE3yzs3HOhIXIr9TS9ugUvMAn7z0lQWkrA7G0Tj0O4=; b=wqV+bu+ETPi9nx6XYm0oQwlmhNyKRfzgxGHtT+dhLxXrJM6o+Uu3xOVjH5Gl/+u8uaQfNE Lhp1TawyvLrb81G1Mh6yoofqDWEZsmwEVB2I8gbC/7XByxLtyeIzgoSS6CmKtwcAKGsiyo /tp8nPoQie6QPTEf20e0tJhNPGqveGMew9y+wejf8NBidljixnFHKQRIndUVRVhPmFYjG/ 67L8pmLxN+LfJprO8u5vW2e+VE08/WbitEGHdoL7gkl1kThQVtD56PhQLsKg397TXG4aM8 VWtV1aGLdwgNXqkC+Qi6APCIGB6AOuGQRhp6J9pMW47PsLEpdiftQeF6+8pALw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732101859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ObE3yzs3HOhIXIr9TS9ugUvMAn7z0lQWkrA7G0Tj0O4=; b=Pd88aARC8cPmxIppvYP4Y9WulJz688f1dBm0H1GZCMlN/U2NHuBwGS65sBwSLdSjTlg0kE 43iyXhZBpEh0V58qqKEjenIgSNfgGDX3WF7+rQ6SCyLb/ocVRDot7LzntLWvHbdbWI+HtG kwcrlToaB3TmWxGRBHeTHNGqvg1Q7sOvdShSZ6aX1tcCZKJdzCl2aB34o8YS1YrXKvTerS PZWVZ5XaCh7JBIJsRWM16G60V0GG959e+NAeGK/zrsd5oxTe4jw8ed01dZqQIPAeHDrpWA qftQ0ET8AqTzjqJVdcfuUf2DO2IFxZk+gqPem5KGtOkmfuHcZNCFS5SyOwu2yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732101859; a=rsa-sha256; cv=none; b=IwjptfzUgH0nHSTcmkemQ6tQRJIq2ap7D5fKqqVqDdd35OFDiil4QwGGRB1EXfzgurZQYb W42paNpfkYI8F8NfCGh3CrKBDpzxA426OWBFkHwjRR6CW/+PS3wty6nxrzSxXUb+8AMe52 gAfSiYDFOIYh2ZUflY7L1eXBJvQTPY0iBoo7OC0EbVVbXn2lYp2ZTyXHHoGyomTTd5Kp/y guAaVHejapKZ0DzFxOmzmPUtgn7pmNYiw6Zi1P4tbtbnfOaZmyt4DdOKobChGzq7Rksn1N 3OXQwEbEjgG569gSFB0mUHSDLJ3q1j6ODpnpW07OTqHEnp2YwubQDYxDUs0yBQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XtfC763NDzs0j; Wed, 20 Nov 2024 11:24:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AKBOJWl072879; Wed, 20 Nov 2024 11:24:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AKBOJIj072876; Wed, 20 Nov 2024 11:24:19 GMT (envelope-from git) Date: Wed, 20 Nov 2024 11:24:19 GMT Message-Id: <202411201124.4AKBOJIj072876@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Renato Botelho Subject: git: bb1dea909cdd - main - net/mdns-bridge: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: garga X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bb1dea909cdd856bbb42c42cddf52fc751edec4c Auto-Submitted: auto-generated The branch main has been updated by garga: URL: https://cgit.FreeBSD.org/ports/commit/?id=bb1dea909cdd856bbb42c42cddf52fc751edec4c commit bb1dea909cdd856bbb42c42cddf52fc751edec4c Author: Denny Page AuthorDate: 2024-11-20 11:22:37 +0000 Commit: Renato Botelho CommitDate: 2024-11-20 11:24:10 +0000 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") --- net/Makefile | 1 + net/mdns-bridge/Makefile | 21 +++++++++++++++++++++ net/mdns-bridge/distinfo | 3 +++ net/mdns-bridge/files/mdns_bridge.in | 30 ++++++++++++++++++++++++++++++ net/mdns-bridge/pkg-descr | 4 ++++ net/mdns-bridge/pkg-plist | 2 ++ 6 files changed, 61 insertions(+) diff --git a/net/Makefile b/net/Makefile index df46c484b725..fddeeb7fde1b 100644 --- a/net/Makefile +++ b/net/Makefile @@ -465,6 +465,7 @@ SUBDIR += mailimporter SUBDIR += malo-firmware-kmod SUBDIR += mcjoin + SUBDIR += mdns-bridge SUBDIR += mdns-repeater SUBDIR += measurement-kit SUBDIR += mediastreamer diff --git a/net/mdns-bridge/Makefile b/net/mdns-bridge/Makefile new file mode 100644 index 000000000000..50d6afc1a608 --- /dev/null +++ b/net/mdns-bridge/Makefile @@ -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 diff --git a/net/mdns-bridge/distinfo b/net/mdns-bridge/distinfo new file mode 100644 index 000000000000..f335f9e8e12b --- /dev/null +++ b/net/mdns-bridge/distinfo @@ -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 diff --git a/net/mdns-bridge/files/mdns_bridge.in b/net/mdns-bridge/files/mdns_bridge.in new file mode 100644 index 000000000000..746865d123c6 --- /dev/null +++ b/net/mdns-bridge/files/mdns_bridge.in @@ -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" diff --git a/net/mdns-bridge/pkg-descr b/net/mdns-bridge/pkg-descr new file mode 100644 index 000000000000..a3e2ede0b92c --- /dev/null +++ b/net/mdns-bridge/pkg-descr @@ -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. diff --git a/net/mdns-bridge/pkg-plist b/net/mdns-bridge/pkg-plist new file mode 100644 index 000000000000..0ba7a825023d --- /dev/null +++ b/net/mdns-bridge/pkg-plist @@ -0,0 +1,2 @@ +bin/mdns-bridge +@sample etc/mdns-bridge.conf.sample