blob: a16ae9fa633f84caf982ddd4d654f2bc12ae178b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
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"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND=">=www-apache/mod_security-2.9.1"
S="${WORKDIR}/coreruleset-${PV}"
src_install() {
insinto "/usr/share/${PN}"
doins -r rules
dodoc CHANGES CONTRIBUTORS.md KNOWN_BUGS README.md crs-setup.conf.example
# 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"
}
pkg_postinst() {
einfo "The CRS configuration file has been installed to:"
einfo " ${ROOT}/etc/apache2/modules.d/80_mod_security-crs.conf"
}
|