Gentoo Archives: gentoo-commits

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