2018-11-14 20:48:21 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.77 2018/11/14 20:48:21 sthen Exp $
|
2001-03-16 16:35:19 +00:00
|
|
|
|
2009-01-27 10:21:38 +00:00
|
|
|
COMMENT= Network Time Protocol reference implementation
|
2001-02-07 17:43:21 +00:00
|
|
|
|
2015-04-08 14:12:44 +00:00
|
|
|
# NTP sometimes has a 'pN' in its version number, which we don't want
|
|
|
|
# to confuse with the ports system's 'pN' convention, so convert it to
|
|
|
|
# 'pl' for local use.
|
2009-01-26 23:26:02 +00:00
|
|
|
|
Update ntp to 4.2.8p10.
CVE-2016-9042, CVE-2017-6451, CVE-2017-6452, CVE-2017-6455,
CVE-2017-6458, CVE-2017-6459, CVE-2017-6460, CVE-2017-6462,
CVE-2017-6463, CVE-2017-6464
Adapt OpenSSL #ifdef for LibreSSL.
Fix regression tests, prevent them from crashing.
OK deraadt@
2017-03-27 11:33:40 +00:00
|
|
|
VERSION= 4.2.8p10
|
2018-11-14 20:48:21 +00:00
|
|
|
REVISION= 4
|
2014-12-24 13:10:20 +00:00
|
|
|
DISTNAME= ntp-${VERSION}
|
2010-07-03 02:49:43 +00:00
|
|
|
PKGNAME= ntp-${VERSION:S/p/pl/}
|
2004-06-05 04:54:53 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.ntp.org/
|
|
|
|
|
2015-07-01 11:59:24 +00:00
|
|
|
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
|
|
|
|
http://archive.ntp.org/ntp4/ntp-4.2/
|
|
|
|
|
2010-07-03 02:49:43 +00:00
|
|
|
# modified ISC
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2004-06-05 04:54:53 +00:00
|
|
|
|
2014-12-24 13:10:20 +00:00
|
|
|
WANTLIB += c crypto edit event_core event_pthreads
|
2014-02-09 21:36:46 +00:00
|
|
|
WANTLIB += m pthread ssl termcap
|
2010-07-03 02:49:43 +00:00
|
|
|
|
2010-07-10 19:48:32 +00:00
|
|
|
# enabling SEPARATE_BUILD causes the parser to be rebuilt .y -> .c,
|
|
|
|
# which requires bison
|
2004-06-05 04:54:53 +00:00
|
|
|
|
2017-09-25 12:41:07 +00:00
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
AUTOCONF_VERSION= 2.69
|
2014-02-09 21:36:46 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --docdir=${TRUEPREFIX}/share/doc/ntp \
|
|
|
|
--enable-parse-clocks \
|
|
|
|
--with-binsubdir=sbin \
|
|
|
|
--without-ntpsnmpd
|
2010-07-03 02:49:43 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS='-DCONFIG_FILE="\"${SYSCONFDIR}/ntp.conf\"" \
|
2015-06-26 20:21:07 +00:00
|
|
|
-DKEYFILE="\"${SYSCONFDIR}/ntp.keys\""' \
|
|
|
|
ac_cv_header_sys_audioio_h=no
|
2010-07-03 02:49:43 +00:00
|
|
|
|
2014-02-09 21:36:46 +00:00
|
|
|
LIB_DEPENDS= devel/libevent2
|
|
|
|
|
2016-12-14 20:05:37 +00:00
|
|
|
# autogen >= 5.18.5 required to regenerate outdated files because
|
|
|
|
# the distribution tarball was updated incompletely
|
|
|
|
post-extract:
|
|
|
|
@touch ${WRKDIR}/timestamp
|
|
|
|
@find ${WRKSRC} -type f -print0 | xargs -0 touch -r ${WRKDIR}/timestamp
|
|
|
|
|
Update ntp to 4.2.8p10.
CVE-2016-9042, CVE-2017-6451, CVE-2017-6452, CVE-2017-6455,
CVE-2017-6458, CVE-2017-6459, CVE-2017-6460, CVE-2017-6462,
CVE-2017-6463, CVE-2017-6464
Adapt OpenSSL #ifdef for LibreSSL.
Fix regression tests, prevent them from crashing.
OK deraadt@
2017-03-27 11:33:40 +00:00
|
|
|
# patch-sntp_tests_packetProcessing_c triggers a ruby script to regenerate
|
|
|
|
# run-packetProcessing.c. Avoid ruby, run file does not change anyway.
|
2014-02-09 21:36:46 +00:00
|
|
|
post-patch:
|
|
|
|
cp ${WRKSRC}/sntp/loc/freebsd ${WRKSRC}/sntp/loc/openbsd
|
Update ntp to 4.2.8p10.
CVE-2016-9042, CVE-2017-6451, CVE-2017-6452, CVE-2017-6455,
CVE-2017-6458, CVE-2017-6459, CVE-2017-6460, CVE-2017-6462,
CVE-2017-6463, CVE-2017-6464
Adapt OpenSSL #ifdef for LibreSSL.
Fix regression tests, prevent them from crashing.
OK deraadt@
2017-03-27 11:33:40 +00:00
|
|
|
touch ${WRKSRC}/sntp/tests/run-packetProcessing.c
|
2014-02-09 21:36:46 +00:00
|
|
|
|
2004-06-05 04:54:53 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ntp
|
|
|
|
@cd ${WRKSRC}/conf && pax -rw * ${PREFIX}/share/examples/ntp
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|