Install this version:
emerge -a =www-apache/modsecurity-crs-3.3.9
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =www-apache/modsecurity-crs-3.3.9
Or alternatively:
emerge --autounmask-write -a =www-apache/modsecurity-crs-3.3.9
# 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
}
Manage flags for this package:
euse -i <flag> -p www-apache/modsecurity-crs |
euse -E <flag> -p www-apache/modsecurity-crs |
euse -D <flag> -p www-apache/modsecurity-crs
apache2? ( >=www-apache/mod_security-2.9.6 )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | modsecurity-crs-3.3.9.tar.gz | 304961 bytes | https://github.com/coreruleset/coreruleset/archive/v3.3.9.tar.gz |