aboutsummaryrefslogtreecommitdiff
path: root/www/mod_blowchunks/Makefile
blob: aba5233d5c11481933f706067837daff93593ee3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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=	${APXS}:${APACHE_PORT}
RUN_DEPENDS=	${APXS}:${APACHE_PORT}

NO_WRKSUBDIR=	YES

APXS?=		${LOCALBASE}/sbin/apxs
APACHE_PORT?=	${PORTSDIR}/www/apache13
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>