# Template file for 'duiadns'
pkgname=duiadns
version=1.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-netifaces python3-netaddr python3-requests"
short_desc="Python client for Duiadns dynamic DNS hosting service"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-2-Clause"
homepage="https://github.com/ahesford/duiadns"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=07251fa2c76f2f23e5bf6d633cf9508b8adef6fd768916949c4ead186ca44915
system_accounts="_duiadns"
_duiadns_homedir="/var/empty"
_duiadns_descr="duiadns user"
make_dirs="/var/cache/duiadns 0755 _duiadns _duiadns"
conf_files="/etc/duiadns.conf"
# Package defines no tests
make_check=no

post_install() {
	vlicense LICENSE.txt
	vinstall sample.conf 0600 etc duiadns.conf
	vsv duiadns
}
