Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/apache: ChangeLog apache-2.4.12.ebuild
Date: Wed, 04 Feb 2015 18:16:04
Message-Id: 20150204181600.646CF110D7@oystercatcher.gentoo.org
1 polynomial-c 15/02/04 18:16:00
2
3 Modified: ChangeLog
4 Added: apache-2.4.12.ebuild
5 Log:
6 Security bump (bug #538182)
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
9
10 Revision Changes Path
11 1.292 www-servers/apache/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?rev=1.292&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?rev=1.292&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/ChangeLog?r1=1.291&r2=1.292
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v
20 retrieving revision 1.291
21 retrieving revision 1.292
22 diff -u -r1.291 -r1.292
23 --- ChangeLog 22 Sep 2014 07:48:28 -0000 1.291
24 +++ ChangeLog 4 Feb 2015 18:16:00 -0000 1.292
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-servers/apache
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.291 2014/09/22 07:48:28 polynomial-c Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/www-servers/apache/ChangeLog,v 1.292 2015/02/04 18:16:00 polynomial-c Exp $
31 +
32 +*apache-2.4.12 (04 Feb 2015)
33 +
34 + 04 Feb 2015; Lars Wendler <polynomial-c@g.o> +apache-2.4.12.ebuild:
35 + Security bump (bug #538182).
36
37 *apache-2.2.29 (22 Sep 2014)
38
39
40
41
42 1.1 www-servers/apache/apache-2.4.12.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/apache-2.4.12.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/apache/apache-2.4.12.ebuild?rev=1.1&content-type=text/plain
46
47 Index: apache-2.4.12.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-servers/apache/apache-2.4.12.ebuild,v 1.1 2015/02/04 18:16:00 polynomial-c Exp $
52
53 EAPI=5
54
55 # latest gentoo apache files
56 GENTOO_PATCHSTAMP="20140731"
57 GENTOO_DEVELOPER="polynomial-c"
58 GENTOO_PATCHNAME="gentoo-apache-2.4.10-r1"
59
60 # IUSE/USE_EXPAND magic
61 IUSE_MPMS_FORK="peruser prefork"
62 IUSE_MPMS_THREAD="event worker"
63
64 # << obsolete modules:
65 # authn_default authz_default mem_cache
66 # mem_cache is replaced by cache_disk
67 # ?? buggy modules
68 # proxy_scgi: startup error: undefined symbol "ap_proxy_release_connection", no fix found
69 # >> added modules for reason:
70 # compat: compatibility with 2.2 access control
71 # authz_host: new module for access control
72 # authn_core: functionality provided by authn_alias in previous versions
73 # authz_core: new module, provides core authorization capabilities
74 # cache_disk: replacement for mem_cache
75 # lbmethod_byrequests: Split off from mod_proxy_balancer in 2.3
76 # lbmethod_bytraffic: Split off from mod_proxy_balancer in 2.3
77 # lbmethod_bybusyness: Split off from mod_proxy_balancer in 2.3
78 # lbmethod_heartbeat: Split off from mod_proxy_balancer in 2.3
79 # slotmem_shm: Slot-based shared memory provider (for lbmethod_byrequests).
80 # socache_shmcb: shared object cache provider. Default config with ssl needs it
81 # unixd: fixes startup error: Invalid command 'User'
82 IUSE_MODULES="access_compat actions alias asis auth_basic auth_digest
83 authn_alias authn_anon authn_core authn_dbd authn_dbm authn_file authz_core
84 authz_dbd authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex
85 cache cache_disk cern_meta charset_lite cgi cgid dav dav_fs dav_lock dbd deflate
86 dir dumpio env expires ext_filter file_cache filter headers ident imagemap
87 include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness
88 lbmethod_heartbeat log_config log_forensic logio mime mime_magic negotiation
89 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi
90 proxy_fcgi proxy_wstunnel rewrite ratelimit remoteip reqtimeout setenvif
91 slotmem_shm speling socache_shmcb status substitute unique_id userdir usertrack
92 unixd version vhost_alias"
93 # The following are also in the source as of this version, but are not available
94 # for user selection:
95 # bucketeer case_filter case_filter_in echo http isapi optional_fn_export
96 # optional_fn_import optional_hook_export optional_hook_import
97
98 # inter-module dependencies
99 # TODO: this may still be incomplete
100 MODULE_DEPENDS="
101 dav_fs:dav
102 dav_lock:dav
103 deflate:filter
104 cache_disk:cache
105 ext_filter:filter
106 file_cache:cache
107 lbmethod_byrequests:proxy_balancer
108 lbmethod_byrequests:slotmem_shm
109 lbmethod_bytraffic:proxy_balancer
110 lbmethod_bybusyness:proxy_balancer
111 lbmethod_heartbeat:proxy_balancer
112 log_forensic:log_config
113 logio:log_config
114 cache_disk:cache
115 mime_magic:mime
116 proxy_ajp:proxy
117 proxy_balancer:proxy
118 proxy_balancer:slotmem_shm
119 proxy_connect:proxy
120 proxy_ftp:proxy
121 proxy_http:proxy
122 proxy_scgi:proxy
123 proxy_fcgi:proxy
124 proxy_wstunnel:proxy
125 substitute:filter
126 "
127
128 # module<->define mappings
129 MODULE_DEFINES="
130 auth_digest:AUTH_DIGEST
131 authnz_ldap:AUTHNZ_LDAP
132 cache:CACHE
133 cache_disk:CACHE
134 dav:DAV
135 dav_fs:DAV
136 dav_lock:DAV
137 file_cache:CACHE
138 info:INFO
139 ldap:LDAP
140 proxy:PROXY
141 proxy_ajp:PROXY
142 proxy_balancer:PROXY
143 proxy_connect:PROXY
144 proxy_ftp:PROXY
145 proxy_http:PROXY
146 proxy_fcgi:PROXY
147 proxy_scgi:PROXY
148 proxy_wstunnel:PROXY
149 socache_shmcb:SSL
150 ssl:SSL
151 status:STATUS
152 suexec:SUEXEC
153 userdir:USERDIR
154 "
155
156 # critical modules for the default config
157 MODULE_CRITICAL="
158 authn_core
159 authz_core
160 authz_host
161 dir
162 mime
163 unixd
164 "
165 inherit eutils apache-2 systemd toolchain-funcs
166
167 DESCRIPTION="The Apache Web Server"
168 HOMEPAGE="http://httpd.apache.org/"
169
170 # some helper scripts are Apache-1.1, thus both are here
171 LICENSE="Apache-2.0 Apache-1.1"
172 SLOT="2"
173 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"
174 IUSE=""
175
176 pkg_setup() {
177 # dependend critical modules which are not allowed in global scope due
178 # to USE flag conditionals (bug #499260)
179 use ssl && MODULE_CRITICAL+=" socache_shmcb"
180 use doc && MODULE_CRITICAL+=" alias negotiation setenvif"
181 apache-2_pkg_setup
182 }
183
184 src_configure() {
185 # Brain dead check.
186 tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no"
187
188 apache-2_src_configure
189 }
190
191 src_compile() {
192 if tc-is-cross-compiler; then
193 # This header is the same across targets, so use the build compiler.
194 pushd server >/dev/null
195 emake gen_test_char
196 tc-export_build_env BUILD_CC
197 ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \
198 gen_test_char.c -o gen_test_char $(apr-1-config --includes) || die
199 popd >/dev/null
200 fi
201
202 default
203 }
204
205 src_install() {
206 apache-2_src_install
207 for i in /usr/bin/{htdigest,logresolve,htpasswd,htdbm,ab,httxt2dbm}; do
208 rm "${ED}"/$i || die "Failed to prune apache-tools bits"
209 done
210 for i in /usr/share/man/man8/{rotatelogs.8,htcacheclean.8}; do
211 rm "${ED}"/$i || die "Failed to prune apache-tools bits"
212 done
213 for i in /usr/share/man/man1/{logresolve.1,htdbm.1,htdigest.1,htpasswd.1,dbmmanage.1,ab.1}; do
214 rm "${ED}"/$i || die "Failed to prune apache-tools bits"
215 done
216 for i in /usr/sbin/{checkgid,fcgistarter,htcacheclean,rotatelogs}; do
217 rm "${ED}/"$i || die "Failed to prune apache-tools bits"
218 done
219
220 # install apxs in /usr/bin (bug #502384) and put a symlink into the
221 # old location until all ebuilds and eclasses have been modified to
222 # use the new location.
223 local apxs="/usr/bin/apxs"
224 cp "${S}"/support/apxs "${ED}"${apxs} || die "Failed to install apxs"
225 ln -s ../bin/apxs "${ED}"/usr/sbin/apxs || die
226 chmod 0755 "${ED}"${apxs} || die
227
228 # Note: wait for mod_systemd to be included in the next release,
229 # then apache2.4.service can be used and systemd support controlled
230 # through --enable-systemd
231 systemd_newunit "${FILESDIR}/apache2.2.service" "apache2.service"
232 systemd_dotmpfilesd "${FILESDIR}/apache.conf"
233 #insinto /etc/apache2/modules.d
234 #doins "${FILESDIR}/00_systemd.conf"
235 }
236
237 pkg_postinst()
238 {
239 apache-2_pkg_postinst || die "apache-2_pkg_postinst failed"
240 # warnings that default config might not work out of the box
241 for mod in $MODULE_CRITICAL; do
242 if ! use "apache2_modules_${mod}"; then
243 echo
244 ewarn "Warning: Critical module not installed!"
245 ewarn "Modules 'authn_core', 'authz_core' and 'unixd'"
246 ewarn "are highly recomended but might not be in the base profile yet."
247 ewarn "Default config for ssl needs module 'socache_shmcb'."
248 ewarn "Enabling the following flags is highly recommended:"
249 for cmod in $MODULE_CRITICAL; do
250 use "apache2_modules_${cmod}" || \
251 ewarn "+ apache2_modules_${cmod}"
252 done
253 echo
254 break
255 fi
256 done
257 # warning for proxy_balancer and missing load balancing scheduler
258 if use apache2_modules_proxy_balancer; then
259 local lbset=
260 for mod in lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat; do
261 if use "apache2_modules_${mod}"; then
262 lbset=1 && break
263 fi
264 done
265 if [ ! $lbset ]; then
266 echo
267 ewarn "Info: Missing load balancing scheduler algorithm module"
268 ewarn "(They were split off from proxy_balancer in 2.3)"
269 ewarn "In order to get the ability of load balancing, at least"
270 ewarn "one of these modules has to be present:"
271 ewarn "lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat"
272 echo
273 fi
274 fi
275 }