summaryrefslogtreecommitdiff
path: root/net/tcpdump
diff options
context:
space:
mode:
authorsalo <salo>2005-06-12 19:41:45 +0000
committersalo <salo>2005-06-12 19:41:45 +0000
commit605db5d587da38d24b38d4fb2ac4422e211d0db9 (patch)
tree3c53718fac1bb3b2975a2e3073bd2cdedbbe236b /net/tcpdump
parent74874c3f52a224649fb0d4979cbc09283e499e34 (diff)
downloadpkgsrc-605db5d587da38d24b38d4fb2ac4422e211d0db9.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/Makefile8
-rw-r--r--net/tcpdump/options.mk20
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