| @@ -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 | |
3 | DISTNAME= libpcap-1.1.1 | | 3 | DISTNAME= libpcap-1.1.1 |
4 | SVR4_PKGNAME= lpcap | | 4 | SVR4_PKGNAME= lpcap |
5 | CATEGORIES= net | | 5 | CATEGORIES= net |
6 | MASTER_SITES= http://www.tcpdump.org/release/ | | 6 | MASTER_SITES= http://www.tcpdump.org/release/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.tcpdump.org/ | | 9 | HOMEPAGE= http://www.tcpdump.org/ |
10 | COMMENT= System-independent interface for user-level packet capture | | 10 | COMMENT= System-independent interface for user-level packet capture |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access | | 13 | NOT_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 | |
19 | USE_LIBTOOL= yes | | 19 | USE_LIBTOOL= yes |
20 | USE_TOOLS+= bison gm4 lex | | 20 | USE_TOOLS+= bison gm4 lex |
21 | GNU_CONFIGURE= yes | | 21 | GNU_CONFIGURE= yes |
22 | PLIST_VARS+= SunOS std | | 22 | PLIST_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) |
27 | CONFIGURE_ARGS+= --enable-ipv6 | | 27 | CONFIGURE_ARGS+= --enable-ipv6 |
28 | .endif | | 28 | .endif |
29 | | | 29 | |
30 | .if ${OPSYS} == "SunOS" | | 30 | .if ${OPSYS} == "SunOS" |
| | | 31 | .if ${OS_VERSION} != "5.11" |
| | | 32 | CONFIGURE_ARGS+= --with-pcap=dlpi |
| | | 33 | .endif |
31 | PLIST.SunOS= yes | | 34 | PLIST.SunOS= yes |
32 | .else | | 35 | .else |
33 | PLIST.std= yes | | 36 | PLIST.std= yes |
34 | .endif | | 37 | .endif |
35 | | | 38 | |
36 | post-install: | | 39 | post-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" |