/[smecontribs]/rpms/phpki/contribs7/phpki.spec
ViewVC logotype

Diff of /rpms/phpki/contribs7/phpki.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Mon Mar 2 23:38:37 2009 UTC Revision 1.7 by vip-ire, Fri May 28 09:49:57 2010 UTC
# Line 1  Line 1 
1    # $Id: phpki.spec,v 1.5 2009/08/26 17:49:59 vip-ire Exp $
2    # Authority: vip-ire
3    # Name: Daniel Berteaud
4    
5  %define         name phpki  %define         name phpki
6  %define         version 0.82  %define         version 0.82
7  %define         release 7  %define         release 12
8  Summary:        Phpki is a simple certificate management suite  Summary:        Phpki is a simple certificate management suite
9  Name:           %{name}  Name:           %{name}
10  Version:        %{version}  Version:        %{version}
11  Release:        %{release}%{?dist}  Release:        %{release}%{?dist}
 Distribution:   SME Server  
12  License:        GNU GPL version 2  License:        GNU GPL version 2
13  URL:            http://sourceforge.net/projects/phpki/  URL:            http://sourceforge.net/projects/phpki/
14  Group:          SMEserver/addon  Group:          SMEserver/addon
# Line 23  Patch9:        phpki-0.82-display_root_pem.pat Line 26  Patch9:        phpki-0.82-display_root_pem.pat
26  Patch10:        phpki-0.82-disable_download_after_create.patch  Patch10:        phpki-0.82-disable_download_after_create.patch
27  Patch11:        phpki-0.82-remove_security_warning.patch  Patch11:        phpki-0.82-remove_security_warning.patch
28  Patch12:        phpki-0.82-remove_email_from_upload_file_name.patch2  Patch12:        phpki-0.82-remove_email_from_upload_file_name.patch2
29    Patch13:        phpki-0.82-ca_help.patch
30    Patch14:        phpki-0.82-empty_pass_php_5.2.patch
31    Patch15:        phpki-0.82-update_crl_via_cron.patch
32    
 Packager:       Daniel B.  <daniel@firewall-services.com>  
33  BuildArch:      noarch  BuildArch:      noarch
34  BuildRoot:      /var/tmp/%{name}-%{version}  BuildRoot:      /var/tmp/%{name}-%{version}
35    
36    BuildRequires:  e-smith-devtools
37    
38  Requires:       e-smith-release >= 7.0  Requires:       e-smith-release >= 7.0
39  Requires:       php  Requires:       php
40  Requires:       openssl  Requires:       openssl
# Line 40  With it, you may create and centrally ma Line 48  With it, you may create and centrally ma
48  e-mail clients, SSL servers, and VPN applications.  e-mail clients, SSL servers, and VPN applications.
49    
50  %changelog  %changelog
51    * Fri May 28 2010 Daniel B. <daniel@firewall-services.com> [0.82-12]
52    - Weekly update the CRL via cron so MS Crypto API will be happy
53    
54    * Thu Mar 18 2010 Daniel B. <daniel@firewall-services.com> [0.82-11]
55    - Fixe empty password with PHP 5.2 (SME 8b5)
56    
57    * Wed Aug 26 2009 Daniel B. <daniel@firewall-services.com> [0.82-10]
58    - Fixe links for CA help page
59    
60    * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.82-9]
61    - Remove links after uninstall so you can easily re-install the contrib
62      later [SME: 5091]
63    
64    * Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [0.82-8]
65    - Add e-smith-devtools as a dependencie
66    
67  * Tue Jan 20 2009 Daniel B. <daniel@firewall-services.com> [0.82-7]  * Tue Jan 20 2009 Daniel B. <daniel@firewall-services.com> [0.82-7]
68  - Don't replace config file on upgrades  - Don't replace config file on upgrades
69    
# Line 85  e-mail clients, SSL servers, and VPN app Line 109  e-mail clients, SSL servers, and VPN app
109  %patch10 -p1  %patch10 -p1
110  %patch11 -p1  %patch11 -p1
111  %patch12 -p1  %patch12 -p1
112    %patch13 -p1
113    %patch14 -p1
114    %patch15 -p1
115    
116  %build  %build
 #drop in an unchanged .tgz, if required rename directory here, eg remove version number.  
117  %{__mkdir_p} root/opt/phpki/html  %{__mkdir_p} root/opt/phpki/html
118  %{__mkdir_p} root/opt/phpki/phpki-store  %{__mkdir_p} root/opt/phpki/phpki-store
119    %{__mkdir_p} root/opt/phpki/bin
120    %{__mkdir_p} root/%{_sysconfdir}/cron.weekly/
121    %{__mv} %{name}-%{version}/gen_crl.php root/opt/phpki/bin/
122  %{__mv} %{name}-%{version}/* root/opt/phpki/html/  %{__mv} %{name}-%{version}/* root/opt/phpki/html/
123    
124    
125    cat <<"HERE" > root/%{_sysconfdir}/cron.weekly/phpki_update_crl
126    #!/bin/bash
127    
128    cd /opt/phpki/bin
129    php ./gen_crl.php 2>&1 > /dev/null
130    
131    HERE
132    
133    
134  # Remove links to setup page so upgrades can be done smoothly  # Remove links to setup page so upgrades can be done smoothly
135  %{__rm} -f root/opt/phpki/html/index.php  %{__rm} -f root/opt/phpki/html/index.php
136  %{__rm} -f root/opt/phpki/html/ca/index.php  %{__rm} -f root/opt/phpki/html/ca/index.php
# Line 108  rm -f %{name}-%{version}-filelist Line 147  rm -f %{name}-%{version}-filelist
147  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
148     --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \     --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \
149     --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \     --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \
150       --file '%{_sysconfdir}/cron.weekly/phpki_update_crl' 'attr(744,root,root)' \
151     --dir  '/opt/phpki/html' 'attr(770,root,phpki)' \     --dir  '/opt/phpki/html' 'attr(770,root,phpki)' \
152     --dir  '/opt/phpki/html/ca' 'attr(770,root,phpki)' \     --dir  '/opt/phpki/html/ca' 'attr(770,root,phpki)' \
153     --dir  '/opt/phpki/phpki-store' 'attr(750,phpki,phpki)' \     --dir  '/opt/phpki/phpki-store' 'attr(750,phpki,phpki)' \
# Line 137  if [ $1 == 1 ]; then Line 177  if [ $1 == 1 ]; then
177  header(\"Location: ./../index.php\");  header(\"Location: ./../index.php\");
178  ?>  ?>
179  " > /opt/phpki/html/ca/index.php  " > /opt/phpki/html/ca/index.php
   
180  fi  fi
181    
182  %postun  %postun
183    # Remove the links to index.php after uninstall
184    if [ $1 == 0 ]; then
185        %{__rm} -f /opt/phpki/html/index.php
186        %{__rm} -f /opt/phpki/html/setup.php
187        %{__rm} -f /opt/phpki/html/ca/index.php
188    fi
189    
190    
191  true  true


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed