Accepting request 135930 from Base:System
- Use %{_localstatedir}/lib/polkit for $HOME of polkit user, instead of %{_libexecdir}/polkit-1. The directory is manually created in %install. (forwarded request 135837 from vuntz) OBS-URL: https://build.opensuse.org/request/show/135930 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/polkit?expand=0&rev=36
This commit is contained in:
commit
cf42939a74
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 25 09:05:02 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
- Use %{_localstatedir}/lib/polkit for $HOME of polkit user,
|
||||||
|
instead of %{_libexecdir}/polkit-1. The directory is manually
|
||||||
|
created in %install.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 14 18:20:06 UTC 2012 - vuntz@opensuse.org
|
Fri Sep 14 18:20:06 UTC 2012 - vuntz@opensuse.org
|
||||||
|
|
||||||
|
@ -138,6 +138,8 @@ make %{?_smp_mflags}
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
# create $HOME for polkit user
|
||||||
|
install -d %{buildroot}%{_localstatedir}/lib/polkit
|
||||||
%find_lang polkit-1
|
%find_lang polkit-1
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -145,7 +147,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group polkitd > /dev/null || groupadd -r polkitd
|
getent group polkitd > /dev/null || groupadd -r polkitd
|
||||||
getent passwd polkitd > /dev/null || useradd -r -g polkitd -d %{_libexecdir}/polkit-1 -s /sbin/nologin -c "User for polkitd" polkitd
|
getent passwd polkitd > /dev/null || useradd -r -g polkitd -d %{_localstatedir}/lib/polkit -s /sbin/nologin -c "User for polkitd" polkitd
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -200,6 +202,8 @@ exit 0
|
|||||||
%dir %{_libexecdir}/polkit-1
|
%dir %{_libexecdir}/polkit-1
|
||||||
%{_libexecdir}/polkit-1/polkitd
|
%{_libexecdir}/polkit-1/polkitd
|
||||||
%verify(not mode) %attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
%verify(not mode) %attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1
|
||||||
|
# $HOME for polkit user
|
||||||
|
%dir %{_localstatedir}/lib/polkit
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user