1 |
flameeyes 11/10/02 13:40:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mod_security-2.6.2.ebuild |
5 |
Removed: mod_security-2.6.2_rc1.ebuild |
6 |
Log: |
7 |
Version bump. |
8 |
|
9 |
(Portage version: 2.2.0_alpha60/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.62 www-apache/mod_security/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.62&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.62&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?r1=1.61&r2=1.62 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v |
21 |
retrieving revision 1.61 |
22 |
retrieving revision 1.62 |
23 |
diff -u -r1.61 -r1.62 |
24 |
--- ChangeLog 20 Sep 2011 15:34:12 -0000 1.61 |
25 |
+++ ChangeLog 2 Oct 2011 13:40:01 -0000 1.62 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-apache/mod_security |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.61 2011/09/20 15:34:12 nativemad Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.62 2011/10/02 13:40:01 flameeyes Exp $ |
31 |
+ |
32 |
+*mod_security-2.6.2 (02 Oct 2011) |
33 |
+ |
34 |
+ 02 Oct 2011; Diego E. Pettenò <flameeyes@g.o> |
35 |
+ -mod_security-2.6.2_rc1.ebuild, +mod_security-2.6.2.ebuild: |
36 |
+ Version bump. |
37 |
|
38 |
20 Sep 2011; Andreas Schuerch <nativemad@g.o> |
39 |
mod_security-2.6.1.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 www-apache/mod_security/mod_security-2.6.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: mod_security-2.6.2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 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.2.ebuild,v 1.1 2011/10/02 13:40:01 flameeyes Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit apache-module autotools |
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 |
eautoreconf |
94 |
} |
95 |
|
96 |
src_configure() { |
97 |
econf \ |
98 |
--enable-shared --disable-static \ |
99 |
--with-apxs="${APXS}" \ |
100 |
$(use_enable curl mlogc) \ |
101 |
$(use_with lua) \ |
102 |
|| die "econf failed" |
103 |
} |
104 |
|
105 |
src_compile() { |
106 |
if ! use geoip; then |
107 |
sed -i -e '/SecGeoLookupDb/s:^:#:' \ |
108 |
"${T}"/79_modsecurity.conf || die |
109 |
fi |
110 |
|
111 |
emake || die |
112 |
} |
113 |
|
114 |
src_test() { |
115 |
emake check || die |
116 |
} |
117 |
|
118 |
src_install() { |
119 |
apache-module_src_install |
120 |
|
121 |
# install manually rather than by using the APACHE2_MOD_CONF |
122 |
# variable since we have to edit it to set things up properly. |
123 |
insinto "${APACHE_MODULES_CONFDIR}" |
124 |
doins "${T}"/79_modsecurity.conf |
125 |
|
126 |
dodoc CHANGES |
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 |
} |