Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package chrony for openSUSE:Factory checked 
in at 2021-06-09 21:55:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/chrony (Old)
 and      /work/SRC/openSUSE:Factory/.chrony.new.32437 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "chrony"

Wed Jun  9 21:55:01 2021 rev:29 rq:898039 version:4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/chrony/chrony.changes    2021-06-05 
23:31:35.480444147 +0200
+++ /work/SRC/openSUSE:Factory/.chrony.new.32437/chrony.changes 2021-06-09 
21:55:03.922770262 +0200
@@ -1,0 +2,6 @@
+Wed Jun  2 09:10:41 UTC 2021 - Callum Farmer <gm...@opensuse.org>
+
+- Change to using systemd-sysusers
+- Remove otherproviders, not needed anymore
+
+-------------------------------------------------------------------

New:
----
  system-user-chrony.conf

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

Other differences:
------------------
++++++ chrony.spec ++++++
--- /var/tmp/diff_new_pack.7eEDr3/_old  2021-06-09 21:55:04.994772173 +0200
+++ /var/tmp/diff_new_pack.7eEDr3/_new  2021-06-09 21:55:04.998772180 +0200
@@ -45,6 +45,7 @@
 Source11:       chrony-tmpfiles
 Source12:       pool.conf.suse
 Source13:       pool.conf.opensuse
+Source14:       system-user-chrony.conf
 Source99:       series
 # PATCH-MISSING-TAG -- See 
http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
 Patch0:         chrony-config.patch
@@ -65,10 +66,10 @@
 BuildRequires:  timezone
 BuildRequires:  pkgconfig(systemd)
 BuildRequires:  rubygem(asciidoctor)
+BuildRequires:  sysuser-tools
 Recommends:     logrotate
 Requires(post): %fillup_prereq
-Requires(pre):  %{_sbindir}/groupadd
-Requires(pre):  %{_sbindir}/useradd
+%sysusers_requires
 Requires:       %name-pool
 Recommends:     %name-pool-nonempty
 Provides:       ntp-daemon
@@ -105,7 +106,7 @@
 Group:          Productivity/Networking/Other
 Provides:       %name-pool = %version
 Provides:       %name-pool-nonempty
-Conflicts:      otherproviders(%name-pool)
+Conflicts:      %name-pool
 Requires:       %name = %version
 BuildArch:      noarch
 RemovePathPostfixes: .suse
@@ -119,7 +120,7 @@
 Group:          Productivity/Networking/Other
 Provides:       %name-pool = %version
 Provides:       %name-pool-nonempty
-Conflicts:      otherproviders(%name-pool)
+Conflicts:      %name-pool
 Requires:       %name = %version
 BuildArch:      noarch
 Supplements:    (chrony and branding-openSUSE)
@@ -133,7 +134,7 @@
 Summary:        Empty pool preconfiguration for chrony
 Group:          Productivity/Networking/Other
 Provides:       %name-pool = %version
-Conflicts:      otherproviders(%name-pool)
+Conflicts:      %name-pool
 Requires:       %name = %version
 BuildArch:      noarch
 Supplements:    (chrony and branding-SLE)
@@ -183,6 +184,7 @@
   --with-sendmail=%{_sbindir}/sendmail      \
   --enable-ntp-signd
 make %{?_smp_mflags} all docs
+%sysusers_generate_pre %{SOURCE14} chrony
 
 %install
 %make_install
@@ -229,6 +231,9 @@
 install -Dpm 644 %{SOURCE12} %{SOURCE13} %{buildroot}/etc/chrony.d
 touch %{buildroot}/etc/chrony.d/pool.conf.empty
 
+mkdir -p %{buildroot}%{_sysusersdir}
+install -m 0644 %{SOURCE14} %{buildroot}%{_sysusersdir}/
+
 %if %{with testsuite}
 %ifnarch %ix86
 %check
@@ -240,9 +245,7 @@
 %endif
 %endif
 
-%pre
-getent group %{name} >/dev/null || groupadd -r %{name}
-getent passwd %{name} >/dev/null || useradd -r -g %{name} -d 
"%{_localstatedir}/lib/chrony" -s /bin/false -c "Chrony Daemon" %{name}
+%pre -f chrony.pre
 %service_add_pre chronyd.service chrony-wait.service
 
 %preun
@@ -268,6 +271,7 @@
 %dir %{_sysconfdir}/dhcp/
 %dir %{_sysconfdir}/dhcp/dhclient.d/
 %{_sysconfdir}/dhcp/dhclient.d/chrony.sh
+%{_sysusersdir}/system-user-chrony.conf
 %{_bindir}/chronyc
 %{_sbindir}/chronyd
 %{_libexecdir}/%name



++++++ system-user-chrony.conf ++++++
#Type Name   ID GECOS                       Home directory            Shell
u     chrony -  "Chrony Daemon"             /var/lib/chrony           -

Reply via email to