blob: 7d10dbd4ad84c922e1fb5cbed039846cce5878e3 (
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
|
# New ports collection makefile for: slowloris
# Date created: Fri 03 Jul 2009
# Whom: Alexey V. Degtyarev
#
# $FreeBSD$
#
PORTNAME= slowloris
PORTVERSION= 0.7
CATEGORIES= benchmarks
MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/
MAINTAINER= alexey@renatasystems.org
COMMENT= The low bandwidth, yet greedy and poisonous HTTP client
USES= perl5
NO_BUILD= yes
RUN_DEPENDS= p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long
PLIST_FILES= bin/slowloris
.include <bsd.port.pre.mk>
PERL_THREADS= no
.if exists(${PERL})
PERL_THREADS!= ${PERL} -V::usethreads
.if ${PERL_THREADS} == "'define';"
RUN_DEPENDS+= p5-threads-shared>=0:${PORTSDIR}/devel/p5-threads-shared
PERL_THREADS= yes
.endif
.endif
.if ${PERL_THREADS} != "yes"
EXTRA_PATCHES+= ${FILESDIR}/extra-nothreads
.endif
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/slowloris.pl ${PREFIX}/bin/slowloris
.include <bsd.port.post.mk>
|