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 1326E158089 for ; Sat, 28 Oct 2023 07:07:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C0B92BC013; Sat, 28 Oct 2023 07:07:23 +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 2FC372BC013 for ; Sat, 28 Oct 2023 07:07:23 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 40358335C2E for ; Sat, 28 Oct 2023 07:07:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B983911E3 for ; Sat, 28 Oct 2023 07:07:20 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1698476807.a448594a30c19dfd99a513c5dd93e1ec9faa7a48.graaff@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-3.3.5.ebuild X-VCS-Directories: www-apache/modsecurity-crs/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: a448594a30c19dfd99a513c5dd93e1ec9faa7a48 X-VCS-Branch: master Date: Sat, 28 Oct 2023 07:07:20 +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: 4fdcbc88-3669-46d7-aed7-4cca522eae3f X-Archives-Hash: 9abadfa59cc30c495d3f0cd667d59632 commit: a448594a30c19dfd99a513c5dd93e1ec9faa7a48 Author: Tomáš Mózes gmail com> AuthorDate: Fri Sep 29 11:07:32 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sat Oct 28 07:06:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a448594a www-apache/modsecurity-crs: add 3.3.5 Signed-off-by: Tomáš Mózes gmail.com> Signed-off-by: Hans de Graaff gentoo.org> www-apache/modsecurity-crs/Manifest | 1 + .../modsecurity-crs/modsecurity-crs-3.3.5.ebuild | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/www-apache/modsecurity-crs/Manifest b/www-apache/modsecurity-crs/Manifest index a7819e892570..5f0b906c869b 100644 --- a/www-apache/modsecurity-crs/Manifest +++ b/www-apache/modsecurity-crs/Manifest @@ -1 +1,2 @@ DIST modsecurity-crs-3.3.4.tar.gz 301112 BLAKE2B 0df4b70c5ecc1852fe3cde74783494636c530cc8a2b8ddc0269da25703521532ee3ed6ba1e572b854fe6912f31d2ed1fe4c917b13dc22b37763dbe73ef8c7b72 SHA512 a8b8b210054a9a4e3f8e45a5a9428110bb4075e40430e3fc16f4717e363af141265b1fb5c173ff96abeff0ac61ef5eef667a4b9cb703f8edc15e48deb3342827 +DIST modsecurity-crs-3.3.5.tar.gz 299458 BLAKE2B b8617de77cf5168c7b95fab46eae45e2101b4ec7a537d8d471b9b1b27a856b1d370a9de43ee262c07dc9371b3ff79cd86b7328b171fde003da9110897206e91e SHA512 001f9afe25f479dd988aaec1a4a2c0197b2d27e00d2cd10b70892e4889b399259cd0655f42a96965ae655855abdb7f9d8295c225ae17bf1e47361b70232633e5 diff --git a/www-apache/modsecurity-crs/modsecurity-crs-3.3.5.ebuild b/www-apache/modsecurity-crs/modsecurity-crs-3.3.5.ebuild new file mode 100644 index 000000000000..4ed1fff24400 --- /dev/null +++ b/www-apache/modsecurity-crs/modsecurity-crs-3.3.5.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +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" + +RDEPEND="apache2? ( >=www-apache/mod_security-2.9.6 )" + +DOCS=( CHANGES.md 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 + + optfeature "apache-less installations, e.g. nginx" dev-libs/modsecurity +}