aboutsummaryrefslogtreecommitdiffstats
path: root/net/ntp-rc
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-04-09 05:26:54 +0800
committerjgh <jgh@FreeBSD.org>2013-04-09 05:26:54 +0800
commitc95c7418943f80aa97f26eebce2f654c029176de (patch)
tree868cb4182c6ca1f516d36fc8e2a0a6ad51a055a3 /net/ntp-rc
parent9d658492b69d6f648f256d0e4e29b94625387a6a (diff)
downloadfreebsd-ports-gnome-c95c7418943f80aa97f26eebce2f654c029176de.tar.gz
freebsd-ports-gnome-c95c7418943f80aa97f26eebce2f654c029176de.tar.zst
freebsd-ports-gnome-c95c7418943f80aa97f26eebce2f654c029176de.zip
- complete optionsNG conversion
- trim historical headers - reformat space w/ tab where libevent was recently introduced Approved by: portmgr (bapt) Approved by: maintainer, cy@
Diffstat (limited to 'net/ntp-rc')
-rw-r--r--net/ntp-rc/Makefile24
1 files changed, 10 insertions, 14 deletions
diff --git a/net/ntp-rc/Makefile b/net/ntp-rc/Makefile
index e6f5f624adbf..637f8143b901 100644
--- a/net/ntp-rc/Makefile
+++ b/net/ntp-rc/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: ntp
-# Date created: Di 5 Mai 1998 21:31:03 CEST
-# Whom: andreas
-#
+# Created by: andreas
# $FreeBSD$
-#
PORTNAME= ntp
PORTVERSION?= 4.2.6p5.r1
@@ -35,7 +31,7 @@ MAN1= sntp.1 \
.include <bsd.port.options.mk>
-.if defined(WITH_NTPSNMPD)
+.if ${PORT_OPTIONS:MNTPSNMPD}
PLIST_FILES+= bin/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
@@ -43,26 +39,26 @@ RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-m
CONFIGURE_ARGS+= --without-ntpsnmpd
.endif
-.if !defined(WITH_SSL)
-CONFIGURE_ARGS+= --without-crypto
-PLIST_SUB+= SSL="@comment "
-.else
+.if ${PORT_OPTIONS:MSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
PLIST_SUB+= SSL=""
+.else
+CONFIGURE_ARGS+= --without-crypto
+PLIST_SUB+= SSL="@comment "
.endif
-.if !defined(DISABLE_IPV6)
+.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.endif
-.if defined(WITH_NTP_SIGND)
+.if ${PORT_OPTIONS:MNTP_SIGND}
CONFIGURE_ARGS+= --enable-ntp-signd
.endif
.for D in ${NTP_DRIVERS}
-.if defined(WITH_${D})
+.if ${PORT_OPTIONS:M${D}}
CONFIGURE_ARGS+= --enable-${D}
.endif
.endfor
@@ -70,7 +66,7 @@ CONFIGURE_ARGS+= --enable-${D}
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@cd ${WRKSRC}/html && ${FIND} . -print | \