diff options
author | salo <salo> | 2005-06-12 19:41:45 +0000 |
---|---|---|
committer | salo <salo> | 2005-06-12 19:41:45 +0000 |
commit | dd59352eb4e72f85de2248b11bb81eba73732f7b (patch) | |
tree | 3c53718fac1bb3b2975a2e3073bd2cdedbbe236b /net/tcpdump | |
parent | af0a8ad0e5d808a0684a18e49bcd1e0179a8501f (diff) | |
download | pkgsrc-dd59352eb4e72f85de2248b11bb81eba73732f7b.tar.gz |
- convert to PKG_OPTIONS framework
- fix SSL support, it uses the old DES API, PKGREVISION++
Diffstat (limited to 'net/tcpdump')
-rw-r--r-- | net/tcpdump/Makefile | 8 | ||||
-rw-r--r-- | net/tcpdump/options.mk | 20 |
2 files changed, 23 insertions, 5 deletions
diff --git a/net/tcpdump/Makefile b/net/tcpdump/Makefile index 914d64034cd..700fc816139 100644 --- a/net/tcpdump/Makefile +++ b/net/tcpdump/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.16 2005/06/12 15:38:32 salo Exp $ +# $NetBSD: Makefile,v 1.17 2005/06/12 19:41:45 salo Exp $ DISTNAME= tcpdump-3.8.3 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= net MASTER_SITES= http://www.tcpdump.org/release/ @@ -11,9 +11,7 @@ COMMENT= Network monitoring tool GNU_CONFIGURE= YES -.if exists(/usr/include/netinet/ip6.h) -CONFIGURE_ARGS+= --enable-ipv6 -.endif +.include "options.mk" .include "../../net/libpcap/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" diff --git a/net/tcpdump/options.mk b/net/tcpdump/options.mk new file mode 100644 index 00000000000..8f41d09f184 --- /dev/null +++ b/net/tcpdump/options.mk @@ -0,0 +1,20 @@ +# $NetBSD: options.mk,v 1.1 2005/06/12 19:41:45 salo Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.tcpdump +PKG_SUPPORTED_OPTIONS= inet6 ssl +PKG_SUGGESTED_OPTIONS= ssl + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Minet6) +CONFIGURE_ARGS+= --enable-ipv6 +.else +CONFIGURE_ARGS+= --disable-ipv6 +.endif + +.if !empty(PKG_OPTIONS:Mssl) +USE_OLD_DES_API= yes +.include "../../security/openssl/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-crypto +.endif |