Gentoo Archives: gentoo-commits

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