aboutsummaryrefslogtreecommitdiff
path: root/www/mod_blowchunks
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_blowchunks')
-rw-r--r--www/mod_blowchunks/Makefile35
-rw-r--r--www/mod_blowchunks/files/patch-mod_blowchunks.c (renamed from www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c)4
-rw-r--r--www/mod_blowchunks/pkg-plist3
3 files changed, 16 insertions, 26 deletions
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 <bsd.port.pre.mk>
-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 <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c b/www/mod_blowchunks/files/patch-mod_blowchunks.c
index c9e0519485ff..d1f021bc35c3 100644
--- a/www/mod_blowchunks/files/patch-mod_blowchunks-1.3.c
+++ b/www/mod_blowchunks/files/patch-mod_blowchunks.c
@@ -1,5 +1,5 @@
---- 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
+--- 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);
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"