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