commit: e0ae79375ddc7d9d81ed37b8435f8c57ade48df7
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 6 02:31:27 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 6 02:35:44 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0ae7937
www-apache/modsecurity-crs: add 4.20.0
Signed-off-by: Sam James <sam <AT> gentoo.org>
www-apache/modsecurity-crs/Manifest | 1 +
.../modsecurity-crs/modsecurity-crs-4.20.0.ebuild | 45 ++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/www-apache/modsecurity-crs/Manifest
b/www-apache/modsecurity-crs/Manifest
index 9afdda5aefbe..39dc8da0a5dd 100644
--- a/www-apache/modsecurity-crs/Manifest
+++ b/www-apache/modsecurity-crs/Manifest
@@ -1,2 +1,3 @@
DIST modsecurity-crs-3.3.7.tar.gz 301659 BLAKE2B
8a0fadc70738971b39ee65e8e4338efadf26a7c746ae105e93616000a11d856b60bff79762841f87bab0e8c3be89ac53b4c054cc25c5d4c0564b17f55f6b67f4
SHA512
5d80b4d73da3cb58d827f43bea3eac60282ee77aa3b03d7a38e18cfd4c3f932c572765c2fb209d36a2815381cfee2318cf53837c89ffaa68411b0dee72a7b998
DIST modsecurity-crs-4.16.0.tar.gz 513655 BLAKE2B
6803922fcae519b4e820d2c56f31c17c86832468c74386e498f40c2f76570c11bf43c5820a32c4c143108d72be193474a10a1e26ffcdd79f45c3546526ee25db
SHA512
bf20300bdceb745ba7d52b6fd16978e49ecc1eac7a42add8c069b5526fedb6a15583c0d861ebfcf93fdfb1c646aad814aca55a2297c8712f4473881a302af370
+DIST modsecurity-crs-4.20.0.tar.gz 522041 BLAKE2B
6c6d91a83e0b0c5d5df532b12bb2539495a81648ac307b40242cf2e73f07546fae9a370fa3cafb6870f61d285a68357c234bed760ac80ff70731e70129a2785b
SHA512
67b6a0c81ae75b7b50823768751644412d7e2dd80144c4ebbc53c25101e8254688559ea4c294c1fa28e54b380d98d960a4e41218fc3377e34bd222fbd840f792
diff --git a/www-apache/modsecurity-crs/modsecurity-crs-4.20.0.ebuild
b/www-apache/modsecurity-crs/modsecurity-crs-4.20.0.ebuild
new file mode 100644
index 000000000000..bd2e9e3a405d
--- /dev/null
+++ b/www-apache/modsecurity-crs/modsecurity-crs-4.20.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature
+
+MY_PV=${PV/_/-}
+
+DESCRIPTION="OWASP ModSecurity Core Rule Set"
+HOMEPAGE="https://coreruleset.org/"
+SRC_URI="https://github.com/coreruleset/coreruleset/archive/v${MY_PV}.tar.gz
-> ${P}.tar.gz"
+S="${WORKDIR}/coreruleset-${MY_PV}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+apache2"
+
+RDEPEND="apache2? ( >=www-apache/mod_security-2.9.6 )"
+
+DOCS=( CHANGES.md CONTRIBUTORS.md crs-setup.conf.example KNOWN_BUGS.md
README.md )
+
+src_install() {
+ insinto "/usr/share/${PN}"
+ doins -r plugins rules
+
+ einstalldocs
+
+ if use apache2; then
+ # I don't think it's worth pulling in apache-module.eclass just
for
+ # this path...
+ insinto /etc/apache2/modules.d
+ doins "${FILESDIR}/80_mod_security-crs.conf"
+ fi
+}
+
+pkg_postinst() {
+ if use apache2; then
+ einfo "The CRS configuration file has been installed to:"
+ einfo " ${ROOT}/etc/apache2/modules.d/80_mod_security-crs.conf"
+ fi
+
+ optfeature "apache-less installations, e.g. nginx" dev-libs/modsecurity
+}