freebsd-ports/net/ntp/Makefile
Cy Schubert ff3b7d9084 r436859 removed a bunch of refclock drivers that were enabled by
default. (New patch from ian@.)

While here ian@ and I discussed the www/libwww libmd5 dependency. It
turns out that if the sntp configure script finds libmd5, it uses it.
This is now an option to include the dependency.

While working on the libmd5 dependency it was discovered that the
sntp build requires SSL only if it finds libmd5. This is now an
IMPLIES.

Thanks to ian@ for the additional patch and for discovering the
libmd5 check, pointing me in the right direction to solve the without
SSL breakage.

PR:		218078
Submitted by:	ian@ (default driver options)
Discussed with:	ian@ (libmd5 dependency)
2017-03-25 07:50:53 +00:00

86 lines
2.1 KiB
Makefile

# Created by: andreas
# $FreeBSD$
PORTNAME= ntp
PORTVERSION= 4.2.8p10
PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
http://archive.ntp.org/ntp4/ntp-4.2/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
LIB_DEPENDS= libevent.so:devel/libevent
CONFLICTS= ntp-devel-*
USES= cpe pathfix shebangfix libedit libtool localbase:ldflags \
pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-leap-smear
TEST_TARGET= check
SHEBANG_FILES= scripts/ntptrace/ntptrace.in \
scripts/ntp-wait/ntp-wait.in \
scripts/update-leap/update-leap.in
perl_OLD_CMD= @PATH_PERL@
.include "Makefile.inc"
OPTIONS_DEFINE+= DEBUG NLS THREADS
OPTIONS_DEFAULT+= THREADS
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ENABLE= debugging
IPV6_CONFIGURE_ENABLE= ipv6
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_OFF= ac_cv_lib_intl_gettext=no
NLS_USES= gettext-runtime
NTP_SIGND_CONFIGURE_ENABLE= ntp-signd
NTPSNMPD_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
NTPSNMPD_CONFIGURE_OFF= --without-ntpsnmpd
PERL_UTILS_USES= perl5
SSL_CONFIGURE_ON= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
SSL_CONFIGURE_OFF= --without-crypto
SSL_USES= ssl
DEBUG_CONFIGURE_ON= --enable-debug
THREADS_CONFIGURE_ENABLE= thread-support
THREADS_CONFIGURE_WITH= threads
MD5_LIB_DEPENDS= libmd5.so:www/libwww
MD5_IMPLIES= SSL
.for D in ${NTP_DRIVERS}
${D}_CONFIGURE_ENABLE= ${D}
.endfor
.include <bsd.port.pre.mk>
# XXX Temporary hack. Remember to remove this next commit.
post-extract:
@${TOUCH} ${WRKSRC}/scripts/build/checkHtmlFileDates
@${CHMOD} +x ${WRKSRC}/scripts/build/checkHtmlFileDates
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@cd ${WRKSRC}/html && ${FIND} . -print | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>