- switch to pkg-readmes
- add an rc script looks good to sthen@
This commit is contained in:
parent
c8e930b871
commit
a409254459
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.45 2010/10/18 18:36:50 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.46 2010/11/10 21:21:26 jasper Exp $
|
||||
|
||||
COMMENT= Network Time Protocol reference implementation
|
||||
|
||||
@ -9,6 +9,7 @@ COMMENT= Network Time Protocol reference implementation
|
||||
VERSION= 4.2.6p2
|
||||
DISTNAME= ntp-${VERSION}
|
||||
PKGNAME= ntp-${VERSION:S/p/pl/}
|
||||
REVISION= 0
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://archive.ntp.org/ntp4/ntp-4.2/
|
||||
|
||||
@ -33,15 +34,10 @@ CONFIGURE_ARGS= --enable-parse-clocks \
|
||||
CONFIGURE_ENV= CPPFLAGS='-DCONFIG_FILE="\"${SYSCONFDIR}/ntp.conf\"" \
|
||||
-DKEYFILE="\"${SYSCONFDIR}/ntp.keys\""'
|
||||
|
||||
post-build:
|
||||
@${SUBST_CMD} -c ${FILESDIR}/README.OpenBSD ${WRKBUILD}/README.OpenBSD
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ntp
|
||||
@cd ${WRKSRC}/html && pax -rw * ${PREFIX}/share/doc/ntp
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ntp
|
||||
@cd ${WRKSRC}/conf && pax -rw * ${PREFIX}/share/examples/ntp
|
||||
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
|
||||
${PREFIX}/share/examples/ntp/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,18 +0,0 @@
|
||||
Several steps need to be taken to properly configure the NTP daemon.
|
||||
|
||||
1. First, create or update the file ${SYSCONFDIR}/ntp.conf. Several
|
||||
example configuration files can be found here:
|
||||
|
||||
${PREFIX}/share/examples/ntp
|
||||
|
||||
2. Add the following to /etc/rc.local
|
||||
|
||||
if [ X"${xntpd_flags}" != X"NO" -a -x ${PREFIX}/sbin/ntpd \
|
||||
-a -f ${SYSCONFDIR}/ntp.conf ]; then
|
||||
echo -n ' ntpd'; ${PREFIX}/sbin/ntpd ${xntpd_flags}
|
||||
fi
|
||||
|
||||
3. Edit /etc/rc.conf.local:
|
||||
|
||||
xntpd_flags="" # change to NO to disable
|
||||
|
@ -1,3 +0,0 @@
|
||||
Several steps need to be taken to properly configure the NTP daemon.
|
||||
Please refer to ${PREFIX}/share/examples/ntp/README.OpenBSD for more
|
||||
information.
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.16 2010/07/03 02:49:43 naddy Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.17 2010/11/10 21:21:26 jasper Exp $
|
||||
@conflict ntp-doc-*
|
||||
@pkgpath net/ntp,-main
|
||||
@man man/man1/ntp-keygen.1
|
||||
@ -223,9 +223,9 @@ share/doc/ntp/sitemap.html
|
||||
share/doc/ntp/sntp.html
|
||||
share/doc/ntp/tickadj.html
|
||||
share/doc/ntp/xleave.html
|
||||
share/doc/pkg-readmes/${FULLPKGNAME}
|
||||
share/examples/ntp/
|
||||
share/examples/ntp/README
|
||||
share/examples/ntp/README.OpenBSD
|
||||
share/examples/ntp/baldwin.conf
|
||||
share/examples/ntp/beauregard.conf
|
||||
share/examples/ntp/grundoon.conf
|
||||
@ -233,3 +233,4 @@ share/examples/ntp/malarky.conf
|
||||
share/examples/ntp/pogo.conf
|
||||
share/examples/ntp/rackety.conf
|
||||
@extra ${SYSCONFDIR}/ntp.conf
|
||||
@rcscript ${RCDIR}/ntpd
|
||||
|
15
net/ntp/pkg/README
Normal file
15
net/ntp/pkg/README
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: README,v 1.1 2010/11/10 21:21:26 jasper Exp $
|
||||
|
||||
Several steps need to be taken to properly configure the NTP daemon.
|
||||
|
||||
1. First, create or update the file ${SYSCONFDIR}/ntp.conf. Several
|
||||
example configuration files can be found here:
|
||||
|
||||
${PREFIX}/share/examples/ntp
|
||||
|
||||
2. Now ntp can be started with:
|
||||
|
||||
/etc/rc.d/ntpd start
|
||||
|
||||
Or to start 'ntpd' at every boot, add it to rc_scripts in
|
||||
/etc/rc.conf.local.
|
13
net/ntp/pkg/ntpd.rc
Normal file
13
net/ntp/pkg/ntpd.rc
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: ntpd.rc,v 1.1 2010/11/10 21:21:26 jasper Exp $
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/ntpd"
|
||||
|
||||
rc_reload() {
|
||||
rc_err "$0: reload is not supported"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
Loading…
Reference in New Issue
Block a user