2024-09-07 12:50:40 +02:00
|
|
|
# $Id: smeserver-phpki.spec,v 1.6 2017/05/03 21:08:27 unnilennium Exp $
|
|
|
|
# Authority: vip-ire
|
|
|
|
# Name: Daniel Berteaud
|
|
|
|
|
|
|
|
Name: smeserver-phpki-ng
|
|
|
|
Version: 0.3
|
2024-09-08 09:54:30 +02:00
|
|
|
Release: 24%{?dist}
|
2024-09-07 12:50:40 +02:00
|
|
|
Summary: php integration into SME server
|
|
|
|
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPL
|
|
|
|
URL: http://phpki.sourceforge.net/
|
|
|
|
Source: %{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
#Patch0: smeserver-phpki-0.2-fix_redirect_with_user-manager_and_sso.patch
|
|
|
|
#Patch1: smeserver-phpki-0.2.bz10267.updatetktauth.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2024-09-08 09:54:30 +02:00
|
|
|
BuildRequires: smeserver-devtools
|
2024-09-07 12:50:40 +02:00
|
|
|
|
|
|
|
Requires: mod_auth_tkt
|
|
|
|
Requires: openvpn
|
2024-09-08 09:54:30 +02:00
|
|
|
Requires: smeserver-base
|
2024-09-07 12:50:40 +02:00
|
|
|
Requires: phpki-ng >= 0.84-14
|
|
|
|
Requires: php-process
|
2024-09-08 09:54:30 +02:00
|
|
|
Requires: smeserver-manager >= 2.6.0-22
|
|
|
|
Requires: smeserver-apache >= 2.6.0-19
|
2024-09-07 12:50:40 +02:00
|
|
|
Requires: smeserver-php >= 3.0.0-44
|
|
|
|
Provides: smeserver-phpki
|
|
|
|
#Obsoletes: smeserver-phpki
|
|
|
|
|
|
|
|
%description
|
|
|
|
PHPki is an Open Source Web application for managing a multi-agency PKI for HIPAA compliance.
|
|
|
|
With it, you may create and centrally manage X.509 certificates for use with S/MIME enabled
|
|
|
|
e-mail clients, SSL servers, and VPN applications.
|
|
|
|
This package contains specific configuration for SME server
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-09-08 09:54:30 +02:00
|
|
|
* Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley <trevor@batley.id.au> 0.3-24.sme
|
|
|
|
- Fix e-smith references in smeserver-phpki-ng [SME: 12732]
|
|
|
|
|
2024-09-07 12:50:40 +02:00
|
|
|
* Sat Sep 07 2024 cvs2git.sh aka Brian Read <brianr@koozali.org> 0.3-23.sme
|
|
|
|
- Roll up patches and move to git repo [SME: 12338]
|
|
|
|
|
|
|
|
* Sat Sep 07 2024 BogusDateBot
|
|
|
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
|
|
|
by assuming the date is correct and changing the weekday.
|
|
|
|
|
|
|
|
* Thu May 11 2023 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-22.sme
|
|
|
|
- fix httpd needs QSD in place of ? [SME: 12354]
|
|
|
|
|
|
|
|
* Wed Dec 28 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-21.sme
|
|
|
|
- fix chop isntead of chomp for config.php [SME: 12293]
|
|
|
|
fix PATH not right for exec
|
|
|
|
|
|
|
|
* Sat Dec 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-19.sme
|
|
|
|
- small fixes for config.php and httpd
|
|
|
|
|
|
|
|
* Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-18.sme
|
|
|
|
- revert log/phpki [SME: 12266]
|
|
|
|
- phpki-ng autopopulate base info from ldap [SME: 11440]
|
|
|
|
- ensure user are seen by php-pool [SME: 12268]
|
|
|
|
- safe remote access for crl [SME: 11439]
|
|
|
|
- 17-18: applying patches
|
|
|
|
|
|
|
|
* Tue Dec 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-15.sme
|
|
|
|
- fix typo preventing httpd-pki to start 2
|
|
|
|
|
|
|
|
* Sun Nov 20 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-14.sme
|
|
|
|
- fix typo preventing httpd-pki to start
|
|
|
|
|
|
|
|
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-13.sme
|
|
|
|
- add some more needed bins which cat and egrep [SME: 11438]
|
|
|
|
|
|
|
|
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-11.sme
|
|
|
|
- fix missing takey [SME: 11438]
|
|
|
|
|
|
|
|
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-10.sme
|
|
|
|
- ease migration from smeserver-phpki smeserver-phpki-ng using Provides [SME: 12222]
|
|
|
|
- fix ownership on migration (backup/restore) [SME: 12228]
|
|
|
|
- remove /var/service/httpd-pki [SME: 12229]
|
|
|
|
- remove old logrotate [SME: 11873]
|
|
|
|
- remove /var/log/phpki and /var/log/httpd-pki [SME: 12198]
|
|
|
|
|
|
|
|
* Tue Oct 04 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-9.sme
|
|
|
|
- Fix spec file versioning
|
|
|
|
|
|
|
|
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 0.3-8.sme
|
|
|
|
- Re-build and link to latest devtools [SME: 11997]
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.3-7.sme
|
|
|
|
- add to core backup [SME: 12021]
|
|
|
|
- httpd 2.4 access syntax [SME: 12054]
|
|
|
|
|
|
|
|
* Thu Aug 05 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-6.sme
|
|
|
|
- remove modules from patch file [SME: 11402]
|
|
|
|
|
|
|
|
* Sun Mar 07 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-5.sme
|
|
|
|
- modify dirs in spec file
|
|
|
|
|
|
|
|
* Thu Feb 25 2021 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-4.sme
|
|
|
|
- configure php73 pool [SME: 11207]
|
|
|
|
tidy httpd.conf file
|
|
|
|
reuse phpki user and group
|
|
|
|
|
|
|
|
* Sat Feb 13 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme
|
|
|
|
- Set execution bit on /opt/phpki/html/ca in spec file[SME: 11207]
|
|
|
|
|
|
|
|
* Tue Feb 09 2021 Brian Read <brianr@bjsystems.co.uk> 0.3-3.sme
|
|
|
|
- Add-in-systemd-startup [SME: 11207]
|
|
|
|
|
|
|
|
* Thu Nov 26 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-2.sme
|
|
|
|
- Add in Loadmodules needed to pki-conf/httpd.conf [SME: 11207]
|
|
|
|
|
|
|
|
* Fri Apr 03 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-1.sme
|
|
|
|
- New release for phpki-ng-0.84 based on phpki-0.83
|
|
|
|
|
|
|
|
* Wed May 03 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.2-3.sme
|
|
|
|
- update TKT auth parameter for SME 9.2 update [SME: 10267]
|
|
|
|
|
|
|
|
* Mon Nov 18 2013 Daniel B. <daniel@firewall-services.com> - 0.2-2.sme
|
|
|
|
- Fix a redirect issue with user-manager and LemonLDAP::NG as SSO
|
|
|
|
|
|
|
|
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> - 0.2-1.sme
|
|
|
|
- Rebuild for SME9
|
|
|
|
- Do not disable httpd-pki service on uninstall
|
|
|
|
|
|
|
|
* Fri May 24 2013 JP Pialasse <tests@pialasse.com> - 0.1-6.sme
|
|
|
|
- added php-process as dependency [SME: 7439]
|
|
|
|
|
|
|
|
* Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme
|
|
|
|
- Change session path [SME: 6661]
|
|
|
|
|
|
|
|
* Wed Jul 20 2011 Daniel B. <daniel@firewall-services.com> - 0.1-5.sme
|
|
|
|
- Protect by location (so we can set another location protected by LemonLDAP::NG)
|
|
|
|
|
|
|
|
* Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-4]
|
|
|
|
- Fix logrotate issue (send a sigusr1 signal to httpd-pki)
|
|
|
|
|
|
|
|
* Mon Dec 15 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
|
|
|
|
- Move server-manager panel to "security" section
|
|
|
|
|
|
|
|
* Wed Dec 10 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
|
|
|
|
- expand-templates in bootstrap-console-save instead of post-upgrade
|
|
|
|
- Disable authentication for the public part (so CRL can be updated automatically)
|
|
|
|
- Change the name of the menue in server-manager to certificate Management
|
|
|
|
|
|
|
|
* Tue Dec 02 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
|
|
|
|
- Restrict access to /phpki/ca for admin, ask for a valid user for /phpki
|
|
|
|
- expand-templates on signal events conf-userpanels and domain-modify
|
|
|
|
|
|
|
|
* Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-0]
|
|
|
|
- initial release
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
mkdir -p root/var/lib/php/phpki/{tmp,session,opcache}
|
|
|
|
rm -rf root/var/lib/php/pki-session
|
|
|
|
mkdir -p root/var/log/phpki
|
|
|
|
rm -rf root/var/service/httpd-pki
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl createlinks
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/pki-session
|
|
|
|
|
|
|
|
|
|
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
|
|
|
|
|
|
|
|
chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/httpd-pki
|
|
|
|
|
|
|
|
/bin/rm -f %{name}-%{version}-filelist
|
|
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
|
|
--dir /var/lib/php/phpki 'attr(0770,root,phpki)' \
|
|
|
|
--dir /var/lib/php/phpki/session 'attr(0770,root,phpki)' \
|
|
|
|
--dir /var/lib/php/phpki/opcache 'attr(0770,root,phpki)' \
|
|
|
|
--dir /var/lib/php/phpki/tmp 'attr(0770,root,phpki)' \
|
|
|
|
--dir /var/log/phpki 'attr(0770,phpki,phpki)' \
|
|
|
|
> %{name}-%{version}-filelist
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}-%{version}-filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%pre
|
|
|
|
#/sbin/e-smith/create-system-user phpki 455 'Phpki User' /opt/phpki /bin/false >& /dev/null || :
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|