aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2007-10-03 01:06:05 +0800
committernaddy <naddy@FreeBSD.org>2007-10-03 01:06:05 +0800
commit5b798ee92a0cc84c04d1bd06c1bdfe8bd3d36dbb (patch)
tree2ba276003758d618796dd73b5471b9ef7f0d9614 /net
parentd6f3aa221cdc72d48b1695d319913c9356d3b168 (diff)
downloadfreebsd-ports-gnome-5b798ee92a0cc84c04d1bd06c1bdfe8bd3d36dbb.tar.gz
freebsd-ports-gnome-5b798ee92a0cc84c04d1bd06c1bdfe8bd3d36dbb.tar.zst
freebsd-ports-gnome-5b798ee92a0cc84c04d1bd06c1bdfe8bd3d36dbb.zip
Use new style of startup script install.
PR: 116772 Submitted by: Alexander Logvinov <ports@logvinov.com>
Diffstat (limited to 'net')
-rw-r--r--net/openntpd/Makefile8
-rw-r--r--net/openntpd/files/openntpd.in (renamed from net/openntpd/files/openntpd.sh)0
-rw-r--r--net/openntpd/pkg-plist1
3 files changed, 2 insertions, 7 deletions
diff --git a/net/openntpd/Makefile b/net/openntpd/Makefile
index 5a6e6abc3a62..dd3a1e9bb92d 100644
--- a/net/openntpd/Makefile
+++ b/net/openntpd/Makefile
@@ -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
diff --git a/net/openntpd/files/openntpd.sh b/net/openntpd/files/openntpd.in
index 0563632209c7..0563632209c7 100644
--- a/net/openntpd/files/openntpd.sh
+++ b/net/openntpd/files/openntpd.in
diff --git a/net/openntpd/pkg-plist b/net/openntpd/pkg-plist
index af9ebf66bffd..0dc7324fa854 100644
--- a/net/openntpd/pkg-plist
+++ b/net/openntpd/pkg-plist
@@ -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