ntp: added runit service.
This commit is contained in:
parent
72ec4488d8
commit
61c37b3d49
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'
|
# Template file for 'ntp'
|
||||||
pkgname=ntp
|
pkgname=ntp
|
||||||
version=4.2.7p476
|
version=4.2.7p476
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc="ntp-dev-${version}"
|
wrksrc="ntp-dev-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-crypto --enable-linuxcap --enable-ipv6
|
configure_args="--with-crypto --enable-linuxcap --enable-ipv6
|
||||||
@ -20,8 +20,7 @@ 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"
|
replaces="runit-void<20141013_2 ntp-daemon>=0"
|
||||||
|
|
||||||
build_options="systemd"
|
build_options="systemd"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
@ -36,6 +35,7 @@ post_install() {
|
|||||||
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
|
echo "ntpd.service" > ${DESTDIR}/usr/lib/systemd/ntp-units.d/60-ntp.list
|
||||||
fi
|
fi
|
||||||
vconf ${FILESDIR}/ntp.conf
|
vconf ${FILESDIR}/ntp.conf
|
||||||
|
vsv ntpd
|
||||||
rm -r ${DESTDIR}/usr/share/doc
|
rm -r ${DESTDIR}/usr/share/doc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user