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

Contents of /rpms/phpki/contribs7/phpki.spec

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


Revision 1.5 - (show annotations) (download)
Wed Aug 26 17:49:59 2009 UTC (15 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: phpki-0_82-10_el4_sme
Changes since 1.4: +7 -2 lines
Fixe CA help link

1 # $Id: phpki.spec,v 1.4 2009/03/23 12:35:20 vip-ire Exp $
2 # Authority: vip-ire
3 # Name: Daniel Berteaud
4
5 %define name phpki
6 %define version 0.82
7 %define release 10
8 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 Patch13: phpki-0.82-ca_help.patch
30
31 BuildArch: noarch
32 BuildRoot: /var/tmp/%{name}-%{version}
33
34 BuildRequires: e-smith-devtools
35
36 Requires: e-smith-release >= 7.0
37 Requires: php
38 Requires: openssl
39 Requires: openvpn
40 AutoReqProv: no
41
42 %description
43 http://sourceforge.net/projects/phpki/
44 PHPki is an Open Source Web application for managing a multi-agency PKI for HIPAA compliance.
45 With it, you may create and centrally manage X.509 certificates for use with S/MIME enabled
46 e-mail clients, SSL servers, and VPN applications.
47
48 %changelog
49 * Wed Aug 26 2009 Daniel B. <daniel@firewall-services.com> [0.82-10]
50 - Fixe links for CA help page
51
52 * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.82-9]
53 - Remove links after uninstall so you can easily re-install the contrib
54 later [SME: 5091]
55
56 * Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [0.82-8]
57 - Add e-smith-devtools as a dependencie
58
59 * Tue Jan 20 2009 Daniel B. <daniel@firewall-services.com> [0.82-7]
60 - Don't replace config file on upgrades
61
62 * Wed Jan 07 2009 Daniel B. <daniel@firewall-services.com> [0.82-6]
63 - Remove the email address from the file name during upload (in search page)
64 - Remove secure.sh script
65
66 * Tue Dec 16 2008 Daniel B. <daniel@firewall-services.com> [0.82-5]
67 - Link index.php to setup-presetup.php
68
69 * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.82-4]
70 - Changes so certificates imported from openvpn-bridge are recognized
71 - Configure default admin user to 'admin'
72 - Create a static key for OpenVPN TLS auth (requires openvpn)
73 - Add expirey values (3 Months, 6 Months)
74 - Display or download takey.pem and dhparam1024.pem from
75 the certificate management menue
76 - Display the Root certificate in PEM format
77 - Possibility to download the CRL in PEM format
78 - Remove the email address from the file name during upload
79 - Disable download of certificate after creating a new one
80 - Remove security warning after setup
81
82 * Wed Dec 05 2008 Daniel B. <daniel@firewall-services.com> [0.82-3]
83 - Correct extension name for email_signing certificates
84 - Remove links, and recreate them in the %post section so upgrade can be done smoothly
85
86 * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.82-0]
87 - initial release
88 - builds from unchanged .tar.gz
89
90 %prep
91 %setup -c -n %{name}
92 %patch1 -p1
93 %patch2 -p1
94 %patch3 -p1
95 %patch4 -p1
96 %patch5 -p1
97 %patch6 -p1
98 %patch7 -p1
99 %patch8 -p1
100 %patch9 -p1
101 %patch10 -p1
102 %patch11 -p1
103 %patch12 -p1
104 %patch13 -p1
105
106 %build
107 #drop in an unchanged .tgz, if required rename directory here, eg remove version number.
108 %{__mkdir_p} root/opt/phpki/html
109 %{__mkdir_p} root/opt/phpki/phpki-store
110 %{__mv} %{name}-%{version}/* root/opt/phpki/html/
111
112 # Remove links to setup page so upgrades can be done smoothly
113 %{__rm} -f root/opt/phpki/html/index.php
114 %{__rm} -f root/opt/phpki/html/ca/index.php
115 %{__rm} -f root/opt/phpki/html/setup.php
116
117 # This script shouldn't be here
118 %{__rm} -f root/opt/phpki/html/secure.sh
119
120
121 %install
122 rm -rf $RPM_BUILD_ROOT
123 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
124 rm -f %{name}-%{version}-filelist
125 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
126 --file '/opt/phpki/html/config.php' 'attr(660,root,phpki) %config(noreplace)' \
127 --file '/opt/phpki/html/openssl.cnf' 'attr(660,root,phpki) %config(noreplace)' \
128 --dir '/opt/phpki/html' 'attr(770,root,phpki)' \
129 --dir '/opt/phpki/html/ca' 'attr(770,root,phpki)' \
130 --dir '/opt/phpki/phpki-store' 'attr(750,phpki,phpki)' \
131 > %{name}-%{version}-filelist
132
133 %files -f %{name}-%{version}-filelist
134 %defattr(-,root,root)
135
136 %clean
137 cd ..
138 rm -rf $RPM_BUILD_ROOT
139
140 %pre
141 if ! /usr/bin/id phpki &>/dev/null; then
142 /usr/sbin/useradd -c 'Phpki User' -s /sbin/nologin -r -d /opt/phpki/phpki-store phpki &>/dev/null || \
143 %logmsg "Unexpected error adding user \"phpki\". Abort installation."
144 fi
145
146 %preun
147
148 %post
149 # First install, point index.php to setup.php
150 if [ $1 == 1 ]; then
151 %{__ln_s} /opt/phpki/html/setup.php-presetup /opt/phpki/html/index.php
152 %{__ln_s} /opt/phpki/html/setup.php-presetup /opt/phpki/html/setup.php
153 echo "<?php
154 header(\"Location: ./../index.php\");
155 ?>
156 " > /opt/phpki/html/ca/index.php
157 fi
158
159 %postun
160 # Remove the links to index.php after uninstall
161 if [ $1 == 0 ]; then
162 %{__rm} -f /opt/phpki/html/index.php
163 %{__rm} -f /opt/phpki/html/setup.php
164 %{__rm} -f /opt/phpki/html/ca/index.php
165 fi
166
167
168 true

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