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>
+* 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
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
-Requires(pre): pwdutils
%description
PolicyKit is a toolkit for defining and handling authorizations.
%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