4 |
|
|
5 |
%define name phpki |
%define name phpki |
6 |
%define version 0.82 |
%define version 0.82 |
7 |
%define release 11 |
%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} |
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 |
|
|
33 |
BuildArch: noarch |
BuildArch: noarch |
34 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
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] |
* Thu Mar 18 2010 Daniel B. <daniel@firewall-services.com> [0.82-11] |
55 |
- Fixe empty password with PHP 5.2 (SME 8b5) |
- Fixe empty password with PHP 5.2 (SME 8b5) |
56 |
|
|
111 |
%patch12 -p1 |
%patch12 -p1 |
112 |
%patch13 -p1 |
%patch13 -p1 |
113 |
%patch14 -p1 |
%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 |
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)' \ |