1 |
# $Id: smeserver-phpki.spec,v 1.6 2017/05/03 21:08:27 unnilennium Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Name: smeserver-phpki-ng |
6 |
Version: 0.3 |
7 |
Release: 6%{?dist} |
8 |
Summary: php integration into SME server |
9 |
|
10 |
Group: Applications/System |
11 |
License: GPL |
12 |
URL: http://phpki.sourceforge.net/ |
13 |
Source: %{name}-%{version}.tar.xz |
14 |
|
15 |
#Patch0: smeserver-phpki-0.2-fix_redirect_with_user-manager_and_sso.patch |
16 |
#Patch1: smeserver-phpki-0.2.bz10267.updatetktauth.patch |
17 |
|
18 |
Patch0: smeserver-phpki-ng-0.3-Add-extra-Loadmodules-to-httpd-conf.patch |
19 |
Patch1: smeserver-phpki-ng-0.3-Add-in-systemd-startup.patch |
20 |
Patch2: smeserver-phpki-ng-0.3-php73pool.patch |
21 |
Patch3: smeserver-phpki-ng-0.3-bz12021-backup.patch |
22 |
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
24 |
BuildArch: noarch |
25 |
|
26 |
BuildRequires: e-smith-devtools |
27 |
|
28 |
Requires: mod_auth_tkt |
29 |
Requires: e-smith-base |
30 |
Requires: phpki-ng |
31 |
Requires: php-process |
32 |
Requires: e-smith-manager >= 2.6.0-22 |
33 |
Obsoletes: smeserver-phpki |
34 |
|
35 |
%description |
36 |
PHPki is an Open Source Web application for managing a multi-agency PKI for HIPAA compliance. |
37 |
With it, you may create and centrally manage X.509 certificates for use with S/MIME enabled |
38 |
e-mail clients, SSL servers, and VPN applications. |
39 |
This package contains specific configuration for SME server |
40 |
|
41 |
|
42 |
%changelog |
43 |
* Thu Jul 21 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-7.sme |
44 |
- add to core backup [SME: 12021] |
45 |
|
46 |
* Thu Aug 05 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-6.sme |
47 |
- remove modules from patch file [SME: 11402] |
48 |
|
49 |
* Sun Mar 07 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-5.sme |
50 |
- modify dirs in spec file |
51 |
|
52 |
* Thu Feb 25 2021 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-4.sme |
53 |
- configure php73 pool [SME: 11207] |
54 |
tidy httpd.conf file |
55 |
reuse phpki user and group |
56 |
|
57 |
* Sat Feb 13 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme |
58 |
- Set execution bit on /opt/phpki/html/ca in spec file[SME: 11207] |
59 |
|
60 |
* Tue Feb 09 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme |
61 |
- Add-in-systemd-startup [SME: 11207] |
62 |
|
63 |
* Thu Nov 26 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme |
64 |
- Add in Loadmodules needed to pki-conf/httpd.conf [SME: 11207] |
65 |
|
66 |
* Fri Apr 03 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme |
67 |
- New release for phpki-ng-0.84 based on phpki-0.83 |
68 |
|
69 |
* Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.2-3.sme |
70 |
- update TKT auth parameter for SME 9.2 update [SME: 10267] |
71 |
|
72 |
* Mon Nov 18 2013 Daniel B. <daniel@firewall-services.com> - 0.2-2.sme |
73 |
- Fix a redirect issue with user-manager and LemonLDAP::NG as SSO |
74 |
|
75 |
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2-1.sme |
76 |
- Rebuild for SME9 |
77 |
- Do not disable httpd-pki service on uninstall |
78 |
|
79 |
* Fri May 24 2013 JP Pialasse <tests@pialasse.com> - 0.1-6.sme |
80 |
- added php-process as dependency [SME: 7439] |
81 |
|
82 |
* Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme |
83 |
- Change session path [SME: 6661] |
84 |
|
85 |
* Wed Jul 20 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme |
86 |
- Protect by location (so we can set another location protected by LemonLDAP::NG) |
87 |
|
88 |
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
89 |
- Fix logrotate issue (send a sigusr1 signal to httpd-pki) |
90 |
|
91 |
* Mon Dec 15 2008 Daniel B. <daniel@firewall-services.com> [0.1-3] |
92 |
- Move server-manager panel to "security" section |
93 |
|
94 |
* Wed Dec 10 2008 Daniel B. <daniel@firewall-services.com> [0.1-2] |
95 |
- expand-templates in bootstrap-console-save instead of post-upgrade |
96 |
- Disable authentication for the public part (so CRL can be updated automatically) |
97 |
- Change the name of the menue in server-manager to certificate Management |
98 |
|
99 |
* Tue Dec 02 2008 Daniel B. <daniel@firewall-services.com> [0.1-1] |
100 |
- Restrict access to /phpki/ca for admin, ask for a valid user for /phpki |
101 |
- expand-templates on signal events conf-userpanels and domain-modify |
102 |
|
103 |
* Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-0] |
104 |
- initial release |
105 |
|
106 |
|
107 |
%prep |
108 |
%setup -q -n %{name}-%{version} |
109 |
%patch0 -p1 |
110 |
%patch1 -p1 |
111 |
%patch2 -p1 |
112 |
mkdir -p root/var/lib/php/phpki/{tmp,session,opcache} |
113 |
rm -rf root/var/lib/php/pki-session |
114 |
mkdir -p root/var/log/phpki |
115 |
%patch3 -p1 |
116 |
|
117 |
|
118 |
%build |
119 |
perl createlinks |
120 |
|
121 |
%install |
122 |
|
123 |
%{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-pki/supervise |
124 |
%{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-pki/log/supervise |
125 |
%{__mkdir_p} $RPM_BUILD_ROOT/var/log/httpd-pki |
126 |
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/pki-session |
127 |
|
128 |
|
129 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
130 |
|
131 |
chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/httpd-pki |
132 |
|
133 |
/bin/rm -f %{name}-%{version}-filelist |
134 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
135 |
--dir /var/service/httpd-pki 'attr(01755,root,root)' \ |
136 |
--file /var/service/httpd-pki/run 'attr(0700,root,root)' \ |
137 |
--dir /var/service/httpd-pki/supervise 'attr(0700,root,root)' \ |
138 |
--dir /var/service/httpd-pki/log 'attr(0755,root,root)' \ |
139 |
--file /var/service/httpd-pki/log/run 'attr(0755,root,root)' \ |
140 |
--dir /var/service/httpd-pki/log/supervise 'attr(0700,root,root)' \ |
141 |
--dir /var/log/httpd-pki 'attr(0750,smelog,smelog)' \ |
142 |
--dir /var/lib/php/phpki 'attr(0770,root,phpki)' \ |
143 |
--dir /var/lib/php/phpki/session 'attr(0770,root,phpki)' \ |
144 |
--dir /var/lib/php/phpki/opcache 'attr(0770,root,phpki)' \ |
145 |
--dir /var/lib/php/phpki/tmp 'attr(0770,root,phpki)' \ |
146 |
--dir /var/log/phpki/tmp 'attr(0770,root,phpki)' \ |
147 |
> %{name}-%{version}-filelist |
148 |
|
149 |
%post |
150 |
chmod +x /opt/phpki/html/ |
151 |
chmod +x /opt/phpki/html/ca |
152 |
|
153 |
%clean |
154 |
rm -rf $RPM_BUILD_ROOT |
155 |
|
156 |
%files -f %{name}-%{version}-filelist |
157 |
%defattr(-,root,root) |
158 |
|
159 |
%pre |
160 |
#/sbin/e-smith/create-system-user phpki 455 'Phpki User' /opt/phpki /bin/false >& /dev/null || : |
161 |
|
162 |
%preun |
163 |
|
164 |
|