Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/mod_security: mod_security-2.7.7.ebuild ChangeLog
Date: Fri, 03 Oct 2014 18:16:01
Message-Id: 20141003181558.0D1F46DDC@oystercatcher.gentoo.org
1 flameeyes 14/10/03 18:15:58
2
3 Modified: ChangeLog
4 Added: mod_security-2.7.7.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342)
9
10 Revision Changes Path
11 1.115 www-apache/mod_security/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.115&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.115&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?r1=1.114&r2=1.115
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v
20 retrieving revision 1.114
21 retrieving revision 1.115
22 diff -u -r1.114 -r1.115
23 --- ChangeLog 10 Aug 2014 20:17:53 -0000 1.114
24 +++ ChangeLog 3 Oct 2014 18:15:58 -0000 1.115
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-apache/mod_security
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.114 2014/08/10 20:17:53 slyfox Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.115 2014/10/03 18:15:58 flameeyes Exp $
30 +
31 +*mod_security-2.7.7 (03 Oct 2014)
32 +
33 + 03 Oct 2014; Diego E. Pettenò <flameeyes@g.o>
34 + +mod_security-2.7.7.ebuild:
35 + Version bump.
36
37 10 Aug 2014; Sergei Trofimovich <slyfox@g.o> mod_security-2.7.4.ebuild,
38 mod_security-2.7.5.ebuild:
39
40
41
42 1.1 www-apache/mod_security/mod_security-2.7.7.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.7.7.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.7.7.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mod_security-2.7.7.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/mod_security-2.7.7.ebuild,v 1.1 2014/10/03 18:15:58 flameeyes Exp $
52
53 EAPI=4
54
55 inherit apache-module
56
57 MY_PN=modsecurity-apache
58 MY_PV=${PV/_rc/-rc}
59 MY_P=${MY_PN}_${MY_PV}
60
61 DESCRIPTION="Web application firewall and Intrusion Detection System for Apache"
62 HOMEPAGE="http://www.modsecurity.org/"
63 SRC_URI="http://www.modsecurity.org/tarball/${PV}/${MY_P}.tar.gz"
64
65 LICENSE="Apache-2.0"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
68 IUSE="geoip curl lua jit"
69
70 DEPEND=">=dev-libs/libxml2-2.7.8
71 dev-libs/libpcre[jit?]
72 lua? ( >=dev-lang/lua-5.1 )
73 curl? ( >=net-misc/curl-7.15.1 )
74 www-servers/apache[apache2_modules_unique_id]"
75 RDEPEND="${DEPEND}
76 geoip? ( dev-libs/geoip )"
77 PDEPEND=">=www-apache/modsecurity-crs-2.2.6-r1"
78
79 S="${WORKDIR}/${MY_P}"
80
81 APACHE2_MOD_FILE="apache2/.libs/${PN}2.so"
82 APACHE2_MOD_DEFINE="SECURITY"
83
84 # Tests require symbols only defined within the Apache binary.
85 RESTRICT=test
86
87 need_apache2
88
89 src_prepare() {
90 cp "${FILESDIR}"/modsecurity-2.7.conf "${T}"/79_modsecurity.conf || die
91 }
92
93 src_configure() {
94 econf \
95 --enable-shared --disable-static \
96 --with-apxs="${APXS}" \
97 --enable-request-early \
98 $(use_enable curl mlogc) \
99 $(use_with lua) \
100 $(use_enable jit pcre-jit)
101 }
102
103 src_compile() {
104 if ! use geoip; then
105 sed -i -e '/SecGeoLookupDb/s:^:#:' \
106 "${T}"/79_modsecurity.conf || die
107 fi
108
109 emake
110 }
111
112 src_test() {
113 emake check
114 }
115
116 src_install() {
117 apache-module_src_install
118
119 # install manually rather than by using the APACHE2_MOD_CONF
120 # variable since we have to edit it to set things up properly.
121 insinto "${APACHE_MODULES_CONFDIR}"
122 doins "${T}"/79_modsecurity.conf
123
124 dodoc CHANGES NOTICE README.TXT README_WINDOWS.TXT
125
126 dohtml -r doc/*
127
128 keepdir /var/cache/modsecurity
129 fowners apache:apache /var/cache/modsecurity
130 fperms 0770 /var/cache/modsecurity
131 }
132
133 pkg_postinst() {
134 if [[ -f "${ROOT}"/etc/apache/modules.d/99_mod_security.conf ]]; then
135 ewarn "You still have the configuration file 99_mod_security.conf."
136 ewarn "Please make sure to remove that and keep only 79_modsecurity.conf."
137 ewarn ""
138 fi
139 elog "The base configuration file has been renamed 79_modsecurity.conf"
140 elog "so that you can put your own configuration as 90_modsecurity_local.conf or"
141 elog "equivalent."
142 elog ""
143 elog "That would be the correct place for site-global security rules."
144 elog "Note: 80_modsecurity_crs.conf is used by www-apache/modsecurity-crs"
145 }