Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ddclient for openSUSE:Factory 
checked in at 2024-02-09 23:53:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ddclient (Old)
 and      /work/SRC/openSUSE:Factory/.ddclient.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ddclient"

Fri Feb  9 23:53:03 2024 rev:57 rq:1145293 version:3.11.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ddclient/ddclient.changes        2023-12-04 
23:01:23.591361372 +0100
+++ /work/SRC/openSUSE:Factory/.ddclient.new.1815/ddclient.changes      
2024-02-09 23:53:24.881330889 +0100
@@ -1,0 +2,5 @@
+Mon Feb  5 10:10:56 UTC 2024 - Michal Suchanek <[email protected]>
+
+- Use sysuser-tools to create user.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ddclient.spec ++++++
--- /var/tmp/diff_new_pack.4i5gjz/_old  2024-02-09 23:53:25.673359430 +0100
+++ /var/tmp/diff_new_pack.4i5gjz/_new  2024-02-09 23:53:25.673359430 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ddclient
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -34,6 +34,7 @@
 BuildRequires:  automake
 BuildRequires:  curl
 BuildRequires:  make
+BuildRequires:  sysuser-tools
 BuildRequires:  perl(HTTP::Daemon)
 BuildRequires:  perl(HTTP::Message::PSGI)
 BuildRequires:  perl(IO::Socket::SSL)
@@ -46,6 +47,7 @@
 Recommends:     perl-IO-Socket-SSL
 BuildArch:      noarch
 %{?systemd_requires}
+%sysusers_requires
 
 %description
 ddclient is a client requiring only Perl. Supported
@@ -65,11 +67,13 @@
 chmod a-x sample-*
 mkdir examples
 mv sample-* examples
+echo u ddclient - '"DDClient User"' %{_localstatedir}/cache/%{name} /bin/false 
> system-user-ddclient.conf
 
 %build
 ./autogen
 %configure
 make
+%sysusers_generate_pre system-user-ddclient.conf ddclient 
system-user-ddclient.conf
 
 %install
 %make_install
@@ -84,15 +88,12 @@
 install -m 644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.%{name}
 install -d -m 755 %{buildroot}%{_localstatedir}/cache/%{name}
 install -d -m 755 %{buildroot}/run/%{name}
+install -D -m 0644 system-user-ddclient.conf 
%{buildroot}%{_sysusersdir}/system-user-ddclient.conf
 
 %check
 make VERBOSE=1 check
 
-%pre
-getent group %{name} >/dev/null || %{_sbindir}/groupadd -r %{name}
-getent passwd %{name} >/dev/null || \
-  %{_sbindir}/useradd -c "DDClient User" -d %{_localstatedir}/cache/%{name} \
-    -g %{name} -r -s /bin/false %{name}
+%pre -f ddclient.pre
 %service_add_pre %{name}.service
 
 %post
@@ -116,4 +117,5 @@
 %{_sbindir}/rc%{name}
 %{_fillupdir}/sysconfig.%{name}
 %dir %attr(700,%{name},root) %{_localstatedir}/cache/%{name}
+%{_sysusersdir}/system-user-ddclient.conf
 

Reply via email to