Page MenuHomeFreeBSD

D56744.id179673.diff
No OneTemporary

D56744.id179673.diff

diff --git a/net/Makefile b/net/Makefile
--- a/net/Makefile
+++ b/net/Makefile
@@ -68,6 +68,7 @@
SUBDIR += boinc_curses
SUBDIR += boinctui
SUBDIR += bone-kmods
+ SUBDIR += bone-utils
SUBDIR += bounce
SUBDIR += bredbandskollen
SUBDIR += brynet
diff --git a/net/bone-utils/Makefile b/net/bone-utils/Makefile
new file mode 100644
--- /dev/null
+++ b/net/bone-utils/Makefile
@@ -0,0 +1,35 @@
+PORTNAME= bone-utils
+DISTVERSION= 2026.05.16
+CATEGORIES= net sysutils
+
+MAINTAINER= dave@freedave.net
+COMMENT= Collection of netgraph utilities for bone-kmods
+WWW= https://github.com/dmarker/bone
+
+LICENSE= BSD2CLAUSE
+
+# Patches are available here:
+# https://github.com/dmarker/bong-patches/tree/main/14-stable
+# but there is no plan to merge those.
+BROKEN_FreeBSD_14= requires additional patches
+
+USES= uidfix
+
+USE_GITHUB= yes
+GH_ACCOUNT= dmarker
+GH_PROJECT= bone
+GH_TAGNAME= 50c5a95
+
+MAKEFILE= Makefile.utils
+
+PLIST_FILES= etc/rc.d/bone_netgraph \
+ bin/jeiface \
+ bin/ngpcap \
+ bin/ngportal \
+ share/man/man8/ngportal.8.gz \
+ share/man/man8/ngpcap.8.gz
+
+post-patch:
+ ${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/rc.d/bone_netgraph
+
+.include <bsd.port.mk>
diff --git a/net/bone-utils/distinfo b/net/bone-utils/distinfo
new file mode 100644
--- /dev/null
+++ b/net/bone-utils/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1781022175
+SHA256 (dmarker-bone-2026.05.16-50c5a95_GH0.tar.gz) = 541a95261fa5c5249881271141a8341a5e62d0aca9c9474162592ccafe9f3e7c
+SIZE (dmarker-bone-2026.05.16-50c5a95_GH0.tar.gz) = 47768
diff --git a/net/bone-utils/pkg-descr b/net/bone-utils/pkg-descr
new file mode 100644
--- /dev/null
+++ b/net/bone-utils/pkg-descr
@@ -0,0 +1,23 @@
+This is the [B]ag [O]f [N]etgraph [E]xtensions utilities package is an evolving
+set of extra netgraph(4) utilities to simplify using the kernel modules in
+net/bone-kmods. Additionally it provides a very simple rc(8) script which
+re-names interfaces to match whatever you named them in your ngctl.conf.
+
+At present this module provides the following:
+* netgraph rc(8) script that keeps ifconfig(8)/ngctl(8) in agreement on nodes
+ that present a network interface (ng_eiface(4), ng_ether(4), ng_iface(4)).
+* jeiface script to create an ng_eiface(4) in a jail giving it the name and
+ optional MAC you request.
+* ncpcap(8) connectes to nodes to capture traffic. It is meant to have its
+ output piped to tcpdump(1)
+* ngportal(8) is the fast and simple way to connect to vnets using netgraph.
+
+See manpages for more details and example usage. This package needs the correct
+version of net/bone-kmods for your system. Most users want the default flavor:
+
+ pkg install bone-kmods
+
+If you built your kernel with INVARIANTS (the default in CURRENT), use the
+@invariants flavor:
+
+ pkg install bone-kmods-invariants
diff --git a/net/bone-utils/pkg-message b/net/bone-utils/pkg-message
new file mode 100644
--- /dev/null
+++ b/net/bone-utils/pkg-message
@@ -0,0 +1,22 @@
+[
+{ type: install
+ message: <<EOM
+If you choose to enable netgraph in your rc.conf, don't forget
+to add the following to your loader.conf:
+ netgraph_load="YES"
+ ng_ether_load="YES"
+If those are not loaded before any physical network interface
+drivers, they will not be available for ngctl(8) to configure.
+
+This package needs the correct version of net/bone-kmods for your system. Most
+users want the default flavor:
+
+ pkg install bone-kmods
+
+If you built your kernel with INVARIANTS (the default in CURRENT), use the
+@invariants flavor:
+
+ pkg install bone-kmods-invariants
+EOM
+}
+]

File Metadata

Mime Type
text/plain
Expires
Sun, Jul 19, 8:02 AM (18 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35227066
Default Alt Text
D56744.id179673.diff (3 KB)

Event Timeline