From f5a622ba784bb66ee85eb669a821801c5e135ed8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 21 Nov 2022 13:04:20 +0000 Subject: gentoo auto-resync : 21:11:2022 - 13:04:20 --- www-apache/modsecurity-crs/Manifest | 4 +- www-apache/modsecurity-crs/metadata.xml | 8 ++-- .../modsecurity-crs/modsecurity-crs-3.3.4.ebuild | 43 ++++++++++++++++++++++ 3 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 www-apache/modsecurity-crs/modsecurity-crs-3.3.4.ebuild (limited to 'www-apache/modsecurity-crs') diff --git a/www-apache/modsecurity-crs/Manifest b/www-apache/modsecurity-crs/Manifest index 08a8bb47a4ba..4a74ebba5f86 100644 --- a/www-apache/modsecurity-crs/Manifest +++ b/www-apache/modsecurity-crs/Manifest @@ -1,4 +1,6 @@ AUX 80_mod_security-crs.conf 289 BLAKE2B 441b2f4d46e62ff24886b94dc933b08de8693ad7198cc855a8b0c322ba045e6409b7d3b7b2e2fdc0bd412ee9fdd3761987d59f405de5a84d5e8c96d2dd14ab76 SHA512 e5b86164a68e15d67a294688c993799fca10928c1265cee04555becfb17fb516314471d8c4eaea1205ac1703890cedb4647d93ce75b0a2a1ab9a401a495465dc 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 EBUILD modsecurity-crs-3.3.2.ebuild 864 BLAKE2B e4e27d9568b68fca964da7e72a8a3508a74f349d2a706a2828fc076324285da2debc3d086960ced40d24b0a1d7bb39ed040e20530916d3496f83204345ecc2eb SHA512 e195c92405f68c839d4d3b82b4951d9b19db5d5cc09d798ae66c94f7d684a0bd68c61380af21f03dd105bb09840f0d15e560cfa08b291587f54d201bddf55a61 -MISC metadata.xml 259 BLAKE2B 7b97e74d2d5f6c96f461644fc315a6104c7cfaa5024565b5a9147881a67f554b4cbd1815ebbe851a12fe7d66dceab6f29e7bf69fa621dd2ed744aff5bef865bb SHA512 12674587e5bc3b6f705195a7224be3c6ec8dc51f47bd81c8a47aea232d25b6f6ce127e5ce6e9b1ce32f8ad1216264df84dcf8975c0998a9558c42c1a19cc2127 +EBUILD modsecurity-crs-3.3.4.ebuild 1061 BLAKE2B 178504371814129253a1e3487a4be879128f1854a111969246714ef039ce1f3122294b3f5edac28225f5af222a2408c3c860c50638422dba810d8eb2f35f6784 SHA512 f544409bcec7866b525b4ed83ca47a93a065b012e944bc8515195f364c6c759ee69693f8886654661eadcfb41a49f8cbe9b830f2174efaec4852015fee46be2c +MISC metadata.xml 254 BLAKE2B 1d5f172b57a97b9a944fc05ce672b09fa81d2468756786518e06e809bffe571e7296fd1dd3988833af4dfbf85d14ad5cfd89fc337562f044422d30cb87740169 SHA512 817d5613af5a0a1e9a2aadcc5319fef2c0c36fa979c2c514e7b938eeebb2a4d83cc2ec478f4f26fef937847b2ffebd5671dbe5aa7b4c43122efd629f57b17d16 diff --git a/www-apache/modsecurity-crs/metadata.xml b/www-apache/modsecurity-crs/metadata.xml index 425d958788a4..a9f0c60e3080 100644 --- a/www-apache/modsecurity-crs/metadata.xml +++ b/www-apache/modsecurity-crs/metadata.xml @@ -1,8 +1,8 @@ - - - coreruleset/coreruleset - + + + 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..9782d5529222 --- /dev/null +++ b/www-apache/modsecurity-crs/modsecurity-crs-3.3.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 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 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 +} -- cgit v1.2.3