Date: Thu, 3 Jul 2014 17:23:37 +0000 (UTC) From: Adam Weinberger <adamw@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r360411 - head/net/ntp Message-ID: <201407031723.s63HNbjw072539@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adamw Date: Thu Jul 3 17:23:36 2014 New Revision: 360411 URL: http://svnweb.freebsd.org/changeset/ports/360411 QAT: https://qat.redports.org/buildarchive/r360411/ Log: Use OPTIONS helpers. Approved by: portmgr (blanket) Modified: head/net/ntp/Makefile Modified: head/net/ntp/Makefile ============================================================================== --- head/net/ntp/Makefile Thu Jul 3 17:12:21 2014 (r360410) +++ head/net/ntp/Makefile Thu Jul 3 17:23:36 2014 (r360411) @@ -22,35 +22,27 @@ SHEBANG_FILES= ${WRKSRC}/scripts/ntptrac perl_OLD_CMD= @PATH_PERL@ GNU_CONFIGURE= yes USE_AUTOTOOLS= automake +OPTIONS_SUB= yes .include "Makefile.inc" -.include <bsd.port.options.mk> +NTPSNMPD_PLIST_FILES= bin/ntpsnmpd +NTPSNMPD_BUILD_DEPENDS= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp +NTPSNMPD_RUN_DEPENDS= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp +NTPSNMPD_CONFIGURE_OFF= --without-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 -.else -CONFIGURE_ARGS+= --without-ntpsnmpd -.endif +SSL_USE= OPENSSL=yes +SSL_CONFIGURE_OFF= --without-crypto + +IPV6_CONFIGURE_ENABLE= ipv6 + +NTP_SIGND_CONFIGURE_ENABLE= ntp-signd + +.include <bsd.port.options.mk> .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 ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --enable-ipv6 -.endif - -.if ${PORT_OPTIONS:MNTP_SIGND} -CONFIGURE_ARGS+= --enable-ntp-signd .endif .for D in ${NTP_DRIVERS} @@ -68,11 +60,9 @@ post-patch: post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${EXAMPLESDIR} -.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} @${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE} @cd ${WRKSRC}/html && ${FIND} . -print | \ ${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${STAGEDIR}${DOCSDIR} -.endif .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407031723.s63HNbjw072539>