summaryrefslogtreecommitdiff
path: root/net/ntp4
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2016-05-14 08:13:49 +0000
committerbsiegert <bsiegert@pkgsrc.org>2016-05-14 08:13:49 +0000
commitfb1df3627706b40f301848a211000e6d72a88f74 (patch)
treefee431488e65f2fb372c2cdc1ef1767ccbf8e71f /net/ntp4
parent458f4a12d8bd0bb9f43ea348cb5546d34b56ecc6 (diff)
downloadpkgsrc-fb1df3627706b40f301848a211000e6d72a88f74.tar.gz
Do SNMP support properly, as a package option, default disabled.
Diffstat (limited to 'net/ntp4')
-rw-r--r--net/ntp4/Makefile4
-rw-r--r--net/ntp4/options.mk15
2 files changed, 14 insertions, 5 deletions
diff --git a/net/ntp4/Makefile b/net/ntp4/Makefile
index 19cb6fdc719..5aea68dbd0c 100644
--- a/net/ntp4/Makefile
+++ b/net/ntp4/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.93 2016/05/13 15:50:13 bsiegert Exp $
+# $NetBSD: Makefile,v 1.94 2016/05/14 08:13:49 bsiegert Exp $
#
DISTNAME= ntp-4.2.8p7
PKGNAME= ${DISTNAME:S/-dev-/-/}
+PKGREVISION= 1
CATEGORIES= net time
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/
@@ -49,7 +50,6 @@ PLIST.tickadj= yes
.elif ${OPSYS} == "IRIX"
PLIST.timetrim= yes
.elif ${OPSYS} == "Darwin"
-PLIST.ntpsnmpd= yes
PLIST.tickadj= yes
.endif
diff --git a/net/ntp4/options.mk b/net/ntp4/options.mk
index cb2c1447b52..ee9ac016a0b 100644
--- a/net/ntp4/options.mk
+++ b/net/ntp4/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.2 2012/06/12 15:46:00 wiz Exp $
+# $NetBSD: options.mk,v 1.3 2016/05/14 08:13:49 bsiegert Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ntp4
-PKG_SUPPORTED_OPTIONS= inet6
-PKG_SUGGESTED_OPTIONS= inet6
+PKG_SUPPORTED_OPTIONS= inet6 snmp
+PKG_SUGGESTED_OPTIONS=
.if empty(MISSING_FEATURES:Minet6)
PKG_SUGGESTED_OPTIONS+= inet6
@@ -15,3 +15,12 @@ CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
+
+.if !empty(PKG_OPTIONS:Msnmp)
+CONFIGURE_ARGS+= --with-ntpsnmpd
+PLIST.ntpsnmpd= yes
+. include "../../net/net-snmp/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-ntpsnmpd
+CONFIGURE_ARGS+= --with-net-snmp-config=false
+.endif