# Template file for 'acme-client'
pkgname=acme-client
version=1.3.7
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config sed"
makedepends="openssl-devel"
checkdepends="nginx curl"
short_desc="Portable version of OpenBSD's acme-client"
maintainer="Emil Miler <em@0x45.cz>"
license="GPL-2.0-only"
homepage="https://git.wolfsden.cz/acme-client-portable/"
changelog="https://git.wolfsden.cz/acme-client-portable/plain/NEWS"
distfiles="https://files.wolfsden.cz/releases/acme-client/acme-client-${version}.tar.gz"
checksum=32afba7a92dc8049e54342403d80b1190bbb10cd154b4637d8f62ebc4ba58801
make_check=no # requires https://github.com/letsencrypt/pebble which isn't packaged

pre_install() {
	sed -i 's,/etc/examples/,/usr/share/examples/acme-client/,g' usr.sbin/acme-client/acme-client.conf.5
}

post_install() {
	vsconf ${FILESDIR}/acme-client.conf
}
