pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/kismet Fixes build failure on NetBSD-4 with pkgsrc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/aa1091ad0a50
branches:  trunk
changeset: 553045:aa1091ad0a50
user:      obache <obache%pkgsrc.org@localhost>
date:      Tue Jan 13 14:08:07 2009 +0000

description:
Fixes build failure on NetBSD-4 with pkgsrc libpcap, reported in PR 40380.

diffstat:

 net/kismet/Makefile         |   6 +++++-
 net/kismet/distinfo         |   4 ++--
 net/kismet/patches/patch-ag |  21 +++++++++++++++++----
 3 files changed, 24 insertions(+), 7 deletions(-)

diffs (73 lines):

diff -r a35d5bda89d5 -r aa1091ad0a50 net/kismet/Makefile
--- a/net/kismet/Makefile       Tue Jan 13 13:53:24 2009 +0000
+++ b/net/kismet/Makefile       Tue Jan 13 14:08:07 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2008/10/28 11:06:38 adam Exp $
+# $NetBSD: Makefile,v 1.9 2009/01/13 14:08:07 obache Exp $
 
 DISTNAME=              kismet-2008-05-R1
 PKGNAME=               kismet-2008.05.01
@@ -62,6 +62,10 @@
 
 .include "options.mk"
 
+.if exists(/usr/include/net/bpf.h)
+CFLAGS+=       -DHAVE_NET_BPF_H
+.endif
+
 .include "../../devel/ncurses/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../net/libpcap/buildlink3.mk"
diff -r a35d5bda89d5 -r aa1091ad0a50 net/kismet/distinfo
--- a/net/kismet/distinfo       Tue Jan 13 13:53:24 2009 +0000
+++ b/net/kismet/distinfo       Tue Jan 13 14:08:07 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2008/10/28 11:06:38 adam Exp $
+$NetBSD: distinfo,v 1.6 2009/01/13 14:08:07 obache Exp $
 
 SHA1 (kismet-2008-05-R1.tar.gz) = 8355aeb0374a39549dfdc0c73160125eadd7c6e2
 RMD160 (kismet-2008-05-R1.tar.gz) = 5613207b45f85fa72d146009434df984f721ccdc
@@ -7,5 +7,5 @@
 SHA1 (patch-ac) = 5e267a8915872f6c1d5d58bd0a6c15223292c4ca
 SHA1 (patch-ae) = eaaf5c5498a38d7b2a6121defdf879622f430003
 SHA1 (patch-af) = e4e176998e78a657178b3e14e614adf27b517eb6
-SHA1 (patch-ag) = 2fbf1fbf9d43cd74599c86e178c810bf93b6e04c
+SHA1 (patch-ag) = cb1e1eaf07ae40128fbe9760c95cfdecc200d22c
 SHA1 (patch-ah) = 67dfa5a2aedb1b651671863177baace4a65c6f26
diff -r a35d5bda89d5 -r aa1091ad0a50 net/kismet/patches/patch-ag
--- a/net/kismet/patches/patch-ag       Tue Jan 13 13:53:24 2009 +0000
+++ b/net/kismet/patches/patch-ag       Tue Jan 13 14:08:07 2009 +0000
@@ -1,8 +1,21 @@
-$NetBSD: patch-ag,v 1.2 2008/10/28 11:06:38 adam Exp $
+$NetBSD: patch-ag,v 1.3 2009/01/13 14:08:07 obache Exp $
 
---- pcapsource.h.orig  2008-05-19 11:51:54.000000000 +0200
+--- pcapsource.h.orig  2008-05-19 09:51:54.000000000 +0000
 +++ pcapsource.h
-@@ -395,7 +395,7 @@ public:
+@@ -34,8 +34,11 @@
+ 
+ extern "C" {
+ #ifndef HAVE_PCAPPCAP_H
++#ifdef HAVE_NET_BPF_H
++#include <net/bpf.h>
++#define PCAP_DONT_INCLUDE_PCAP_BPF_H
++#endif
+ #include <pcap.h>
+-//#include <net/bpf.h>
+ #else
+ #include <pcap/pcap.h>
+ #include <pcap/net/bpf.h>
+@@ -395,7 +398,7 @@ public:
  };
  #endif
  
@@ -11,7 +24,7 @@
  class RadiotapBSD {
  public:
      RadiotapBSD(const char *ifname);
-@@ -584,7 +584,7 @@ int chancontrol_openbsd_prism2(const cha
+@@ -584,7 +587,7 @@ int chancontrol_openbsd_prism2(const cha
                                 void *in_ext);
  #endif
  



Home | Main Index | Thread Index | Old Index