Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package at for openSUSE:Factory checked in 
at 2021-07-02 13:26:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/at (Old)
 and      /work/SRC/openSUSE:Factory/.at.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "at"

Fri Jul  2 13:26:50 2021 rev:77 rq:903074 version:3.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/at/at.changes    2020-10-08 13:09:55.443049658 
+0200
+++ /work/SRC/openSUSE:Factory/.at.new.2625/at.changes  2021-07-02 
13:27:27.676763292 +0200
@@ -1,0 +2,5 @@
+Thu Jun  3 11:39:32 UTC 2021 - Callum Farmer <[email protected]>
+
+- Change to using systemd-sysusers
+
+-------------------------------------------------------------------

New:
----
  system-user-at.conf

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

Other differences:
------------------
++++++ at.spec ++++++
--- /var/tmp/diff_new_pack.mi9i8w/_old  2021-07-02 13:27:28.212759133 +0200
+++ /var/tmp/diff_new_pack.mi9i8w/_new  2021-07-02 13:27:28.216759102 +0200
@@ -31,6 +31,7 @@
 Source2:        atd.pamd
 Source3:        sysconfig.atd
 Source5:        atd.service
+Source6:        system-user-at.conf
 Patch0:         at-3.1.14.patch
 Patch4:         at-3.1.14-joblist.patch
 Patch10:        at-3.1.13-massive_batch.patch
@@ -67,10 +68,10 @@
 BuildRequires:  systemd-rpm-macros
 BuildRequires:  pkgconfig(libHX)
 BuildRequires:  pkgconfig(libselinux)
+BuildRequires:  sysuser-tools
 Requires(post): %fillup_prereq
-Requires(pre):  %{_sbindir}/groupadd
-Requires(pre):  %{_sbindir}/useradd
 Requires(pre):  permissions
+%sysusers_requires
 Recommends:     smtp_daemon
 
 %description
@@ -91,6 +92,7 @@
   --with-daemon_groupname=at
 
 %make_build
+%sysusers_generate_pre %{SOURCE6} at system-user-at.conf
 
 %install
 install -d 
%{buildroot}{%{_sysconfdir}/pam.d,%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8},%{_fillupdir}}
@@ -110,11 +112,10 @@
 install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/atd
 install -m644 %{SOURCE3} %{buildroot}%{_fillupdir}
 
-%pre
-getent group at >/dev/null || %{_sbindir}/groupadd -g 25 -o -r at
-getent passwd at >/dev/null || %{_sbindir}/useradd -r -o -g at -u 25 \
-       -s /bin/false -c "Batch jobs daemon" \
-       -d %{_localstatedir}/spool/atjobs at
+mkdir -p %{buildroot}%{_sysusersdir}
+install -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/
+
+%pre -f at.pre
 %service_add_pre atd.service
 
 %preun
@@ -149,5 +150,6 @@
 %attr(600,at,at) %{_localstatedir}/spool/atjobs/.SEQ
 %{_fillupdir}/sysconfig.atd
 %{_unitdir}/atd.service
+%{_sysusersdir}/system-user-at.conf
 
 %changelog

++++++ system-user-at.conf ++++++
#Type Name ID GECOS               Home directory    Shell
g     at   25 -                   -                 -
u     at   25 "Batch jobs daemon" /var/spool/atjobs -

Reply via email to