Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/mod_security: ChangeLog mod_security-2.5.6.ebuild mod_security-2.5.4.ebuild mod_security-2.5.1.ebuild
Date: Thu, 01 Jan 2009 14:11:38
Message-Id: E1LIOGu-0001Jj-QI@stork.gentoo.org
1 hollow 09/01/01 14:11:36
2
3 Modified: ChangeLog
4 Added: mod_security-2.5.6.ebuild
5 Removed: mod_security-2.5.4.ebuild mod_security-2.5.1.ebuild
6 Log:
7 version bump wrt security #240946
8 (Portage version: 2.2_rc18/cvs/Linux 2.6.22-vs2.3.0.34-gentoo x86_64)
9
10 Revision Changes Path
11 1.16 www-apache/mod_security/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_security/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 1 Jul 2008 19:43:17 -0000 1.15
24 +++ ChangeLog 1 Jan 2009 14:11:36 -0000 1.16
25 @@ -1,6 +1,13 @@
26 # ChangeLog for www-apache/mod_security
27 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.15 2008/07/01 19:43:17 hollow Exp $
29 +# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.16 2009/01/01 14:11:36 hollow Exp $
31 +
32 +*mod_security-2.5.6 (01 Jan 2009)
33 +
34 + 01 Jan 2009; Benedikt Böhm <hollow@g.o>
35 + -mod_security-2.5.1.ebuild, -mod_security-2.5.4.ebuild,
36 + +mod_security-2.5.6.ebuild:
37 + version bump wrt security #240946
38
39 *mod_security-2.5.5 (01 Jul 2008)
40
41
42
43
44 1.1 www-apache/mod_security/mod_security-2.5.6.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_security/mod_security-2.5.6.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_security/mod_security-2.5.6.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mod_security-2.5.6.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/mod_security-2.5.6.ebuild,v 1.1 2009/01/01 14:11:36 hollow Exp $
54
55 inherit apache-module
56
57 MY_P=${P/mod_security-/modsecurity-apache_}
58 MY_P=${MY_P/_rc/-rc}
59
60 DESCRIPTION="Web application firewall and Intrusion Detection System for Apache."
61 HOMEPAGE="http://www.modsecurity.org/"
62 SRC_URI="http://www.modsecurity.org/download/${MY_P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86"
67 IUSE="lua"
68
69 DEPEND="dev-libs/libxml2
70 lua? ( >=dev-lang/lua-5.1 )"
71 RDEPEND="${DEPEND}"
72
73 S="${WORKDIR}/${MY_P}"
74
75 APACHE2_MOD_FILE="apache2/.libs/${PN}2.so"
76 APACHE2_MOD_CONF="2.1.2/99_mod_security"
77 APACHE2_MOD_DEFINE="SECURITY"
78
79 need_apache2
80
81 src_compile() {
82 cd apache2
83
84 econf --with-apxs="${APXS}" \
85 --without-curl \
86 $(use_with lua) \
87 || die "econf failed"
88
89 emake || die "emake failed"
90 }
91
92 src_install() {
93 apache-module_src_install
94
95 # install rules updater
96 newbin tools/rules-updater.pl rules-updater
97
98 # install documentation
99 dodoc CHANGES
100 newdoc rules/CHANGELOG CHANGES.crs
101 newdoc rules/README README.crs
102 dohtml doc/*.html doc/*.gif doc/*.jpg doc/*.css doc/*.pdf
103 insinto /usr/share/doc/${P}/html/
104 doins -r doc/html-multipage
105
106 # Prepare the core ruleset
107 sed -i -e 's:logs/:/var/log/apache2/:g' "${S}"/rules/*.conf
108 for i in "${S}"/rules/*.conf; do
109 mv $i ${i/modsecurity_crs_/}
110 done
111
112 # Install core ruleset
113 insinto ${APACHE_MODULES_CONFDIR}/mod_security/
114 doins "${S}"/rules/*.conf
115 }