blob: 608b8a8bd3627cda86526242a915bbf683cff441 (
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
|
# $NetBSD: Makefile,v 1.40 2007/10/13 22:14:15 tron Exp $
DISTNAME= libpcap-0.9.8
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
NOT_FOR_PLATFORM+= Interix-*-* # no raw interface access
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_TOOLS+= bison gm4 lex
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
.if exists(/usr/include/netinet/ip6.h)
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
.include "../../mk/bsd.pkg.mk"
|