1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/net/openntpd/Makefile
Christian Weisgerber 602021dfd9 Use new style of startup script install.
PR:		116772
Submitted by:	Alexander Logvinov <ports@logvinov.com>
2007-10-02 17:06:05 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: openntpd
# Date created: 2004-07-11
# Whom: Christian Weisgerber <naddy@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= openntpd
PORTVERSION= 3.9p1
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
ftp://ftp.kd85.com/pub/OpenBSD/OpenNTPD/ \
ftp://ftp.jp.openbsd.org/pub/OpenBSD/OpenNTPD/
MAINTAINER= naddy@FreeBSD.org
COMMENT= OpenBSD's Network Time Protocol daemon
USE_RC_SUBR= openntpd
GNU_CONFIGURE= yes
MAN5= ntpd.conf.5
MAN8= ntpd.8
pre-build:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/ntpd.conf.5 ${WRKSRC}/ntpd.8
do-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-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} ${WRKSRC}/ntpd.conf ${EXAMPLESDIR}
@if [ ! -f ${PREFIX}/etc/ntpd.conf ]; then \
${CP} -p ${EXAMPLESDIR}/ntpd.conf ${PREFIX}/etc; \
fi
.include <bsd.port.mk>