diff options
author | ohauer <ohauer@FreeBSD.org> | 2013-07-06 16:46:39 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2013-07-06 16:46:39 +0800 |
commit | 5ccb234898284c2ac9019b68adf7e55a53e6f6cc (patch) | |
tree | 0b98260edce4aff5b022f2b90a926ee3a387b22c /www/apache22 | |
parent | 2248b02eaeb0e3695d2c60776d853af6b017862a (diff) | |
download | freebsd-ports-gnome-5ccb234898284c2ac9019b68adf7e55a53e6f6cc.tar.gz freebsd-ports-gnome-5ccb234898284c2ac9019b68adf7e55a53e6f6cc.tar.zst freebsd-ports-gnome-5ccb234898284c2ac9019b68adf7e55a53e6f6cc.zip |
- add fix for CVE-2013-1862
- adjust vuxml
Diffstat (limited to 'www/apache22')
-rw-r--r-- | www/apache22/Makefile | 24 | ||||
-rw-r--r-- | www/apache22/files/patch-modules__mappers__mod_rewrite.c | 27 | ||||
-rw-r--r-- | www/apache22/files/patch-support__apachectl.in | 63 |
3 files changed, 90 insertions, 24 deletions
diff --git a/www/apache22/Makefile b/www/apache22/Makefile index 4023f6379543..b6997f0eded0 100644 --- a/www/apache22/Makefile +++ b/www/apache22/Makefile @@ -2,7 +2,7 @@ PORTNAME= apache22 PORTVERSION= 2.2.24 -#PORTREVISION?= 1 +PORTREVISION?= 1 CATEGORIES= www ipv6 MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} DISTNAME= httpd-${PORTVERSION} @@ -45,24 +45,6 @@ WITH_MPM?= prefork # or worker, event, itk, peruser WITH_HTTP_PORT?= 80 .include "${APACHEDIR}/Makefile.options" - -# stop users from using old WITH/WITHOUT parameters -.for opt in ${OPTIONS_DEFINE} -. if defined(WITH_${opt}) || defined(WITHOUT_${opt}) -BROKEN= WITH/WITHOUT parameters are obsolete. \ - The port use the new options NG framework. Please read\ - http://wiki.freebsd.org/Ports/Options/OptionsNG -. endif -.endfor - -.for category in ${ALL_MODULES_CATEGORIES} -. if defined(WITH_${category}_MODULES) -BROKEN= WITH/WITHOUT_..._MODULES parameters are obsolete. \ - The port use the new options NG framework. Please read\ - http://wiki.freebsd.org/Ports/Options/OptionsNG -. endif -.endfor - .include <bsd.port.options.mk> .include "${APACHEDIR}/Makefile.doc" @@ -75,7 +57,7 @@ APU_DBD_PGSQL?= ${LOCALBASE}/lib/apr-util-1/apr_dbd_pgsql.so APU_DBD_SQLITE3?= ${LOCALBASE}/lib/apr-util-1/apr_dbd_sqlite3.so # APU module used by AUTHNZ_LDAP LDAP APU_LDAP?= ${LOCALBASE}/lib/apr-util-1/apr_ldap.so -# APU crypto +# APU module used by SESSION_CRYPTO APU_CRYPTO_SSL?= ${LOCALBASE}/lib/apr-util-1/apr_crypto_openssl.so APU_CRYPTO_NSS?= ${LOCALBASE}/lib/apr-util-1/apr_crypto_nss.so @@ -144,7 +126,7 @@ post-patch: post-configure: @FTPUSERS=`${EGREP} -v '^#' /etc/ftpusers| ${TR} -s "\n" " "` ;\ ${REINPLACE_CMD} -e "s,%%FTPUSERS%%,$${FTPUSERS}," ${WRKSRC}/docs/conf/extra/httpd-userdir.conf - @${REINPLACE_CMD} -e "s,%%WWWOWN%%,${WWWOWN}," -e "s,%%WWWGRP%%,${WWWGRP}," ${WRKSRC}/docs/conf/httpd.conf + @${REINPLACE_CMD} -e "s,%%WWWOWN%%,${WWWOWN}," -e "s,%%WWWGRP%%,${WWWGRP}," ${WRKSRC}/docs/conf/httpd.conf @${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," ${WRKSRC}/support/envvars-std post-install: diff --git a/www/apache22/files/patch-modules__mappers__mod_rewrite.c b/www/apache22/files/patch-modules__mappers__mod_rewrite.c new file mode 100644 index 000000000000..1c1790b36c55 --- /dev/null +++ b/www/apache22/files/patch-modules__mappers__mod_rewrite.c @@ -0,0 +1,27 @@ +--- ./modules/mappers/mod_rewrite.c.orig 2013-02-18 22:31:42.000000000 +0100 ++++ ./modules/mappers/mod_rewrite.c 2013-05-14 16:41:30.000000000 +0200 +@@ -500,11 +500,11 @@ + + logline = apr_psprintf(r->pool, "%s %s %s %s [%s/sid#%pp][rid#%pp/%s%s%s] " + "(%d) %s%s%s%s" APR_EOL_STR, +- rhost ? rhost : "UNKNOWN-HOST", +- rname ? rname : "-", +- r->user ? (*r->user ? r->user : "\"\"") : "-", ++ rhost ? ap_escape_logitem(r->pool, rhost) : "UNKNOWN-HOST", ++ rname ? ap_escape_logitem(r->pool, rname) : "-", ++ r->user ? (*r->user ? ap_escape_logitem(r->pool, r->user) : "\"\"") : "-", + current_logtime(r), +- ap_get_server_name(r), ++ ap_escape_logitem(r->pool, ap_get_server_name(r)), + (void *)(r->server), + (void *)r, + r->main ? "subreq" : "initial", +@@ -514,7 +514,7 @@ + perdir ? "[perdir " : "", + perdir ? perdir : "", + perdir ? "] ": "", +- text); ++ ap_escape_logitem(r->pool, text)); + + nbytes = strlen(logline); + apr_file_write(conf->rewritelogfp, logline, &nbytes); diff --git a/www/apache22/files/patch-support__apachectl.in b/www/apache22/files/patch-support__apachectl.in index 5391b30dfe58..8c3b8d5df6f8 100644 --- a/www/apache22/files/patch-support__apachectl.in +++ b/www/apache22/files/patch-support__apachectl.in @@ -1,11 +1,68 @@ --- ./support/apachectl.in.orig 2006-07-11 23:38:44.000000000 -0400 +++ ./support/apachectl.in 2010-05-06 19:37:54.265730461 -0400 -@@ -64,7 +64,7 @@ - ULIMIT_MAX_FILES="@APACHECTL_ULIMIT@" +@@ -35,6 +35,7 @@ + # When multiple arguments are given, only the error from the _last_ + # one is reported. Run "apachectl help" for usage info + # ++ACMD="$1" + ARGV="$@" + # + # |||||||||||||||||||| START CONFIGURATION SECTION |||||||||||||||||||| +@@ -42,6 +43,7 @@ + # + # the path to your httpd binary, including options if necessary + HTTPD='@exp_sbindir@/@progname@' ++SERVICE='/usr/sbin/service apache22' + # + # pick up any necessary environment variables + if test -f @exp_sbindir@/envvars; then +@@ -65,19 +67,21 @@ # -------------------- -------------------- # |||||||||||||||||||| END CONFIGURATION SECTION |||||||||||||||||||| -- + +eval `limits -e -C daemon` >/dev/null 2>&1 # Set the maximum number of file descriptors allowed per child process. if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then $ULIMIT_MAX_FILES + fi + + ERROR=0 +-if [ "x$ARGV" = "x" ] ; then +- ARGV="-h" ++if [ "x$ACMD" = "x" ] ; then ++ ACMD="-h" + fi + +-case $ARGV in +-start|stop|restart|graceful|graceful-stop) +- $HTTPD -k $ARGV ++case $ACMD in ++start|stop|restart|rcvar|reload|graceful|gracefulstop|graceful-stop) ++# $HTTPD -k $ARGV ++ $SERVICE $( echo $ACMD | tr -d '-' ) + ERROR=$? + ;; + startssl|sslstart|start-SSL) +@@ -87,17 +91,19 @@ + ERROR=2 + ;; + configtest) +- $HTTPD -t ++# $HTTPD -t ++ $SERVICE $ACMD + ERROR=$? + ;; + status) +- $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' ++# $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } ' ++ $SERVICE $ACMD + ;; + fullstatus) + $LYNX $STATUSURL + ;; + *) +- $HTTPD $ARGV ++ $HTTPD "$@" + ERROR=$? + esac + |