summaryrefslogtreecommitdiff
path: root/benchmarks/slowloris/Makefile
blob: 9104f5c4b71da18b7ce91eba6dab45aa84f4d0ab (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
PORTNAME=	slowloris
PORTVERSION=	0.7
PORTREVISION=	2
CATEGORIES=	benchmarks
MASTER_SITES=	ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Low-bandwidth, yet greedy and poisonous HTTP client
WWW=		http://ha.ckers.org/slowloris/

RUN_DEPENDS=	p5-IO-Socket-SSL>=0:security/p5-IO-Socket-SSL

NO_ARCH=	yes
NO_BUILD=	yes

USES=		perl5 shebangfix
USE_PERL5=	run
SHEBANG_FILES=	slowloris.pl

PLIST_FILES=	bin/slowloris

PERL_THREADS?=	yes

.if ${PERL_THREADS} != "yes"
EXTRA_PATCHES+=	${FILESDIR}/extra-nothreads
.else
RUN_DEPENDS+=	p5-threads-shared>=0:devel/p5-threads-shared
.endif

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/slowloris.pl \
		${STAGEDIR}/${PREFIX}/bin/slowloris

.include <bsd.port.mk>