1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

sysutils/ngbuddy: Add new port

Netgraph Buddy is an rc.d script for simplified management of netgraph
networks in mixed VM and jail environments.

PR:		279999
Sponsored by:	Bell Tower Integration
Sponsored by:	Klara, Inc.
Co-authored-by:	Xavier Beaudouin <kiwi@oav.net>
This commit is contained in:
Daniel J. Bell 2024-06-26 11:35:01 +02:00 committed by Mateusz Piotrowski
parent 7b64ff108a
commit fb5ba3cd5d
6 changed files with 61 additions and 0 deletions

View File

@ -829,6 +829,7 @@
SUBDIR += nerdctl
SUBDIR += netevent
SUBDIR += nfcutils
SUBDIR += ngbuddy
SUBDIR += nitrogen
SUBDIR += nix
SUBDIR += nmdaemon

29
sysutils/ngbuddy/Makefile Normal file
View File

@ -0,0 +1,29 @@
PORTNAME= ngbuddy
DISTVERSIONPREFIX= v
DISTVERSION= 1.0
CATEGORIES= sysutils
MAINTAINER= daniel@belltech.it
COMMENT= rc.d script for management of netgraph networks
WWW= https://github.com/bellhyve/ngbuddy
LICENSE= BSD2CLAUSE
USE_GITHUB= yes
GH_ACCOUNT= bellhyve
NO_ARCH= yes
NO_BUILD= yes
SUB_FILES= pkg-message
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ngbuddy ${STAGEDIR}${PREFIX}/etc/rc.d/
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/share/ngbuddy/* ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DATADIR}/examples
${INSTALL_DATA} ${WRKSRC}/examples/devfs.rules ${STAGEDIR}${DATADIR}/examples/
${INSTALL_DATA} ${WRKSRC}/examples/jail_skel.conf ${STAGEDIR}${DATADIR}/examples/
${INSTALL_MAN} ${WRKSRC}/ngbuddy.8 ${STAGEDIR}${PREFIX}/share/man/man8/
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1718315690
SHA256 (bellhyve-ngbuddy-v1.0_GH0.tar.gz) = db62e004e5afbba97b2957676f8b2735a5a128ed68b67f96681393cc8bda8e6b
SIZE (bellhyve-ngbuddy-v1.0_GH0.tar.gz) = 12977

View File

@ -0,0 +1,20 @@
[
{ type: install
message: <<EOM
To configure Netgraph Buddy with a "private" and "public" netgraph bridge, run:
service ngbuddy enable
If you're using vm-bhyve, you can add your bridges with:
service ngbuddy vmconf
For more information, see ngbuddy(8) and the example jail configuration in:
%%DATADIR%%/examples/
Please submit bugs to: https://github.com/bellhyve/ngbuddy
EOM
}
]

View File

@ -0,0 +1,2 @@
Netgraph Buddy is an rc.d script for simplified management of netgraph
networks in mixed VM and jail environments.

View File

@ -0,0 +1,6 @@
etc/rc.d/ngbuddy
share/man/man8/ngbuddy.8.gz
%%DATADIR%%/ngbuddy-status.awk
%%DATADIR%%/ngbuddy-mmd.awk
%%DATADIR%%/examples/devfs.rules
%%DATADIR%%/examples/jail_skel.conf