ddclient: provide a default configuration

closes #6170
This commit is contained in:
Cameron Nemo 2018-12-29 10:06:47 -08:00 committed by maxice8
parent c08a5812c1
commit 7c1b4b5170

View File

@ -1,17 +1,19 @@
# Template file for 'ddclient'
pkgname=ddclient
version=3.9.0
revision=1
revision=2
noarch=yes
hostmakedepends="unzip"
depends="perl-Data-Validate-IP perl-IO-Socket-SSL"
short_desc="Perl client used to update dynamic DNS"
license="GPL-2.0-or-later"
maintainer="rogi <rogi@skylittlesystem.org>"
license="GPL-2.0-or-later"
homepage="${SOURCEFORGE_SITE}/p/ddclient/wiki/Home/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.zip"
checksum=b4bc907eaadb1f30ccef8a11d92a30080ee21338cde89bf76b7d3d20a4499830
make_dirs="/var/cache/ddclient 0750 root root"
do_install() {
vdoc README.cisco
vdoc README.md
@ -30,5 +32,8 @@ do_install() {
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}
}