Changes since OpenNTPD 5.7p4 ============================ * When a single "constraint" is specified, try all returned addresses until one succeeds, rather than the first returned address. * Relaxed the constraint error margin to be proportional to the number of NTP peers, avoid constant reconnections when there is a bad NTP peer. * Removed disabled hotplug sensor support. * Added support for detecting crashes in constraint subprocesses. * Moved the execution of constraints from the ntp process to the parent process, allowing for better privilege separation since the ntp process can be further restricted. * Added pledge(2) support. * Updated to require LibreSSL 2.3.2 or greater. * Fixed high CPU usage when the network is down. * Fixed various memory leaks. * Switched to RMS for jitter calculations. * Unified logging functions with other OpenBSD base programs. OpenNTPD portable-specific changes: * Added support for syncing time with the Realtime Clock (RTC) on OSes that require it. * CFLAGS is no longer overridden by the build system. * FreeBSD RTABLE support is disabled * FreeBSD is no longer linked with -lmd to avoid hash function collisions, causing failures in constraint certificate loading. * Fixed crashes due to __progname being used before initialized. * Added Solaris 10 compatibility. * Added --disable-https-constraint build option for explicitly disabling constraint support. * Synced build system files with LibreSSL Note that HTTPS TLS constraints are currently disabled in pkgsrc pending evaluation of how best to deal with libressl.
56 lines
1.8 KiB
Makefile
56 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.43 2016/05/14 14:55:34 bsiegert Exp $
|
|
|
|
DISTNAME= openntpd-5.9p1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_OPENBSD:=OpenNTPD/}
|
|
|
|
MAINTAINER= henson@acm.org
|
|
HOMEPAGE= http://www.openntpd.org/
|
|
COMMENT= Free implementation of the Network Time Protocol
|
|
LICENSE= isc
|
|
|
|
CONFLICTS+= ntp-[0-9]*
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --disable-https-constraint
|
|
|
|
SUBST_CLASSES+= ntpd_m1
|
|
SUBST_CLASSES+= ntpd_m2
|
|
SUBST_STAGE.ntpd_m1= pre-build
|
|
SUBST_STAGE.ntpd_m2= pre-build
|
|
SUBST_FILES.ntpd_m1= src/ntpd.8
|
|
SUBST_FILES.ntpd_m2= src/ntpd.8 src/ntpctl.8
|
|
SUBST_SED.ntpd_m1+= -e 's,/var/db/,${VARBASE}/db/openntpd/,g'
|
|
SUBST_SED.ntpd_m2+= -e 's,/var/run/,${VARBASE}/run/,g'
|
|
|
|
SUBST_CLASSES+= ntpd_h
|
|
SUBST_STAGE.ntpd_h= pre-build
|
|
SUBST_FILES.ntpd_h= src/ntpd.h
|
|
SUBST_SED.ntpd_h+= -e 's,/db/ntpd.drift,/db/openntpd/ntpd.drift,g'
|
|
|
|
EGDIR= ${PREFIX}/share/examples/openntpd
|
|
CONF_FILES= ${EGDIR}/ntpd.conf ${PKG_SYSCONFDIR}/ntpd.conf
|
|
|
|
RCD_SCRIPTS= openntpd
|
|
PKG_GROUPS= _ntp
|
|
PKG_USERS= _ntp:_ntp
|
|
PKG_HOME._ntp= ${VARBASE}/chroot/ntpd
|
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
OWN_DIRS= ${VARBASE}/chroot/ntpd ${VARBASE}/db/openntpd
|
|
AUTO_MKDIRS= yes
|
|
|
|
INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 ${EGDIR}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/ntpd ${DESTDIR}${PREFIX}/sbin/ntpd
|
|
ln ${DESTDIR}${PREFIX}/sbin/ntpd ${DESTDIR}${PREFIX}/sbin/ntpctl
|
|
${INSTALL_MAN} ${WRKSRC}/src/ntpd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/ntpd.8
|
|
${INSTALL_MAN} ${WRKSRC}/src/ntpctl.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/ntpctl.8
|
|
${INSTALL_MAN} ${WRKSRC}/src/ntpd.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/ntpd.conf.5
|
|
${INSTALL_DATA} ${WRKSRC}/ntpd.conf ${DESTDIR}${EGDIR}/ntpd.conf
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|