1 |
flameeyes 10/12/01 21:38:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: modsecurity-crs-2.0.10.ebuild |
5 |
Log: |
6 |
Version bump, the phpids is optional upstream now. |
7 |
|
8 |
(Portage version: 2.2.0_alpha6/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 www-apache/modsecurity-crs/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/modsecurity-crs/ChangeLog?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/modsecurity-crs/ChangeLog?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/modsecurity-crs/ChangeLog?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apache/modsecurity-crs/ChangeLog,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- ChangeLog 24 Oct 2010 17:41:16 -0000 1.3 |
24 |
+++ ChangeLog 1 Dec 2010 21:38:02 -0000 1.4 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-apache/modsecurity-crs |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apache/modsecurity-crs/ChangeLog,v 1.3 2010/10/24 17:41:16 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apache/modsecurity-crs/ChangeLog,v 1.4 2010/12/01 21:38:02 flameeyes Exp $ |
30 |
+ |
31 |
+*modsecurity-crs-2.0.10 (01 Dec 2010) |
32 |
+ |
33 |
+ 01 Dec 2010; Diego E. Pettenò <flameeyes@g.o> |
34 |
+ +modsecurity-crs-2.0.10.ebuild: |
35 |
+ Version bump, the phpids is optional upstream now. |
36 |
|
37 |
24 Oct 2010; Raúl Porcel <armin76@g.o> |
38 |
modsecurity-crs-2.0.8.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-apache/modsecurity-crs/modsecurity-crs-2.0.10.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/modsecurity-crs/modsecurity-crs-2.0.10.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/modsecurity-crs/modsecurity-crs-2.0.10.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: modsecurity-crs-2.0.10.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-apache/modsecurity-crs/modsecurity-crs-2.0.10.ebuild,v 1.1 2010/12/01 21:38:02 flameeyes Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
|
55 |
DESCRIPTION="Core Rule Set for ModSecurity" |
56 |
HOMEPAGE="http://www.owasp.org/index.php/Category:OWASP_ModSecurity_Core_Rule_Set_Project" |
57 |
SRC_URI="mirror://sourceforge/mod-security/${PN}_${PV}.tar.gz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~sparc ~x86" |
62 |
IUSE="vanilla" |
63 |
|
64 |
RDEPEND=">=www-apache/mod_security-2.5.12-r1" |
65 |
DEPEND="" |
66 |
|
67 |
S="${WORKDIR}/${PN}_${PV}" |
68 |
|
69 |
RULESDIR=/etc/apache2/modules.d/mod_security |
70 |
|
71 |
src_install() { |
72 |
insinto "${RULESDIR}" || die |
73 |
doins base_rules/* || die |
74 |
|
75 |
# these are considered examples, but we install them anyway, and let |
76 |
# etc-update deal with them. |
77 |
for file in *.conf.example; do |
78 |
newins "${file}" "${file%.example}" || die "failed to install ${file}" |
79 |
done |
80 |
|
81 |
insinto "${RULESDIR}"/optional_rules |
82 |
doins optional_rules/* || die |
83 |
|
84 |
# These are not conditionals because they actually need to be |
85 |
# moved for the rules to work — bug #329131 |
86 |
mv "${D}${RULESDIR}"/modsecurity_42_comment_spam.data \ |
87 |
"${D}${RULESDIR}"/optional_rules || die |
88 |
|
89 |
if ! use vanilla; then |
90 |
mv "${D}${RULESDIR}"/modsecurity_*50_outbound* \ |
91 |
"${D}${RULESDIR}"/optional_rules || die |
92 |
fi |
93 |
|
94 |
dodoc CHANGELOG README || die |
95 |
} |
96 |
|
97 |
pkg_postinst() { |
98 |
if ! use vanilla; then |
99 |
elog "Please note that the Core Rule Set is quite draconic; to make it more usable," |
100 |
elog "the Gentoo distribution disables a few rule set files, that are relevant for" |
101 |
elog "PHP-only websites or that would make it kill a website that discussed of source code." |
102 |
elog |
103 |
elog "Furthermore we disable the 'HTTP Parameter Pollution' tests that disallow" |
104 |
elog "multiple parameters with the same name, because that's common practice both" |
105 |
elog "for Rails-based web-applications and Bugzilla." |
106 |
else |
107 |
elog "You decided to enable the original Core Rule Set from ModSecurity." |
108 |
elog "Be warned that the original Core Rule Set is draconic and most likely will" |
109 |
elog "render your web application unusable if you don't disable at leat some of" |
110 |
elog "the rules." |
111 |
fi |
112 |
elog |
113 |
elog "If you want to enable further rules, check the following directory:" |
114 |
elog " ${APACHE_MODULES_CONFDIR}/mod_security/optional_rules" |
115 |
} |