ntp: added runit service.
This commit is contained in:
parent
72ec4488d8
commit
61c37b3d49
3 changed files with 7 additions and 3 deletions
2
srcpkgs/ntp/files/ntpd/log/run
Executable file
2
srcpkgs/ntp/files/ntpd/log/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec logger -p daemon.notice
|
2
srcpkgs/ntp/files/ntpd/run
Executable file
2
srcpkgs/ntp/files/ntpd/run
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec ntpd -g -u ntpd:ntpd -n
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'ntp'
|
||||
pkgname=ntp
|
||||
version=4.2.7p476
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc="ntp-dev-${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-crypto --enable-linuxcap --enable-ipv6
|
||||
|
@ -20,8 +20,7 @@ conf_files="/etc/ntp.conf"
|
|||
system_accounts="ntpd"
|
||||
ntpd_homedir="/var/db/ntpd"
|
||||
provides="ntp-daemon-0_1"
|
||||
replaces="ntp-daemon>=0"
|
||||
|
||||
replaces="runit-void<20141013_2 ntp-daemon>=0"
|
||||
build_options="systemd"
|
||||
|
||||
post_install() {
|
||||
|
@ -36,6 +35,7 @@ post_install() {
|
|||
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
|
||||
fi
|
||||
vconf ${FILESDIR}/ntp.conf
|
||||
vsv ntpd
|
||||
rm -r ${DESTDIR}/usr/share/doc
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue