Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/mod_security: ChangeLog mod_security-2.6.0_rc2.ebuild
Date: Mon, 02 May 2011 17:12:31
Message-Id: 20110502171221.447742004F@flycatcher.gentoo.org
1 flameeyes 11/05/02 17:12:21
2
3 Modified: ChangeLog
4 Added: mod_security-2.6.0_rc2.ebuild
5 Log:
6 Bump to newer release candidate.
7
8 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.54 www-apache/mod_security/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.54&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?rev=1.54&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/ChangeLog?r1=1.53&r2=1.54
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v
20 retrieving revision 1.53
21 retrieving revision 1.54
22 diff -u -r1.53 -r1.54
23 --- ChangeLog 19 Apr 2011 08:10:34 -0000 1.53
24 +++ ChangeLog 2 May 2011 17:12:21 -0000 1.54
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.53 2011/04/19 08:10:34 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.54 2011/05/02 17:12:21 flameeyes Exp $
30 +
31 +*mod_security-2.6.0_rc2 (02 May 2011)
32 +
33 + 02 May 2011; Diego E. Pettenò <flameeyes@g.o>
34 + +mod_security-2.6.0_rc2.ebuild:
35 + Bump to newer release candidate.
36
37 19 Apr 2011; Diego E. Pettenò <flameeyes@g.o>
38 mod_security-2.6.0_rc1.ebuild:
39
40
41
42 1.1 www-apache/mod_security/mod_security-2.6.0_rc2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.0_rc2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_security/mod_security-2.6.0_rc2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mod_security-2.6.0_rc2.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.0_rc2.ebuild,v 1.1 2011/05/02 17:12:21 flameeyes Exp $
52
53 EAPI=4
54
55 inherit apache-module autotools
56
57 MY_P=modsecurity-apache_${PV/_rc/-rc}
58
59 DESCRIPTION="Web application firewall and Intrusion Detection System for Apache."
60 HOMEPAGE="http://www.modsecurity.org/"
61 SRC_URI="http://www.modsecurity.org/download/${MY_P}.tar.gz"
62
63 LICENSE="Apache-2.0"
64 SLOT="0"
65 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
66 IUSE="geoip curl"
67
68 DEPEND=">=dev-libs/libxml2-2.7.8
69 dev-libs/libpcre
70 >=dev-lang/lua-5.1
71 curl? ( >=net-misc/curl-7.15.1 )
72 www-servers/apache[apache2_modules_unique_id]"
73 RDEPEND="${DEPEND}
74 geoip? ( dev-libs/geoip )"
75 PDEPEND="www-apache/modsecurity-crs"
76
77 S="${WORKDIR}/${MY_P}"
78
79 APACHE2_MOD_FILE="apache2/.libs/${PN}2.so"
80 APACHE2_MOD_DEFINE="SECURITY"
81
82 # Tests require symbols only defined within the Apache binary.
83 RESTRICT=test
84
85 need_apache2
86
87 src_prepare() {
88 cp "${FILESDIR}"/modsecurity.conf "${T}"/79_modsecurity.conf || die
89
90 eautoreconf
91 }
92
93 src_configure() {
94 econf \
95 --enable-shared --disable-static \
96 --with-apxs="${APXS}" \
97 $(use_enable curl mlogc) \
98 || die "econf failed"
99 }
100
101 src_compile() {
102 if ! use geoip; then
103 sed -i -e '/SecGeoLookupDb/s:^:#:' \
104 "${T}"/79_modsecurity.conf || die
105 fi
106
107 emake || die
108 }
109
110 src_test() {
111 emake check || die
112 }
113
114 src_install() {
115 apache-module_src_install
116
117 # install manually rather than by using the APACHE2_MOD_CONF
118 # variable since we have to edit it to set things up properly.
119 insinto "${APACHE_MODULES_CONFDIR}"
120 doins "${T}"/79_modsecurity.conf
121
122 dodoc CHANGES
123
124 keepdir /var/cache/modsecurity
125 fowners apache:apache /var/cache/modsecurity
126 fperms 0770 /var/cache/modsecurity
127 }
128
129 pkg_postinst() {
130 if [[ -f "${ROOT}"/etc/apache/modules.d/99_mod_security.conf ]]; then
131 ewarn "You still have the configuration file 99_mod_security.conf."
132 ewarn "Please make sure to remove that and keep only 79_modsecurity.conf."
133 ewarn ""
134 fi
135 elog "The base configuration file has been renamed 79_modsecurity.conf"
136 elog "so that you can put your own configuration as 90_modsecurity_local.conf or"
137 elog "equivalent."
138 elog ""
139 elog "That would be the correct place for site-global security rules."
140 elog "Note: 80_modsecurity_crs.conf is used by www-apache/modsecurity-crs"
141 }