diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2024-06-26 17:18:54 +0000 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2024-07-20 09:42:41 +0300 |
commit | 6c4d4c78d2965670dc4b3f4c3b174c96b929a968 (patch) | |
tree | a8baf4c5d55d572a8434d8951eade044d2066c88 /www-apache/modsecurity-crs/modsecurity-crs-4.4.0.ebuild | |
parent | dev-libs/rccl: drop 5.1.3 (diff) | |
download | gentoo-6c4d4c78d2965670dc4b3f4c3b174c96b929a968.tar.gz gentoo-6c4d4c78d2965670dc4b3f4c3b174c96b929a968.tar.bz2 gentoo-6c4d4c78d2965670dc4b3f4c3b174c96b929a968.zip |
www-apache/modsecurity-crs: add 4.4.0
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'www-apache/modsecurity-crs/modsecurity-crs-4.4.0.ebuild')
-rw-r--r-- | www-apache/modsecurity-crs/modsecurity-crs-4.4.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/www-apache/modsecurity-crs/modsecurity-crs-4.4.0.ebuild b/www-apache/modsecurity-crs/modsecurity-crs-4.4.0.ebuild new file mode 100644 index 000000000000..1a0a134d3046 --- /dev/null +++ b/www-apache/modsecurity-crs/modsecurity-crs-4.4.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +MY_PV=${PV/_/-} + +DESCRIPTION="OWASP ModSecurity Core Rule Set" +HOMEPAGE="https://coreruleset.org/" +SRC_URI="https://github.com/coreruleset/coreruleset/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/coreruleset-${MY_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.md README.md ) + +src_install() { + insinto "/usr/share/${PN}" + doins -r plugins 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 +} |