Index: head/www/apache2/Makefile =================================================================== --- head/www/apache2/Makefile (revision 112521) +++ head/www/apache2/Makefile (revision 112522) @@ -1,196 +1,196 @@ # New ports collection makefile for: apache2 # Date created: 7 April 2001 # Whom: Hye-Shik Chang # # $FreeBSD$ # # For more information, please read Makefile.doc # PORTNAME= apache PORTVERSION= 2.0.49 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www ipv6 MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \ http://sheepkiller.nerim.net/ports/${PORTNAME}/:powerlogo DISTNAME= httpd-${PORTVERSION} DISTFILES= ${DISTNAME}.tar.gz powerlogo.gif:powerlogo DIST_SUBDIR= apache2 EXTRACT_ONLY= ${DISTNAME}.tar.gz MAINTAINER?= clement@FreeBSD.org COMMENT?= Version 2 of Apache web server with ${WITH_MPM:L} MPM. LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 LATEST_LINK= apache2 CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.* \ apache+mod_ssl+mod_snmp+ipv6-1.* apache+mod_ssl+mod_accel-1.* \ apache+mod_ssl+mod_snmp+mod_accel-1.* \ apache+ipv6-1.* apache+ssl-1.* apache-1.* apache_fp-1.* \ caudium-devel-1.* caudium10-1.* caudium12-* \ ru-apache+mod_ssl-1.* ru-apache-1.* thttpd-2.* # patch files PATCH_SITES+= ${MASTER_SITE_LOCAL:S/$/:clement/} PATCH_SITE_SUBDIR= clement/:clement .if defined (WITH_WINDOWSUPDATEFIX) PATCHFILES+= httpd-${PORTVERSION}-windowsupdate.patch:clement .endif SCRIPTS_ENV+= LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \ LIBTOOL_VERSION=${LIBTOOL_VERSION} AUTOCONF=${AUTOCONF} \ LIBTOOL_M4=${LOCALBASE}/share/aclocal/libtool${LIBTOOL_VERSION}.m4 \ AUTOHEADER=${AUTOHEADER} USE_AUTOCONF_VER= 257 USE_LIBTOOL_VER= 15 USE_PERL5= yes USE_RC_SUBR= yes USE_REINPLACE= yes LIBTOOLFILES= configure CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --enable-layout=FreeBSD \ --with-perl=${PERL5} \ --with-port=${WITH_HTTP_PORT} \ --with-expat=${LOCALBASE} \ --libdir=${PREFIX_RELDEST}/lib/apache2 \ --includedir=${PREFIX_RELDEST}/include/apache2 CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" \ CFLAGS="${CFLAGS}" \ LDFLAGS="${LDFLAGS}" CONFIG_SHELL="${SH}" \ LOCALBASE="${LOCALBASE}" PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,} RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} MAKE_ENV+= DESTDIR=${DESTDIR} EXPR_COMPAT=yes WITH_MPM?= prefork # or worker, perchild WITH_HTTP_PORT?= 80 .if !defined(WITH_IPV6_V6ONLY) CONFIGURE_ARGS+= --enable-v4-mapped .endif .if !defined(WITHOUT_SSL) USE_OPENSSL= yes .endif .if defined(WITH_STATIC_SUPPORT) CONFIGURE_ARGS+= --enable-static-support .endif .if defined(WITH_SSL_EXPERIMENTAL_ENGINE) CFLAGS+= -DSSL_EXPERIMENTAL_ENGINE .endif # debug overrides CFLAGS .if defined(WITH_DEBUG) || defined (DEBUG_FLAGS) DEBUG_FLAGS?= -O0 -g -ggdb3 CFLAGS= ${DEBUG_FLAGS} CONFIGURE_ARGS+= --enable-maintainer-mode .endif # for slave ports .if !defined(MASTERDIR) APACHEDIR= ${.CURDIR} .else APACHEDIR= ${MASTERDIR} .endif .if defined (WITH_LDAP) USE_OPENLDAP= YES CONFIGURE_ARGS+= --with-ldap \ --with-ldap-lib="${LOCALBASE}/lib" \ --with-ldap-include="${LOCALBASE}/include" .endif .include # Untested and may fail ! .if defined(WITH_APR_FROM_PORTS) . if defined (WITH_BDB) || defined(WITH_BERKELEYDB) IGNORE= "You can't set WITH_BDB or WITH_BERKELEYDB when WITH_APR_FROM_PORTS is defined" . endif LIB_DEPENDS+= apr-0.9:${PORTSDIR}/devel/apr CONFIGURE_ARGS+= --with-apr=${LOCALBASE}/bin/apr-config \ --with-apr-util=${LOCALBASE}/bin/apu-config CONFIGURE_ENV+= LTFLAGS="--tag=CXX" PLIST_SUB+= PORTS_APR="@comment " .else . if exists(${LOCALBASE}/lib/libapr-0.so) IGNORE= apr is installed and may conflict with apache one\ (if you want to use apr port define WITH_APR_FROM_PORTS,\ at your own risk) . endif PLIST_SUB+= PORTS_APR="" .endif WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//} WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS} .include "${APACHEDIR}/Makefile.doc" .include "${APACHEDIR}/Makefile.modules" CONFIGURE_ARGS+= --with-mpm=${WITH_MPM:L} ${CONFIGURE_TARGET} show-options: @${SED} -ne 's/^##//p' ${APACHEDIR}/Makefile.doc show-modules: @for module in ${AVAILABLE_MODULES} ; do \ ${ECHO_MSG} -n "$${module}: ";\ if ${ECHO_CMD} ${APACHE_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \ ${ECHO_CMD} -n "enabled "; \ if ${ECHO_CMD} ${WITH_STATIC_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \ ${ECHO_CMD} "(static)" ; \ else \ ${ECHO_CMD} "(shared)" ;\ fi;\ else\ ${ECHO_CMD} disabled ;\ fi;\ done pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} " To see all available knobs, type make show-options" @${ECHO_MSG} " You can check your modules configuration by using show-modules" @${ECHO_MSG} "" post-extract: @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/powerlogo.gif ${WRKSRC}/docs/icons/freebsd.gif pre-configure: @cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ./buildconf post-patch: @cd ${WRKSRC}/docs/docroot && \ for f in index.html.*; do (\ ${REINPLACE_CMD} -e 's,apache_pb,icons/freebsd.gif"\ ALT="[Powered by FreeBSD]"> Property changes on: head/www/apache2/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.184 \ No newline at end of property +1.185 \ No newline at end of property Index: head/www/apache2/files/patch-server:protocol.c =================================================================== --- head/www/apache2/files/patch-server:protocol.c (nonexistent) +++ head/www/apache2/files/patch-server:protocol.c (revision 112522) @@ -0,0 +1,32 @@ +=================================================================== +RCS file: /home/cvspublic/httpd-2.0/server/protocol.c,v +retrieving revision 1.121.2.18 +retrieving revision 1.121.2.19 +diff -u -r1.121.2.18 -r1.121.2.19 +--- server/protocol.c 2004/06/11 20:46:41 1.121.2.18 ++++ server/protocol.c 2004/06/28 23:57:14 1.121.2.19 +@@ -719,6 +719,23 @@ + * continuations that span many many lines. + */ + apr_size_t fold_len = last_len + len + 1; /* trailing null */ ++ ++ if ((fold_len - 1) > r->server->limit_req_fieldsize) { ++ r->status = HTTP_BAD_REQUEST; ++ /* report what we have accumulated so far before the ++ * overflow (last_field) as the field with the problem ++ */ ++ apr_table_setn(r->notes, "error-notes", ++ apr_pstrcat(r->pool, ++ "Size of a request header field " ++ "after folding " ++ "exceeds server limit.
\n" ++ "
\n",
++                                               ap_escape_html(r->pool, last_field),
++                                               "
\n", NULL)); ++ return; ++ } ++ + if (fold_len > alloc_len) { + char *fold_buf; + alloc_len += alloc_len; + Property changes on: head/www/apache2/files/patch-server:protocol.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Index: head/www/apache20/Makefile =================================================================== --- head/www/apache20/Makefile (revision 112521) +++ head/www/apache20/Makefile (revision 112522) @@ -1,196 +1,196 @@ # New ports collection makefile for: apache2 # Date created: 7 April 2001 # Whom: Hye-Shik Chang # # $FreeBSD$ # # For more information, please read Makefile.doc # PORTNAME= apache PORTVERSION= 2.0.49 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= www ipv6 MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \ http://sheepkiller.nerim.net/ports/${PORTNAME}/:powerlogo DISTNAME= httpd-${PORTVERSION} DISTFILES= ${DISTNAME}.tar.gz powerlogo.gif:powerlogo DIST_SUBDIR= apache2 EXTRACT_ONLY= ${DISTNAME}.tar.gz MAINTAINER?= clement@FreeBSD.org COMMENT?= Version 2 of Apache web server with ${WITH_MPM:L} MPM. LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2 LATEST_LINK= apache2 CONFLICTS= apache+mod_ssl-1.* apache+mod_ssl+ipv6-1.* apache+mod_ssl+modsnmp-1.* \ apache+mod_ssl+mod_snmp+ipv6-1.* apache+mod_ssl+mod_accel-1.* \ apache+mod_ssl+mod_snmp+mod_accel-1.* \ apache+ipv6-1.* apache+ssl-1.* apache-1.* apache_fp-1.* \ caudium-devel-1.* caudium10-1.* caudium12-* \ ru-apache+mod_ssl-1.* ru-apache-1.* thttpd-2.* # patch files PATCH_SITES+= ${MASTER_SITE_LOCAL:S/$/:clement/} PATCH_SITE_SUBDIR= clement/:clement .if defined (WITH_WINDOWSUPDATEFIX) PATCHFILES+= httpd-${PORTVERSION}-windowsupdate.patch:clement .endif SCRIPTS_ENV+= LIBTOOL=${LIBTOOL} LIBTOOLIZE=${LIBTOOLIZE} \ LIBTOOL_VERSION=${LIBTOOL_VERSION} AUTOCONF=${AUTOCONF} \ LIBTOOL_M4=${LOCALBASE}/share/aclocal/libtool${LIBTOOL_VERSION}.m4 \ AUTOHEADER=${AUTOHEADER} USE_AUTOCONF_VER= 257 USE_LIBTOOL_VER= 15 USE_PERL5= yes USE_RC_SUBR= yes USE_REINPLACE= yes LIBTOOLFILES= configure CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} \ --enable-layout=FreeBSD \ --with-perl=${PERL5} \ --with-port=${WITH_HTTP_PORT} \ --with-expat=${LOCALBASE} \ --libdir=${PREFIX_RELDEST}/lib/apache2 \ --includedir=${PREFIX_RELDEST}/include/apache2 CONFIGURE_ENV= CC="${CC}" CPPFLAGS="${CPPFLAGS}" \ CFLAGS="${CFLAGS}" \ LDFLAGS="${LDFLAGS}" CONFIG_SHELL="${SH}" \ LOCALBASE="${LOCALBASE}" PREFIX_RELDEST= ${PREFIX:S,^${DESTDIR},,} RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} MAKE_ENV+= DESTDIR=${DESTDIR} EXPR_COMPAT=yes WITH_MPM?= prefork # or worker, perchild WITH_HTTP_PORT?= 80 .if !defined(WITH_IPV6_V6ONLY) CONFIGURE_ARGS+= --enable-v4-mapped .endif .if !defined(WITHOUT_SSL) USE_OPENSSL= yes .endif .if defined(WITH_STATIC_SUPPORT) CONFIGURE_ARGS+= --enable-static-support .endif .if defined(WITH_SSL_EXPERIMENTAL_ENGINE) CFLAGS+= -DSSL_EXPERIMENTAL_ENGINE .endif # debug overrides CFLAGS .if defined(WITH_DEBUG) || defined (DEBUG_FLAGS) DEBUG_FLAGS?= -O0 -g -ggdb3 CFLAGS= ${DEBUG_FLAGS} CONFIGURE_ARGS+= --enable-maintainer-mode .endif # for slave ports .if !defined(MASTERDIR) APACHEDIR= ${.CURDIR} .else APACHEDIR= ${MASTERDIR} .endif .if defined (WITH_LDAP) USE_OPENLDAP= YES CONFIGURE_ARGS+= --with-ldap \ --with-ldap-lib="${LOCALBASE}/lib" \ --with-ldap-include="${LOCALBASE}/include" .endif .include # Untested and may fail ! .if defined(WITH_APR_FROM_PORTS) . if defined (WITH_BDB) || defined(WITH_BERKELEYDB) IGNORE= "You can't set WITH_BDB or WITH_BERKELEYDB when WITH_APR_FROM_PORTS is defined" . endif LIB_DEPENDS+= apr-0.9:${PORTSDIR}/devel/apr CONFIGURE_ARGS+= --with-apr=${LOCALBASE}/bin/apr-config \ --with-apr-util=${LOCALBASE}/bin/apu-config CONFIGURE_ENV+= LTFLAGS="--tag=CXX" PLIST_SUB+= PORTS_APR="@comment " .else . if exists(${LOCALBASE}/lib/libapr-0.so) IGNORE= apr is installed and may conflict with apache one\ (if you want to use apr port define WITH_APR_FROM_PORTS,\ at your own risk) . endif PLIST_SUB+= PORTS_APR="" .endif WITH_PTHREAD_LIBS?= ${PTHREAD_LIBS:S/-l//} WITH_PTHREAD_CFLAGS?= ${PTHREAD_CFLAGS} .include "${APACHEDIR}/Makefile.doc" .include "${APACHEDIR}/Makefile.modules" CONFIGURE_ARGS+= --with-mpm=${WITH_MPM:L} ${CONFIGURE_TARGET} show-options: @${SED} -ne 's/^##//p' ${APACHEDIR}/Makefile.doc show-modules: @for module in ${AVAILABLE_MODULES} ; do \ ${ECHO_MSG} -n "$${module}: ";\ if ${ECHO_CMD} ${APACHE_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \ ${ECHO_CMD} -n "enabled "; \ if ${ECHO_CMD} ${WITH_STATIC_MODULES} | ${GREP} -wq $${module} 2> /dev/null ; then \ ${ECHO_CMD} "(static)" ; \ else \ ${ECHO_CMD} "(shared)" ;\ fi;\ else\ ${ECHO_CMD} disabled ;\ fi;\ done pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} " To see all available knobs, type make show-options" @${ECHO_MSG} " You can check your modules configuration by using show-modules" @${ECHO_MSG} "" post-extract: @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/powerlogo.gif ${WRKSRC}/docs/icons/freebsd.gif pre-configure: @cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ./buildconf post-patch: @cd ${WRKSRC}/docs/docroot && \ for f in index.html.*; do (\ ${REINPLACE_CMD} -e 's,apache_pb,icons/freebsd.gif"\ ALT="[Powered by FreeBSD]"> Property changes on: head/www/apache20/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.184 \ No newline at end of property +1.185 \ No newline at end of property Index: head/www/apache20/files/patch-server:protocol.c =================================================================== --- head/www/apache20/files/patch-server:protocol.c (nonexistent) +++ head/www/apache20/files/patch-server:protocol.c (revision 112522) @@ -0,0 +1,32 @@ +=================================================================== +RCS file: /home/cvspublic/httpd-2.0/server/protocol.c,v +retrieving revision 1.121.2.18 +retrieving revision 1.121.2.19 +diff -u -r1.121.2.18 -r1.121.2.19 +--- server/protocol.c 2004/06/11 20:46:41 1.121.2.18 ++++ server/protocol.c 2004/06/28 23:57:14 1.121.2.19 +@@ -719,6 +719,23 @@ + * continuations that span many many lines. + */ + apr_size_t fold_len = last_len + len + 1; /* trailing null */ ++ ++ if ((fold_len - 1) > r->server->limit_req_fieldsize) { ++ r->status = HTTP_BAD_REQUEST; ++ /* report what we have accumulated so far before the ++ * overflow (last_field) as the field with the problem ++ */ ++ apr_table_setn(r->notes, "error-notes", ++ apr_pstrcat(r->pool, ++ "Size of a request header field " ++ "after folding " ++ "exceeds server limit.
\n" ++ "
\n",
++                                               ap_escape_html(r->pool, last_field),
++                                               "
\n", NULL)); ++ return; ++ } ++ + if (fold_len > alloc_len) { + char *fold_buf; + alloc_len += alloc_len; + Property changes on: head/www/apache20/files/patch-server:protocol.c ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property