1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Use new style of startup script install.

PR:		116772
Submitted by:	Alexander Logvinov <ports@logvinov.com>
This commit is contained in:
Christian Weisgerber 2007-10-02 17:06:05 +00:00
parent 059add0aad
commit 602021dfd9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=200671
3 changed files with 2 additions and 7 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= openntpd
PORTVERSION= 3.9p1
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 2
CATEGORIES= net
MASTER_SITES= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
@ -17,7 +17,7 @@ MASTER_SITES= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \
MAINTAINER= naddy@FreeBSD.org
COMMENT= OpenBSD's Network Time Protocol daemon
USE_RC_SUBR= yes
USE_RC_SUBR= openntpd
GNU_CONFIGURE= yes
MAN5= ntpd.conf.5
@ -26,9 +26,6 @@ MAN8= ntpd.8
pre-build:
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
${WRKSRC}/ntpd.conf.5 ${WRKSRC}/ntpd.8
@${SED} -e 's:%%PREFIX%%:${PREFIX}:g' \
-e 's:%%RC_SUBR%%:${RC_SUBR}:g' \
${FILESDIR}/openntpd.sh >${WRKDIR}/openntpd.sh
do-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@ -37,7 +34,6 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/ntpd.8 ${PREFIX}/man/man8
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/ntpd.conf ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKDIR}/openntpd.sh ${PREFIX}/etc/rc.d
@if [ ! -f ${PREFIX}/etc/ntpd.conf ]; then \
${CP} -p ${EXAMPLESDIR}/ntpd.conf ${PREFIX}/etc; \
fi

View File

@ -1,5 +1,4 @@
@comment $FreeBSD$
etc/rc.d/openntpd.sh
sbin/ntpd
@unexec if cmp -s %D/etc/ntpd.conf %D/%%EXAMPLESDIR%%/ntpd.conf; then rm -f %D/etc/ntpd.conf; fi
%%EXAMPLESDIR%%/ntpd.conf