mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
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.
This commit is contained in:
parent
abeb3b7cc4
commit
6c86c5b175
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356234
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= openntpd
|
||||
PORTVERSION= 4.6
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ${MASTER_SITE_OPENBSD}
|
||||
@ -30,7 +30,7 @@ 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
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${FILESDIR}/ntpd.conf ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${FILESDIR}/ntpd.conf \
|
||||
${STAGEDIR}${PREFIX}/etc/ntpd.conf.sample
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -15,6 +15,11 @@
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
check_process()
|
||||
{
|
||||
/bin/pgrep -f 'ntpd: \[priv\]'
|
||||
}
|
||||
|
||||
name=openntpd
|
||||
rcvar=openntpd_enable
|
||||
|
||||
|
@ -1,7 +1,4 @@
|
||||
@sample etc/ntpd.conf.sample
|
||||
man/man5/ntpd.conf.5.gz
|
||||
man/man8/ntpd.8.gz
|
||||
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
|
||||
@exec if [ ! -f %D/etc/ntpd.conf ]; then cp %D/%F %D/etc; fi
|
||||
@dirrm %%EXAMPLESDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user