forked from pool/apache2-mod_security2
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:
parent
f42c808926
commit
edc5905530
@ -117,6 +117,16 @@ rm -f %{buildroot}/%{usrsharedir}/rules/INSTALL %{buildroot}/%{usrsharedir}/rule
|
|||||||
mv %{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf.example \
|
mv %{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf.example \
|
||||||
%{buildroot}/%{usrsharedir}/rules/modsecurity_crs_10_setup.conf
|
%{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
|
%files
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-, root, root, 0755)
|
||||||
%{apache_libexecdir}/%{modname}.so
|
%{apache_libexecdir}/%{modname}.so
|
||||||
|
Loading…
Reference in New Issue
Block a user