From owner-svn-ports-all@FreeBSD.ORG Thu Jul 3 17:12:22 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0ABAED2; Thu, 3 Jul 2014 17:12:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EC1972F6D; Thu, 3 Jul 2014 17:12:21 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s63HCLH6067755; Thu, 3 Jul 2014 17:12:21 GMT (envelope-from adamw@svn.freebsd.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s63HCLQw067754; Thu, 3 Jul 2014 17:12:21 GMT (envelope-from adamw@svn.freebsd.org) Message-Id: <201407031712.s63HCLQw067754@svn.freebsd.org> From: Adam Weinberger Date: Thu, 3 Jul 2014 17:12:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r360410 - head/net/ntp-devel X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 17:12:22 -0000 Author: adamw Date: Thu Jul 3 17:12:21 2014 New Revision: 360410 URL: http://svnweb.freebsd.org/changeset/ports/360410 QAT: https://qat.redports.org/buildarchive/r360410/ Log: Use OPTIONS helpers, pet portlint, remove triple-redundant _DEPENDS check for the same dependency. Approved by: portmgr (blanket) Modified: head/net/ntp-devel/Makefile Modified: head/net/ntp-devel/Makefile ============================================================================== --- head/net/ntp-devel/Makefile Thu Jul 3 16:49:55 2014 (r360409) +++ head/net/ntp-devel/Makefile Thu Jul 3 17:12:21 2014 (r360410) @@ -4,10 +4,10 @@ PORTNAME= ntp PORTVERSION= 4.2.7p446 CATEGORIES= net ipv6 -PKGNAMESUFFIX= -devel MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ \ ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/ntp-dev/ \ ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/ntp-dev/ +PKGNAMESUFFIX= -devel DISTNAME= ${PORTNAME}-dev-${PORTVERSION:S/.r/-rc/} MAINTAINER= cy@FreeBSD.org @@ -16,6 +16,7 @@ COMMENT= The Network Time Protocol Distr GNU_CONFIGURE= yes USE_AUTOTOOLS= automake AUTOMAKE_ARGS= --add-missing +OPTIONS_SUB= yes USES= pathfix perl5 shebangfix libtool LIB_DEPENDS= libevent-2.0.so:${PORTSDIR}/devel/libevent2 @@ -23,35 +24,22 @@ NTP_SHEBANG_FILES= sbin/ntp-wait sbin/nt .include "Makefile.inc" -.include +SSL_USE= OPENSSL=yes +SSL_CONFIGURE_OFF= --without-crypto -.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 +IPV6_CONFIGURE_ENABLE= ipv6 -.if ${PORT_OPTIONS:MIPV6} -CONFIGURE_ARGS+= --enable-ipv6 -.endif +NTP_SIGND_CONFIGURE_ENABLE= ntp-signd -.if ${PORT_OPTIONS:MNTP_SIGND} -CONFIGURE_ARGS+= --enable-ntp-signd -.endif +NTPSNMPD_PLIST_FILES= sbin/ntpsnmpd +NTPSNMPD_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp +NTPSNMPD_CONFIGURE_OFF= --without-ntpsnmpd -.if ${PORT_OPTIONS:MNTPSNMPD} -PLIST_FILES+= sbin/ntpsnmpd -PLIST_SUB+= NTPSNMPD="" -BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp -LIB_DEPENDS= libnetsnmp.so:${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 -PLIST_SUB+= NTPSNMPD="@comment " +.include + +.if ${PORT_OPTIONS:MSSL} +CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \ + --with-openssl-libdir=${OPENSSLLIB} .endif .for D in ${NTP_DRIVERS} @@ -64,8 +52,6 @@ CONFIGURE_ARGS+= --enable-${D} BROKEN= Fails to compile when MX4200 is enabled. .endif -.include - DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}4 pre-everything:: @@ -84,12 +70,10 @@ 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 @cd ${STAGEDIR}${PREFIX}; \ ${ECHO_CMD} ${NTP_SHEBANG_FILES} | ${XARGS} ${SED} -i '' ${_SHEBANG_REINPLACE_ARGS}