From c1dc8c483306dced49b8a7d231707a5a5fcda293 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:35:06 +0100 Subject: [PATCH] assign reserved ids to pulse and pulse-access user and groups [release 9.0-2mamba;Wed Nov 15 2017] --- pulseaudio.spec | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pulseaudio.spec b/pulseaudio.spec index 48120c1..2cad1b5 100644 --- a/pulseaudio.spec +++ b/pulseaudio.spec @@ -1,7 +1,11 @@ +%define pulse_groupid 69 +%define pulse_userid 69 +%define pulse_access_groupid 70 +%define pulse_access_userid 70 %define majver %(echo %{version} | cut -d. -f 1-2) Name: pulseaudio Version: 9.0 -Release: 1mamba +Release: 2mamba Summary: Improved Linux sound server Group: System/Libraries Vendor: openmamba @@ -352,10 +356,9 @@ install -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/asound.conf.pulseaudio [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre -%{_sbindir}/groupadd -r pulse || : -%{_bindir}/id pulse >/dev/null 2>&1 || \ -%{_sbindir}/useradd -r -c 'PulseAudio System Daemon' -s /sbin/nologin -d %{_localstatedir}/run/pulse -g pulse pulse &>/dev/null || : -%{_sbindir}/groupadd -r pulse-access || : +%{_sbindir}/groupadd pulse -g %{pulse_groupid} 2>/dev/null || : +%{_sbindir}/useradd -u %{pulse_userid} -c 'PulseAudio System Daemon' -s /sbin/nologin -d %{_localstatedir}/run/pulse -g pulse pulse 2>/dev/null || : +%{_sbindir}/groupadd pulse-access -g %{pulse_access_groupid} 2>/dev/null || : exit 0 %post @@ -641,6 +644,9 @@ fi %{_libdir}/pulse-%{majver}/modules/*.a %changelog +* Wed Nov 15 2017 Silvan Calarco 9.0-2mamba +- assign reserved ids to pulse and pulse-access user and groups + * Thu Jun 23 2016 Automatic Build System 9.0-1mamba - automatic version update by autodist