blob: e504b58767d3fbc2f04f193e1fcc30cd64090b46 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Created by: ache
# $FreeBSD$
PORTNAME= authforce
PORTVERSION= 0.9.9
PORTREVISION= 1
CATEGORIES= security www
MASTER_SITES= http://cloud.github.com/downloads/zlandau/authforce/
MAINTAINER= ports@FreeBSD.org
COMMENT= HTTP authentication brute forcer
LICENSE= GPLv2
OPTIONS_DEFINE= CURL NLS
USES= ncurses
#USE_READLINE= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
MAKE_JOBS_SAFE= yes
NO_CCACHE= yes
MANCOMPRESSED= yes
MAN1= authforce.1
INFO= authforce
PLIST_FILES= bin/authforce \
%%DATADIR%%/blank.lst \
%%DATADIR%%/dummy.lst \
%%DATADIR%%/password.lst \
%%DATADIR%%/username.lst \
%%DATADIR%%/userpass.lst
PLIST_DIRS= %%DATADIR%%
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCURL}
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
.else
CONFIGURE_ARGS+= --without-curl
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_FILES+= share/locale/nl/LC_MESSAGES/authforce.mo
CONFIGURE_ENV+= CPPFLAGS=-I${PREFIX}/include LDFLAGS=-L${PREFIX}/lib
.else
CONFIGURE_ARGS+= --disable-nls
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
@${REINPLACE_CMD} -e \
'/^mangdir = / s|/mang$$|/man1|' ${WRKSRC}/doc/Makefile.in
@${REINPLACE_CMD} -e \
'/<curl\/types.h>/d' ${WRKSRC}/src/http.c
.for i in extract.c methods.c misc.c
@${REINPLACE_CMD} -e \
's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/src/${i}
.endfor
.include <bsd.port.mk>
|