ddclient: update to 3.11.2.

- add OPTS variable to runit service
This commit is contained in:
Joel Beckmeyer 2023-03-10 15:14:30 -05:00 committed by cinerea0
parent d92187615a
commit 6d0f97508b
2 changed files with 18 additions and 19 deletions

View file

@ -1,3 +1,4 @@
#!/bin/sh
exec 2>&1
exec ddclient -foreground
[ -r conf ] && . ./conf
exec ddclient -foreground ${OPTS}

View file

@ -1,38 +1,36 @@
# Template file for 'ddclient'
pkgname=ddclient
version=3.9.1
version=3.11.2
revision=1
depends="perl-Data-Validate-IP perl-IO-Socket-SSL"
build_style=gnu-configure
configure_args="--sysconfdir=/etc/ddclient"
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="rogi <rogi@skylittlesystem.org>"
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=e4969e15cc491fc52bdcd649d4c2b0e4b1bf0c9f9dba23471c634871acc52470
checksum=243cd832abd3cdd2b49903e1b5ed7f450e2d9c4c0eaf8ce4fe692c244d3afd77
conf_files="/etc/ddclient/ddclient.conf"
make_dirs="/var/cache/ddclient 0750 root root"
do_install() {
pre_configure() {
./autogen
}
post_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 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}
vsv ddclient
}