1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/www/mod_blowchunks/Makefile
Anders Nordby e750702899 Add mod_blowchunks, an Apache module to reject and log chunked requests.
Useful for those that want to log attempts to exploit that recent Apache
vulnerability, or who need or want to use their current Apache version
for some reason.
2002-06-22 22:50:33 +00:00

49 lines
1.4 KiB
Makefile

# New ports collection makefile for: mod_blowchunks
# Date created: 23 June 2002
# Whom: Anders Nordby <anders@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mod_blowchunks
PORTVERSION= 1.3
CATEGORIES= www
MASTER_SITES= ftp://ftp.nuug.no/pub/anders/distfiles/ \
http://atreides.freenix.no/~anders/
EXTRACT_SUFX= .c
MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
NO_WRKSUBDIR= YES
APXS?= ${LOCALBASE}/sbin/apxs
APXSFLAGS= -DTRUE=1 -DFALSE=0
.if !defined(WITHOUT_BLOWCHUNK_LOG)
APXSFLAGS+= -DLOG_BLOWCHUNK
.endif
do-extract:
@${MKDIR} ${WRKDIR}
@${CP} -p ${DISTDIR}/${DISTFILES} ${WRKDIR}
do-build:
.if !defined(WITHOUT_BLOWCHUNK_LOG)
@${ECHO} "================================================================================"
@${ECHO} "If you do not want to log chunked requests, rebuild with WITHOUT_BLOWCHUNK_LOG"
@${ECHO} "defined."
@${ECHO} "================================================================================"
.endif
cd ${WRKSRC} && ${MV} ${PKGNAME}.c ${PORTNAME}.c && \
${APXS} ${APXSFLAGS} -c ${PORTNAME}.c
do-install:
cd ${WRKSRC} && ${APXS} -A -i ${PORTNAME}.so
@${ECHO} "================================================================================"
@${ECHO} "Enable mod_blowchunks in Apache's config manually."
@${ECHO} "================================================================================"
.include <bsd.port.mk>