# Template file for 'inadyn'
pkgname=inadyn
version=2.2.1
revision=1
build_style=gnu-configure
configure_args="--enable-openssl"
hostmakedepends="automake libtool pkg-config"
makedepends="confuse-devel libressl-devel"
short_desc="Small DynDNS client with SSL/TLS support"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="GPL-2"
homepage="http://troglobit.com/inadyn.html"
distfiles="https://github.com/troglobit/inadyn/releases/download/v${version}/inadyn-${version}.tar.xz"
checksum=e7a74fcf8b7c069990940c0dc4d4d18071005be225667fdfcfa4156c44384579

system_accounts="inadyn"
inadyn_homedir="/run/inadyn"

conf_files="/etc/inadyn.conf"

pre_configure() {
	autoreconf -fi
}

post_install() {
	vconf ${FILESDIR}/inadyn.conf
	vsv inadyn
}
