pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/libpcap Make the work around which deals with the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/350d1bf6bc46
branches:  trunk
changeset: 534260:350d1bf6bc46
user:      tron <tron%pkgsrc.org@localhost>
date:      Sun Oct 14 22:49:43 2007 +0000

description:
Make the work around which deals with the missing include file
"/usr/include/net/if_pflog.h" a hack. The good news is that NetBSD 4.0
will ship with this include file which fixes the real problem.

diffstat:

 net/libpcap/Makefile |  10 +---------
 net/libpcap/hacks.mk |  15 +++++++++++++++
 2 files changed, 16 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 5d97a5eb0666 -r 350d1bf6bc46 net/libpcap/Makefile
--- a/net/libpcap/Makefile      Sun Oct 14 19:14:57 2007 +0000
+++ b/net/libpcap/Makefile      Sun Oct 14 22:49:43 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2007/10/13 22:14:15 tron Exp $
+# $NetBSD: Makefile,v 1.41 2007/10/14 22:49:43 tron Exp $
 
 DISTNAME=      libpcap-0.9.8
 SVR4_PKGNAME=  lpcap
@@ -23,14 +23,6 @@
 CONFIGURE_ARGS+=       --enable-ipv6
 .endif
 
-.if exists(/usr/include/net/pfvar.h) && !exists(/usr/include/net/if_pflog.h)
-SUBST_CLASSES+=                pflog
-SUBST_MESSAGE.pflog=   Disabling pflog(4) support because "net/if_pflog.h" is missing.
-SUBST_STAGE.pflog=     post-configure
-SUBST_FILES.pflog=     config.h
-SUBST_SED.pflog=       -e 's/^\#define.*HAVE_NET_PFVAR_H.*//'
-.endif
-
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/pcap-int.h ${PREFIX}/include
 
diff -r 5d97a5eb0666 -r 350d1bf6bc46 net/libpcap/hacks.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libpcap/hacks.mk      Sun Oct 14 22:49:43 2007 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: hacks.mk,v 1.1 2007/10/14 22:49:43 tron Exp $
+
+# Some versions of NetBSD 3.x and some NetBSD 4.0 release candidates don't
+# include "/usr/include/net/if_pflog.h" which breaks the build. Work around
+# this by pretending we didn't find "/usr/include/net/pfvar.h".
+
+.if exists(/usr/include/net/pfvar.h) && !exists(/usr/include/net/if_pflog.h)
+SUBST_CLASSES+=                pflog
+SUBST_MESSAGE.pflog=   Disabling pflog(4) support because "net/if_pflog.h" is missing.
+SUBST_STAGE.pflog=     post-configure
+SUBST_FILES.pflog=     config.h
+SUBST_SED.pflog=       -e 's/^\#define.*HAVE_NET_PFVAR_H.*//'
+
+PKG_HACKS+=            pflog
+.endif



Home | Main Index | Thread Index | Old Index