summaryrefslogtreecommitdiff
path: root/net/libpcap
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2007-10-13 22:14:15 +0000
committertron <tron@pkgsrc.org>2007-10-13 22:14:15 +0000
commit68120f1d073132f211bba165ef2c91c28bb85fd1 (patch)
treedd6ab0abceefcd6ac7b9c3edcc57d9a5fd77a29d /net/libpcap
parent592130352b6636be51490b17d021fdc61824435a (diff)
downloadpkgsrc-68120f1d073132f211bba165ef2c91c28bb85fd1.tar.gz
Pretend that "configure" didn't find "net/pfvar.h" if "net/if_pflog.h"
isn't installed, too. This fixes build problems under NetBSD 4.0_RC1 reported in PR pkg/37111.
Diffstat (limited to 'net/libpcap')
-rw-r--r--net/libpcap/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/libpcap/Makefile b/net/libpcap/Makefile
index c5ccd9fa220..608b8a8bd36 100644
--- a/net/libpcap/Makefile
+++ b/net/libpcap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2007/10/11 21:37:57 adam Exp $
+# $NetBSD: Makefile,v 1.40 2007/10/13 22:14:15 tron Exp $
DISTNAME= libpcap-0.9.8
SVR4_PKGNAME= lpcap
@@ -23,6 +23,14 @@ GNU_CONFIGURE= yes
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