# Template file for 'ddclient'
pkgname=ddclient
version=4.0.0
revision=1
build_style=gnu-configure
configure_args="--sysconfdir=/etc"
hostmakedepends="automake curl"
depends="perl-JSON curl"
checkdepends="$depends perl-HTTP-Daemon perl-Plack perl-HTTP-Message
 perl-Test-MockModule perl-Test-Warnings curl net-tools"
short_desc="Perl client used to update dynamic DNS"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="GPL-2.0-or-later"
homepage="https://github.com/ddclient/ddclient"
changelog="https://raw.githubusercontent.com/ddclient/ddclient/master/ChangeLog.md"
distfiles="https://github.com/ddclient/ddclient/archive/v${version}.tar.gz"
checksum=4b37c99ac0011102d7db62f1ece7ff899b06df3d4b172e312703931a3c593c93

conf_files="/etc/ddclient/ddclient.conf"
make_dirs="/var/cache/ddclient 0750 root root"

pre_configure() {
	./autogen
}

post_install() {
	vdoc README.cisco
	vdoc README.md
	vsconf sample-ddclient-wrapper.sh
	vsconf sample-etc_cron.d_ddclient
	vsconf ddclient.conf
	vsconf sample-etc_dhclient-exit-hooks
	vsconf sample-etc_dhcpc_dhcpcd-eth0.exe
	vsconf sample-etc_ppp_ip-up.local
	vsv ddclient
}
