# $Id: smeserver-phpki.spec,v 1.6 2017/05/03 21:08:27 unnilennium Exp $ # Authority: vip-ire # Name: Daniel Berteaud Name: smeserver-phpki Version: 0.2 Release: 3%{?dist} 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 BuildRequires: e-smith-devtools Requires: mod_auth_tkt Requires: e-smith-base Requires: phpki Requires: php-process Requires: e-smith-manager >= 2.6.0-22 %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 * Wed May 03 2017 Jean-Philipe Pialasse 0.2-3.sme - update TKT auth parameter for SME 9.2 update [SME: 10267] * Mon Nov 18 2013 Daniel B. - 0.2-2.sme - Fix a redirect issue with user-manager and LemonLDAP::NG as SSO * Mon Nov 11 2013 Daniel B. - 0.2-1.sme - Rebuild for SME9 - Do not disable httpd-pki service on uninstall * Fri May 24 2013 JP Pialasse - 0.1-6.sme - added php-process as dependency [SME: 7439] * Thu Oct 13 2011 Daniel B. - 0.1-5.sme - Change session path [SME: 6661] * Wed Jul 20 2011 Daniel B. - 0.1-5.sme - Protect by location (so we can set another location protected by LemonLDAP::NG) * Mon Feb 23 2009 Daniel B. [0.1-4] - Fix logrotate issue (send a sigusr1 signal to httpd-pki) * Mon Dec 15 2008 Daniel B. [0.1-3] - Move server-manager panel to "security" section * Wed Dec 10 2008 Daniel B. [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. [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. [0.1-0] - initial release %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %build perl createlinks %install %{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-pki/supervise %{__mkdir_p} $RPM_BUILD_ROOT/var/service/httpd-pki/log/supervise %{__mkdir_p} $RPM_BUILD_ROOT/var/log/httpd-pki %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/pki-session (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /bin/rm -f %{name}-%{version}-filelist /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ --dir /var/service/httpd-pki 'attr(01755,root,root)' \ --file /var/service/httpd-pki/run 'attr(0700,root,root)' \ --dir /var/service/httpd-pki/supervise 'attr(0700,root,root)' \ --dir /var/service/httpd-pki/log 'attr(0755,root,root)' \ --file /var/service/httpd-pki/log/run 'attr(0755,root,root)' \ --dir /var/service/httpd-pki/log/supervise 'attr(0700,root,root)' \ --dir /var/log/httpd-pki 'attr(0750,smelog,smelog)' \ --dir /var/lib/php/pki-session 'attr(0770,root,phpki)' \ > %{name}-%{version}-filelist %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