--- rpms/phpki/contribs7/phpki.spec 2009/03/02 23:38:37 1.1 +++ rpms/phpki/contribs7/phpki.spec 2009/03/23 12:35:20 1.4 @@ -1,11 +1,14 @@ +# $Id: phpki.spec,v 1.3 2009/03/03 18:36:43 vip-ire Exp $ +# Authority: vip-ire +# Name: Daniel Berteaud + %define name phpki %define version 0.82 -%define release 7 +%define release 9 Summary: Phpki is a simple certificate management suite Name: %{name} Version: %{version} Release: %{release}%{?dist} -Distribution: SME Server License: GNU GPL version 2 URL: http://sourceforge.net/projects/phpki/ Group: SMEserver/addon @@ -24,9 +27,11 @@ Patch10: phpki-0.82-disable_download_aft Patch11: phpki-0.82-remove_security_warning.patch Patch12: phpki-0.82-remove_email_from_upload_file_name.patch2 -Packager: Daniel B. BuildArch: noarch BuildRoot: /var/tmp/%{name}-%{version} + +BuildRequires: e-smith-devtools + Requires: e-smith-release >= 7.0 Requires: php Requires: openssl @@ -40,6 +45,13 @@ With it, you may create and centrally ma e-mail clients, SSL servers, and VPN applications. %changelog +* Mon Mar 23 2009 Daniel B. [0.82-9] +- Remove links after uninstall so you can easily re-install the contrib + later [SME: 5091] + +* Tue Mar 03 2009 Daniel B. [0.82-8] +- Add e-smith-devtools as a dependencie + * Tue Jan 20 2009 Daniel B. [0.82-7] - Don't replace config file on upgrades @@ -137,9 +149,15 @@ if [ $1 == 1 ]; then header(\"Location: ./../index.php\"); ?> " > /opt/phpki/html/ca/index.php - fi %postun +# Remove the links to index.php after uninstall +if [ $1 == 0 ]; then + %{__rm} -f /opt/phpki/html/index.php + %{__rm} -f /opt/phpki/html/setup.php + %{__rm} -f /opt/phpki/html/ca/index.php +fi + true