Wed Oct 12 17:33:59 2011 UTC ()
Explicitly specify DLPI backend on SunOS < 5.11.


(hans)
diff -r1.47 -r1.48 pkgsrc/net/libpcap/Makefile

cvs diff -r1.47 -r1.48 pkgsrc/net/libpcap/Makefile (expand / switch to unified diff)

--- pkgsrc/net/libpcap/Makefile 2011/02/11 12:11:26 1.47
+++ pkgsrc/net/libpcap/Makefile 2011/10/12 17:33:58 1.48
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.47 2011/02/11 12:11:26 adam Exp $ 1# $NetBSD: Makefile,v 1.48 2011/10/12 17:33:58 hans Exp $
2 2
3DISTNAME= libpcap-1.1.1 3DISTNAME= libpcap-1.1.1
4SVR4_PKGNAME= lpcap 4SVR4_PKGNAME= lpcap
5CATEGORIES= net 5CATEGORIES= net
6MASTER_SITES= http://www.tcpdump.org/release/ 6MASTER_SITES= http://www.tcpdump.org/release/
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.tcpdump.org/ 9HOMEPAGE= http://www.tcpdump.org/
10COMMENT= System-independent interface for user-level packet capture 10COMMENT= System-independent interface for user-level packet capture
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access 13NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access
14 14
@@ -18,22 +18,25 @@ INSTALLATION_DIRS= bin @@ -18,22 +18,25 @@ INSTALLATION_DIRS= bin
18 18
19USE_LIBTOOL= yes 19USE_LIBTOOL= yes
20USE_TOOLS+= bison gm4 lex 20USE_TOOLS+= bison gm4 lex
21GNU_CONFIGURE= yes 21GNU_CONFIGURE= yes
22PLIST_VARS+= SunOS std 22PLIST_VARS+= SunOS std
23 23
24.include "../../mk/bsd.prefs.mk" 24.include "../../mk/bsd.prefs.mk"
25 25
26.if exists(/usr/include/netinet/ip6.h) 26.if exists(/usr/include/netinet/ip6.h)
27CONFIGURE_ARGS+= --enable-ipv6 27CONFIGURE_ARGS+= --enable-ipv6
28.endif 28.endif
29 29
30.if ${OPSYS} == "SunOS" 30.if ${OPSYS} == "SunOS"
 31.if ${OS_VERSION} != "5.11"
 32CONFIGURE_ARGS+= --with-pcap=dlpi
 33.endif
31PLIST.SunOS= yes 34PLIST.SunOS= yes
32.else 35.else
33PLIST.std= yes 36PLIST.std= yes
34.endif 37.endif
35 38
36post-install: 39post-install:
37 ${INSTALL_DATA} ${WRKSRC}/pcap-int.h ${DESTDIR}${PREFIX}/include 40 ${INSTALL_DATA} ${WRKSRC}/pcap-int.h ${DESTDIR}${PREFIX}/include
38 41
39.include "../../mk/bsd.pkg.mk" 42.include "../../mk/bsd.pkg.mk"