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:
Stephan Kulow 2012-09-26 14:26:57 +00:00 committed by Git OBS Bridge
commit cf42939a74
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -138,6 +138,8 @@ make %{?_smp_mflags}
%install
%make_install
rm $RPM_BUILD_ROOT%{_libdir}/*.la
# create $HOME for polkit user
install -d %{buildroot}%{_localstatedir}/lib/polkit
%find_lang polkit-1
%clean
@ -145,7 +147,7 @@ rm -rf $RPM_BUILD_ROOT
%pre
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
%post
@ -200,6 +202,8 @@ exit 0
%dir %{_libexecdir}/polkit-1
%{_libexecdir}/polkit-1/polkitd
%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
%defattr(-,root,root,-)