diff options
| author | Vladimir Druzenko <vvd@FreeBSD.org> | 2025-12-23 16:16:26 +0300 |
|---|---|---|
| committer | Vladimir Druzenko <vvd@FreeBSD.org> | 2025-12-23 16:38:45 +0300 |
| commit | ad45e2e26e700cddd942fd3da0424e92cc0568d0 (patch) | |
| tree | 0af07e9af40f18e072886c167c38b7d3eb8b9a01 /net/ngrep/files/patch-configure.ac | |
| parent | ports-mgmt/zig2tuple: Update to 20251222 (diff) | |
net/ngrep: Update 1.45 => 1.48.3, reset maintainer
Changelog:
https://github.com/jpr5/ngrep/blob/v1.48.3/README.md#whats-new
PR: 291115
Approved by: logan@elandsys.com (maintainer, timeout - inactive for 10+ years)
Co-authored-by: Nithurshen Karthikeyan <nithurshen@gmail.com>
Diffstat (limited to 'net/ngrep/files/patch-configure.ac')
| -rw-r--r-- | net/ngrep/files/patch-configure.ac | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net/ngrep/files/patch-configure.ac b/net/ngrep/files/patch-configure.ac new file mode 100644 index 000000000000..9ad74b5061cb --- /dev/null +++ b/net/ngrep/files/patch-configure.ac @@ -0,0 +1,59 @@ +--- configure.ac.orig 2025-11-07 06:35:47 UTC ++++ configure.ac +@@ -138,7 +138,35 @@ AS_IF([test $use_pcap_restart = yes], [ + USE_PCAP_RESTART="0" + ]) + ++AC_ARG_ENABLE(capsicum, ++[ --enable-capsicum enable capsicum support], ++[ ++ use_capsicum="$enableval" ++], ++[ ++ use_capsicum="no" ++]) + ++# ++# Check whether various functions are available. If any are, set ++# ac_lbl_capsicum_function_seen to yes; if any are not, set ++# ac_lbl_capsicum_function_not_seen to yes. ++# ++# All of them must be available in order to enable capsicum sandboxing. ++# ++if test $use_capsicum = yes && test $use_capsicum != no ; then ++ AC_CHECK_FUNCS(cap_enter cap_rights_limit cap_ioctls_limit openat, ++ ac_lbl_capsicum_function_seen=yes, ++ ac_lbl_capsicum_function_not_seen=yes) ++fi ++AC_MSG_CHECKING([whether to sandbox using capsicum]) ++if test "x$ac_lbl_capsicum_function_seen" = "xyes" -a "x$ac_lbl_capsicum_function_not_seen" != "xyes"; then ++ USE_CAPSICUM="1" ++ AC_MSG_RESULT(yes) ++else ++ AC_MSG_RESULT(no) ++fi ++ + dnl + dnl Configure the regular expression library. + dnl +@@ -553,6 +581,7 @@ AC_DEFINE_UNQUOTED(USE_VLAN_HACK, $USE_VLA + AC_DEFINE_UNQUOTED(USE_IPv6, $USE_IPv6, [whether to use IPv6 (default off)]) + AC_DEFINE_UNQUOTED(USE_TCPKILL, $USE_TCPKILL, [whether to enable tcpkill functionality (default off)]) + AC_DEFINE_UNQUOTED(USE_VLAN_HACK, $USE_VLAN_HACK, [whether to automatically include VLAN frames (default on)]) ++AC_DEFINE_UNQUOTED(USE_CAPSICUM, $USE_CAPSICUM, [whether to use capsicum]) + + AC_DEFINE_UNQUOTED(USE_DROPPRIVS, $USE_DROPPRIVS, [whether to use privileges dropping (default yes)]) + AC_DEFINE_UNQUOTED(DROPPRIVS_USER, "$DROPPRIVS_USER", [pseudo-user for running ngrep (default "nobody")]) +@@ -613,6 +642,12 @@ AS_IF([test "$USE_VLAN_HACK" = "1"], [ + AC_MSG_RESULT(CONFIG: automatically including VLAN frames) + ], [ + AC_MSG_RESULT(CONFIG: NOT automatically including VLAN frames) ++]) ++ ++AS_IF([test "$USE_CAPSICUM" = "1"], [ ++ AC_MSG_RESULT(CONFIG: capsicum enabled) ++], [ ++ AC_MSG_RESULT(CONFIG: capsicum disabled) + ]) + + dnl |
