1 |
commit: 71da5b2b9bb14d40d9c00e66efbb8909b9ba02d3 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 31 18:32:40 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 31 18:34:03 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71da5b2b |
7 |
|
8 |
www-apache/mod_security: Drop old |
9 |
|
10 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
www-apache/mod_security/Manifest | 1 - |
14 |
www-apache/mod_security/mod_security-2.7.7.ebuild | 96 ----------------------- |
15 |
2 files changed, 97 deletions(-) |
16 |
|
17 |
diff --git a/www-apache/mod_security/Manifest b/www-apache/mod_security/Manifest |
18 |
index 945f0937c9c..d53183b7567 100644 |
19 |
--- a/www-apache/mod_security/Manifest |
20 |
+++ b/www-apache/mod_security/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
DIST modsecurity-2.9.1.tar.gz 4261212 BLAKE2B c47c7934d8da870e629c5733cc8c37452e4d90351269a14b99483188e8e3161891bd63bfd70e0723648c8daf51f1c33d900bd90ab0157332f826eab772f09f62 SHA512 374733cbfc26e53d95b78c8f268a4e465d838163e9893fc24e33a9d272b114f1b287147bab6d0289575074cbbd94f48983e23fa59832cbcb32950046cea59269 |
23 |
-DIST modsecurity-apache_2.7.7.tar.gz 1003835 BLAKE2B b36370e67945928df1948adcacb2303f80b461eb48409b2bda6b8013620e0dd977bec6a0c5d3c3cc098479f5c231c558fb7462b6300b4552ad65064f8ce1fb8d SHA512 859f72580b6acaae5db180f98ee32ad2cb0f3ef24321d0c2df20ddd9fcfbc6c09c98b672012dc4931a6fd14f3c21c38ed31ab8900940382fcb48b37f30005a7d |
24 |
|
25 |
diff --git a/www-apache/mod_security/mod_security-2.7.7.ebuild b/www-apache/mod_security/mod_security-2.7.7.ebuild |
26 |
deleted file mode 100644 |
27 |
index 80d37c07968..00000000000 |
28 |
--- a/www-apache/mod_security/mod_security-2.7.7.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,96 +0,0 @@ |
31 |
-# Copyright 1999-2014 Gentoo Foundation |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=4 |
35 |
- |
36 |
-inherit apache-module |
37 |
- |
38 |
-MY_PN=modsecurity-apache |
39 |
-MY_PV=${PV/_rc/-rc} |
40 |
-MY_P=${MY_PN}_${MY_PV} |
41 |
- |
42 |
-DESCRIPTION="Web application firewall and Intrusion Detection System for Apache" |
43 |
-HOMEPAGE="http://www.modsecurity.org/" |
44 |
-SRC_URI="http://www.modsecurity.org/tarball/${PV}/${MY_P}.tar.gz" |
45 |
- |
46 |
-LICENSE="Apache-2.0" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="amd64 ppc sparc x86" |
49 |
-IUSE="geoip curl lua jit" |
50 |
- |
51 |
-DEPEND=">=dev-libs/libxml2-2.7.8 |
52 |
- dev-libs/libpcre[jit?] |
53 |
- lua? ( >=dev-lang/lua-5.1 ) |
54 |
- curl? ( >=net-misc/curl-7.15.1 ) |
55 |
- www-servers/apache[apache2_modules_unique_id]" |
56 |
-RDEPEND="${DEPEND} |
57 |
- geoip? ( dev-libs/geoip )" |
58 |
-PDEPEND=">=www-apache/modsecurity-crs-2.2.6-r1" |
59 |
- |
60 |
-S="${WORKDIR}/${MY_P}" |
61 |
- |
62 |
-APACHE2_MOD_FILE="apache2/.libs/${PN}2.so" |
63 |
-APACHE2_MOD_DEFINE="SECURITY" |
64 |
- |
65 |
-# Tests require symbols only defined within the Apache binary. |
66 |
-RESTRICT=test |
67 |
- |
68 |
-need_apache2 |
69 |
- |
70 |
-src_prepare() { |
71 |
- cp "${FILESDIR}"/modsecurity-2.7.conf "${T}"/79_modsecurity.conf || die |
72 |
-} |
73 |
- |
74 |
-src_configure() { |
75 |
- econf \ |
76 |
- --enable-shared --disable-static \ |
77 |
- --with-apxs="${APXS}" \ |
78 |
- --enable-request-early \ |
79 |
- $(use_enable curl mlogc) \ |
80 |
- $(use_with lua) \ |
81 |
- $(use_enable jit pcre-jit) |
82 |
-} |
83 |
- |
84 |
-src_compile() { |
85 |
- if ! use geoip; then |
86 |
- sed -i -e '/SecGeoLookupDb/s:^:#:' \ |
87 |
- "${T}"/79_modsecurity.conf || die |
88 |
- fi |
89 |
- |
90 |
- emake |
91 |
-} |
92 |
- |
93 |
-src_test() { |
94 |
- emake check |
95 |
-} |
96 |
- |
97 |
-src_install() { |
98 |
- apache-module_src_install |
99 |
- |
100 |
- # install manually rather than by using the APACHE2_MOD_CONF |
101 |
- # variable since we have to edit it to set things up properly. |
102 |
- insinto "${APACHE_MODULES_CONFDIR}" |
103 |
- doins "${T}"/79_modsecurity.conf |
104 |
- |
105 |
- dodoc CHANGES NOTICE README.TXT README_WINDOWS.TXT |
106 |
- |
107 |
- dohtml -r doc/* |
108 |
- |
109 |
- keepdir /var/cache/modsecurity |
110 |
- fowners apache:apache /var/cache/modsecurity |
111 |
- fperms 0770 /var/cache/modsecurity |
112 |
-} |
113 |
- |
114 |
-pkg_postinst() { |
115 |
- if [[ -f "${ROOT}"/etc/apache/modules.d/99_mod_security.conf ]]; then |
116 |
- ewarn "You still have the configuration file 99_mod_security.conf." |
117 |
- ewarn "Please make sure to remove that and keep only 79_modsecurity.conf." |
118 |
- ewarn "" |
119 |
- fi |
120 |
- elog "The base configuration file has been renamed 79_modsecurity.conf" |
121 |
- elog "so that you can put your own configuration as 90_modsecurity_local.conf or" |
122 |
- elog "equivalent." |
123 |
- elog "" |
124 |
- elog "That would be the correct place for site-global security rules." |
125 |
- elog "Note: 80_modsecurity_crs.conf is used by www-apache/modsecurity-crs" |
126 |
-} |