Do SNMP support properly, as a package option, default disabled.
This commit is contained in:
parent
c19429c935
commit
92f38aa948
2 changed files with 14 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue