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.6.7.ebuild ChangeLog mod_security-2.6.3.ebuild
Date: Wed, 01 Aug 2012 22:47:59
Message-Id: 20120801224749.9340A2004B@flycatcher.gentoo.org
1 flameeyes 12/08/01 22:47:49
2
3 Modified: ChangeLog
4 Added: mod_security-2.6.7.ebuild
5 Removed: mod_security-2.6.3.ebuild
6 Log:
7 Version bump; remove old.
8
9 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.81 www-apache/mod_security/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.81&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.81&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?r1=1.80&r2=1.81
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v
21 retrieving revision 1.80
22 retrieving revision 1.81
23 diff -u -r1.80 -r1.81
24 --- ChangeLog 15 Jul 2012 17:01:16 -0000 1.80
25 +++ ChangeLog 1 Aug 2012 22:47:49 -0000 1.81
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-apache/mod_security
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.80 2012/07/15 17:01:16 armin76 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.81 2012/08/01 22:47:49 flameeyes Exp $
31 +
32 +*mod_security-2.6.7 (01 Aug 2012)
33 +
34 + 01 Aug 2012; Diego E. Pettenò <flameeyes@g.o>
35 + +mod_security-2.6.7.ebuild, -mod_security-2.6.3.ebuild:
36 + Version bump; remove old.
37
38 15 Jul 2012; Raúl Porcel <armin76@g.o> mod_security-2.6.6.ebuild:
39 sparc stable wrt #422973
40
41
42
43 1.1 www-apache/mod_security/mod_security-2.6.7.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.7.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.7.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mod_security-2.6.7.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/mod_security-2.6.7.ebuild,v 1.1 2012/08/01 22:47:49 flameeyes Exp $
53
54 EAPI=4
55
56 inherit apache-module
57
58 MY_PN=modsecurity-apache
59 MY_PV=${PV/_rc/-rc}
60 MY_P=${MY_PN}_${MY_PV}
61
62 DESCRIPTION="Web application firewall and Intrusion Detection System for Apache."
63 HOMEPAGE="http://www.modsecurity.org/"
64 SRC_URI="mirror://sourceforge/project/mod-security/${MY_PN}/${MY_PV}/${MY_P}.tar.gz"
65
66 LICENSE="Apache-2.0"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
69 IUSE="geoip curl lua"
70
71 DEPEND=">=dev-libs/libxml2-2.7.8
72 dev-libs/libpcre
73 lua? ( >=dev-lang/lua-5.1 )
74 curl? ( >=net-misc/curl-7.15.1 )
75 www-servers/apache[apache2_modules_unique_id]"
76 RDEPEND="${DEPEND}
77 geoip? ( dev-libs/geoip )"
78 PDEPEND="www-apache/modsecurity-crs"
79
80 S="${WORKDIR}/${MY_P}"
81
82 APACHE2_MOD_FILE="apache2/.libs/${PN}2.so"
83 APACHE2_MOD_DEFINE="SECURITY"
84
85 # Tests require symbols only defined within the Apache binary.
86 RESTRICT=test
87
88 need_apache2
89
90 src_prepare() {
91 cp "${FILESDIR}"/modsecurity.conf "${T}"/79_modsecurity.conf || die
92 }
93
94 src_configure() {
95 econf \
96 --enable-shared --disable-static \
97 --with-apxs="${APXS}" \
98 $(use_enable curl mlogc) \
99 $(use_with lua) \
100 || die "econf failed"
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 || die
110 }
111
112 src_test() {
113 emake check || die
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
125
126 keepdir /var/cache/modsecurity
127 fowners apache:apache /var/cache/modsecurity
128 fperms 0770 /var/cache/modsecurity
129 }
130
131 pkg_postinst() {
132 if [[ -f "${ROOT}"/etc/apache/modules.d/99_mod_security.conf ]]; then
133 ewarn "You still have the configuration file 99_mod_security.conf."
134 ewarn "Please make sure to remove that and keep only 79_modsecurity.conf."
135 ewarn ""
136 fi
137 elog "The base configuration file has been renamed 79_modsecurity.conf"
138 elog "so that you can put your own configuration as 90_modsecurity_local.conf or"
139 elog "equivalent."
140 elog ""
141 elog "That would be the correct place for site-global security rules."
142 elog "Note: 80_modsecurity_crs.conf is used by www-apache/modsecurity-crs"
143 }