Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/apache/
Date: Mon, 16 Jul 2018 08:00:38
Message-Id: 1531728022.cc24d8694710cea902c8115253f5af9b22dd6d91.polynomial-c@gentoo
1 commit: cc24d8694710cea902c8115253f5af9b22dd6d91
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 16 07:57:57 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 16 08:00:22 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc24d869
7
8 www-servers/apache: Bump to version 2.4.34
9
10 Package-Manager: Portage-2.3.42, Repoman-2.3.9
11
12 www-servers/apache/Manifest | 1 +
13 www-servers/apache/apache-2.4.34.ebuild | 250 ++++++++++++++++++++++++++++++++
14 2 files changed, 251 insertions(+)
15
16 diff --git a/www-servers/apache/Manifest b/www-servers/apache/Manifest
17 index 9e3cd7b419b..bfde81ceec1 100644
18 --- a/www-servers/apache/Manifest
19 +++ b/www-servers/apache/Manifest
20 @@ -6,3 +6,4 @@ DIST httpd-2.2.34.tar.bz2 5779739 BLAKE2B 8cdd41fb5d1880da4a1cfef252b4682f613b93
21 DIST httpd-2.4.27.tar.bz2 6527394 BLAKE2B 50a650eb2edd121dac860ff555273290010d7e85bf4d5fbe3683f82e1928dde99ebfabc42186436f5052a66555a73d8b797b114c76c123faa31b9f51575d0bbb SHA512 7e7e8070715b74cb6890096a74e194f4c6a49c14bda685b1ad832e84312f1ac4316ea03a430e679502bfd8e1853aefa544ee002a20d0f7e994b9a590c74bc42c
22 DIST httpd-2.4.29.tar.bz2 6567926 BLAKE2B 01a83212941abad548f73fc144f9731ff51e0ed8f975e76cb994247601f7c2f89a3f862e011638afb77988eda0ef2b543634fb6bc45b583e9bdba2c30e565731 SHA512 840982fd3d21463bc5c1747f211dfacf3abdf634d149e49bb49fd2e5deda140de602dbdf31e1bbe5337a48f718ab2261c408e83a8dd39a9291ee7b6b7a85639a
23 DIST httpd-2.4.33.tar.bz2 6934765 BLAKE2B 4ff266b85358e3100c8064c84c89db0235e6f46bb4b308e6b3bf642a9c0815eb6a731ee12e3d8ea2bf31a5d5e6621152452f1e8a9625755689f552f2473b1955 SHA512 e74b2b3346d67be45a8bc8a7cbb8eabf5c403a5cfe5797a976f94a539529843fbcdf03b9ca0548816b2cf37f4ce0eb301f8d5af25b1270fdf8dd9f5bf0585269
24 +DIST httpd-2.4.34.tar.bz2 6942969 BLAKE2B 02ecb9980f48bef7ac915077598560353e0682001bdaa99410b7faad459c4581f8d0878b4840e38e570b1872d549d58743260cb3030c145ae93bef97fc692cc4 SHA512 2bc09213f08a4722e305929fbac5f5060c7a8444704494894bb9b61f17e4d20bb6e3d663bb93fc5b2030b04a43fb12373d260cc291422b210b299725aaf3b5c8
25
26 diff --git a/www-servers/apache/apache-2.4.34.ebuild b/www-servers/apache/apache-2.4.34.ebuild
27 new file mode 100644
28 index 00000000000..99b2d193ca2
29 --- /dev/null
30 +++ b/www-servers/apache/apache-2.4.34.ebuild
31 @@ -0,0 +1,250 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +# latest gentoo apache files
38 +GENTOO_PATCHSTAMP="20180529"
39 +GENTOO_DEVELOPER="polynomial-c"
40 +GENTOO_PATCHNAME="gentoo-apache-2.4.33-r1"
41 +
42 +# IUSE/USE_EXPAND magic
43 +IUSE_MPMS_FORK="prefork"
44 +IUSE_MPMS_THREAD="event worker"
45 +
46 +# << obsolete modules:
47 +# authn_default authz_default mem_cache
48 +# mem_cache is replaced by cache_disk
49 +# ?? buggy modules
50 +# proxy_scgi: startup error: undefined symbol "ap_proxy_release_connection", no fix found
51 +# >> added modules for reason:
52 +# compat: compatibility with 2.2 access control
53 +# authz_host: new module for access control
54 +# authn_core: functionality provided by authn_alias in previous versions
55 +# authz_core: new module, provides core authorization capabilities
56 +# cache_disk: replacement for mem_cache
57 +# lbmethod_byrequests: Split off from mod_proxy_balancer in 2.3
58 +# lbmethod_bytraffic: Split off from mod_proxy_balancer in 2.3
59 +# lbmethod_bybusyness: Split off from mod_proxy_balancer in 2.3
60 +# lbmethod_heartbeat: Split off from mod_proxy_balancer in 2.3
61 +# slotmem_shm: Slot-based shared memory provider (for lbmethod_byrequests).
62 +# socache_shmcb: shared object cache provider. Default config with ssl needs it
63 +# unixd: fixes startup error: Invalid command 'User'
64 +IUSE_MODULES="access_compat actions alias asis auth_basic auth_digest
65 +authn_alias authn_anon authn_core authn_dbd authn_dbm authn_file authz_core
66 +authz_dbd authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex
67 +brotli cache cache_disk cache_socache cern_meta charset_lite cgi cgid dav dav_fs dav_lock
68 +dbd deflate dir dumpio env expires ext_filter file_cache filter headers http2
69 +ident imagemap include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness
70 +lbmethod_heartbeat log_config log_forensic logio macro md mime mime_magic negotiation
71 +proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_html proxy_http proxy_scgi
72 +proxy_fcgi proxy_wstunnel rewrite ratelimit remoteip reqtimeout setenvif
73 +slotmem_shm speling socache_shmcb status substitute unique_id userdir usertrack
74 +unixd version vhost_alias watchdog xml2enc"
75 +# The following are also in the source as of this version, but are not available
76 +# for user selection:
77 +# bucketeer case_filter case_filter_in echo http isapi optional_fn_export
78 +# optional_fn_import optional_hook_export optional_hook_import
79 +
80 +# inter-module dependencies
81 +# TODO: this may still be incomplete
82 +MODULE_DEPENDS="
83 + brotli:filter
84 + dav_fs:dav
85 + dav_lock:dav
86 + deflate:filter
87 + cache_disk:cache
88 + ext_filter:filter
89 + file_cache:cache
90 + lbmethod_byrequests:proxy_balancer
91 + lbmethod_byrequests:slotmem_shm
92 + lbmethod_bytraffic:proxy_balancer
93 + lbmethod_bybusyness:proxy_balancer
94 + lbmethod_heartbeat:proxy_balancer
95 + log_forensic:log_config
96 + logio:log_config
97 + cache_disk:cache
98 + cache_socache:cache
99 + md:watchdog
100 + mime_magic:mime
101 + proxy_ajp:proxy
102 + proxy_balancer:proxy
103 + proxy_balancer:slotmem_shm
104 + proxy_connect:proxy
105 + proxy_ftp:proxy
106 + proxy_html:proxy
107 + proxy_html:xml2enc
108 + proxy_http:proxy
109 + proxy_scgi:proxy
110 + proxy_fcgi:proxy
111 + proxy_wstunnel:proxy
112 + substitute:filter
113 +"
114 +
115 +# module<->define mappings
116 +MODULE_DEFINES="
117 + auth_digest:AUTH_DIGEST
118 + authnz_ldap:AUTHNZ_LDAP
119 + cache:CACHE
120 + cache_disk:CACHE
121 + cache_socache:CACHE
122 + dav:DAV
123 + dav_fs:DAV
124 + dav_lock:DAV
125 + file_cache:CACHE
126 + http2:HTTP2
127 + info:INFO
128 + ldap:LDAP
129 + md:SSL
130 + proxy:PROXY
131 + proxy_ajp:PROXY
132 + proxy_balancer:PROXY
133 + proxy_connect:PROXY
134 + proxy_ftp:PROXY
135 + proxy_html:PROXY
136 + proxy_http:PROXY
137 + proxy_fcgi:PROXY
138 + proxy_scgi:PROXY
139 + proxy_wstunnel:PROXY
140 + socache_shmcb:SSL
141 + ssl:SSL
142 + status:STATUS
143 + suexec:SUEXEC
144 + userdir:USERDIR
145 +"
146 +
147 +# critical modules for the default config
148 +MODULE_CRITICAL="
149 + authn_core
150 + authz_core
151 + authz_host
152 + dir
153 + mime
154 + unixd
155 +"
156 +inherit apache-2 systemd toolchain-funcs
157 +
158 +DESCRIPTION="The Apache Web Server"
159 +HOMEPAGE="https://httpd.apache.org/"
160 +
161 +# some helper scripts are Apache-1.1, thus both are here
162 +LICENSE="Apache-2.0 Apache-1.1"
163 +SLOT="2"
164 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris"
165 +# Enable http2 by default (bug #563452)
166 +# FIXME: Move to apache-2.eclass once this has reached stable.
167 +IUSE="${IUSE/apache2_modules_http2/+apache2_modules_http2}"
168 +
169 +CDEPEND="apache2_modules_brotli? ( >=app-arch/brotli-0.6.0:= )
170 + apache2_modules_http2? ( >=net-libs/nghttp2-1.2.1 )
171 + apache2_modules_md? ( >=dev-libs/jansson-2.10 )"
172 +
173 +DEPEND+="${CDEPEND}"
174 +RDEPEND+="${CDEPEND}"
175 +
176 +REQUIRED_USE="apache2_modules_http2? ( ssl )
177 + apache2_modules_md? ( ssl )"
178 +
179 +pkg_setup() {
180 + # dependend critical modules which are not allowed in global scope due
181 + # to USE flag conditionals (bug #499260)
182 + use ssl && MODULE_CRITICAL+=" socache_shmcb"
183 + use doc && MODULE_CRITICAL+=" alias negotiation setenvif"
184 + apache-2_pkg_setup
185 +}
186 +
187 +src_configure() {
188 + # Brain dead check.
189 + tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no"
190 +
191 + apache-2_src_configure
192 +}
193 +
194 +src_compile() {
195 + if tc-is-cross-compiler; then
196 + # This header is the same across targets, so use the build compiler.
197 + pushd server >/dev/null
198 + emake gen_test_char
199 + tc-export_build_env BUILD_CC
200 + ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \
201 + gen_test_char.c -o gen_test_char $(apr-1-config --includes) || die
202 + popd >/dev/null
203 + fi
204 +
205 + default
206 +}
207 +
208 +src_install() {
209 + apache-2_src_install
210 + local i
211 + local apache_tools_prune_list=(
212 + /usr/bin/{htdigest,logresolve,htpasswd,htdbm,ab,httxt2dbm}
213 + /usr/sbin/{checkgid,fcgistarter,htcacheclean,rotatelogs}
214 + /usr/share/man/man1/{logresolve.1,htdbm.1,htdigest.1,htpasswd.1,dbmmanage.1,ab.1}
215 + /usr/share/man/man8/{rotatelogs.8,htcacheclean.8}
216 + )
217 + for i in ${apache_tools_prune_list[@]} ; do
218 + rm "${ED%/}"/$i || die "Failed to prune apache-tools bits"
219 + done
220 +
221 + # install apxs in /usr/bin (bug #502384) and put a symlink into the
222 + # old location until all ebuilds and eclasses have been modified to
223 + # use the new location.
224 + dobin support/apxs
225 + dosym ../bin/apxs /usr/sbin/apxs
226 +
227 + # Note: wait for mod_systemd to be included in some forthcoming release,
228 + # Then apache2.4.service can be used and systemd support controlled
229 + # through --enable-systemd
230 + systemd_newunit "${FILESDIR}/apache2.2-hardened.service" "apache2.service"
231 + systemd_dotmpfilesd "${FILESDIR}/apache.conf"
232 + #insinto /etc/apache2/modules.d
233 + #doins "${FILESDIR}/00_systemd.conf"
234 +
235 + # Install http2 module config
236 + insinto /etc/apache2/modules.d
237 + doins "${FILESDIR}"/41_mod_http2.conf
238 +
239 + # Fix path to apache libdir
240 + sed "s|@LIBDIR@|$(get_libdir)|" -i "${ED%/}"/usr/sbin/apache2ctl || die
241 +}
242 +
243 +pkg_postinst() {
244 + apache-2_pkg_postinst || die "apache-2_pkg_postinst failed"
245 + # warnings that default config might not work out of the box
246 + local mod cmod
247 + for mod in ${MODULE_CRITICAL} ; do
248 + if ! use "apache2_modules_${mod}"; then
249 + echo
250 + ewarn "Warning: Critical module not installed!"
251 + ewarn "Modules 'authn_core', 'authz_core' and 'unixd'"
252 + ewarn "are highly recomended but might not be in the base profile yet."
253 + ewarn "Default config for ssl needs module 'socache_shmcb'."
254 + ewarn "Enabling the following flags is highly recommended:"
255 + for cmod in ${MODULE_CRITICAL} ; do
256 + use "apache2_modules_${cmod}" || \
257 + ewarn "+ apache2_modules_${cmod}"
258 + done
259 + echo
260 + break
261 + fi
262 + done
263 + # warning for proxy_balancer and missing load balancing scheduler
264 + if use apache2_modules_proxy_balancer; then
265 + local lbset=
266 + for mod in lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat; do
267 + if use "apache2_modules_${mod}"; then
268 + lbset=1 && break
269 + fi
270 + done
271 + if [ ! ${lbset} ] ; then
272 + echo
273 + ewarn "Info: Missing load balancing scheduler algorithm module"
274 + ewarn "(They were split off from proxy_balancer in 2.3)"
275 + ewarn "In order to get the ability of load balancing, at least"
276 + ewarn "one of these modules has to be present:"
277 + ewarn "lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat"
278 + echo
279 + fi
280 + fi
281 +}