summaryrefslogtreecommitdiff
path: root/net/ntp4
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2009-09-08 08:40:26 +0000
committertnn <tnn@pkgsrc.org>2009-09-08 08:40:26 +0000
commit3caed84d8a125d6db934fd9dd205fe5e62d70f3d (patch)
tree0698f96c6eb6bc8aa281ae9f776db03a386a55a8 /net/ntp4
parente9003bfae33c251c9dc75876a308ba6b5df5714d (diff)
downloadpkgsrc-3caed84d8a125d6db934fd9dd205fe5e62d70f3d.tar.gz
make net/ntp4 properly IPv6 aware
Diffstat (limited to 'net/ntp4')
-rw-r--r--net/ntp4/Makefile4
-rw-r--r--net/ntp4/options.mk16
2 files changed, 19 insertions, 1 deletions
diff --git a/net/ntp4/Makefile b/net/ntp4/Makefile
index 6aa91d8799c..ed8761dfc95 100644
--- a/net/ntp4/Makefile
+++ b/net/ntp4/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.61 2009/09/06 11:13:50 tnn Exp $
+# $NetBSD: Makefile,v 1.62 2009/09/08 08:40:26 tnn Exp $
#
DISTNAME= ntp-4.2.4p7
+PKGREVISION= 1
CATEGORIES= net time
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
ftp://ftp.udel.edu/pub/ntp/ntp4/
@@ -36,6 +37,7 @@ post-install:
${FIND} ${ALL_NTP_DOCS} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
.include "../../mk/bsd.prefs.mk"
+.include "options.mk"
PLIST_VARS+= ntptime tickadj timetrim
diff --git a/net/ntp4/options.mk b/net/ntp4/options.mk
new file mode 100644
index 00000000000..c14449f1951
--- /dev/null
+++ b/net/ntp4/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2009/09/08 08:40:26 tnn Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ntp4
+PKG_SUPPORTED_OPTIONS= inet6
+
+.if empty(MISSING_FEATURES:Minet6)
+PKG_SUGGESTED_OPTIONS+= inet6
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif