summaryrefslogtreecommitdiff
path: root/net/libpcap/Makefile
blob: 1bfdabf41d99c9be06a53b87f3c28ad6bc19b0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $NetBSD: Makefile,v 1.48 2011/10/12 17:33:58 hans Exp $

DISTNAME=	libpcap-1.1.1
SVR4_PKGNAME=	lpcap
CATEGORIES=	net
MASTER_SITES=	http://www.tcpdump.org/release/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.tcpdump.org/
COMMENT=	System-independent interface for user-level packet capture
LICENSE=	modified-bsd

NOT_FOR_PLATFORM+=	Interix-*-* # no raw interface access

PKG_DESTDIR_SUPPORT=	user-destdir
PKG_INSTALLATION_TYPES=	overwrite pkgviews
INSTALLATION_DIRS=	bin

USE_LIBTOOL=		yes
USE_TOOLS+=		bison gm4 lex
GNU_CONFIGURE=		yes
PLIST_VARS+=		SunOS std

.include "../../mk/bsd.prefs.mk"

.if exists(/usr/include/netinet/ip6.h)
CONFIGURE_ARGS+=	--enable-ipv6
.endif

.if ${OPSYS} == "SunOS"
.if ${OS_VERSION} != "5.11"
CONFIGURE_ARGS+=	--with-pcap=dlpi
.endif
PLIST.SunOS=	yes
.else
PLIST.std=	yes
.endif

post-install:
	${INSTALL_DATA} ${WRKSRC}/pcap-int.h ${DESTDIR}${PREFIX}/include

.include "../../mk/bsd.pkg.mk"