Compare commits

...

3 Commits

Author SHA1 Message Date
Daniel Demus
88f7f10e14 Add src tarball 2024-07-16 00:23:02 +02:00
Daniel Demus
2595841baa Fix a couple of fedora-review comments 2024-07-14 21:56:13 +02:00
Daniel Demus
c2ac8b918b TrustWave has transferred the repo to OWASP, so the URL has changed 2024-07-14 21:31:05 +02:00
3 changed files with 12 additions and 8 deletions

View File

@ -49,8 +49,8 @@
SecDataDir /var/lib/mod_security SecDataDir /var/lib/mod_security
# ModSecurity Core Rules Set and Local configuration # ModSecurity Core Rules Set and Local configuration
Include modsecurity.d/*.conf Include modsecurity.d/*.conf
Include modsecurity.d/activated_rules/*.conf Include modsecurity.d/activated_rules/*.conf
Include modsecurity.d/local_rules/*.conf Include modsecurity.d/local_rules/*.conf
</IfModule> </IfModule>

View File

@ -10,10 +10,10 @@
Summary: Security module for the Apache HTTP Server Summary: Security module for the Apache HTTP Server
Name: mod_security Name: mod_security
Version: 2.9.7 Version: 2.9.7
Release: 6%{?dist} Release: 7%{?dist}
License: Apache-2.0 License: Apache-2.0
URL: http://www.modsecurity.org/ URL: http://www.modsecurity.org/
Source: https://github.com/SpiderLabs/ModSecurity/releases/download/v%{version}/modsecurity-%{version}.tar.gz Source: https://github.com/owasp-modsecurity/ModSecurity/releases/download/v%{version}/modsecurity-%{version}.tar.gz
Source1: mod_security.conf Source1: mod_security.conf
Source2: 10-mod_security.conf Source2: 10-mod_security.conf
Source3: modsecurity_localrules.conf Source3: modsecurity_localrules.conf
@ -100,13 +100,13 @@ install -m0755 apache2/.libs/mod_security2.so %{buildroot}%{_httpd_moddir}/mod_s
# 2.4-style # 2.4-style
install -Dp -m0644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}/10-mod_security.conf install -Dp -m0644 %{SOURCE2} %{buildroot}%{_httpd_modconfdir}/10-mod_security.conf
install -Dp -m0644 %{SOURCE1} %{buildroot}%{_httpd_confdir}/mod_security.conf install -Dp -m0644 %{SOURCE1} %{buildroot}%{_httpd_confdir}/mod_security.conf
sed -i 's/Include/IncludeOptional/' %{buildroot}%{_httpd_confdir}/mod_security.conf sed -i 's/Include/IncludeOptional/' %{buildroot}%{_httpd_confdir}/mod_security.conf
%else %else
# 2.2-style # 2.2-style
install -d -m0755 %{buildroot}%{_httpd_confdir} install -d -m0755 %{buildroot}%{_httpd_confdir}
cat %{SOURCE2} %{SOURCE1} > %{buildroot}%{_httpd_confdir}/mod_security.conf cat %{SOURCE2} %{SOURCE1} > %{buildroot}%{_httpd_confdir}/mod_security.conf
%endif %endif
install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name} install -m 700 -d %{buildroot}%{_localstatedir}/lib/%{name}
# Local rules example # Local rules example
install -Dp -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/local_rules/ install -Dp -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/local_rules/
@ -122,7 +122,8 @@ install -m0644 mlogc/mlogc-default.conf %{buildroot}%{_sysconfdir}/mlogc.conf
%files %files
%doc CHANGES LICENSE README.* NOTICE %doc CHANGES README.* NOTICE
%license LICENSE
%{_httpd_moddir}/mod_security2.so %{_httpd_moddir}/mod_security2.so
%config(noreplace) %{_httpd_confdir}/*.conf %config(noreplace) %{_httpd_confdir}/*.conf
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
@ -145,6 +146,9 @@ install -m0644 mlogc/mlogc-default.conf %{buildroot}%{_sysconfdir}/mlogc.conf
%endif %endif
%changelog %changelog
* Sun Jun 30 2024 Daniel Demus <daniel-fedoauth@demus.dk> - 2.9.7-7
- TrustWave has transferred the repo to OWASP, so the URL has changed
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.7-6 * Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.7-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild

BIN
modsecurity-2.9.7.tar.gz Normal file

Binary file not shown.