[packages/ddclient] up to 4.0.0
atler
atler at pld-linux.org
Thu Feb 13 20:07:32 CET 2025
commit 634521c420bd2d73090424f2ce1fd16a184d7ad2
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Feb 13 19:51:24 2025 +0100
up to 4.0.0
config.patch | 31 +++++++++++++++++--------------
ddclient.spec | 16 ++++++++--------
2 files changed, 25 insertions(+), 22 deletions(-)
---
diff --git a/ddclient.spec b/ddclient.spec
index 549e486..0cc1fbc 100644
--- a/ddclient.spec
+++ b/ddclient.spec
@@ -6,13 +6,13 @@ Summary: A dynamic IP address utility
Summary(pl.UTF-8): Narzędzie do dynamicznych adresów IP
Summary(pt_BR.UTF-8): Cliente para atualizar entradas DNS dinâmicas no DynDNS.org
Name: ddclient
-Version: 3.11.2
+Version: 4.0.0
Release: 1
Epoch: 1
License: GPL v2
Group: Networking
Source0: https://github.com/ddclient/ddclient/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 5ef2ff089cfe4d4b9e1248881199eb4a
+# Source0-md5: 2108c270e6f9466007ca38986952b6b7
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.NetworkManager
@@ -36,8 +36,7 @@ Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
Requires: rc-scripts
%{?with_systemd:Requires: systemd-units >= 1:250.1}
-# for freedns: Digest::SHA1, IO::Socket::SSL
-Suggests: perl-Digest-SHA1
+# for freedns: IO::Socket::SSL
Suggests: perl-IO-Socket-SSL
# for cloudflare JSON::Any
Suggests: perl-JSON-Any
@@ -46,7 +45,8 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define cachedir %{_localstatedir}/cache/ddclient
%define rundir %{_localstatedir}/run/ddclient
-%define _sysconfdir /etc/ddclient
+
+%define _noautoreq_perl version .norequire
%description
DDclient is a small full featured client with FULL DynDNS NIC2
@@ -103,7 +103,7 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/{rc.d/init.d,sysconfig,NetworkManager/dispatcher.d}} \
$RPM_BUILD_ROOT{%{_sbindir},%{systemdtmpfilesdir},%{?with_systemd:%{systemdunitdir},}%{cachedir},%{rundir}}
-cp -p %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
install -p %{name} $RPM_BUILD_ROOT%{_sbindir}
install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
@@ -158,9 +158,9 @@ fi
%defattr(644,root,root,755)
%doc ChangeLog.md README*
%attr(755,root,root) %{_sbindir}/ddclient
-%dir %{_sysconfdir}
+%dir %{_sysconfdir}/%{name}
# switch to %attr(640,root,ddclient) when this gets resolution: https://sourceforge.net/p/ddclient/bugs/77/
-%attr(600,ddclient,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
+%attr(600,ddclient,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
%attr(754,root,root) /etc/rc.d/init.d/%{name}
%attr(755,root,root) /etc/NetworkManager/dispatcher.d/50-%{name}
diff --git a/config.patch b/config.patch
index 2723612..10e2c76 100644
--- a/config.patch
+++ b/config.patch
@@ -1,14 +1,17 @@
---- ddclient-3.11.2/ddclient.conf.in.orig 2023-12-11 12:21:48.545194604 +0100
-+++ ddclient-3.11.2/ddclient.conf.in 2023-12-11 12:22:41.613657451 +0100
-@@ -18,9 +18,9 @@
- ######################################################################
- daemon=300 # check every 300 seconds
- syslog=yes # log update msgs to syslog
--mail=root # mail all msgs to root
-+#mail=root # mail all msgs to root
- mail-failure=root # mail failed update msgs to root
--pid=@runstatedir@/ddclient.pid # record PID in file.
-+pid=@runstatedir@/ddclient/ddclient.pid # record PID in file.
- ssl=yes # use ssl-support. Works with
- # ssl-library
- # postscript=script # run script after updating. The
+--- ddclient-4.0.0/ddclient.conf.in.orig 2025-02-13 19:34:43.630323982 +0100
++++ ddclient-4.0.0/ddclient.conf.in 2025-02-13 19:36:46.038013080 +0100
+@@ -23,12 +23,12 @@
+
+ daemon=300 # check every 300 seconds
+ syslog=yes # log update msgs to syslog
+-mail=root # mail all msgs to root
++#mail=root # mail all msgs to root
+ mail-failure=root # mail failed update msgs to root
+ # mail-from=root # set the email "From:" header to "root". If
+ # unset (the default) or empty, the from address
+ # depends on your system's default behavior.
+-pid=@runstatedir@/ddclient.pid # record PID in file.
++pid=@runstatedir@/ddclient/ddclient.pid # record PID in file.
+ # postscript=script # run script after updating. The new IP is
+ # added as argument.
+ #
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ddclient.git/commitdiff/634521c420bd2d73090424f2ce1fd16a184d7ad2
More information about the pld-cvs-commit
mailing list