1
0

Accepting request 331626 from home:pgajdos:apache2

OBS-URL: https://build.opensuse.org/request/show/331626
OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_security2?expand=0&rev=70
This commit is contained in:
Petr Gajdos 2015-09-18 11:51:55 +00:00 committed by Git OBS Bridge
parent f42c808926
commit edc5905530

View File

@ -117,6 +117,16 @@ rm -f %{buildroot}/%{usrsharedir}/rules/INSTALL %{buildroot}/%{usrsharedir}/rule
mv %{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf.example \
%{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf
%check
set +x
mkdir -p %{apache_test_module_dir}
cp %{SOURCE2} %{apache_test_module_dir}/%{modname}-test.conf
sed -i 's:/var/log/apache2:/tmp:' %{apache_test_module_dir}/%{modname}-test.conf
sed -i 's:/usr/share:%{buildroot}/usr/share:' %{apache_test_module_dir}/%{modname}-test.conf
sed -i 's:/etc/apache2:%{buildroot}/etc/apache2:' %{apache_test_module_dir}/%{modname}-test.conf
%apache_test_module_load -m security2 -i %{modname}-test.conf
set -x
%files
%defattr(-, root, root, 0755)
%{apache_libexecdir}/%{modname}.so