From 61f84fab7d97a686cff988273a20359c547f6b3f Mon Sep 17 00:00:00 2001 From: cy Date: Wed, 23 Dec 2009 00:40:57 +0000 Subject: Fix pkg-plist and create option menu. --- net/ntp/Makefile | 33 +++++++++++++++++++++++---------- net/ntp/pkg-plist | 1 - 2 files changed, 23 insertions(+), 11 deletions(-) (limited to 'net') 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 + +.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 +.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 -- cgit