mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-11 17:43:51 +02:00
openntpd: register 'ntpd' alternatives group.
Also create a log service to log stderr to syslog.
This commit is contained in:
parent
be9acaf704
commit
e577e5d278
3 changed files with 14 additions and 3 deletions
2
srcpkgs/openntpd/files/openntpd/log/run
Normal file
2
srcpkgs/openntpd/files/openntpd/log/run
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec logger -t openntpd -p daemon.notice
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -r conf ] && . ./conf
|
[ -r conf ] && . ./conf
|
||||||
exec ntpd -d ${OPTS:=-s}
|
exec ntpd -d ${OPTS:=-s} 2>&1
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'openntpd'
|
# Template file for 'openntpd'
|
||||||
pkgname=openntpd
|
pkgname=openntpd
|
||||||
version=5.7p4
|
version=5.7p4
|
||||||
revision=8
|
revision=9
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"
|
configure_args="--with-privsep-user=$pkgname --with-cacert=/etc/ssl/certs.pem"
|
||||||
|
@ -17,13 +17,22 @@ checksum=a993d95976e375acc0ab1a677fd268f55024477835633c8ae404895046bccb23
|
||||||
|
|
||||||
conf_files="/etc/ntpd.conf"
|
conf_files="/etc/ntpd.conf"
|
||||||
provides="ntp-daemon-0_1"
|
provides="ntp-daemon-0_1"
|
||||||
replaces="ntp-daemon>=0"
|
|
||||||
system_accounts="$pkgname"
|
system_accounts="$pkgname"
|
||||||
|
alternatives="
|
||||||
|
ntpd:ntpd:/usr/bin/openntpd
|
||||||
|
ntpd:ntpd.8:/usr/share/man/man1/openntpd.8
|
||||||
|
ntpd:ntpd:/etc/sv/openntpd"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
}
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
|
# Rename files for alternatives.
|
||||||
|
mv ${DESTDIR}/usr/bin/{ntpd,$pkgname}
|
||||||
|
mv ${DESTDIR}/usr/share/man/man8/{ntpd,openntpd}.8
|
||||||
|
# Use a symlink instead.
|
||||||
|
rm ${DESTDIR}/usr/bin/ntpctl
|
||||||
|
ln -s openntpd ${DESTDIR}/usr/bin/ntpctl
|
||||||
vsv $pkgname
|
vsv $pkgname
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue