void-packages/srcpkgs/ddclient/template
Nathan Owens 7a92330f2e ddclient: update to 3.9.1.
Closes: #27535 [via git-merge-pr]
2020-12-29 22:29:14 -08:00

39 lines
1.2 KiB
Bash

# Template file for 'ddclient'
pkgname=ddclient
version=3.9.1
revision=1
depends="perl-Data-Validate-IP perl-IO-Socket-SSL"
short_desc="Perl client used to update dynamic DNS"
maintainer="rogi <rogi@skylittlesystem.org>"
license="GPL-2.0-or-later"
homepage="https://github.com/ddclient/ddclient"
distfiles="https://github.com/ddclient/ddclient/archive/v${version}.tar.gz"
checksum=e4969e15cc491fc52bdcd649d4c2b0e4b1bf0c9f9dba23471c634871acc52470
conf_files="/etc/ddclient/ddclient.conf"
make_dirs="/var/cache/ddclient 0750 root root"
do_install() {
vdoc README.cisco
vdoc README.md
vdoc README.ssl
vdoc RELEASENOTE
vdoc TODO
vdoc UPGRADE
vbin ddclient
vsconf sample-ddclient-wrapper.sh
vsconf sample-etc_cron.d_ddclient
vsconf sample-etc_ddclient.conf
vsconf sample-etc_dhclient-exit-hooks
vsconf sample-etc_dhcpc_dhcpcd-eth0.exe
vsconf sample-etc_ppp_ip-up.local
vsconf sample-etc_rc.d_init.d_ddclient
vsconf sample-etc_rc.d_init.d_ddclient.lsb
vsconf sample-etc_rc.d_init.d_ddclient.redhat
vsconf sample-etc_rc.d_init.d_ddclient.ubuntu
sed -e 's|daemon=300|daemon=600|' -e 's|300 seconds|600 seconds|' \
-e '/pid=.*/d' sample-etc_ddclient.conf > void-etc_ddclient.conf
vinstall void-etc_ddclient.conf 0600 etc/ddclient ddclient.conf
vsv ${pkgname}
}