From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20E1D158020 for ; Mon, 21 Nov 2022 09:22:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B36BE09A5; Mon, 21 Nov 2022 09:22:44 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 60E64E09A5 for ; Mon, 21 Nov 2022 09:22:44 +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 89460341127 for ; Mon, 21 Nov 2022 09:22:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C84956D2 for ; Mon, 21 Nov 2022 09:22:41 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1669022465.d20bf8a1839f65630232bf3a43bbae464d94d3d4.juippis@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/metadata.xml www-apache/modsecurity-crs/modsecurity-crs-3.3.4.ebuild X-VCS-Directories: www-apache/modsecurity-crs/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: d20bf8a1839f65630232bf3a43bbae464d94d3d4 X-VCS-Branch: master Date: Mon, 21 Nov 2022 09:22: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: 74851950-4638-4a6d-a469-06e6cbc4bbed X-Archives-Hash: ecd87fc7a7b4735dbf46df335e1198b5 commit: d20bf8a1839f65630232bf3a43bbae464d94d3d4 Author: Tomáš Mózes gmail com> AuthorDate: Sat Oct 22 04:05:11 2022 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Mon Nov 21 09:21:05 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d20bf8a1 www-apache/modsecurity-crs: add 3.3.4 Bug: https://bugs.gentoo.org/872077 Closes: https://bugs.gentoo.org/869737 Signed-off-by: Tomáš Mózes gmail.com> Closes: https://github.com/gentoo/gentoo/pull/27886 Signed-off-by: Joonas Niilola gentoo.org> www-apache/modsecurity-crs/Manifest | 1 + www-apache/modsecurity-crs/metadata.xml | 11 +++--- .../modsecurity-crs/modsecurity-crs-3.3.4.ebuild | 42 ++++++++++++++++++++++ 3 files changed, 50 insertions(+), 4 deletions(-) diff --git a/www-apache/modsecurity-crs/Manifest b/www-apache/modsecurity-crs/Manifest index 381e71176da6..d8a19b55b4fe 100644 --- a/www-apache/modsecurity-crs/Manifest +++ b/www-apache/modsecurity-crs/Manifest @@ -1 +1,2 @@ DIST modsecurity-crs-3.3.2.tar.gz 290450 BLAKE2B 2935b781af44a206eec881a2c06669db91da98a4d74936299651a77417a2eeaf6d4ab9a1566c08fc4bfb2a60d0b38e71d746d726578ce220b59c9c9cbd800190 SHA512 a5d96fb949da82120a1c4cda4dcf804b06aaae71f25cded5ee998d2c4e766ae2de88e42cd52fc9d63e204415e829af27d80614e58b55509e7bd7ffc20a26cfba +DIST modsecurity-crs-3.3.4.tar.gz 301112 BLAKE2B 0df4b70c5ecc1852fe3cde74783494636c530cc8a2b8ddc0269da25703521532ee3ed6ba1e572b854fe6912f31d2ed1fe4c917b13dc22b37763dbe73ef8c7b72 SHA512 a8b8b210054a9a4e3f8e45a5a9428110bb4075e40430e3fc16f4717e363af141265b1fb5c173ff96abeff0ac61ef5eef667a4b9cb703f8edc15e48deb3342827 diff --git a/www-apache/modsecurity-crs/metadata.xml b/www-apache/modsecurity-crs/metadata.xml index 425d958788a4..5ddb96e8e1a1 100644 --- a/www-apache/modsecurity-crs/metadata.xml +++ b/www-apache/modsecurity-crs/metadata.xml @@ -1,8 +1,11 @@ - - - coreruleset/coreruleset - + + + Adds support for nginx + + + coreruleset/coreruleset + diff --git a/www-apache/modsecurity-crs/modsecurity-crs-3.3.4.ebuild b/www-apache/modsecurity-crs/modsecurity-crs-3.3.4.ebuild new file mode 100644 index 000000000000..abbbd1ec3c43 --- /dev/null +++ b/www-apache/modsecurity-crs/modsecurity-crs-3.3.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +DESCRIPTION="OWASP ModSecurity Core Rule Set" +HOMEPAGE="https://coreruleset.org/" +SRC_URI="https://github.com/coreruleset/coreruleset/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/coreruleset-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+apache2 nginx" + +RDEPEND=" + apache2? ( >=www-apache/mod_security-2.9.6 ) + nginx? ( >=dev-libs/modsecurity-3.0.8 ) +" + +DOCS=( CHANGES CONTRIBUTORS.md crs-setup.conf.example KNOWN_BUGS README.md ) + +src_install() { + insinto "/usr/share/${PN}" + doins -r 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 +}