Gentoo Archives: gentoo-commits

From: "Tony Vroon (chainsaw)" <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/apache: metadata.xml ChangeLog apache-2.4.4-r1.ebuild
Date: Wed, 27 Feb 2013 15:49:19
Message-Id: 20130227154915.B5E592171D@flycatcher.gentoo.org
1 chainsaw 13/02/27 15:49:15
2
3 Modified: metadata.xml ChangeLog
4 Added: apache-2.4.4-r1.ebuild
5 Log:
6 Add support for mod_proxy_fcgi; work by Dan Kozlowski rediffed by Jaco Kroon. Testing by Tomas Mozes & Marios Andreopoulos in bug #421135.
7
8 (Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key 0xB5058F9A)
9
10 Revision Changes Path
11 1.11 www-servers/apache/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/metadata.xml?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/metadata.xml?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/metadata.xml?r1=1.10&r2=1.11
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/apache/metadata.xml,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- metadata.xml 16 Feb 2013 13:07:31 -0000 1.10
24 +++ metadata.xml 27 Feb 2013 15:49:15 -0000 1.11
25 @@ -28,5 +28,6 @@
26 <flag name='apache2_modules_slotmem_shm'>Slot-based shared memory provider.</flag>
27 <flag name='apache2_modules_socache_shmcb'>A shared object cache provider using a high-performance cyclic buffer inside a shared memory segment.</flag>
28 <flag name='apache2_modules_unixd'>Basic (required) security for Unix-family platforms.</flag>
29 + <flag name='apache2_modules_proxy_fcgi'>FCGI support module for mod_proxy.</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.206 www-servers/apache/ChangeLog
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?rev=1.206&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?rev=1.206&content-type=text/plain
39 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?r1=1.205&r2=1.206
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v
44 retrieving revision 1.205
45 retrieving revision 1.206
46 diff -u -r1.205 -r1.206
47 --- ChangeLog 27 Feb 2013 06:56:36 -0000 1.205
48 +++ ChangeLog 27 Feb 2013 15:49:15 -0000 1.206
49 @@ -1,6 +1,13 @@
50 # ChangeLog for www-servers/apache
51 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.205 2013/02/27 06:56:36 patrick Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.206 2013/02/27 15:49:15 chainsaw Exp $
54 +
55 +*apache-2.4.4-r1 (27 Feb 2013)
56 +
57 + 27 Feb 2013; Tony Vroon <chainsaw@g.o> +apache-2.4.4-r1.ebuild,
58 + metadata.xml:
59 + Add support for mod_proxy_fcgi; work by Dan Kozlowski rediffed by Jaco Kroon.
60 + Testing by Tomas Mozes & Marios Andreopoulos in bug #421135.
61
62 *apache-2.4.4 (27 Feb 2013)
63
64
65
66
67 1.1 www-servers/apache/apache-2.4.4-r1.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/apache-2.4.4-r1.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/apache-2.4.4-r1.ebuild?rev=1.1&content-type=text/plain
71
72 Index: apache-2.4.4-r1.ebuild
73 ===================================================================
74 # Copyright 1999-2013 Gentoo Foundation
75 # Distributed under the terms of the GNU General Public License v2
76 # $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.4.4-r1.ebuild,v 1.1 2013/02/27 15:49:15 chainsaw Exp $
77
78 EAPI="2"
79
80 # latest gentoo apache files
81 GENTOO_PATCHSTAMP="20130227"
82 GENTOO_DEVELOPER="patrick"
83 GENTOO_PATCHNAME="gentoo-apache-2.4.4"
84
85 # IUSE/USE_EXPAND magic
86 IUSE_MPMS_FORK="itk peruser prefork"
87 IUSE_MPMS_THREAD="event worker"
88
89 # << obsolete modules:
90 # authn_default authz_default mem_cache
91 # mem_cache is replaced by cache_disk
92 # ?? buggy modules
93 # proxy_scgi: startup error: undefined symbol "ap_proxy_release_connection", no fix found
94 # >> added modules for reason:
95 # compat: compatibility with 2.2 access control
96 # authz_host: new module for access control
97 # authn_core: functionality provided by authn_alias in previous versions
98 # authz_core: new module, provides core authorization capabilities
99 # cache_disk: replacement for mem_cache
100 # lbmethod_byrequests: Split off from mod_proxy_balancer in 2.3
101 # lbmethod_bytraffic: Split off from mod_proxy_balancer in 2.3
102 # lbmethod_bybusyness: Split off from mod_proxy_balancer in 2.3
103 # lbmethod_heartbeat: Split off from mod_proxy_balancer in 2.3
104 # slotmem_shm: Slot-based shared memory provider (for lbmethod_byrequests).
105 # socache_shmcb: shared object cache provider. Default config with ssl needs it
106 # unixd: fixes startup error: Invalid command 'User'
107 IUSE_MODULES="access_compat actions alias asis auth_basic auth_digest authn_alias authn_anon
108 authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm
109 authz_groupfile authz_host authz_owner authz_user autoindex cache cache_disk cern_meta
110 charset_lite cgi cgid dav dav_fs dav_lock dbd deflate dir dumpio
111 env expires ext_filter file_cache filter headers ident imagemap include info
112 lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat
113 log_config log_forensic logio mime mime_magic negotiation proxy
114 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi proxy_fcgi rewrite
115 reqtimeout setenvif slotmem_shm speling socache_shmcb status substitute unique_id userdir usertrack
116 unixd version vhost_alias"
117 # The following are also in the source as of this version, but are not available
118 # for user selection:
119 # bucketeer case_filter case_filter_in echo http isapi optional_fn_export
120 # optional_fn_import optional_hook_export optional_hook_import
121
122 # inter-module dependencies
123 # TODO: this may still be incomplete
124 MODULE_DEPENDS="
125 dav_fs:dav
126 dav_lock:dav
127 deflate:filter
128 cache_disk:cache
129 ext_filter:filter
130 file_cache:cache
131 lbmethod_byrequests:proxy_balancer
132 lbmethod_byrequests:slotmem_shm
133 lbmethod_bytraffic:proxy_balancer
134 lbmethod_bybusyness:proxy_balancer
135 lbmethod_heartbeat:proxy_balancer
136 log_forensic:log_config
137 logio:log_config
138 cache_disk:cache
139 mime_magic:mime
140 proxy_ajp:proxy
141 proxy_balancer:proxy
142 proxy_connect:proxy
143 proxy_ftp:proxy
144 proxy_http:proxy
145 proxy_scgi:proxy
146 proxy_fcgi:proxy
147 substitute:filter
148 "
149
150 # module<->define mappings
151 MODULE_DEFINES="
152 auth_digest:AUTH_DIGEST
153 authnz_ldap:AUTHNZ_LDAP
154 cache:CACHE
155 cache_disk:CACHE
156 dav:DAV
157 dav_fs:DAV
158 dav_lock:DAV
159 file_cache:CACHE
160 info:INFO
161 ldap:LDAP
162 proxy:PROXY
163 proxy_ajp:PROXY
164 proxy_balancer:PROXY
165 proxy_connect:PROXY
166 proxy_ftp:PROXY
167 proxy_http:PROXY
168 proxy_fcgi:PROXY
169 socache_shmcb:SSL
170 ssl:SSL
171 status:STATUS
172 suexec:SUEXEC
173 userdir:USERDIR
174 "
175
176 # critical modules for the default config
177 MODULE_CRITICAL="
178 authn_core
179 authz_core
180 authz_host
181 dir
182 mime
183 unixd
184 "
185 # dependend criticals
186 use ssl && MODULE_CRITICAL+=" socache_shmcb"
187 use doc && MODULE_CRITICAL+=" alias negotiation setenvif"
188
189 inherit eutils apache-2
190
191 DESCRIPTION="The Apache Web Server."
192 HOMEPAGE="http://httpd.apache.org/"
193
194 # some helper scripts are Apache-1.1, thus both are here
195 LICENSE="Apache-2.0 Apache-1.1"
196 SLOT="2"
197 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
198 IUSE=""
199
200 DEPEND="${DEPEND}
201 >=dev-libs/openssl-0.9.8m
202 apache2_modules_deflate? ( sys-libs/zlib )"
203
204 # dependency on >=dev-libs/apr-1.4.5 for bug #368651
205 RDEPEND="${RDEPEND}
206 >=dev-libs/apr-1.4.5
207 >=dev-libs/openssl-0.9.8m
208 apache2_modules_mime? ( app-misc/mime-types )"
209
210 # init script fixup - should be rolled into next tarball #389965
211 src_prepare() {
212 # the following patch can be removed once it is included in
213 # GENTOO_PATCHNAME="gentoo-apache-2.4.1" ...
214 if [ -f "${FILESDIR}/${GENTOO_PATCHNAME}-${GENTOO_DEVELOPER}-${GENTOO_PATCHSTAMP}-${PVR}.patch" ]; then
215 cd "${GENTOO_PATCHDIR}" || die "Failed to cd to ${GENTOO_PATCHDIR}"
216 epatch "${FILESDIR}/${GENTOO_PATCHNAME}-${GENTOO_DEVELOPER}-${GENTOO_PATCHSTAMP}-${PVR}.patch" \
217 || die "epatch failed"
218 cd "${S}" || die "Failed to cd to ${S}"
219 fi
220 apache-2_src_prepare
221 sed -i -e 's/! test -f/test -f/' "${GENTOO_PATCHDIR}"/init/apache2.initd || die "Failed to fix init script"
222 }
223
224 src_install() {
225 apache-2_src_install
226 for i in /usr/bin/{htdigest,logresolve,htpasswd,htdbm,ab,httxt2dbm}; do
227 rm "${D}"/$i || die "Failed to prune apache-tools bits"
228 done
229 for i in /usr/share/man/man8/{rotatelogs.8,htcacheclean.8}; do
230 rm "${D}"/$i || die "Failed to prune apache-tools bits"
231 done
232 for i in /usr/share/man/man1/{logresolve.1,htdbm.1,htdigest.1,htpasswd.1,dbmmanage.1,ab.1}; do
233 rm "${D}"/$i || die "Failed to prune apache-tools bits"
234 done
235 for i in /usr/sbin/{checkgid,fcgistarter,htcacheclean,rotatelogs}; do
236 rm "${D}/"$i || die "Failed to prune apache-tools bits"
237 done
238
239 # well, actually installing things makes them more installed, I guess?
240 cp "${S}"/support/apxs "${D}"/usr/sbin/apxs || die "Failed to install apxs"
241 chmod 0755 "${D}"/usr/sbin/apxs
242
243 # create dir defined in 40_mod_ssl.conf
244 if use ssl; then
245 dodir /var/run/apache_ssl_mutex || die "Failed to mkdir ssl_mutex"
246 fi
247 }
248
249 pkg_postinst()
250 {
251 apache-2_pkg_postinst || die "apache-2_pkg_postinst failed"
252 # warnings that default config might not work out of the box
253 for mod in $MODULE_CRITICAL; do
254 if ! use "apache2_modules_${mod}"; then
255 echo
256 ewarn "Warning: Critical module not installed!"
257 ewarn "Modules 'authn_core', 'authz_core' and 'unixd'"
258 ewarn "are highly recomended but might not be in the base profile yet."
259 ewarn "Default config for ssl needs module 'socache_shmcb'."
260 ewarn "Enabling the following flags is highly recommended:"
261 for cmod in $MODULE_CRITICAL; do
262 use "apache2_modules_${cmod}" || \
263 ewarn "+ apache2_modules_${cmod}"
264 done
265 echo
266 break
267 fi
268 done
269 # warning for proxy_balancer and missing load balancing scheduler
270 if use apache2_modules_proxy_balancer; then
271 local lbset=
272 for mod in lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat; do
273 if use "apache2_modules_${mod}"; then
274 lbset=1 && break
275 fi
276 done
277 if [ ! $lbset ]; then
278 echo
279 ewarn "Info: Missing load balancing scheduler algorithm module"
280 ewarn "(They were split off from proxy_balancer in 2.3)"
281 ewarn "In order to get the ability of load balancing, at least"
282 ewarn "one of these modules has to be present:"
283 ewarn "lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat"
284 echo
285 fi
286 fi
287 }