Package: libpcap0.8
Severity: important
Version: 0.9.8-1
Tags: patch
User: [EMAIL PROTECTED]
Usertags: kfreebsd


Hi,

the current version fails to build on GNU/kFreeBSD.

It needs fixup for configure.in/configure.
Please find attached patch which updates
debian/patches/50_kfreebsd.diff.

Thanks in advance

                        Petr
diff -u libpcap0.8-0.9.8/debian/patches/50_kfreebsd.diff 
libpcap0.8-0.9.8/debian/patches/50_kfreebsd.diff
--- libpcap0.8-0.9.8/debian/patches/50_kfreebsd.diff
+++ libpcap0.8-0.9.8/debian/patches/50_kfreebsd.diff
@@ -1,18 +1,15 @@
 Support for GNU/kFreeBSD, by Aurelien Jarno.
 
---- libpcap0.8-0.9.7.orig/configure
-+++ libpcap0.8-0.9.7/configure
-@@ -5217,7 +5217,7 @@
- #define HAVE_CLONING_BPF 1
- _ACEOF
- 
--elif test -r /dev/bpf0 ; then
-+elif test -r /dev/bpf0 || test -r /usr/include/net/bpf.h ; then
-       V_PCAP=bpf
- elif test -r /usr/include/net/pfilt.h ; then
-       V_PCAP=pf
 --- libpcap0.8-0.9.7.orig/configure.in
 +++ libpcap0.8-0.9.7/configure.in
+@@ -28,6 +28,7 @@
+ dnl
+ AC_CHECK_HEADERS(sys/ioccom.h sys/sockio.h limits.h paths.h)
+ AC_CHECK_HEADERS(net/pfvar.h, , , [#include <sys/types.h>
++#include <net/if_pflog.h>
+ #include <sys/socket.h>
+ #include <net/if.h>])
+ AC_CHECK_HEADERS(netinet/if_ether.h, , , [#include <sys/types.h>
 @@ -190,7 +190,7 @@
        #
        V_PCAP=bpf
@@ -24,0 +22,19 @@
+--- libpcap0.8-0.9.7.orig/configure
++++ libpcap0.8-0.9.7/configure
+@@ -4246,6 +4246,7 @@
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <sys/types.h>
++#include <net/if_pflog.h>
+ #include <sys/socket.h>
+ #include <net/if.h>
+ 
+@@ -5217,7 +5217,7 @@
+ #define HAVE_CLONING_BPF 1
+ _ACEOF
+ 
+-elif test -r /dev/bpf0 ; then
++elif test -r /dev/bpf0 || test -r /usr/include/net/bpf.h ; then
+       V_PCAP=bpf
+ elif test -r /usr/include/net/pfilt.h ; then
+       V_PCAP=pf

Reply via email to