ntp: regiter 'ntpd' alternatives group.
Remove unnecessary log service, this ntpd logs to syslog by default.
This commit is contained in:
parent
0a364f94a2
commit
f0b5b05bea
4 changed files with 13 additions and 13 deletions
2
srcpkgs/ntp/files/isc-ntpd/run
Executable file
2
srcpkgs/ntp/files/isc-ntpd/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec ntpd -g -u ntpd:ntpd -n 2>&1
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
exec logger -p daemon.notice
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
#mkdir -p /var/chroot/ntpd/etc
|
|
||||||
#mkdir -p /var/chroot/ntpd/var/db/ntpd
|
|
||||||
#cp /etc/services /var/chroot/ntpd/etc/
|
|
||||||
#ln -fs /var/db/ntpd/drift /var/chroot/ntpd/var/db/ntpd/drift
|
|
||||||
#chown -R ntpd:ntpd /var/chroot/ntpd
|
|
||||||
exec ntpd -g -u ntpd:ntpd -n
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ntp'
|
# Template file for 'ntp'
|
||||||
pkgname=ntp
|
pkgname=ntp
|
||||||
version=4.2.8p4
|
version=4.2.8p4
|
||||||
revision=1
|
revision=2
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
|
configure_args="--with-crypto --enable-linuxcap --enable-ipv6 --enable-ntp-signd
|
||||||
|
@ -20,11 +20,19 @@ conf_files="/etc/ntp.conf"
|
||||||
system_accounts="ntpd"
|
system_accounts="ntpd"
|
||||||
ntpd_homedir="/var/db/ntpd"
|
ntpd_homedir="/var/db/ntpd"
|
||||||
provides="ntp-daemon-0_1"
|
provides="ntp-daemon-0_1"
|
||||||
replaces="ntp-daemon>=0"
|
alternatives="
|
||||||
|
ntpd:ntpd:/usr/bin/isc-ntpd
|
||||||
|
ntpd:ntpd.8:/usr/share/man/man1/isc-ntpd.8
|
||||||
|
ntpd:ntpd:/etc/sv/isc-ntpd"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
# Rename files for alternatives.
|
||||||
|
vmkdir usr/share/man/man8
|
||||||
|
mv ${DESTDIR}/usr/bin/{ntpd,isc-ntpd}
|
||||||
|
mv ${DESTDIR}/usr/share/man/man1/ntpd.1 \
|
||||||
|
${DESTDIR}/usr/share/man/man8/isc-ntpd.8
|
||||||
vconf ${FILESDIR}/ntp.conf
|
vconf ${FILESDIR}/ntp.conf
|
||||||
vsv ntpd
|
vsv isc-ntpd
|
||||||
rm -r ${DESTDIR}/usr/share/doc
|
rm -r ${DESTDIR}/usr/share/doc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue