pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/29678: devel/libnet fails to build: no low level packet interface



The problem is that on current it's /dev/bpf, and configure checks for
/dev/bpf0. The attached patch should fix the problem.

Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--- configure.orig      1999-10-27 20:47:27.000000000 +0200
+++ configure   2005-03-12 16:04:13.000000000 +0100
@@ -1209,7 +1209,7 @@
 echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
 echo "configure:1211: checking low-level packet interface type" >&5
 
-if test -r /dev/bpf0 ; then
+if test -r /dev/bpf0 -o -r /dev/bpf ; then
     LL_INT_TYPE=bpf
     echo "$ac_t""found bpf" 1>&6
 elif test -r /usr/include/net/pfilt.h ; then
@@ -1340,7 +1340,7 @@
 
 
     fi
-elif test -c /dev/bpf0 ; then           # check again in case not readable
+elif test -c /dev/bpf0 -o -c /dev/bpf ; then # check again in case not readable
     LL_INT_TYPE=bpf
     echo "$ac_t""found bpf" 1>&6
 elif test -c /dev/enet ; then           # check again in case not readable


Home | Main Index | Thread Index | Old Index