1 |
flameeyes 11/12/27 21:46:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mod_security-2.6.3.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha83/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.64 www-apache/mod_security/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.64&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.64&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?r1=1.63&r2=1.64 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v |
20 |
retrieving revision 1.63 |
21 |
retrieving revision 1.64 |
22 |
diff -u -r1.63 -r1.64 |
23 |
--- ChangeLog 18 Dec 2011 17:30:24 -0000 1.63 |
24 |
+++ ChangeLog 27 Dec 2011 21:46:34 -0000 1.64 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-apache/mod_security |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.63 2011/12/18 17:30:24 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.64 2011/12/27 21:46:34 flameeyes Exp $ |
30 |
+ |
31 |
+*mod_security-2.6.3 (27 Dec 2011) |
32 |
+ |
33 |
+ 27 Dec 2011; Diego E. Pettenò <flameeyes@g.o> |
34 |
+ +mod_security-2.6.3.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
18 Dec 2011; Raúl Porcel <armin76@g.o> mod_security-2.6.1.ebuild: |
38 |
sparc stable wrt #383315 |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-apache/mod_security/mod_security-2.6.3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mod_security-2.6.3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 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.6.3.ebuild,v 1.1 2011/12/27 21:46:34 flameeyes Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
inherit apache-module autotools |
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="mirror://sourceforge/project/mod-security/${MY_PN}/${MY_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" |
69 |
|
70 |
DEPEND=">=dev-libs/libxml2-2.7.8 |
71 |
dev-libs/libpcre |
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" |
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.conf "${T}"/79_modsecurity.conf || die |
91 |
|
92 |
eautoreconf |
93 |
} |
94 |
|
95 |
src_configure() { |
96 |
econf \ |
97 |
--enable-shared --disable-static \ |
98 |
--with-apxs="${APXS}" \ |
99 |
$(use_enable curl mlogc) \ |
100 |
$(use_with lua) \ |
101 |
|| die "econf failed" |
102 |
} |
103 |
|
104 |
src_compile() { |
105 |
if ! use geoip; then |
106 |
sed -i -e '/SecGeoLookupDb/s:^:#:' \ |
107 |
"${T}"/79_modsecurity.conf || die |
108 |
fi |
109 |
|
110 |
emake || die |
111 |
} |
112 |
|
113 |
src_test() { |
114 |
emake check || die |
115 |
} |
116 |
|
117 |
src_install() { |
118 |
apache-module_src_install |
119 |
|
120 |
# install manually rather than by using the APACHE2_MOD_CONF |
121 |
# variable since we have to edit it to set things up properly. |
122 |
insinto "${APACHE_MODULES_CONFDIR}" |
123 |
doins "${T}"/79_modsecurity.conf |
124 |
|
125 |
dodoc CHANGES |
126 |
|
127 |
keepdir /var/cache/modsecurity |
128 |
fowners apache:apache /var/cache/modsecurity |
129 |
fperms 0770 /var/cache/modsecurity |
130 |
} |
131 |
|
132 |
pkg_postinst() { |
133 |
if [[ -f "${ROOT}"/etc/apache/modules.d/99_mod_security.conf ]]; then |
134 |
ewarn "You still have the configuration file 99_mod_security.conf." |
135 |
ewarn "Please make sure to remove that and keep only 79_modsecurity.conf." |
136 |
ewarn "" |
137 |
fi |
138 |
elog "The base configuration file has been renamed 79_modsecurity.conf" |
139 |
elog "so that you can put your own configuration as 90_modsecurity_local.conf or" |
140 |
elog "equivalent." |
141 |
elog "" |
142 |
elog "That would be the correct place for site-global security rules." |
143 |
elog "Note: 80_modsecurity_crs.conf is used by www-apache/modsecurity-crs" |
144 |
} |