aboutsummaryrefslogtreecommitdiff
path: root/www/mod_antiloris/Makefile
blob: db6c77f2cbfe6bb2f9fd45ae1b2288ddc663c3d8 (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
# Created by: Aleksandar Pejic <alex@vts.su.ac.rs>
# $FreeBSD$

PORTNAME=	mod_antiloris
PORTVERSION=	0.4
PORTREVISION=	1
CATEGORIES=	www
MASTER_SITES=	ftp://ftp.monshouwer.eu/pub/linux/mod_antiloris/

MAINTAINER=	alex@vts.su.ac.rs
COMMENT=	Protect Apache 2.x against the Slowloris HTTP DoS attack

LICENSE=	APACHE20

USES=		tar:bzip2
USE_APACHE=	22
AP_FAST_BUILD=	yes
AP_GENPLIST=	yes
AP_EXTRAS+=	-a
MODULENAME=	mod_antiloris
SRC_FILE=	*.c
SUB_FILES+=	mod_antiloris.conf
SUB_LIST+=	APACHEETCDIR="${APACHEETCDIR}"
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

.if !defined(SKIP_RULES)
PLIST_FILES+=	${APACHEETCDIR}/Includes/mod_antiloris.conf
SUB_FILES+=	pkg-message.rules
.endif

post-install:
.if !defined(SKIP_RULES)
	@${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes
	@${INSTALL_DATA} ${WRKDIR}/mod_antiloris.conf ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/Includes
.endif

.include <bsd.port.mk>