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

Annotation of /rpms/phpki/contribs7/phpki.spec

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


Revision 1.9 - (hide annotations) (download)
Wed Jun 29 11:11:58 2011 UTC (12 years, 10 months ago) by vip-ire
Branch: MAIN
CVS Tags: phpki-0_82-14_el4_sme
Changes since 1.8: +8 -2 lines
* Wed Jun 29 2011 Daniel B. <daniel@firewall-services.com> 0.82-14.sme
- Don't check issuer (everyone allowed to access /ca can manage
  all the certificates, access to /ca is controlled by apache)

1 vip-ire 1.9 # $Id: phpki.spec,v 1.8 2011/03/15 07:27:10 vip-ire Exp $
2 slords 1.2 # Authority: vip-ire
3     # Name: Daniel Berteaud
4    
5 slords 1.1 %define name phpki
6     %define version 0.82
7 vip-ire 1.9 %define release 14
8 slords 1.1 Summary: Phpki is a simple certificate management suite
9     Name: %{name}
10     Version: %{version}
11     Release: %{release}%{?dist}
12     License: GNU GPL version 2
13     URL: http://sourceforge.net/projects/phpki/
14     Group: SMEserver/addon
15     #wget http://www.fooweb.com/downloads/foo-3.6.431.tar.gz
16     Source: phpki-0.82.tar.gz
17     Patch1: phpki-0.82-email_signing.patch
18     Patch2: phpki-0.82-sme_openvpn_bridge_compat.patch
19     Patch3: phpki-0.82-sme_admin_user.patch
20     Patch4: phpki-0.82-openvpn_static_key.patch
21     Patch5: phpki-0.82-expirey.patch
22     Patch6: phpki-0.82-dl_display_ta_dh.patch
23     Patch7: phpki-0.82-dl_crl_in_pem.patch
24     Patch8: phpki-0.82-remove_email_from_upload_file_name.patch
25     Patch9: phpki-0.82-display_root_pem.patch
26     Patch10: phpki-0.82-disable_download_after_create.patch
27     Patch11: phpki-0.82-remove_security_warning.patch
28     Patch12: phpki-0.82-remove_email_from_upload_file_name.patch2
29 vip-ire 1.5 Patch13: phpki-0.82-ca_help.patch
30 vip-ire 1.6 Patch14: phpki-0.82-empty_pass_php_5.2.patch
31 vip-ire 1.7 Patch15: phpki-0.82-update_crl_via_cron.patch
32 vip-ire 1.8 Patch16: phpki-0.82-use_sha1.patch
33 vip-ire 1.9 Patch17: phpki-0.82-ca_admin_users.patch
34 slords 1.1
35     BuildArch: noarch
36     BuildRoot: /var/tmp/%{name}-%{version}
37 vip-ire 1.3
38     BuildRequires: e-smith-devtools
39    
40 slords 1.1 Requires: e-smith-release >= 7.0
41     Requires: php
42     Requires: openssl
43     Requires: openvpn
44     AutoReqProv: no
45    
46     %description
47     http://sourceforge.net/projects/phpki/
48     PHPki is an Open Source Web application for managing a multi-agency PKI for HIPAA compliance.
49     With it, you may create and centrally manage X.509 certificates for use with S/MIME enabled
50     e-mail clients, SSL servers, and VPN applications.
51    
52     %changelog
53 vip-ire 1.9 * Wed Jun 29 2011 Daniel B. <daniel@firewall-services.com> 0.82-14.sme
54     - Don't check issuer (everyone allowed to access /ca can manage
55     all the certificates, access to /ca is controlled by apache)
56    
57 vip-ire 1.8 * Tue Mar 15 2011 Daniel B. <daniel@firewall-services.com> 0.82-13.sme
58     - Replace md5 with sha1 for signing
59    
60 vip-ire 1.7 * Fri May 28 2010 Daniel B. <daniel@firewall-services.com> [0.82-12]
61     - Weekly update the CRL via cron so MS Crypto API will be happy
62    
63 vip-ire 1.6 * Thu Mar 18 2010 Daniel B. <daniel@firewall-services.com> [0.82-11]
64     - Fixe empty password with PHP 5.2 (SME 8b5)
65    
66 vip-ire 1.5 * Wed Aug 26 2009 Daniel B. <daniel@firewall-services.com> [0.82-10]
67     - Fixe links for CA help page
68    
69 vip-ire 1.4 * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.82-9]
70     - Remove links after uninstall so you can easily re-install the contrib
71     later [SME: 5091]
72    
73 vip-ire 1.3 * Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [0.82-8]
74     - Add e-smith-devtools as a dependencie
75    
76 slords 1.1 * Tue Jan 20 2009 Daniel B. <daniel@firewall-services.com> [0.82-7]
77     - Don't replace config file on upgrades
78    
79     * Wed Jan 07 2009 Daniel B. <daniel@firewall-services.com> [0.82-6]
80     - Remove the email address from the file name during upload (in search page)
81     - Remove secure.sh script
82    
83     * Tue Dec 16 2008 Daniel B. <daniel@firewall-services.com> [0.82-5]
84     - Link index.php to setup-presetup.php
85    
86     * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.82-4]
87     - Changes so certificates imported from openvpn-bridge are recognized
88     - Configure default admin user to 'admin'
89     - Create a static key for OpenVPN TLS auth (requires openvpn)
90     - Add expirey values (3 Months, 6 Months)
91     - Display or download takey.pem and dhparam1024.pem from
92     the certificate management menue
93     - Display the Root certificate in PEM format
94     - Possibility to download the CRL in PEM format
95     - Remove the email address from the file name during upload
96     - Disable download of certificate after creating a new one
97     - Remove security warning after setup
98    
99     * Wed Dec 05 2008 Daniel B. <daniel@firewall-services.com> [0.82-3]
100     - Correct extension name for email_signing certificates
101     - Remove links, and recreate them in the %post section so upgrade can be done smoothly
102    
103     * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.82-0]
104     - initial release
105     - builds from unchanged .tar.gz
106    
107     %prep
108     %setup -c -n %{name}
109     %patch1 -p1
110     %patch2 -p1
111     %patch3 -p1
112     %patch4 -p1
113     %patch5 -p1
114     %patch6 -p1
115     %patch7 -p1
116     %patch8 -p1
117     %patch9 -p1
118     %patch10 -p1
119     %patch11 -p1
120     %patch12 -p1
121 vip-ire 1.5 %patch13 -p1
122 vip-ire 1.6 %patch14 -p1
123 vip-ire 1.7 %patch15 -p1
124 vip-ire 1.8 %patch16 -p1
125 vip-ire 1.9 %patch17 -p1
126 slords 1.1
127     %build
128     %{__mkdir_p} root/opt/phpki/html
129     %{__mkdir_p} root/opt/phpki/phpki-store
130 vip-ire 1.7 %{__mkdir_p} root/opt/phpki/bin
131     %{__mkdir_p} root/%{_sysconfdir}/cron.weekly/
132     %{__mv} %{name}-%{version}/gen_crl.php root/opt/phpki/bin/
133 slords 1.1 %{__mv} %{name}-%{version}/* root/opt/phpki/html/
134    
135 vip-ire 1.7
136     cat <<"HERE" > root/%{_sysconfdir}/cron.weekly/phpki_update_crl
137     #!/bin/bash
138    
139     cd /opt/phpki/bin
140     php ./gen_crl.php 2>&1 > /dev/null
141    
142     HERE
143    
144    
145 slords 1.1 # Remove links to setup page so upgrades can be done smoothly
146     %{__rm} -f root/opt/phpki/html/index.php
147     %{__rm} -f root/opt/phpki/html/ca/index.php
148     %{__rm} -f root/opt/phpki/html/setup.php
149    
150     # This script shouldn't be here
151     %{__rm} -f root/opt/phpki/html/secure.sh
152    
153    
154     %install
155     rm -rf $RPM_BUILD_ROOT
156     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
157     rm -f %{name}-%{version}-filelist
158     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
159     --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \
160     --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \
161 vip-ire 1.7 --file '%{_sysconfdir}/cron.weekly/phpki_update_crl' 'attr(744,root,root)' \
162 slords 1.1 --dir '/opt/phpki/html' 'attr(770,root,phpki)' \
163     --dir '/opt/phpki/html/ca' 'attr(770,root,phpki)' \
164     --dir '/opt/phpki/phpki-store' 'attr(750,phpki,phpki)' \
165     > %{name}-%{version}-filelist
166    
167     %files -f %{name}-%{version}-filelist
168     %defattr(-,root,root)
169    
170     %clean
171     cd ..
172     rm -rf $RPM_BUILD_ROOT
173    
174     %pre
175     if ! /usr/bin/id phpki &>/dev/null; then
176     /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \
177     %logmsg "Unexpected error adding user \"phpki\". Abort installation."
178     fi
179    
180     %preun
181    
182     %post
183     # First install, point index.php to setup.php
184     if [ $1 == 1 ]; then
185     %{__ln_s} /opt/phpki/html/setup.php-presetup /opt/phpki/html/index.php
186     %{__ln_s} /opt/phpki/html/setup.php-presetup /opt/phpki/html/setup.php
187     echo "<?php
188     header(\"Location: ./../index.php\");
189     ?>
190     " > /opt/phpki/html/ca/index.php
191 vip-ire 1.4 fi
192 slords 1.1
193 vip-ire 1.4 %postun
194     # Remove the links to index.php after uninstall
195     if [ $1 == 0 ]; then
196     %{__rm} -f /opt/phpki/html/index.php
197     %{__rm} -f /opt/phpki/html/setup.php
198     %{__rm} -f /opt/phpki/html/ca/index.php
199 slords 1.1 fi
200    
201    
202     true

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