assign reserved ids to pulse and pulse-access user and groups [release 9.0-2mamba;Wed Nov 15 2017]
This commit is contained in:
parent
4c8b074680
commit
c1dc8c4833
@ -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)
|
%define majver %(echo %{version} | cut -d. -f 1-2)
|
||||||
Name: pulseaudio
|
Name: pulseaudio
|
||||||
Version: 9.0
|
Version: 9.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Improved Linux sound server
|
Summary: Improved Linux sound server
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -352,10 +356,9 @@ install -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/asound.conf.pulseaudio
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%{_sbindir}/groupadd -r pulse || :
|
%{_sbindir}/groupadd pulse -g %{pulse_groupid} 2>/dev/null || :
|
||||||
%{_bindir}/id pulse >/dev/null 2>&1 || \
|
%{_sbindir}/useradd -u %{pulse_userid} -c 'PulseAudio System Daemon' -s /sbin/nologin -d %{_localstatedir}/run/pulse -g pulse pulse 2>/dev/null || :
|
||||||
%{_sbindir}/useradd -r -c 'PulseAudio System Daemon' -s /sbin/nologin -d %{_localstatedir}/run/pulse -g pulse pulse &>/dev/null || :
|
%{_sbindir}/groupadd pulse-access -g %{pulse_access_groupid} 2>/dev/null || :
|
||||||
%{_sbindir}/groupadd -r pulse-access || :
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -641,6 +644,9 @@ fi
|
|||||||
%{_libdir}/pulse-%{majver}/modules/*.a
|
%{_libdir}/pulse-%{majver}/modules/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 15 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0-2mamba
|
||||||
|
- assign reserved ids to pulse and pulse-access user and groups
|
||||||
|
|
||||||
* Thu Jun 23 2016 Automatic Build System <autodist@mambasoft.it> 9.0-1mamba
|
* Thu Jun 23 2016 Automatic Build System <autodist@mambasoft.it> 9.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user