mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
www-apache/modsecurity-crs: add 3.3.9
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/46171 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
DIST modsecurity-crs-3.3.7.tar.gz 301659 BLAKE2B 8a0fadc70738971b39ee65e8e4338efadf26a7c746ae105e93616000a11d856b60bff79762841f87bab0e8c3be89ac53b4c054cc25c5d4c0564b17f55f6b67f4 SHA512 5d80b4d73da3cb58d827f43bea3eac60282ee77aa3b03d7a38e18cfd4c3f932c572765c2fb209d36a2815381cfee2318cf53837c89ffaa68411b0dee72a7b998
|
||||
DIST modsecurity-crs-3.3.9.tar.gz 304961 BLAKE2B e849c4461608c3a3adc6a06e488044c2c8c1f193246ef6704e9bf9d618e66b548b6e904a2172b1f3a7b451c324f5887b759d6c5c745fefadabab6f182927d776 SHA512 cfd63d630879727890fea4bb44c9b88d47e98f1a26e55b387e63f59bd47e3d61ba2f0e9efcd48f9008191f66defb2c68cb640f9968345181aafe360335d4db65
|
||||
DIST modsecurity-crs-4.16.0.tar.gz 513655 BLAKE2B 6803922fcae519b4e820d2c56f31c17c86832468c74386e498f40c2f76570c11bf43c5820a32c4c143108d72be193474a10a1e26ffcdd79f45c3546526ee25db SHA512 bf20300bdceb745ba7d52b6fd16978e49ecc1eac7a42add8c069b5526fedb6a15583c0d861ebfcf93fdfb1c646aad814aca55a2297c8712f4473881a302af370
|
||||
DIST modsecurity-crs-4.20.0.tar.gz 522041 BLAKE2B 6c6d91a83e0b0c5d5df532b12bb2539495a81648ac307b40242cf2e73f07546fae9a370fa3cafb6870f61d285a68357c234bed760ac80ff70731e70129a2785b SHA512 67b6a0c81ae75b7b50823768751644412d7e2dd80144c4ebbc53c25101e8254688559ea4c294c1fa28e54b380d98d960a4e41218fc3377e34bd222fbd840f792
|
||||
DIST modsecurity-crs-4.25.0.tar.gz 588085 BLAKE2B a121b655a206e2e00fa0aaed99a448881d2de258f2b7b385da5cd17e9457f6b36e6bd8e8d1c8f8205cbdcf9ede65c28d133c484fe52adb025ef046b670bc0fbe SHA512 800232026bce743b9bba7ebd8e2bfb1ae5d4ccfa1672e5ab72d764819c64a1c276e89c28d34ac0d05964392054464d394846013aae11ad54c870ce4aec7e2480
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2026 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
|
||||
}
|
||||
Reference in New Issue
Block a user