aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2009-12-23 08:40:57 +0800
committercy <cy@FreeBSD.org>2009-12-23 08:40:57 +0800
commit61f84fab7d97a686cff988273a20359c547f6b3f (patch)
tree2af36b303c404088061f24146f472e8d27e978ba
parentff2b6c69d086c5c5e9b9a620a71055a74409ca1d (diff)
downloadfreebsd-ports-gnome-61f84fab7d97a686cff988273a20359c547f6b3f.tar.gz
freebsd-ports-gnome-61f84fab7d97a686cff988273a20359c547f6b3f.tar.zst
freebsd-ports-gnome-61f84fab7d97a686cff988273a20359c547f6b3f.zip
Fix pkg-plist and create option menu.
-rw-r--r--net/ntp/Makefile33
-rw-r--r--net/ntp/pkg-plist1
2 files changed, 23 insertions, 11 deletions
diff --git a/net/ntp/Makefile b/net/ntp/Makefile
index b64139880b27..c768955daf64 100644
--- a/net/ntp/Makefile
+++ b/net/ntp/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ntp
PORTVERSION?= 4.2.6p1.r1
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \
@@ -22,11 +23,24 @@ LATEST_LINK= ${PORTNAME}
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake:110
-.if defined(ENABLE_RAWDCF)
+MAN1= sntp.1 \
+ ntpd.1 \
+ ntpdc.1 \
+ ntpq.1 \
+ ntpsnmpd.1 \
+ ntp-keygen.1 \
+
+OPTIONS= NTPSNMPD "Build and install ntpsnmpd" OFF \
+ RAWDCF "Enable RAWDCF option" OFF \
+ SSL "Enable SSL" ON
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_RAWDCF)
CONFIGURE_ARGS+= --enable-RAWDCF
.endif
-.if defined(WITHOUT_SSL)
+.if !defined(WITH_SSL)
CONFIGURE_ARGS+= --without-crypto
PLIST_SUB+= SSL="@comment "
.else
@@ -37,14 +51,13 @@ PLIST_SUB+= SSL=""
.endif
CONFIGURE_ARGS+= --enable-ipv6
-MAN1= sntp.1 \
- ntpd.1 \
- ntpdc.1 \
- ntpq.1 \
- ntpsnmpd.1 \
- ntp-keygen.1 \
-
-.include <bsd.port.pre.mk>
+.if defined(WITH_NTPSNMPD)
+PLIST_FILES+= sbin/ntpsnmpd
+BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
+RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
+.else
+CONFIGURE_ARGS+= --without-ntpsnmpd
+.endif
pre-configure:
@cd ${WRKSRC} && ./bootstrap
diff --git a/net/ntp/pkg-plist b/net/ntp/pkg-plist
index a69a682112be..cc9b420449de 100644
--- a/net/ntp/pkg-plist
+++ b/net/ntp/pkg-plist
@@ -8,7 +8,6 @@ bin/ntptime
bin/ntptrace
bin/sntp
bin/tickadj
-sbin/ntpsnmpd
%%PORTDOCS%%%%DOCSDIR%%/accopt.html
%%PORTDOCS%%%%DOCSDIR%%/assoc.html
%%PORTDOCS%%%%DOCSDIR%%/audio.html