From dcd66c51fa7672a63bd28875f0acd1007b5569ee Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Sun, 12 Apr 2009 05:10:27 +0000 Subject: - USE_APACHE=yes is deprecated - Convert to AP_FAST_BUILD/AP_GEPLIST - OPTIONify - Bump PORTREVISION --- www/mod_blowchunks/Makefile | 35 +++++++++------------- .../files/patch-mod_blowchunks-1.3.c | 13 -------- www/mod_blowchunks/files/patch-mod_blowchunks.c | 13 ++++++++ www/mod_blowchunks/pkg-plist | 3 -- 4 files changed, 27 insertions(+), 37 deletions(-) delete mode 100644 www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c create mode 100644 www/mod_blowchunks/files/patch-mod_blowchunks.c delete mode 100644 www/mod_blowchunks/pkg-plist (limited to 'www/mod_blowchunks') diff --git a/www/mod_blowchunks/Makefile b/www/mod_blowchunks/Makefile index 4ad851f7d088..00ea74d99024 100644 --- a/www/mod_blowchunks/Makefile +++ b/www/mod_blowchunks/Makefile @@ -7,6 +7,7 @@ PORTNAME= mod_blowchunks PORTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/ \ http://atreides.freenix.no/~anders/ @@ -15,32 +16,24 @@ EXTRACT_SUFX= .c MAINTAINER= apache@FreeBSD.org COMMENT= Apache module for rejecting and logging chunked requests -USE_APACHE= yes +OPTIONS= BLOWCHUNK_LOG "Log chunked requests" off + +USE_APACHE= 1.3 NO_WRKSUBDIR= YES -APXSFLAGS= -DTRUE=1 -DFALSE=0 -.if !defined(WITHOUT_BLOWCHUNK_LOG) -APXSFLAGS+= -DLOG_BLOWCHUNK -.endif +AP_FAST_BUILD= yes +AP_GENPLIST= yes -do-extract: - @${MKDIR} ${WRKDIR} - @${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR} +AP_EXTRAS= -DTRUE=1 -DFALSE=0 + +.include -do-build: .if !defined(WITHOUT_BLOWCHUNK_LOG) - @${ECHO_MSG} "================================================================================" - @${ECHO_MSG} "If you do not want to log chunked requests, rebuild with WITHOUT_BLOWCHUNK_LOG" - @${ECHO_MSG} "defined." - @${ECHO_MSG} "================================================================================" +AP_EXTRAS+= -DLOG_BLOWCHUNK .endif - cd ${WRKSRC} && ${MV} ${PKGNAME}.c ${PORTNAME}.c && \ - ${APXS} ${APXSFLAGS} -c ${PORTNAME}.c -do-install: - cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so - @${ECHO_MSG} "================================================================================" - @${ECHO_MSG} "Enable mod_blowchunks in Apache's config manually." - @${ECHO_MSG} "================================================================================" +do-extract: + @${MKDIR} ${WRKDIR} + @${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}${EXTRACT_SUFX} -.include +.include diff --git a/www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c b/www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c deleted file mode 100644 index c9e0519485ff..000000000000 --- a/www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c +++ /dev/null @@ -1,13 +0,0 @@ ---- mod_blowchunks-1.3.c.orig Sat Jun 22 22:44:01 2002 -+++ mod_blowchunks-1.3.c Sat Jun 22 22:45:18 2002 -@@ -56,8 +56,10 @@ - ap_table_do(blowchunks_check_one_header,&found,r->headers_in, - "Transfer-Encoding",NULL); - if (found==TRUE) { -+#ifdef LOG_BLOWCHUNK - ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r, - "Transfer-Encoding: chunked - denied and logged"); -+#endif - return HTTP_BAD_REQUEST; - } - return DECLINED; diff --git a/www/mod_blowchunks/files/patch-mod_blowchunks.c b/www/mod_blowchunks/files/patch-mod_blowchunks.c new file mode 100644 index 000000000000..d1f021bc35c3 --- /dev/null +++ b/www/mod_blowchunks/files/patch-mod_blowchunks.c @@ -0,0 +1,13 @@ +--- mod_blowchunks.c.orig Sat Jun 22 22:44:01 2002 ++++ mod_blowchunks.c Sat Jun 22 22:45:18 2002 +@@ -56,8 +56,10 @@ + ap_table_do(blowchunks_check_one_header,&found,r->headers_in, + "Transfer-Encoding",NULL); + if (found==TRUE) { ++#ifdef LOG_BLOWCHUNK + ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r, + "Transfer-Encoding: chunked - denied and logged"); ++#endif + return HTTP_BAD_REQUEST; + } + return DECLINED; diff --git a/www/mod_blowchunks/pkg-plist b/www/mod_blowchunks/pkg-plist deleted file mode 100644 index 7d3812f09a61..000000000000 --- a/www/mod_blowchunks/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -libexec/apache/mod_blowchunks.so -@exec ${PKG_PREFIX}/sbin/apxs -e -A -n blowchunks mod_blowchunks.so; echo " enable mod_blowchunks in Apache's config manually" -@unexec ${PKG_PREFIX}/sbin/apxs -e -A -n blowchunks mod_blowchunks.so || echo " remove mod_blowchunks from Apache's config manually" -- cgit v1.2.3