void-packages/srcpkgs/clockspeed/template

45 lines
1.2 KiB
Bash

# Template file for 'clockspeed'
pkgname=clockspeed
version=0.62
revision=4
archs="x86_64* i686*"
build_style=gnu-makefile
hostmakedepends="groff"
depends="sv-helper"
make_dirs="/etc/clockspeed 0755 root root"
short_desc="Dan Bernstein's clockspeed (network) timekeeping utility"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain"
homepage="http://cr.yp.to/clockspeed.html"
distfiles="http://cr.yp.to/clockspeed/clockspeed-${version}.tar.gz"
checksum=43539964c4b554794b2da760d138c5975cbc850f1c8ec2ee96f5dba66e0d9eed
system_accounts="clocksd"
clocksd_groups="nogroup"
clocksd_homedir="/var/lib/${pkgname}"
clocksd_descr="User for clockspeed adjustments"
conf_files="/etc/${pkgname}/${pkgname}.conf"
make_dirs="/var/lib/clockspeed/adjust 644 clocksd root"
pre_build() {
sed -i -e 's|/usr/local/clockspeed|/var/lib/clockspeed|' conf-home
}
do_install() {
for binary in clockadd clockspeed clockview sntpclock taiclock taiclockd;
do
vbin $binary
done
vbin ${FILESDIR}/clockctl
vconf leapsecs.dat
vmkdir etc/clockspeed
vinstall ${FILESDIR}/clockspeed.conf 644 etc/clockspeed
vsv clockspeed
vsv clockspeed_adjust
chmod 755 "${DESTDIR}"/etc/sv/clockspeed_adjust/clock_adjust.sh
vdoc README
vdoc INSTALL
vdoc ${FILESDIR}/NOTES
}