Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/apache: metadata.xml apache-2.4.12-r1.ebuild ChangeLog
Date: Mon, 01 Jun 2015 06:08:41
Message-Id: 20150601060835.9CD4AA19@oystercatcher.gentoo.org
1 vapier 15/06/01 06:08:35
2
3 Modified: metadata.xml ChangeLog
4 Added: apache-2.4.12-r1.ebuild
5 Log:
6 Add ALPN support via USE=alpn #471512.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.19 www-servers/apache/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/metadata.xml?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/metadata.xml?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/metadata.xml?r1=1.18&r2=1.19
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/apache/metadata.xml,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- metadata.xml 22 May 2014 14:02:43 -0000 1.18
24 +++ metadata.xml 1 Jun 2015 06:08:35 -0000 1.19
25 @@ -12,6 +12,7 @@
26 provides HTTP services in sync with the current HTTP standards.
27 </longdescription>
28 <use>
29 + <flag name='alpn'>Enable support for Application-Layer Protocol Negotiation (ALPN) in TLS. Needed by HTTP/2.0.</flag>
30 <flag name='suexec'>Install suexec with apache</flag>
31 <flag name='static'>Link in apache2 modules statically rather then plugins</flag>
32 <flag name='apache2_modules_access_compat'>Group authorizations based on host (name or IP address). Available as a compatibility module with previous versions.</flag>
33
34
35
36 1.303 www-servers/apache/ChangeLog
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?rev=1.303&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?rev=1.303&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?r1=1.302&r2=1.303
41
42 Index: ChangeLog
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v
45 retrieving revision 1.302
46 retrieving revision 1.303
47 diff -u -r1.302 -r1.303
48 --- ChangeLog 16 Mar 2015 21:53:50 -0000 1.302
49 +++ ChangeLog 1 Jun 2015 06:08:35 -0000 1.303
50 @@ -1,6 +1,12 @@
51 # ChangeLog for www-servers/apache
52 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
53 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.302 2015/03/16 21:53:50 polynomial-c Exp $
54 +# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.303 2015/06/01 06:08:35 vapier Exp $
55 +
56 +*apache-2.4.12-r1 (01 Jun 2015)
57 +
58 + 01 Jun 2015; Mike Frysinger <vapier@g.o> +apache-2.4.12-r1.ebuild,
59 + +files/apache-2.4.12-alpn.patch, metadata.xml:
60 + Add ALPN support via USE=alpn #471512.
61
62 16 Mar 2015; Lars Wendler <polynomial-c@g.o> -apache-2.2.27-r4.ebuild,
63 -apache-2.4.10-r1.ebuild:
64
65
66
67 1.1 www-servers/apache/apache-2.4.12-r1.ebuild
68
69 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/apache-2.4.12-r1.ebuild?rev=1.1&view=markup
70 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/apache-2.4.12-r1.ebuild?rev=1.1&content-type=text/plain
71
72 Index: apache-2.4.12-r1.ebuild
73 ===================================================================
74 # Copyright 1999-2015 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.12-r1.ebuild,v 1.1 2015/06/01 06:08:35 vapier Exp $
77
78 EAPI=5
79
80 # latest gentoo apache files
81 GENTOO_PATCHSTAMP="20140731"
82 GENTOO_DEVELOPER="polynomial-c"
83 GENTOO_PATCHNAME="gentoo-apache-2.4.10-r1"
84
85 # IUSE/USE_EXPAND magic
86 IUSE_MPMS_FORK="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
108 authn_alias authn_anon authn_core authn_dbd authn_dbm authn_file authz_core
109 authz_dbd authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex
110 cache cache_disk cern_meta charset_lite cgi cgid dav dav_fs dav_lock dbd deflate
111 dir dumpio env expires ext_filter file_cache filter headers ident imagemap
112 include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness
113 lbmethod_heartbeat log_config log_forensic logio mime mime_magic negotiation
114 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi
115 proxy_fcgi proxy_wstunnel rewrite ratelimit remoteip reqtimeout setenvif
116 slotmem_shm speling socache_shmcb status substitute unique_id userdir usertrack
117 unixd version vhost_alias"
118 # The following are also in the source as of this version, but are not available
119 # for user selection:
120 # bucketeer case_filter case_filter_in echo http isapi optional_fn_export
121 # optional_fn_import optional_hook_export optional_hook_import
122
123 # inter-module dependencies
124 # TODO: this may still be incomplete
125 MODULE_DEPENDS="
126 dav_fs:dav
127 dav_lock:dav
128 deflate:filter
129 cache_disk:cache
130 ext_filter:filter
131 file_cache:cache
132 lbmethod_byrequests:proxy_balancer
133 lbmethod_byrequests:slotmem_shm
134 lbmethod_bytraffic:proxy_balancer
135 lbmethod_bybusyness:proxy_balancer
136 lbmethod_heartbeat:proxy_balancer
137 log_forensic:log_config
138 logio:log_config
139 cache_disk:cache
140 mime_magic:mime
141 proxy_ajp:proxy
142 proxy_balancer:proxy
143 proxy_balancer:slotmem_shm
144 proxy_connect:proxy
145 proxy_ftp:proxy
146 proxy_http:proxy
147 proxy_scgi:proxy
148 proxy_fcgi:proxy
149 proxy_wstunnel:proxy
150 substitute:filter
151 "
152
153 # module<->define mappings
154 MODULE_DEFINES="
155 auth_digest:AUTH_DIGEST
156 authnz_ldap:AUTHNZ_LDAP
157 cache:CACHE
158 cache_disk:CACHE
159 dav:DAV
160 dav_fs:DAV
161 dav_lock:DAV
162 file_cache:CACHE
163 info:INFO
164 ldap:LDAP
165 proxy:PROXY
166 proxy_ajp:PROXY
167 proxy_balancer:PROXY
168 proxy_connect:PROXY
169 proxy_ftp:PROXY
170 proxy_http:PROXY
171 proxy_fcgi:PROXY
172 proxy_scgi:PROXY
173 proxy_wstunnel:PROXY
174 socache_shmcb:SSL
175 ssl:SSL
176 status:STATUS
177 suexec:SUEXEC
178 userdir:USERDIR
179 "
180
181 # critical modules for the default config
182 MODULE_CRITICAL="
183 authn_core
184 authz_core
185 authz_host
186 dir
187 mime
188 unixd
189 "
190 inherit eutils apache-2 systemd toolchain-funcs
191
192 DESCRIPTION="The Apache Web Server"
193 HOMEPAGE="http://httpd.apache.org/"
194
195 # some helper scripts are Apache-1.1, thus both are here
196 LICENSE="Apache-2.0 Apache-1.1"
197 SLOT="2"
198 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris"
199 IUSE="alpn"
200 REQUIRED_USE="alpn? ( ssl )"
201
202 pkg_setup() {
203 # dependend critical modules which are not allowed in global scope due
204 # to USE flag conditionals (bug #499260)
205 use ssl && MODULE_CRITICAL+=" socache_shmcb"
206 use doc && MODULE_CRITICAL+=" alias negotiation setenvif"
207 apache-2_pkg_setup
208 }
209
210 src_prepare() {
211 use alpn && epatch "${FILESDIR}"/${PN}-2.4.12-alpn.patch #471512
212 apache-2_src_prepare
213 }
214
215 src_configure() {
216 # Brain dead check.
217 tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no"
218
219 apache-2_src_configure
220 }
221
222 src_compile() {
223 if tc-is-cross-compiler; then
224 # This header is the same across targets, so use the build compiler.
225 pushd server >/dev/null
226 emake gen_test_char
227 tc-export_build_env BUILD_CC
228 ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \
229 gen_test_char.c -o gen_test_char $(apr-1-config --includes) || die
230 popd >/dev/null
231 fi
232
233 default
234 }
235
236 src_install() {
237 apache-2_src_install
238 for i in /usr/bin/{htdigest,logresolve,htpasswd,htdbm,ab,httxt2dbm}; do
239 rm "${ED}"/$i || die "Failed to prune apache-tools bits"
240 done
241 for i in /usr/share/man/man8/{rotatelogs.8,htcacheclean.8}; do
242 rm "${ED}"/$i || die "Failed to prune apache-tools bits"
243 done
244 for i in /usr/share/man/man1/{logresolve.1,htdbm.1,htdigest.1,htpasswd.1,dbmmanage.1,ab.1}; do
245 rm "${ED}"/$i || die "Failed to prune apache-tools bits"
246 done
247 for i in /usr/sbin/{checkgid,fcgistarter,htcacheclean,rotatelogs}; do
248 rm "${ED}/"$i || die "Failed to prune apache-tools bits"
249 done
250
251 # install apxs in /usr/bin (bug #502384) and put a symlink into the
252 # old location until all ebuilds and eclasses have been modified to
253 # use the new location.
254 local apxs="/usr/bin/apxs"
255 cp "${S}"/support/apxs "${ED}"${apxs} || die "Failed to install apxs"
256 ln -s ../bin/apxs "${ED}"/usr/sbin/apxs || die
257 chmod 0755 "${ED}"${apxs} || die
258
259 # Note: wait for mod_systemd to be included in the next release,
260 # then apache2.4.service can be used and systemd support controlled
261 # through --enable-systemd
262 systemd_newunit "${FILESDIR}/apache2.2.service" "apache2.service"
263 systemd_dotmpfilesd "${FILESDIR}/apache.conf"
264 #insinto /etc/apache2/modules.d
265 #doins "${FILESDIR}/00_systemd.conf"
266 }
267
268 pkg_postinst()
269 {
270 apache-2_pkg_postinst || die "apache-2_pkg_postinst failed"
271 # warnings that default config might not work out of the box
272 for mod in $MODULE_CRITICAL; do
273 if ! use "apache2_modules_${mod}"; then
274 echo
275 ewarn "Warning: Critical module not installed!"
276 ewarn "Modules 'authn_core', 'authz_core' and 'unixd'"
277 ewarn "are highly recomended but might not be in the base profile yet."
278 ewarn "Default config for ssl needs module 'socache_shmcb'."
279 ewarn "Enabling the following flags is highly recommended:"
280 for cmod in $MODULE_CRITICAL; do
281 use "apache2_modules_${cmod}" || \
282 ewarn "+ apache2_modules_${cmod}"
283 done
284 echo
285 break
286 fi
287 done
288 # warning for proxy_balancer and missing load balancing scheduler
289 if use apache2_modules_proxy_balancer; then
290 local lbset=
291 for mod in lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat; do
292 if use "apache2_modules_${mod}"; then
293 lbset=1 && break
294 fi
295 done
296 if [ ! $lbset ]; then
297 echo
298 ewarn "Info: Missing load balancing scheduler algorithm module"
299 ewarn "(They were split off from proxy_balancer in 2.3)"
300 ewarn "In order to get the ability of load balancing, at least"
301 ewarn "one of these modules has to be present:"
302 ewarn "lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat"
303 echo
304 fi
305 fi
306 }