From 37af7ec58651488da3905088b7371fafca6e4ff3 Mon Sep 17 00:00:00 2001 From: ohauer Date: Thu, 27 Mar 2014 05:28:11 +0000 Subject: - update to version 2.2.27 - fix apache-mpm-peruser graceful reload [1] Changes with Apache 2.2.27 *) SECURITY: CVE-2014-0098 (cve.mitre.org) Clean up cookie logging with fewer redundant string parsing passes. Log only cookies with a value assignment. Prevents segfaults when logging truncated cookies. [William Rowe, Ruediger Pluem, Jim Jagielski] *) SECURITY: CVE-2013-6438 (cve.mitre.org) mod_dav: Keep track of length of cdata properly when removing leading spaces. Eliminates a potential denial of service from specifically crafted DAV WRITE requests [Amin Tora ] *) core: draft-ietf-httpbis-p1-messaging-23 corrections regarding TE/CL conflicts. [Yann Ylavic , Jim Jagielski] *) mod_proxy_http: Core dumped under high load. PR 50335. [Jan Kaluza ] *) proxy_util: NULL terminate the right buffer in 'send_http_connect'. [Christophe Jaillet] *) mod_proxy: Remove (never documented) syntax which is equivalent to . [Christophe Jaillet] *) mod_ldap: Fix a potential memory leak or corruption. PR 54936. [Zhenbo Xu ] *) mod_ssl: Do not perform SNI / Host header comparison in case of a forward proxy request. [Ruediger Pluem] *) mod_rewrite: Add mod_rewrite.h to the headers installed on Windows. PR46679 [Bob Ionescu] PR: ports/182947 [1] Submitted by: Andrew Azarov [1] --- www/apache22/Makefile | 9 ++++++++- www/apache22/distinfo | 4 ++-- www/apache22/files/apache22.in | 9 ++++++++- 3 files changed, 18 insertions(+), 4 deletions(-) (limited to 'www') diff --git a/www/apache22/Makefile b/www/apache22/Makefile index bf8fdce8c805..79fafe0a1591 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= apache22 -PORTVERSION= 2.2.26 +PORTVERSION= 2.2.27 #PORTREVISION?= 1 CATEGORIES= www ipv6 MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} @@ -63,6 +63,13 @@ SUEXEC_USERDIR_EXTRA_PATCHES= ${FILESDIR}/extra-patch-suexec_userdir ETC_SUBDIRS= Includes envvars.d extra modules.d +# PR: 182947 +.if ${WITH_MPM} != "peruser" +SUB_LIST+= RELOAD_CMD=graceful +.else +SUB_LIST+= RELOAD_CMD=hrestart +.endif + .if ! ${PORT_OPTIONS:MDOCS} MAKE_ENV+= NOPORTDOCS=yes .endif diff --git a/www/apache22/distinfo b/www/apache22/distinfo index 1a1fb6e2a5a7..48a2d66a83c6 100644 --- a/www/apache22/distinfo +++ b/www/apache22/distinfo @@ -1,2 +1,2 @@ -SHA256 (apache22/httpd-2.2.26.tar.bz2) = af908e3dd5673f1c6f0ccc615e11d435e77517940af00e518e68ea25284b42b6 -SIZE (apache22/httpd-2.2.26.tar.bz2) = 5390190 +SHA256 (apache22/httpd-2.2.27.tar.bz2) = 205973ded6ca55c056ce9c84d73ab708f7829f330193bd39b651463b8d4f8147 +SIZE (apache22/httpd-2.2.27.tar.bz2) = 5616798 diff --git a/www/apache22/files/apache22.in b/www/apache22/files/apache22.in index eab30e2a7ac0..7abcf9339eca 100644 --- a/www/apache22/files/apache22.in +++ b/www/apache22/files/apache22.in @@ -33,7 +33,7 @@ rcvar=apache22_enable start_precmd="apache22_prestart" restart_precmd="apache22_checkconfig" reload_precmd="apache22_checkconfig" -reload_cmd="apache22_graceful" +reload_cmd="apache22_%%RELOAD_CMD%%" graceful_cmd="apache22_graceful" gracefulstop_cmd="apache22_gracefulstop" configtest_cmd="apache22_checkconfig" @@ -152,6 +152,13 @@ apache22_graceful() { eval ${command} ${apache22_flags} -k graceful } +apache22_hrestart() { + apache22_requirepidfile + + echo "Performing a graceful restart" + eval ${command} ${apache22_flags} -k restart +} + apache22_gracefulstop() { apache22_requirepidfile -- cgit