diff options
| author | Tomáš Mózes <hydrapolic@gmail.com> | 2025-07-21 12:58:10 +0000 |
|---|---|---|
| committer | Petr Vaněk <arkamar@gentoo.org> | 2025-07-22 10:06:22 +0200 |
| commit | 154d0861b072a6d9a31565b4f03e38747bf94ab2 (patch) | |
| tree | 80e22393612000e2456014ffe55b63207d168f27 /www-apache | |
| parent | 3182606686354bb7704d680c8ad332326b811418 (diff) | |
| download | gentoo-154d0861b072a6d9a31565b4f03e38747bf94ab2.tar.gz gentoo-154d0861b072a6d9a31565b4f03e38747bf94ab2.tar.bz2 gentoo-154d0861b072a6d9a31565b4f03e38747bf94ab2.zip | |
www-apache/modsecurity-crs: add 4.16.0
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43095
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'www-apache')
| -rw-r--r-- | www-apache/modsecurity-crs/Manifest | 1 | ||||
| -rw-r--r-- | www-apache/modsecurity-crs/modsecurity-crs-4.16.0.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/www-apache/modsecurity-crs/Manifest b/www-apache/modsecurity-crs/Manifest index 616a33f368e2..1f68f12ca251 100644 --- a/www-apache/modsecurity-crs/Manifest +++ b/www-apache/modsecurity-crs/Manifest @@ -1,3 +1,4 @@ DIST modsecurity-crs-3.3.7.tar.gz 301659 BLAKE2B 8a0fadc70738971b39ee65e8e4338efadf26a7c746ae105e93616000a11d856b60bff79762841f87bab0e8c3be89ac53b4c054cc25c5d4c0564b17f55f6b67f4 SHA512 5d80b4d73da3cb58d827f43bea3eac60282ee77aa3b03d7a38e18cfd4c3f932c572765c2fb209d36a2815381cfee2318cf53837c89ffaa68411b0dee72a7b998 DIST modsecurity-crs-4.12.0.tar.gz 484863 BLAKE2B 98290f062966e12db79424d3956be152442f47b8258d2e7f012c383ea08dc61ff12bfb475a3a64a571f572d57ddcda0f2e6ef3206bc475ff1e26408853782e3a SHA512 e5fb3e26bc381a1a7a10357facd10dc46d598e66d1542a757725ff6762d7a238734be97a193a4eef098d89289e475aea04a251a9d9e4a77571c4cb0d71e4004b DIST modsecurity-crs-4.14.0.tar.gz 489971 BLAKE2B 59b94dcd61232d3dcc35905e4ea114468cde70c15cba8fad97e43a04f924049370ad9622857b501620fedb700b32ecba39429024d7155a6233319401007605d5 SHA512 352a3f975ed06df84e50c03dd7089d30870670167fd2e41da8e02470ab9e06fd9e4e7585a648a2e39657b5cca2ee94448cf5f6b3d4d2a140480b729bd07a1261 +DIST modsecurity-crs-4.16.0.tar.gz 513655 BLAKE2B 6803922fcae519b4e820d2c56f31c17c86832468c74386e498f40c2f76570c11bf43c5820a32c4c143108d72be193474a10a1e26ffcdd79f45c3546526ee25db SHA512 bf20300bdceb745ba7d52b6fd16978e49ecc1eac7a42add8c069b5526fedb6a15583c0d861ebfcf93fdfb1c646aad814aca55a2297c8712f4473881a302af370 diff --git a/www-apache/modsecurity-crs/modsecurity-crs-4.16.0.ebuild b/www-apache/modsecurity-crs/modsecurity-crs-4.16.0.ebuild new file mode 100644 index 000000000000..bd2e9e3a405d --- /dev/null +++ b/www-apache/modsecurity-crs/modsecurity-crs-4.16.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 +} |
