mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
2bc38c4ec1
* DNS queries are delegated to a dedicated child process. * The -v option will log all time adjustments.
57 lines
1.2 KiB
Makefile
57 lines
1.2 KiB
Makefile
# New ports collection makefile for: openntpd
|
|
# Date created: 2004-07-11
|
|
# Whom: Christian Weisgerber <naddy@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= openntpd
|
|
PORTVERSION= 4.6
|
|
PORTEPOCH= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_OPENBSD}
|
|
MASTER_SITE_SUBDIR= OpenNTPD
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
|
COMMENT= OpenBSD's Network Time Protocol daemon
|
|
|
|
USERS= _ntp
|
|
GROUPS= _ntp
|
|
|
|
USE_RC_SUBR= openntpd
|
|
|
|
WRKSRC= ${WRKDIR}/ntpd
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
MAN5= ntpd.conf.5
|
|
MAN8= ntpd.8
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# requires adjtime(NULL, &olddelta) by unprivileged user
|
|
.if ${OSVERSION} < 700000
|
|
IGNORE= is unsupported prior to FreeBSD 7.0
|
|
.endif
|
|
|
|
post-extract:
|
|
.for i in compat.h adjfreq.c arc4random.c
|
|
@${CP} ${FILESDIR}/$i ${WRKSRC}
|
|
.endfor
|
|
|
|
pre-build:
|
|
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
${WRKSRC}/ntpd.h ${WRKSRC}/ntpd.conf.5 ${WRKSRC}/ntpd.8
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/ntpd ${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/ntpd.conf.5 ${PREFIX}/man/man5
|
|
${INSTALL_MAN} ${WRKSRC}/ntpd.8 ${PREFIX}/man/man8
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${FILESDIR}/ntpd.conf ${EXAMPLESDIR}
|
|
@if [ ! -f ${PREFIX}/etc/ntpd.conf ]; then \
|
|
${CP} ${EXAMPLESDIR}/ntpd.conf ${PREFIX}/etc; \
|
|
fi
|
|
|
|
.include <bsd.port.post.mk>
|