diff --git a/tur/ddclient/0001-fix-hardcoded-pathes.patch b/tur/ddclient/0001-fix-hardcoded-pathes.patch index 2f9bc04b1..1de8b71e4 100644 --- a/tur/ddclient/0001-fix-hardcoded-pathes.patch +++ b/tur/ddclient/0001-fix-hardcoded-pathes.patch @@ -1,24 +1,15 @@ --- a/ddclient.in +++ b/ddclient.in -@@ -50,7 +50,7 @@ - - my $etc = subst_var('@sysconfdir@', '/etc/ddclient'); - my $cachedir = subst_var('@localstatedir@', '/var') . '/cache/ddclient'; --my $savedir = '/tmp'; -+my $savedir = '@TERMUX_PREFIX@/tmp'; - if ($program =~ /test/i) { - $etc = '.'; - $cachedir = '.'; -@@ -802,7 +802,7 @@ +@@ -1195,7 +1195,7 @@ 'examples' => \&nic_nsupdate_examples, - 'variables' => { - %{$variables{'service-common-defaults'}}, -- 'login' => setv(T_LOGIN, 1, 0, '/usr/bin/nsupdate', undef), -+ 'login' => setv(T_LOGIN, 1, 0, '@TERMUX_PREFIX@/bin/nsupdate', undef), - 'tcp' => setv(T_BOOL, 0, 1, 0, undef), - 'ttl' => setv(T_NUMBER, 0, 1, 600, undef), - 'zone' => setv(T_STRING, 1, 1, '', undef), -@@ -2611,7 +2611,7 @@ + 'cfgvars' => { + %{$cfgvars{'protocol-common-defaults'}}, +- 'login' => setv(T_LOGIN, 0, '/usr/bin/nsupdate', undef), ++ 'login' => setv(T_LOGIN, 0, '@TERMUX_PREFIX@/bin/nsupdate', undef), + 'tcp' => setv(T_BOOL, 0, 0, undef), + 'ttl' => setv(T_NUMBER, 0, 600, undef), + 'zone' => setv(T_STRING, 1, undef, undef), +@@ -2777,7 +2777,7 @@ # Hard code to /tmp rather than use system TMPDIR to protect from malicious # shell instructions in TMPDIR environment variable. All systems should have /tmp. diff --git a/tur/ddclient/build.sh b/tur/ddclient/build.sh index 504153243..e37997b7b 100644 --- a/tur/ddclient/build.sh +++ b/tur/ddclient/build.sh @@ -2,10 +2,10 @@ TERMUX_PKG_HOMEPAGE=https://github.com/ddclient/ddclient TERMUX_PKG_DESCRIPTION="Update dynamic DNS entries for accounts on many dynamic DNS services" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux-user-repository" -TERMUX_PKG_VERSION="3.11.2" +TERMUX_PKG_VERSION="4.0.0" TERMUX_PKG_SRCURL=https://github.com/ddclient/ddclient/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz -TERMUX_PKG_SHA256=243cd832abd3cdd2b49903e1b5ed7f450e2d9c4c0eaf8ce4fe692c244d3afd77 -TERMUX_PKG_DEPENDS="perl" +TERMUX_PKG_SHA256=4b37c99ac0011102d7db62f1ece7ff899b06df3d4b172e312703931a3c593c93 +TERMUX_PKG_DEPENDS="curl, perl" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_PLATFORM_INDEPENDENT=true TERMUX_PKG_AUTO_UPDATE=true @@ -14,6 +14,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --prefix=$TERMUX_PREFIX --sysconfdir=$TERMUX_PREFIX/etc/ddclient --localstatedir=$TERMUX_PREFIX/var +--with-curl=$TERMUX_PREFIX/bin/curl " termux_step_pre_configure() {