From 40001a8cd4c24bf0edb27a1e21b456878e0fa30503f738418d2fa6b7c497d922 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 25 Sep 2012 15:49:47 +0000 Subject: [PATCH] Accepting request 135837 from home:vuntz:branches:Base:System - Use %{_localstatedir}/lib/polkit for $HOME of polkit user, instead of %{_libexecdir}/polkit-1. The directory is manually created in %install. OBS-URL: https://build.opensuse.org/request/show/135837 OBS-URL: https://build.opensuse.org/package/show/Base:System/polkit?expand=0&rev=69 --- polkit.changes | 7 +++++++ polkit.spec | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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,-)