aboutsummaryrefslogtreecommitdiff
path: root/www/mod_blowchunks/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_blowchunks/Makefile')
-rw-r--r--www/mod_blowchunks/Makefile35
1 files changed, 14 insertions, 21 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>