From 41cde231ae9455ed45bfdb3b6f15538e855e5e36 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Fri, 24 Jan 2014 12:11:49 -0800 Subject: [PATCH] packaging: don't add the polkitd user/group In Tizen, the 'setup' package contains the list of users and groups needed by other system packages, so the polkit package should not create the polkitd user and group here in the %pre scriptlet. Change-Id: I9079a1b1d2de304094fa54e243280984de7d802c Signed-off-by: Patrick McCarty --- packaging/polkit.changes | 4 ++++ packaging/polkit.spec | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packaging/polkit.changes b/packaging/polkit.changes index 8740766..1ba4bb3 100644 --- a/packaging/polkit.changes +++ b/packaging/polkit.changes @@ -1,3 +1,7 @@ +* Fri Jan 24 2014 Patrick McCarty 504e2c3 +- Don't add the polkitd user/group in %pre; this user and group are installed + by the 'setup' package. + * Tue Nov 19 2013 Michael Leibowitz 0.112@847366c - package polkit for tizen - prefix/lib/polkit -> libdir/polkit diff --git a/packaging/polkit.spec b/packaging/polkit.spec index cf2b315..33c8aea 100644 --- a/packaging/polkit.spec +++ b/packaging/polkit.spec @@ -26,7 +26,6 @@ Requires: systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd -Requires(pre): pwdutils %description PolicyKit is a toolkit for defining and handling authorizations. @@ -112,10 +111,6 @@ install -d %{buildroot}%{_localstatedir}/lib/polkit %find_lang polkit-1 %install_service graphical.target.wants polkit.service -%pre -getent group polkitd > /dev/null || /usr/sbin/groupadd -r polkitd -getent passwd polkitd > /dev/null || /usr/sbin/useradd -r -g polkitd -d %{_localstatedir}/lib/polkit -s /sbin/nologin -c "User for polkitd" polkitd - %post -n libpolkit -p /sbin/ldconfig %postun -n libpolkit -p /sbin/ldconfig -- 2.7.4