freebsd-ports/net/openntpd/Makefile
Christian Weisgerber 6c86c5b175 The sample configurarion file moves to etc/ntpd.conf.sample.
Fix a race and make sure the rc.d script only matches the master
process.
2014-06-02 15:03:34 +00:00

36 lines
850 B
Makefile

# $FreeBSD$
PORTNAME= openntpd
PORTVERSION= 4.6
PORTREVISION= 3
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
post-extract:
@${CP} ${FILESDIR}/compat.h ${FILESDIR}/adjfreq.c ${WRKSRC}
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 ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/ntpd.conf.5 ${STAGEDIR}${PREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/ntpd.8 ${STAGEDIR}${PREFIX}/man/man8
${INSTALL_DATA} ${FILESDIR}/ntpd.conf \
${STAGEDIR}${PREFIX}/etc/ntpd.conf.sample
.include <bsd.port.mk>