SimpleSAMLphp is an award-winning application written in native PHP that deals with authentication. The project is led by UNINETT, has a large user base, a helpful user community and a large set of external contributors. The main focus of SimpleSAMLphp is providing support for:
SAML 2.0 as a Service Provider (SP)
SAML 2.0 as an Identity Provider (IdP)
For further information, see the documentation at https://simplesamlphp.org/docs/.
%prep
%setup
%build
%install
mkdir -p %{buildroot}%{_prefix}simplesamlphp/log
mkdir -p %{buildroot}%{_prefix}simplesamlphp/data
install -d %{buildroot}%{_prefix}
tar cf - . | (cd %{buildroot}%{_prefix}simplesamlphp; tar xfp -)
%pre
semanage fcontext -a -t httpd_sys_content_t '/var/lib/simplesamlphp(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/lib/simplesamlphp/data(/.*)?'
semanage fcontext -a -t httpd_sys_rw_content_t '/var/lib/simplesamlphp/log(/.*)?'
%post
restorecon -R /var/lib/simplesamlphp
%postun
# keep the labels, as uninstall + restorecon
# may result in admin revealing sensitive data by mistake.