void-packages/srcpkgs/tlsdate/template

33 lines
1.1 KiB
Bash

# Template file for 'tlsdate'
pkgname=tlsdate
version=0.0.13
revision=15
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
configure_args="--with-polarssl=no ac_cv_func_clock_gettime=yes"
conf_files="/etc/tlsdate/tlsdated.conf"
make_dirs="/var/cache/tlsdated 0755 root root"
hostmakedepends="automake pkg-config libtool"
makedepends="libressl-devel dbus-devel libevent-devel"
depends="ca-certificates"
short_desc="Secure parasitic rdate replacement using HTTPS"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="BSD-3-Clause"
homepage="https://github.com/ioerror/tlsdate"
distfiles="https://github.com/ioerror/tlsdate/archive/${pkgname}-${version}.tar.gz"
checksum=90efdff87504b5159cb6a3eefa9ddd43723c073d49c4b3febba9e48fc1292bf9
pre_configure() {
# use system certs
sed -i Makefile.am \
-e 's|/tlsdate/ca-roots/tlsdate-ca-roots.conf|/ssl/certs/ca-certificates.crt|'
sh ./autogen.sh
}
post_install() {
vlicense LICENSE
rm ${DESTDIR}/etc/tlsdate/ca-roots/tlsdate-ca-roots.conf
rm ${DESTDIR}/usr/share/doc/${pkgname}/{TODO,LICENSE}
vsv tlsdated
}