Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-apache/mod_security/
Date: Sun, 20 Feb 2022 00:31:40
Message-Id: 1645317046.3593f952ae981bc25e6486b04bda7fff196edcdd.sam@gentoo
1 commit: 3593f952ae981bc25e6486b04bda7fff196edcdd
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 19 10:44:47 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 00:30:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3593f952
7
8 www-apache/mod_security: drop old
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/24272
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 www-apache/mod_security/Manifest | 1 -
15 .../mod_security/mod_security-2.9.3-r100.ebuild | 124 ---------------------
16 2 files changed, 125 deletions(-)
17
18 diff --git a/www-apache/mod_security/Manifest b/www-apache/mod_security/Manifest
19 index 00ae4fe3e6fb..b6b9c755e5f7 100644
20 --- a/www-apache/mod_security/Manifest
21 +++ b/www-apache/mod_security/Manifest
22 @@ -1,2 +1 @@
23 -DIST modsecurity-2.9.3.tar.gz 4307670 BLAKE2B 337ea15cc8805af7ab43aed8aecf4c72ccc586d0d7e9d9b91f036a61baa70d1ac8b4ad8045a2bb7a13515912a15fba7d3cdb9670ae6730de43b1e44ee90ded6d SHA512 4e1ea5dd8edadf8f630e4fe92a200d3a8e78963fce3128b5975a1e1ecd0e8bf9ceecd9905c95f8c508932ccd837f1d8ae8bb2ba423307718c3c6a4ae9b783ddd
24 DIST modsecurity-2.9.5.tar.gz 4315037 BLAKE2B f6e607f344038c74fbbacbba6bbeb5953a7ab13b54d140924f4fe586a1506720d383285e7ce68dc9386f3532d298d53de55446f336c4b2f3e359bf8636bba0d0 SHA512 eef10afbce7407038b12d3c94213a17ecadf2db9a39f15006809848717f9a0d53d52f050957e13725e972191106c54eafb8915d564e5f0756a8a93c84048a4df
25
26 diff --git a/www-apache/mod_security/mod_security-2.9.3-r100.ebuild b/www-apache/mod_security/mod_security-2.9.3-r100.ebuild
27 deleted file mode 100644
28 index ad8579ac88e7..000000000000
29 --- a/www-apache/mod_security/mod_security-2.9.3-r100.ebuild
30 +++ /dev/null
31 @@ -1,124 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -LUA_COMPAT=( lua5-{1..3} )
38 -
39 -inherit autotools apache-module lua-single
40 -
41 -MY_PN=modsecurity
42 -MY_P=${MY_PN}-${PV}
43 -
44 -DESCRIPTION="Application firewall and intrusion detection for Apache"
45 -HOMEPAGE="https://www.modsecurity.org/"
46 -SRC_URI="https://www.modsecurity.org/tarball/${PV}/${MY_P}.tar.gz"
47 -
48 -LICENSE="Apache-2.0"
49 -SLOT="0"
50 -KEYWORDS="amd64 x86"
51 -IUSE="doc fuzzyhash geoip jit json lua mlogc"
52 -
53 -REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
54 -
55 -COMMON_DEPEND="dev-libs/apr
56 - dev-libs/apr-util[openssl]
57 - dev-libs/libxml2
58 - dev-libs/libpcre[jit?]
59 - fuzzyhash? ( app-crypt/ssdeep )
60 - json? ( dev-libs/yajl )
61 - lua? ( ${LUA_DEPS} )
62 - mlogc? ( net-misc/curl )
63 - www-servers/apache[apache2_modules_unique_id]"
64 -BDEPEND="doc? ( app-doc/doxygen )"
65 -DEPEND="${COMMON_DEPEND}"
66 -RDEPEND="${COMMON_DEPEND}
67 - geoip? ( dev-libs/geoip )
68 - mlogc? ( dev-lang/perl )"
69 -PDEPEND=">=www-apache/modsecurity-crs-2.2.6-r1"
70 -
71 -S="${WORKDIR}/${MY_P}"
72 -
73 -APACHE2_MOD_FILE="apache2/.libs/${PN}2.so"
74 -APACHE2_MOD_CONF="79_${PN}"
75 -APACHE2_MOD_DEFINE="SECURITY"
76 -
77 -# Tests require symbols only defined within the Apache binary.
78 -RESTRICT=test
79 -
80 -PATCHES=(
81 - "${FILESDIR}"/${PN}-2.9.3-autoconf_lua_package_name.patch
82 -)
83 -
84 -need_apache2
85 -
86 -pkg_setup() {
87 - _init_apache2
88 - _init_apache2_late
89 - use lua && lua-single_pkg_setup
90 -}
91 -
92 -src_prepare() {
93 - default
94 - eautoreconf
95 -}
96 -
97 -src_configure() {
98 - local myconf=(
99 - --disable-static
100 - --enable-request-early
101 - --with-apxs="${APXS}"
102 - --with-pic
103 - $(use_with fuzzyhash ssdeep)
104 - $(use_with json yajl)
105 - $(use_enable mlogc)
106 - $(use_with lua)
107 - $(use_enable lua lua-cache)
108 - $(use_enable jit pcre-jit)
109 - $(use_enable doc docs) )
110 -
111 - econf ${myconf[@]}
112 -}
113 -
114 -src_compile() {
115 - default
116 -}
117 -
118 -src_install() {
119 - apache-module_src_install
120 -
121 - dodoc CHANGES README.md modsecurity.conf-recommended
122 -
123 - if use doc; then
124 - dodoc -r doc/apache/html
125 - fi
126 -
127 - if use mlogc; then
128 - insinto /etc/
129 - newins mlogc/mlogc-default.conf mlogc.conf
130 - dobin mlogc/mlogc
131 - dobin mlogc/mlogc-batch-load.pl
132 - newdoc mlogc/INSTALL INSTALL-mlogc
133 - fi
134 -
135 - # Use /var/lib instead of /var/cache. This stuff is "persistent,"
136 - # and isn't a cached copy of something that we can recreate.
137 - # Bug 605496.
138 - keepdir /var/lib/modsecurity
139 - fowners apache:apache /var/lib/modsecurity
140 - fperms 0750 /var/lib/modsecurity
141 - for dir in data tmp upload; do
142 - keepdir "/var/lib/modsecurity/${dir}"
143 - fowners apache:apache "/var/lib/modsecurity/${dir}"
144 - fperms 0750 "/var/lib/modsecurity/${dir}"
145 - done
146 -}
147 -
148 -pkg_postinst() {
149 - elog "The base configuration file has been renamed ${APACHE2_MOD_CONF}"
150 - elog "so that you can put your own configuration in (for example)"
151 - elog "90_modsecurity_local.conf."
152 - elog ""
153 - elog "That would be the correct place for site-global security rules."
154 - elog "Note: 80_modsecurity_crs.conf is used by www-apache/modsecurity-crs"
155 -}