Skip to content

Commit

Permalink
ddclient: bump to 4.0.0 (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
licy183 authored Jan 20, 2025
1 parent cbde37f commit 363aaa1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
27 changes: 9 additions & 18 deletions tur/ddclient/0001-fix-hardcoded-pathes.patch
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
7 changes: 4 additions & 3 deletions tur/ddclient/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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() {
Expand Down

0 comments on commit 363aaa1

Please sign in to comment.