ntp: added runit service.

This commit is contained in:
Juan RP 2014-10-13 17:25:06 +02:00
parent 72ec4488d8
commit 61c37b3d49
3 changed files with 7 additions and 3 deletions

2
srcpkgs/ntp/files/ntpd/log/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec logger -p daemon.notice

2
srcpkgs/ntp/files/ntpd/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec ntpd -g -u ntpd:ntpd -n

View File

@ -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
} }