1 |
commit: 4a94cc280cdb4f52c63e21b8dc24968e40536385 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 7 16:07:00 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 7 16:08:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a94cc28 |
7 |
|
8 |
www-servers/apache: bump to v2.4.51 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/816864 |
11 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
www-servers/apache/Manifest | 1 + |
15 |
www-servers/apache/apache-2.4.51.ebuild | 262 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 263 insertions(+) |
17 |
|
18 |
diff --git a/www-servers/apache/Manifest b/www-servers/apache/Manifest |
19 |
index 8fca05fbe7d..5d789d14468 100644 |
20 |
--- a/www-servers/apache/Manifest |
21 |
+++ b/www-servers/apache/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST gentoo-apache-2.4.46-r6-20210212.tar.bz2 25854 BLAKE2B 001f16c1beac8c90fd407bb2f77417f886296baf02acf0f6d81dc0f10c209270db7005f58d845d309dec8332773556da88db41a57c6ecc86f24b8a5141ba07d0 SHA512 976dde952277542efca70831b67da32b8bf636a346adeeb6e0bc5a65b3543a7ca4fb182bc01204f747b583dd753607d184d91ef46a93d5e2f3ab55ed787860a2 |
24 |
DIST httpd-2.4.50.tar.bz2 7653174 BLAKE2B 6bdb26bc03347b9643e973d22726ef283b8d92b675f81e85f4e0470bedf8510bac60cd043fe966bc786d5ae47827ac1bb31da88a0e510f4bb6c665e2075c3beb SHA512 b1afbaf44e503b822ff2b443881dcb44a93aa55d496f88ae399a2e7def05f78590f266a16da1f2c0aac88e463b76fba20843b1e20a102e76c8269de6fae3e158 |
25 |
+DIST httpd-2.4.51.tar.bz2 7653609 BLAKE2B a0743327f0411f5cb8b7d0426bf78db0f370e3d587f3a4c4bb7de0e4499effa3f44f5998e19e9ca3ed7b6fc9a8c0867cbe62134b5af7e6ed6c3bc29770b797df SHA512 9fb07c4b176f5c0485a143e2b1bb1085345ca9120b959974f68c37a8911a57894d2cb488b1b42fdf3102860b99e890204f5e9fa7ae3828b481119c563812cc66 |
26 |
|
27 |
diff --git a/www-servers/apache/apache-2.4.51.ebuild b/www-servers/apache/apache-2.4.51.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..0324ab43e57 |
30 |
--- /dev/null |
31 |
+++ b/www-servers/apache/apache-2.4.51.ebuild |
32 |
@@ -0,0 +1,262 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+# latest gentoo apache files |
39 |
+GENTOO_PATCHSTAMP="20210212" |
40 |
+GENTOO_DEVELOPER="polynomial-c" |
41 |
+GENTOO_PATCHNAME="gentoo-apache-2.4.46-r6" |
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 auth_form |
66 |
+authn_alias authn_anon authn_core authn_dbd authn_dbm authn_file authn_socache 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 lua 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_uwsgi proxy_wstunnel rewrite ratelimit remoteip reqtimeout |
74 |
+session session_cookie session_crypto session_dbd setenvif slotmem_shm speling |
75 |
+socache_memcache socache_shmcb status substitute unique_id userdir usertrack |
76 |
+unixd version vhost_alias watchdog xml2enc" |
77 |
+# The following are also in the source as of this version, but are not available |
78 |
+# for user selection: |
79 |
+# bucketeer case_filter case_filter_in echo http isapi optional_fn_export |
80 |
+# optional_fn_import optional_hook_export optional_hook_import |
81 |
+ |
82 |
+# inter-module dependencies |
83 |
+# TODO: this may still be incomplete |
84 |
+MODULE_DEPENDS=" |
85 |
+ auth_form:session |
86 |
+ brotli:filter |
87 |
+ dav_fs:dav |
88 |
+ dav_lock:dav |
89 |
+ deflate:filter |
90 |
+ cache_disk:cache |
91 |
+ ext_filter:filter |
92 |
+ file_cache:cache |
93 |
+ lbmethod_byrequests:proxy_balancer |
94 |
+ lbmethod_byrequests:slotmem_shm |
95 |
+ lbmethod_bytraffic:proxy_balancer |
96 |
+ lbmethod_bybusyness:proxy_balancer |
97 |
+ lbmethod_heartbeat:proxy_balancer |
98 |
+ log_forensic:log_config |
99 |
+ logio:log_config |
100 |
+ cache_disk:cache |
101 |
+ cache_socache:cache |
102 |
+ md:watchdog |
103 |
+ mime_magic:mime |
104 |
+ proxy_ajp:proxy |
105 |
+ proxy_balancer:proxy |
106 |
+ proxy_balancer:slotmem_shm |
107 |
+ proxy_connect:proxy |
108 |
+ proxy_ftp:proxy |
109 |
+ proxy_html:proxy |
110 |
+ proxy_html:xml2enc |
111 |
+ proxy_http:proxy |
112 |
+ proxy_http2:proxy |
113 |
+ proxy_scgi:proxy |
114 |
+ proxy_uwsgi:proxy |
115 |
+ proxy_fcgi:proxy |
116 |
+ proxy_wstunnel:proxy |
117 |
+ session_cookie:session |
118 |
+ session_dbd:dbd |
119 |
+ session_dbd:session |
120 |
+ socache_memcache:cache |
121 |
+ substitute:filter |
122 |
+" |
123 |
+ |
124 |
+# module<->define mappings |
125 |
+MODULE_DEFINES=" |
126 |
+ auth_digest:AUTH_DIGEST |
127 |
+ authnz_ldap:AUTHNZ_LDAP |
128 |
+ cache:CACHE |
129 |
+ cache_disk:CACHE |
130 |
+ cache_socache:CACHE |
131 |
+ dav:DAV |
132 |
+ dav_fs:DAV |
133 |
+ dav_lock:DAV |
134 |
+ file_cache:CACHE |
135 |
+ http2:HTTP2 |
136 |
+ info:INFO |
137 |
+ ldap:LDAP |
138 |
+ lua:LUA |
139 |
+ md:SSL |
140 |
+ proxy:PROXY |
141 |
+ proxy_ajp:PROXY |
142 |
+ proxy_balancer:PROXY |
143 |
+ proxy_connect:PROXY |
144 |
+ proxy_ftp:PROXY |
145 |
+ proxy_html:PROXY |
146 |
+ proxy_http:PROXY |
147 |
+ proxy_fcgi:PROXY |
148 |
+ proxy_scgi:PROXY |
149 |
+ proxy_wstunnel:PROXY |
150 |
+ socache_shmcb:SSL |
151 |
+ socache_memcache:CACHE |
152 |
+ ssl:SSL |
153 |
+ status:STATUS |
154 |
+ suexec:SUEXEC |
155 |
+ userdir:USERDIR |
156 |
+" |
157 |
+ |
158 |
+# critical modules for the default config |
159 |
+MODULE_CRITICAL=" |
160 |
+ authn_core |
161 |
+ authz_core |
162 |
+ authz_host |
163 |
+ dir |
164 |
+ mime |
165 |
+ unixd |
166 |
+" |
167 |
+inherit apache-2 systemd tmpfiles toolchain-funcs |
168 |
+ |
169 |
+DESCRIPTION="The Apache Web Server" |
170 |
+HOMEPAGE="https://httpd.apache.org/" |
171 |
+ |
172 |
+# some helper scripts are Apache-1.1, thus both are here |
173 |
+LICENSE="Apache-2.0 Apache-1.1" |
174 |
+SLOT="2" |
175 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x64-macos ~sparc64-solaris ~x64-solaris" |
176 |
+ |
177 |
+# FIXME! Move this to eclass once all ebuilds are EAPI-7 |
178 |
+RDEPEND+=" apache2_modules_lua? ( ${LUA_DEPS} )" |
179 |
+REQUIRED_USE+=" apache2_modules_lua? ( ${LUA_REQUIRED_USE} )" |
180 |
+ |
181 |
+pkg_setup() { |
182 |
+ # dependend critical modules which are not allowed in global scope due |
183 |
+ # to USE flag conditionals (bug #499260) |
184 |
+ use ssl && MODULE_CRITICAL+=" socache_shmcb" |
185 |
+ use doc && MODULE_CRITICAL+=" alias negotiation setenvif" |
186 |
+ apache-2_pkg_setup |
187 |
+} |
188 |
+ |
189 |
+src_configure() { |
190 |
+ # Brain dead check. |
191 |
+ tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no" |
192 |
+ |
193 |
+ apache-2_src_configure |
194 |
+} |
195 |
+ |
196 |
+src_compile() { |
197 |
+ if tc-is-cross-compiler ; then |
198 |
+ # This header is the same across targets, so use the build compiler. |
199 |
+ pushd server >/dev/null |
200 |
+ emake gen_test_char |
201 |
+ tc-export_build_env BUILD_CC |
202 |
+ ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \ |
203 |
+ gen_test_char.c -o gen_test_char $(apr-1-config --includes) || die |
204 |
+ popd >/dev/null |
205 |
+ fi |
206 |
+ |
207 |
+ default |
208 |
+} |
209 |
+ |
210 |
+src_install() { |
211 |
+ apache-2_src_install |
212 |
+ local i |
213 |
+ local apache_tools_prune_list=( |
214 |
+ /usr/bin/{htdigest,logresolve,htpasswd,htdbm,ab,httxt2dbm} |
215 |
+ /usr/sbin/{checkgid,fcgistarter,htcacheclean,rotatelogs} |
216 |
+ /usr/share/man/man1/{logresolve.1,htdbm.1,htdigest.1,htpasswd.1,dbmmanage.1,ab.1} |
217 |
+ /usr/share/man/man8/{rotatelogs.8,htcacheclean.8} |
218 |
+ ) |
219 |
+ for i in ${apache_tools_prune_list[@]} ; do |
220 |
+ rm "${ED}"/${i} || die "Failed to prune apache-tools bits" |
221 |
+ done |
222 |
+ |
223 |
+ # install apxs in /usr/bin (bug #502384) and put a symlink into the |
224 |
+ # old location until all ebuilds and eclasses have been modified to |
225 |
+ # use the new location. |
226 |
+ dobin support/apxs |
227 |
+ use split-usr && dosym ../bin/apxs /usr/sbin/apxs |
228 |
+ |
229 |
+ # Note: wait for mod_systemd to be included in some forthcoming release, |
230 |
+ # Then apache2.4.service can be used and systemd support controlled |
231 |
+ # through --enable-systemd |
232 |
+ systemd_newunit "${FILESDIR}/apache2.2-hardened.service" "apache2.service" |
233 |
+ dotmpfiles "${FILESDIR}/apache.conf" |
234 |
+ #insinto /etc/apache2/modules.d |
235 |
+ #doins "${FILESDIR}/00_systemd.conf" |
236 |
+ |
237 |
+ # Install http2 module config |
238 |
+ insinto /etc/apache2/modules.d |
239 |
+ doins "${FILESDIR}"/41_mod_http2.conf |
240 |
+ |
241 |
+ # Fix path to apache libdir |
242 |
+ sed "s|@LIBDIR@|$(get_libdir)|" -i "${ED}"/usr/sbin/apache2ctl || die |
243 |
+} |
244 |
+ |
245 |
+pkg_postinst() { |
246 |
+ echo |
247 |
+ ewarn "Downgrading to pre-GLEP 81 user for now." |
248 |
+ ewarn "See bug #802495 and bug #803500 for more information." |
249 |
+ ewarn "" |
250 |
+ ewarn "You will need to run the following command to unlock the user:" |
251 |
+ ewarn "usermod -e '' -U apache 2>/dev/null" |
252 |
+ echo |
253 |
+ |
254 |
+ apache-2_pkg_postinst || die "apache-2_pkg_postinst failed" |
255 |
+ |
256 |
+ tmpfiles_process apache.conf #662544 |
257 |
+ |
258 |
+ # warnings that default config might not work out of the box |
259 |
+ local mod cmod |
260 |
+ for mod in ${MODULE_CRITICAL} ; do |
261 |
+ if ! use "apache2_modules_${mod}"; then |
262 |
+ echo |
263 |
+ ewarn "Warning: Critical module not installed!" |
264 |
+ ewarn "Modules 'authn_core', 'authz_core' and 'unixd'" |
265 |
+ ewarn "are highly recomended but might not be in the base profile yet." |
266 |
+ ewarn "Default config for ssl needs module 'socache_shmcb'." |
267 |
+ ewarn "Enabling the following flags is highly recommended:" |
268 |
+ for cmod in ${MODULE_CRITICAL} ; do |
269 |
+ use "apache2_modules_${cmod}" || \ |
270 |
+ ewarn "+ apache2_modules_${cmod}" |
271 |
+ done |
272 |
+ echo |
273 |
+ break |
274 |
+ fi |
275 |
+ done |
276 |
+ # warning for proxy_balancer and missing load balancing scheduler |
277 |
+ if use apache2_modules_proxy_balancer; then |
278 |
+ local lbset= |
279 |
+ for mod in lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat; do |
280 |
+ if use "apache2_modules_${mod}"; then |
281 |
+ lbset=1 && break |
282 |
+ fi |
283 |
+ done |
284 |
+ if [[ ! ${lbset} ]] ; then |
285 |
+ echo |
286 |
+ ewarn "Info: Missing load balancing scheduler algorithm module" |
287 |
+ ewarn "(They were split off from proxy_balancer in 2.3)" |
288 |
+ ewarn "In order to get the ability of load balancing, at least" |
289 |
+ ewarn "one of these modules has to be present:" |
290 |
+ ewarn "lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat" |
291 |
+ echo |
292 |
+ fi |
293 |
+ fi |
294 |
+} |