1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/net/ntp/Makefile
Cy Schubert 5c9df50c75 Update 4.2.8p14 --> 4.2.8p15
Summary: Systems that use a CMAC algorithm in ntp.keys will not release
a bit of memory on each packet that uses a CMAC keyid, eventually causing
ntpd to run out of memory and fail. The CMAC cleanup from
https://bugs.ntp.org/3447, part of ntp-4.2.8p11, introduced a bug whereby
the CMAC data structure was no longer completely removed.

MFH:		2020Q3
Security:	NTP Bug 3661
2020-06-24 01:52:52 +00:00

93 lines
2.3 KiB
Makefile

# Created by: andreas
# $FreeBSD$
PORTNAME= ntp
PORTVERSION= 4.2.8p15
CATEGORIES= net
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 ntpsec openntpd
USES= cpe pathfix shebangfix libedit libtool localbase:ldflags \
pkgconfig
USES+= autoreconf # until rlimit_memlock changes accepted upstream
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-leap-smear --enable-trustedbsd-mac \
--with-locfile=freebsd --with-memlock=-1
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@
SUB_FILES= pkg-message
.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-configure:
@${ECHO_CMD} '#define HAVE_CLOSEFROM 1' >> ${WRKSRC}/config.h
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>