mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
458aabf392
Special thanks to delphij@ for the prep work. Security: VuXML: 0d0f3050-1f69-11e5-9ba9-d050996490d0 Security: http://bugs.ntp.org/show_bug.cgi?id=2853 Security: https://www.kb.cert.org/vuls/id/668167 Security: http://support.ntp.org/bin/view/Main/SecurityNotice#June_2015_NTP_Security_Vulnerabi
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
# Created by: andreas
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ntp
|
|
PORTVERSION= 4.2.8p3
|
|
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
|
|
|
|
CONFLICTS= ntp-rc-* ntp-devel-*
|
|
|
|
GNU_CONFIGURE= yes
|
|
OPTIONS_SUB= yes
|
|
USES= cpe pathfix shebangfix libtool pkgconfig
|
|
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
|
|
|
|
SHEBANG_FILES= scripts/ntptrace/ntptrace.in \
|
|
scripts/ntp-wait/ntp-wait.in
|
|
perl_OLD_CMD= @PATH_PERL@
|
|
|
|
.include "Makefile.inc"
|
|
|
|
PERL_UTILS_USES= perl5
|
|
|
|
SSL_USE= OPENSSL=yes
|
|
SSL_CONFIGURE_OFF= --without-crypto
|
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
|
|
NTP_SIGND_CONFIGURE_ENABLE= ntp-signd
|
|
|
|
NTPSNMPD_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
|
|
NTPSNMPD_CONFIGURE_OFF= --without-ntpsnmpd
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
|
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
|
|
--with-openssl-libdir=${OPENSSLLIB}
|
|
.endif
|
|
|
|
.for D in ${NTP_DRIVERS}
|
|
.if ${PORT_OPTIONS:M${D}}
|
|
CONFIGURE_ARGS+= --enable-${D}
|
|
.endif
|
|
.endfor
|
|
|
|
# XXX Temporary hack. Remember to remove this next commit.
|
|
post-extract:
|
|
@/usr/bin/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>
|