/[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.6 by vip-ire, Thu Mar 18 15:29:18 2010 UTC Revision 1.8 by vip-ire, Tue Mar 15 07:27:10 2011 UTC
# Line 1  Line 1 
1  # $Id: phpki.spec,v 1.5 2009/08/26 17:49:59 vip-ire Exp $  # $Id: phpki.spec,v 1.7 2010/05/28 09:49:57 vip-ire Exp $
2  # Authority: vip-ire  # Authority: vip-ire
3  # Name: Daniel Berteaud  # Name: Daniel Berteaud
4    
5  %define         name phpki  %define         name phpki
6  %define         version 0.82  %define         version 0.82
7  %define         release 11  %define         release 13
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}
# Line 28  Patch11:       phpki-0.82-remove_security_warn Line 28  Patch11:       phpki-0.82-remove_security_warn
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  Patch13:        phpki-0.82-ca_help.patch
30  Patch14:        phpki-0.82-empty_pass_php_5.2.patch  Patch14:        phpki-0.82-empty_pass_php_5.2.patch
31    Patch15:        phpki-0.82-update_crl_via_cron.patch
32    Patch16:        phpki-0.82-use_sha1.patch
33    
34  BuildArch:      noarch  BuildArch:      noarch
35  BuildRoot:      /var/tmp/%{name}-%{version}  BuildRoot:      /var/tmp/%{name}-%{version}
# Line 47  With it, you may create and centrally ma Line 49  With it, you may create and centrally ma
49  e-mail clients, SSL servers, and VPN applications.  e-mail clients, SSL servers, and VPN applications.
50    
51  %changelog  %changelog
52    * Tue Mar 15 2011 Daniel B. <daniel@firewall-services.com> 0.82-13.sme
53    - Replace md5 with sha1 for signing
54    
55    * Fri May 28 2010 Daniel B. <daniel@firewall-services.com> [0.82-12]
56    - Weekly update the CRL via cron so MS Crypto API will be happy
57    
58  * Thu Mar 18 2010 Daniel B. <daniel@firewall-services.com> [0.82-11]  * Thu Mar 18 2010 Daniel B. <daniel@firewall-services.com> [0.82-11]
59  - Fixe empty password with PHP 5.2 (SME 8b5)  - Fixe empty password with PHP 5.2 (SME 8b5)
60    
# Line 107  e-mail clients, SSL servers, and VPN app Line 115  e-mail clients, SSL servers, and VPN app
115  %patch12 -p1  %patch12 -p1
116  %patch13 -p1  %patch13 -p1
117  %patch14 -p1  %patch14 -p1
118    %patch15 -p1
119    %patch16 -p1
120    
121  %build  %build
 #drop in an unchanged .tgz, if required rename directory here, eg remove version number.  
122  %{__mkdir_p} root/opt/phpki/html  %{__mkdir_p} root/opt/phpki/html
123  %{__mkdir_p} root/opt/phpki/phpki-store  %{__mkdir_p} root/opt/phpki/phpki-store
124    %{__mkdir_p} root/opt/phpki/bin
125    %{__mkdir_p} root/%{_sysconfdir}/cron.weekly/
126    %{__mv} %{name}-%{version}/gen_crl.php root/opt/phpki/bin/
127  %{__mv} %{name}-%{version}/* root/opt/phpki/html/  %{__mv} %{name}-%{version}/* root/opt/phpki/html/
128    
129    
130    cat <<"HERE" > root/%{_sysconfdir}/cron.weekly/phpki_update_crl
131    #!/bin/bash
132    
133    cd /opt/phpki/bin
134    php ./gen_crl.php 2>&1 > /dev/null
135    
136    HERE
137    
138    
139  # Remove links to setup page so upgrades can be done smoothly  # Remove links to setup page so upgrades can be done smoothly
140  %{__rm} -f root/opt/phpki/html/index.php  %{__rm} -f root/opt/phpki/html/index.php
141  %{__rm} -f root/opt/phpki/html/ca/index.php  %{__rm} -f root/opt/phpki/html/ca/index.php
# Line 130  rm -f %{name}-%{version}-filelist Line 152  rm -f %{name}-%{version}-filelist
152  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
153     --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \     --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \
154     --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \     --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \
155       --file '%{_sysconfdir}/cron.weekly/phpki_update_crl' 'attr(744,root,root)' \
156     --dir  '/opt/phpki/html' 'attr(770,root,phpki)' \     --dir  '/opt/phpki/html' 'attr(770,root,phpki)' \
157     --dir  '/opt/phpki/html/ca' 'attr(770,root,phpki)' \     --dir  '/opt/phpki/html/ca' 'attr(770,root,phpki)' \
158     --dir  '/opt/phpki/phpki-store' 'attr(750,phpki,phpki)' \     --dir  '/opt/phpki/phpki-store' 'attr(750,phpki,phpki)' \


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