Sorry for the patch flurry, this should make the package usable in
Fedora.
Name: monkeysphere
Summary: Use the OpenPGP web of trust to verify ssh connections
Version: 0.29
Name: monkeysphere
Summary: Use the OpenPGP web of trust to verify ssh connections
Version: 0.29
License: GPLv3+
Group: Applications/Internet
URL: http://web.monkeysphere.info/
License: GPLv3+
Group: Applications/Internet
URL: http://web.monkeysphere.info/
%{__rm} -rf %{buildroot}
%pre
%{__rm} -rf %{buildroot}
%pre
-getent group %{name} >/dev/null || groupadd -r %{name}
-getent passwd %{name} >/dev/null || \
-useradd -r -g %{name} -d %{_var}/lib/%{name} -s /sbin/nologin \
- -c "Monkeysphere authentication user" %{name}
+groupadd -r %{name} &>/dev/null || :
+useradd -r -g %{name} -d %{_var}/lib/%{name} -s /bin/bash \
+ -c "Monkeysphere authentication user" %{name} &>/dev/null || :
-userdel %{name} >/dev/null
-groupdel %{name} >/dev/null
+test "$1" != 0 || userdel %{name} &>/dev/null || :
+test "$1" != 0 || groupdel %{name} &>/dev/null || :
%files
%defattr(-, root, root, 0755)
%files
%defattr(-, root, root, 0755)
+* Tue Mar 30 2010 Bernie Innocenti <bernie@codewiz.org> - 0.28-3
+- Give a real shell to monkeysphere user.
+- Simplify pre/postun macros.
+
* Tue Mar 30 2010 Bernie Innocenti <bernie@codewiz.org> - 0.28-2
- Create user monkeysphere on installation.
* Tue Mar 30 2010 Bernie Innocenti <bernie@codewiz.org> - 0.28-2
- Create user monkeysphere on installation.