ports/security/fragrouter/files/patch-Libnet-0.99b__configure
Robert Clausecker 37cf0da23d security/fragrouter: fix build on BPF-less jails
Such jails don't have /dev/bpf0, making a crucial configure test fail.
Fix the configure test to make the build succeed (e.g. on armv7).

And while here, also assume MAINTAINER.

PR:		267646
2022-11-11 21:32:38 +01:00

22 lines
696 B
Text

--- Libnet-0.99b/configure.orig 1999-07-26 15:08:51 UTC
+++ Libnet-0.99b/configure
@@ -884,10 +884,6 @@ fi
-if test $ac_cv_prog_gcc = yes; then
- CCOPTS='-O3 -funroll-loops -fomit-frame-pointer -pipe -Wall'
- CFLAGS="$CCOPTS"
-fi
# Check whether --with-pf_packet or --without-pf_packet was given.
if test "${with_pf_packet+set}" = set; then
@@ -1192,7 +1188,7 @@ fi
echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
echo "configure:1194: checking low-level packet interface type" >&5
-if test -r /dev/bpf0 ; then
+if test -r /usr/include/net/bpf.h ; then
LL_INT_TYPE=bpf
echo "$ac_t""found bpf" 1>&6
elif test -r /usr/include/net/pfilt.h ; then