Commit 6067252a authored by 53c70r's avatar 53c70r
Browse files

Refactoring.

parent 2723a2b1
......@@ -2,7 +2,7 @@
Name: nginx-mod-modsecurity-crs
Version: 3.3.0
Release: 6%{?dist}
Release: 7%{?dist}
Summary: OWASP-CRS for Nginx
License: ASL 2.0
BuildArch: noarch
......@@ -21,20 +21,18 @@ The OWASP ModSecurity Core Rule Set (CRS) is a set of generic attack detection r
%prep
%setup -c -q
%build
%install
%{__install} -d %{buildroot}%{_sysconfdir}/nginx/modsecurity.d/coreruleset/rules/
%{__install} -p -D -m 644 %{SOURCE3} %{buildroot}%{_datarootdir}/licenses/%{NAME}/LICENSE
%{__install} -p -D -m 644 ./coreruleset-%{version}/rules/* %{buildroot}%{_sysconfdir}/nginx/modsecurity.d/coreruleset/rules/
%{__install} -p -D -m 644 ./coreruleset-%{version}/crs-setup.conf.example %{buildroot}%{_sysconfdir}/nginx/modsecurity.d/coreruleset/crs-setup.conf
%{__install} -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/nginx/modsecurity.d/coreruleset/load_file.conf
%{__install} -p -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/nginx/conf.d/modsecurity.conf
%{__install} -p -D -m 0644 ./coreruleset-%{version}/rules/* %{buildroot}%{_sysconfdir}/nginx/modsecurity.d/coreruleset/rules/
%{__install} -p -D -m 0644 ./coreruleset-%{version}/crs-setup.conf.example %{buildroot}%{_sysconfdir}/nginx/modsecurity.d/coreruleset/crs-setup.conf
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/nginx/modsecurity.d/coreruleset/load_file.conf
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/nginx/conf.d/modsecurity.conf
%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_datarootdir}/licenses/%{NAME}/LICENSE
%files
%defattr (-,root,root)
%{_datarootdir}/licenses/%{NAME}/LICENSE
%{_sysconfdir}/nginx/modsecurity.d/coreruleset
%{_sysconfdir}/nginx/conf.d/modsecurity.conf
%config(noreplace) %{_sysconfdir}/nginx/modsecurity.d/coreruleset/crs-setup.conf
%config(noreplace) %{_sysconfdir}/nginx/conf.d/modsecurity.conf
%{_sysconfdir}/nginx/modsecurity.d/coreruleset
%{_sysconfdir}/nginx/conf.d/modsecurity.conf
%{_datarootdir}/licenses/%{NAME}/LICENSE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment