Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package usbmuxd for openSUSE:Factory checked 
in at 2022-06-20 15:38:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/usbmuxd (Old)
 and      /work/SRC/openSUSE:Factory/.usbmuxd.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "usbmuxd"

Mon Jun 20 15:38:38 2022 rev:36 rq:983887 version:1.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/usbmuxd/usbmuxd.changes  2022-02-17 
23:42:12.519700079 +0100
+++ /work/SRC/openSUSE:Factory/.usbmuxd.new.1548/usbmuxd.changes        
2022-06-20 15:39:24.079046033 +0200
@@ -1,0 +2,5 @@
+Tue Mar 15 18:17:21 UTC 2022 - Callum Farmer <gm...@opensuse.org>
+
+- Change to systemd-sysusers
+
+-------------------------------------------------------------------

New:
----
  usbmuxd.sysusers

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

Other differences:
------------------
++++++ usbmuxd.spec ++++++
--- /var/tmp/diff_new_pack.UmumSa/_old  2022-06-20 15:39:24.547046717 +0200
+++ /var/tmp/diff_new_pack.UmumSa/_new  2022-06-20 15:39:24.555046729 +0200
@@ -25,6 +25,7 @@
 Group:          System/Libraries
 URL:            https://github.com/libimobiledevice/usbmuxd
 Source:         
https://github.com/libimobiledevice/usbmuxd/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Source1:        %{name}.sysusers
 Source99:       baselibs.conf
 Patch0:         usbmuxd-add-socket-option.patch
 Patch1:         usbmuxd-add-pid-option.patch
@@ -34,6 +35,7 @@
 BuildRequires:  automake
 BuildRequires:  gcc-c++
 BuildRequires:  libtool
+BuildRequires:  sysuser-tools
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(libimobiledevice-1.0) >= 1.3.0
 BuildRequires:  pkgconfig(libplist-2.0) >= 2.2.0
@@ -41,7 +43,7 @@
 BuildRequires:  pkgconfig(systemd)
 BuildRequires:  pkgconfig(udev)
 Requires(pre):  group(nogroup)
-Requires(pre):  shadow
+%sysusers_requires
 %{?systemd_requires}
 
 %description
@@ -55,6 +57,7 @@
 %autosetup -p1
 
 %build
+%sysusers_generate_pre %{SOURCE1} %{name} %{name}.conf
 autoreconf -fiv
 %configure \
   --with-udevrulesdir=%{_udevrulesdir} \
@@ -64,11 +67,10 @@
 %install
 %make_install
 ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
+install -Dm0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
 
-%pre
-getent passwd usbmux >/dev/null || useradd -r -g nogroup -d 
%{_localstatedir}/lib/%{name} -s /sbin/nologin -c "%{name} daemon" usbmux
+%pre -f %{name}.pre
 %service_add_pre usbmuxd.service
-exit 0
 
 %preun
 %service_del_preun usbmuxd.service
@@ -88,5 +90,6 @@
 %{_mandir}/man8/usbmuxd.8%{?ext_man}
 %{_udevrulesdir}/39-usbmuxd.rules
 %{_unitdir}/usbmuxd.service
+%{_sysusersdir}/%{name}.conf
 
 %changelog

++++++ usbmuxd.sysusers ++++++
#Type Name   ID GECOS            Home directory   Shell
u     usbmux -  "usbmuxd daemon" /var/lib/usbmuxd -

Reply via email to