summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-09-07 22:12:10 +0000
committerjlam <jlam@pkgsrc.org>2007-09-07 22:12:10 +0000
commit07dd3147c68f13b523ce8edfd486a3f4f0d47fe1 (patch)
treee65f4ff0343b21db10e01b4ee2a8fa56a72846a8 /sysutils
parentcdb276bfa1d6c9954bf0587b81f6152203d30047 (diff)
downloadpkgsrc-07dd3147c68f13b523ce8edfd486a3f4f0d47fe1.tar.gz
Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead. Remaining usage of USE_INET6 was solely for the benefit of the scripts that generate the README.html files. Replace: BUILD_DEFS+= USE_INET6 with BUILD_DEFS+= IPV6_READY and teach the README-generation tools to look for that instead. This nukes USE_INET6 from pkgsrc proper. We leave a tiny bit of code to continue to support USE_INET6 for pkgsrc-wip until it has been nuked from there as well.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/cfengine2/Makefile4
-rw-r--r--sysutils/free/Makefile7
-rw-r--r--sysutils/socket/Makefile14
3 files changed, 14 insertions, 11 deletions
diff --git a/sysutils/cfengine2/Makefile b/sysutils/cfengine2/Makefile
index b83699a4e34..6cb63f69185 100644
--- a/sysutils/cfengine2/Makefile
+++ b/sysutils/cfengine2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/06/08 12:25:05 wiz Exp $
+# $NetBSD: Makefile,v 1.21 2007/09/07 22:12:23 jlam Exp $
#
.include "../../sysutils/cfengine2/Makefile.common"
@@ -9,7 +9,7 @@ PKGREVISION= 1
GNU_CONFIGURE= YES
PTHREAD_OPTS+= require
-BUILD_DEFS+= USE_INET6
+BUILD_DEFS+= IPV6_READY
CONFIGURE_ARGS+= --with-berkeleydb=${BUILDLINK_PREFIX.db4}
CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl}
diff --git a/sysutils/free/Makefile b/sysutils/free/Makefile
index 122f0e909c7..f9e2db89370 100644
--- a/sysutils/free/Makefile
+++ b/sysutils/free/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/01/07 09:14:11 rillig Exp $
+# $NetBSD: Makefile,v 1.9 2007/09/07 22:12:23 jlam Exp $
#
DISTNAME= free-1.0
@@ -10,8 +10,9 @@ MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Displays memory usage
-# This pkg doesn't regard USE_INET6 (leave this comment for README-IPv6.html!)
-WRKSRC= ${WRKDIR}
+BUILD_DEFS+= IPV6_READY
+
+WRKSRC= ${WRKDIR}
EXTRACT_ONLY= # empty
NO_CHECKSUM= yes
NO_CONFIGURE= yes
diff --git a/sysutils/socket/Makefile b/sysutils/socket/Makefile
index cb9a8d0d063..c4259ddac90 100644
--- a/sysutils/socket/Makefile
+++ b/sysutils/socket/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2007/02/22 19:27:12 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2007/09/07 22:12:23 jlam Exp $
DISTNAME= socket-1.1
CATEGORIES= sysutils net
@@ -9,13 +9,15 @@ COMMENT= Create tcp socket and connect to stdin/out
MAKE_ENV+= INSTALLBASE=${PREFIX:Q}
-BUILD_DEFS+= USE_INET6
+PKG_OPTIONS_VAR= PKG_OPTIONS.socket
+PKG_SUPPORTED_OPTIONS= inet6
-# to get USE_INET6
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
-# IPv6 support
-.if defined(USE_INET6) && ${USE_INET6} == YES
+###
+### IPv6 support
+###
+.if !empty(PKG_OPTIONS:Minet6)
MAKE_ENV+= SWITCHES="-DUSE_INET6 -DHAVE_SYS_PARAM_H -Wall"
.else
MAKE_ENV+= SWITCHES="-DHAVE_SYS_PARAM_H -Wall"