diff options
author | salo <salo@pkgsrc.org> | 2005-06-12 19:41:45 +0000 |
---|---|---|
committer | salo <salo@pkgsrc.org> | 2005-06-12 19:41:45 +0000 |
commit | 904081ee017f2b622c553e7a0285edd05288d568 (patch) | |
tree | 3c53718fac1bb3b2975a2e3073bd2cdedbbe236b /net/tcpdump | |
parent | b28a5f7a606d4859b7ca3e07cf3bb46b26390049 (diff) | |
download | pkgsrc-904081ee017f2b622c553e7a0285edd05288d568.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 |