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.5.13.ebuild ChangeLog |
Date: | Wed, 01 Dec 2010 21:59:00 |
Message-Id: | 20101201215850.AFDD620054@flycatcher.gentoo.org |
1 | flameeyes 10/12/01 21:58:50 |
2 | |
3 | Modified: ChangeLog |
4 | Added: mod_security-2.5.13.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.2.0_alpha6/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.47 www-apache/mod_security/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.47&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.47&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?r1=1.46&r2=1.47 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v |
20 | retrieving revision 1.46 |
21 | retrieving revision 1.47 |
22 | diff -u -r1.46 -r1.47 |
23 | --- ChangeLog 24 Oct 2010 17:45:04 -0000 1.46 |
24 | +++ ChangeLog 1 Dec 2010 21:58:50 -0000 1.47 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for www-apache/mod_security |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.46 2010/10/24 17:45:04 armin76 Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.47 2010/12/01 21:58:50 flameeyes Exp $ |
30 | + |
31 | +*mod_security-2.5.13 (01 Dec 2010) |
32 | + |
33 | + 01 Dec 2010; Diego E. Pettenò <flameeyes@g.o> |
34 | + +mod_security-2.5.13.ebuild: |
35 | + Version bump. |
36 | |
37 | 24 Oct 2010; Raúl Porcel <armin76@g.o> |
38 | mod_security-2.5.12-r1.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 www-apache/mod_security/mod_security-2.5.13.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.5.13.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.5.13.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: mod_security-2.5.13.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/mod_security/mod_security-2.5.13.ebuild,v 1.1 2010/12/01 21:58:50 flameeyes Exp $ |
52 | |
53 | EAPI=2 |
54 | |
55 | inherit apache-module autotools |
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 ~sparc ~x86" |
67 | IUSE="lua" |
68 | |
69 | DEPEND="dev-libs/libxml2 |
70 | lua? ( >=dev-lang/lua-5.1 ) |
71 | www-servers/apache[apache2_modules_unique_id]" |
72 | RDEPEND="${DEPEND}" |
73 | PDEPEND="www-apache/modsecurity-crs" |
74 | |
75 | S="${WORKDIR}/${MY_P}" |
76 | |
77 | APACHE2_MOD_FILE="apache2/.libs/${PN}2.so" |
78 | APACHE2_MOD_CONF="2.5.10/99_mod_security" |
79 | APACHE2_MOD_DEFINE="SECURITY" |
80 | |
81 | need_apache2 |
82 | |
83 | src_prepare() { |
84 | epatch "${FILESDIR}"/${PN}-2.5.10-as-needed.patch |
85 | |
86 | cd apache2 |
87 | eautoreconf |
88 | } |
89 | |
90 | src_configure() { |
91 | cd apache2 |
92 | |
93 | econf --with-apxs="${APXS}" \ |
94 | --without-curl \ |
95 | $(use_with lua) \ |
96 | || die "econf failed" |
97 | } |
98 | |
99 | src_compile() { |
100 | cd apache2 |
101 | |
102 | APXS_FLAGS= |
103 | for flag in ${CFLAGS}; do |
104 | APXS_FLAGS="${APXS_FLAGS} -Wc,${flag}" |
105 | done |
106 | |
107 | # Yes we need to prefix it _twice_ |
108 | for flag in ${LDFLAGS}; do |
109 | APXS_FLAGS="${APXS_FLAGS} -Wl,${flag}" |
110 | done |
111 | |
112 | emake \ |
113 | APXS_CFLAGS="${CFLAGS}" \ |
114 | APXS_LDFLAGS="${LDFLAGS}" \ |
115 | APXS_EXTRA_CFLAGS="${APXS_FLAGS}" \ |
116 | || die "emake failed" |
117 | } |
118 | |
119 | src_test() { |
120 | cd apache2 |
121 | emake test || die |
122 | } |
123 | |
124 | src_install() { |
125 | apache-module_src_install |
126 | |
127 | # install documentation |
128 | dodoc CHANGES || die |
129 | dohtml -r doc/* || die |
130 | |
131 | keepdir /var/cache/mod_security || die |
132 | fowners apache:apache /var/cache/mod_security || die |
133 | fperms 0770 /var/cache/mod_security || die |
134 | } |