packaging: don't add the polkitd user/group 67/15667/2 submit/tizen/20140130.033517
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 24 Jan 2014 20:11:49 +0000 (12:11 -0800)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 24 Jan 2014 20:20:05 +0000 (12:20 -0800)
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 <patrick.mccarty@linux.intel.com>
packaging/polkit.changes
packaging/polkit.spec

index 8740766..1ba4bb3 100644 (file)
@@ -1,3 +1,7 @@
+* Fri Jan 24 2014 Patrick McCarty <patrick.mccarty@linux.intel.com> 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 <michael.leibowitz@intel.com> 0.112@847366c
 - package polkit for tizen
 - prefix/lib/polkit -> libdir/polkit
index cf2b315..33c8aea 100644 (file)
@@ -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