/[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.4 by vip-ire, Mon Mar 23 12:35:20 2009 UTC Revision 1.11 by vip-ire, Mon Dec 12 08:54:30 2011 UTC
# Line 1  Line 1 
1  # $Id: phpki.spec,v 1.3 2009/03/03 18:36:43 vip-ire Exp $  # $Id: phpki.spec,v 1.10 2011/10/26 10:15:15 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 9  %define         release 16
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 26  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    Patch16:        phpki-0.82-use_sha1.patch
33    Patch17:        phpki-0.82-ca_admin_users.patch
34    
35  BuildArch:      noarch  BuildArch:      noarch
36  BuildRoot:      /var/tmp/%{name}-%{version}  BuildRoot:      /var/tmp/%{name}-%{version}
# Line 45  With it, you may create and centrally ma Line 50  With it, you may create and centrally ma
50  e-mail clients, SSL servers, and VPN applications.  e-mail clients, SSL servers, and VPN applications.
51    
52  %changelog  %changelog
53    * Mon Dec 12 2011 Daniel B. <daniel@firewall-services.com> 0.82-16.sme
54    - Remove php-posix dependency (not available, nor needed on SME 7.x) [SME: 6805]
55    
56    * Wed Oct 26 2011 Daniel B. <daniel@firewall-services.com> 0.82-15.sme
57    - Requires php-posix
58    
59    * Wed Jun 29 2011 Daniel B. <daniel@firewall-services.com> 0.82-14.sme
60    - Don't check issuer (everyone allowed to access /ca can manage
61      all the certificates, access to /ca is controlled by apache)
62    
63    * Tue Mar 15 2011 Daniel B. <daniel@firewall-services.com> 0.82-13.sme
64    - Replace md5 with sha1 for signing
65    
66    * Fri May 28 2010 Daniel B. <daniel@firewall-services.com> [0.82-12]
67    - Weekly update the CRL via cron so MS Crypto API will be happy
68    
69    * Thu Mar 18 2010 Daniel B. <daniel@firewall-services.com> [0.82-11]
70    - Fixe empty password with PHP 5.2 (SME 8b5)
71    
72    * Wed Aug 26 2009 Daniel B. <daniel@firewall-services.com> [0.82-10]
73    - Fixe links for CA help page
74    
75  * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.82-9]  * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.82-9]
76  - Remove links after uninstall so you can easily re-install the contrib  - Remove links after uninstall so you can easily re-install the contrib
77    later [SME: 5091]    later [SME: 5091]
# Line 97  e-mail clients, SSL servers, and VPN app Line 124  e-mail clients, SSL servers, and VPN app
124  %patch10 -p1  %patch10 -p1
125  %patch11 -p1  %patch11 -p1
126  %patch12 -p1  %patch12 -p1
127    %patch13 -p1
128    %patch14 -p1
129    %patch15 -p1
130    %patch16 -p1
131    %patch17 -p1
132    
133  %build  %build
 #drop in an unchanged .tgz, if required rename directory here, eg remove version number.  
134  %{__mkdir_p} root/opt/phpki/html  %{__mkdir_p} root/opt/phpki/html
135  %{__mkdir_p} root/opt/phpki/phpki-store  %{__mkdir_p} root/opt/phpki/phpki-store
136    %{__mkdir_p} root/opt/phpki/bin
137    %{__mkdir_p} root/%{_sysconfdir}/cron.weekly/
138    %{__mv} %{name}-%{version}/gen_crl.php root/opt/phpki/bin/
139  %{__mv} %{name}-%{version}/* root/opt/phpki/html/  %{__mv} %{name}-%{version}/* root/opt/phpki/html/
140    
141    
142    cat <<"HERE" > root/%{_sysconfdir}/cron.weekly/phpki_update_crl
143    #!/bin/bash
144    
145    cd /opt/phpki/bin
146    php ./gen_crl.php 2>&1 > /dev/null
147    
148    HERE
149    
150    
151  # Remove links to setup page so upgrades can be done smoothly  # Remove links to setup page so upgrades can be done smoothly
152  %{__rm} -f root/opt/phpki/html/index.php  %{__rm} -f root/opt/phpki/html/index.php
153  %{__rm} -f root/opt/phpki/html/ca/index.php  %{__rm} -f root/opt/phpki/html/ca/index.php
# Line 120  rm -f %{name}-%{version}-filelist Line 164  rm -f %{name}-%{version}-filelist
164  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
165     --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \     --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \
166     --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \     --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \
167       --file '%{_sysconfdir}/cron.weekly/phpki_update_crl' 'attr(744,root,root)' \
168     --dir  '/opt/phpki/html' 'attr(770,root,phpki)' \     --dir  '/opt/phpki/html' 'attr(770,root,phpki)' \
169     --dir  '/opt/phpki/html/ca' 'attr(770,root,phpki)' \     --dir  '/opt/phpki/html/ca' 'attr(770,root,phpki)' \
170     --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