diff --git a/polkit.changes b/polkit.changes index 5bb3107..9dd81e7 100644 --- a/polkit.changes +++ b/polkit.changes @@ -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 diff --git a/polkit.spec b/polkit.spec index 58ae51b..ca8bd4b 100644 --- a/polkit.spec +++ b/polkit.spec @@ -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,-)