summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
committerRemi Collet <fedora@famillecollet.com>2012-06-13 18:43:31 +0200
commitcd01299f11e571bb45821e7298122caf711ade04 (patch)
treed0064c4f8105959fac603e925f77ddd03d4a408b
reorg repo
-rw-r--r--Makefile4
-rw-r--r--mod_security_crs.spec70
2 files changed, 74 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1e65467
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../common/Makefile
+
diff --git a/mod_security_crs.spec b/mod_security_crs.spec
new file mode 100644
index 0000000..da7f40e
--- /dev/null
+++ b/mod_security_crs.spec
@@ -0,0 +1,70 @@
+Summary: ModSecurity Rules
+Name: mod_security_crs
+Version: 2.2.4
+Release: 2%{?dist}
+License: ASL 2.0
+URL: http://www.modsecurity.org/
+Group: System Environment/Daemons
+Source: https://sourceforge.net/projects/mod-security/files/modsecurity-crs/0-CURRENT/modsecurity-crs_%{version}.tar.gz
+BuildArch: noarch
+Requires: mod_security >= 2.6.5
+
+%description
+This package provides the base rules for mod_security.
+
+%package extras
+Summary: Supplementary mod_security rules
+Group: System Environment/Daemons
+Requires: %name = %version-%release
+
+%description extras
+This package provides supplementary rules for mod_security.
+
+%prep
+%setup -q -n modsecurity-crs_%{version}
+
+%build
+
+%install
+install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/
+install -d %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules
+
+install -d %{buildroot}%{_prefix}/lib/modsecurity.d/base_rules
+install -d %{buildroot}%{_prefix}/lib/modsecurity.d/optional_rules
+install -d %{buildroot}%{_prefix}/lib/modsecurity.d/experimental_rules
+install -d %{buildroot}%{_prefix}/lib/modsecurity.d/slr_rules
+
+install -m0644 modsecurity_crs_10_config.conf.example %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/modsecurity_crs_10_config.conf
+install -m0644 base_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/base_rules/
+install -m0644 optional_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/optional_rules/
+install -m0644 experimental_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/experimental_rules/
+install -m0644 slr_rules/* %{buildroot}%{_prefix}/lib/modsecurity.d/slr_rules
+
+# activate base_rules
+for f in `ls %{buildroot}/%{_prefix}/lib/modsecurity.d/base_rules/` ; do
+ ln -s %{_prefix}/lib/modsecurity.d/base_rules/$f %{buildroot}%{_sysconfdir}/httpd/modsecurity.d/activated_rules/$f;
+done
+
+
+%files
+%doc CHANGELOG INSTALL LICENSE README
+%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/activated_rules/*
+%config(noreplace) %{_sysconfdir}/httpd/modsecurity.d/modsecurity_crs_10_config.conf
+%{_prefix}/lib/modsecurity.d/base_rules
+
+%files extras
+%{_prefix}/lib/modsecurity.d/optional_rules
+%{_prefix}/lib/modsecurity.d/experimental_rules
+%{_prefix}/lib/modsecurity.d/slr_rules
+
+%changelog
+* Sat May 12 2012 Remi Collet <RPMS@FamilleCollet.com> 2.2.4-2
+- rebuild for remi repo and httpd 2.4
+
+* Wed May 03 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.4-2
+- fix fedora-review issues (#816975)
+
+* Thu Apr 19 2012 Peter Vrabec <pvrabec@redhat.com> 2.2.4-1
+- initial package
+
+