From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 962AA158287 for ; Thu, 15 May 2025 07:41:50 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7CD66343072 for ; Thu, 15 May 2025 07:41:50 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 88C8C1103DD; Thu, 15 May 2025 07:41:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 8011F1103DA for ; Thu, 15 May 2025 07:41:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 37A73342FFE for ; Thu, 15 May 2025 07:41:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 98C16289D for ; Thu, 15 May 2025 07:41:41 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1747294815.bf2e6aad7b6e8971ff37bc82e22694bf5db6aaf2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-apache/modsecurity-crs/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-apache/modsecurity-crs/Manifest www-apache/modsecurity-crs/modsecurity-crs-4.14.0.ebuild X-VCS-Directories: www-apache/modsecurity-crs/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: bf2e6aad7b6e8971ff37bc82e22694bf5db6aaf2 X-VCS-Branch: master Date: Thu, 15 May 2025 07:41:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3b05f270-ba6d-4b8d-8e68-727475bef21e X-Archives-Hash: b5d2ecce75a3d4073ec45f14c103531e commit: bf2e6aad7b6e8971ff37bc82e22694bf5db6aaf2 Author: Tomáš Mózes gmail com> AuthorDate: Wed Apr 30 12:24:42 2025 +0000 Commit: Sam James gentoo org> CommitDate: Thu May 15 07:40:15 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf2e6aad www-apache/modsecurity-crs: add 4.14.0 Signed-off-by: Tomáš Mózes gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41858 Signed-off-by: Sam James gentoo.org> www-apache/modsecurity-crs/Manifest | 1 + .../modsecurity-crs/modsecurity-crs-4.14.0.ebuild | 45 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/www-apache/modsecurity-crs/Manifest b/www-apache/modsecurity-crs/Manifest index fe92d792e8c2..f29f979f139e 100644 --- a/www-apache/modsecurity-crs/Manifest +++ b/www-apache/modsecurity-crs/Manifest @@ -1,4 +1,5 @@ DIST modsecurity-crs-3.3.7.tar.gz 301659 BLAKE2B 8a0fadc70738971b39ee65e8e4338efadf26a7c746ae105e93616000a11d856b60bff79762841f87bab0e8c3be89ac53b4c054cc25c5d4c0564b17f55f6b67f4 SHA512 5d80b4d73da3cb58d827f43bea3eac60282ee77aa3b03d7a38e18cfd4c3f932c572765c2fb209d36a2815381cfee2318cf53837c89ffaa68411b0dee72a7b998 DIST modsecurity-crs-4.11.0.tar.gz 489815 BLAKE2B dadf8c40d3d912ebc6b8e54418d0b3cb8b8b032f3d33faac8648f50a59a607a6aa0e1ad40e5b88ebcef0fa346fe16bebbd316eebf3435cfdbe9352dea0f3585b SHA512 3d7ac42b83625204efb31b55e61910bee106d58cbad71a82ed966bd0523e1a8b611509f66224a56f1b679c7f7e6a59ad6547d0da162aea92706feb19f10520d5 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.8.0.tar.gz 486857 BLAKE2B 3951ffcbf44ee01fbe9199655812a448ad0a5a0b02b68f44b4c8fd83f9533edfa96449bcb90c297bd7abfa4bb236951a4b0828b75a14bc9c63033dac48cd4ca2 SHA512 07a35b58da5d614ac3858be46ca7e74dfaceafff1e034d363a31ab522bfda2b80475bf3c73e74cb10e6c7c6345129c034291240315c4dd598aa4bad49c7e82c0 diff --git a/www-apache/modsecurity-crs/modsecurity-crs-4.14.0.ebuild b/www-apache/modsecurity-crs/modsecurity-crs-4.14.0.ebuild new file mode 100644 index 000000000000..bd2e9e3a405d --- /dev/null +++ b/www-apache/modsecurity-crs/modsecurity-crs-4.14.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 +}