pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/tcpdump - convert to PKG_OPTIONS framework



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e7abd3d35175
branches:  trunk
changeset: 495538:e7abd3d35175
user:      salo <salo%pkgsrc.org@localhost>
date:      Sun Jun 12 19:41:45 2005 +0000

description:
- convert to PKG_OPTIONS framework
- fix SSL support, it uses the old DES API, PKGREVISION++

diffstat:

 net/tcpdump/Makefile   |   8 +++-----
 net/tcpdump/options.mk |  20 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 5 deletions(-)

diffs (48 lines):

diff -r a5da23c5d558 -r e7abd3d35175 net/tcpdump/Makefile
--- a/net/tcpdump/Makefile      Sun Jun 12 18:49:24 2005 +0000
+++ b/net/tcpdump/Makefile      Sun Jun 12 19:41:45 2005 +0000
@@ -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 @@
 
 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 -r a5da23c5d558 -r e7abd3d35175 net/tcpdump/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/tcpdump/options.mk    Sun Jun 12 19:41:45 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index