View | Details | Raw Unified | Return to bug 187752
Collapse All | Expand All

(-)security/authforce/Makefile (-29 / +23 lines)
Lines 3-62 Link Here
3
3
4
PORTNAME=	authforce
4
PORTNAME=	authforce
5
PORTVERSION=	0.9.9
5
PORTVERSION=	0.9.9
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	security www
7
CATEGORIES=	security www
8
MASTER_SITES=	http://cloud.github.com/downloads/zlandau/authforce/
8
MASTER_SITES=	GHC
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	HTTP authentication brute forcer
11
COMMENT=	HTTP authentication brute forcer
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
14
14
15
OPTIONS_DEFINE=	CURL NLS
15
NO_CCACHE=	yes
16
17
WRKSRC=		${WRKDIR}/${DISTNAME}
16
18
17
USES=		ncurses readline
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	zlandau
21
22
USES=		ncurses readline tar:bzip2 
18
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
19
USE_BZIP2=	yes
24
20
NO_CCACHE=	yes
25
CPPFLAGS+=	-I${LOCALBASE}/include
26
LDFLAGS+=	-L${LOCALBASE}/lib
21
27
22
INFO=		authforce
28
INFO=		authforce
23
29
24
PLIST_FILES=	bin/authforce \
30
PLIST_FILES=	bin/authforce \
31
		man/man1/authforce.1.gz \
25
		%%DATADIR%%/blank.lst \
32
		%%DATADIR%%/blank.lst \
26
		%%DATADIR%%/dummy.lst \
33
		%%DATADIR%%/dummy.lst \
27
		%%DATADIR%%/password.lst \
34
		%%DATADIR%%/password.lst \
28
		%%DATADIR%%/username.lst \
35
		%%DATADIR%%/username.lst \
29
		%%DATADIR%%/userpass.lst \
36
		%%DATADIR%%/userpass.lst
30
		man/man1/authforce.1.gz
31
32
PLIST_DIRS=	%%DATADIR%%
37
PLIST_DIRS=	%%DATADIR%%
33
38
34
.include <bsd.port.options.mk>
39
OPTIONS_DEFINE=		CURL NLS
35
40
36
.if ${PORT_OPTIONS:MCURL}
41
CURL_LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
37
LIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
42
CURL_CONFIGURE_WITH=	curl
38
.else
43
NLS_USES=		gettext
39
CONFIGURE_ARGS+=	--without-curl
44
NLS_CONFIGURE_ENABLE=	nls
40
.endif
45
NLS_PLIST_FILES=	share/locale/nl/LC_MESSAGES/authforce.mo
41
42
.if ${PORT_OPTIONS:MNLS}
43
USES+=		gettext
44
PLIST_FILES+=	share/locale/nl/LC_MESSAGES/authforce.mo
45
CONFIGURE_ENV+=	CPPFLAGS=-I${PREFIX}/include LDFLAGS=-L${PREFIX}/lib
46
.else
47
CONFIGURE_ARGS+=	--disable-nls
48
.endif
49
46
50
post-patch:
47
post-patch:
51
	@${REINPLACE_CMD} -e \
48
	@${REINPLACE_CMD} -e \
52
		'/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
49
		'/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
53
	@${REINPLACE_CMD} -e \
50
	@${REINPLACE_CMD} -e \
54
		'/^mangdir = / s|/mang$$|/man1|' ${WRKSRC}/doc/Makefile.in
51
		'/^mangdir = / s|/mang$$|/man1|' ${WRKSRC}/doc/Makefile.in
55
	@${REINPLACE_CMD} -e \
52
	@${FIND} ${WRKSRC}/src -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \
56
		'/<curl\/types.h>/d' ${WRKSRC}/src/http.c
53
		's|^\(#include <curl/types.h>\)|/* \1 */| ; \
57
.for i in extract.c methods.c misc.c
54
		 s|^\(#include <malloc.h>\)|/* \1 */|'
58
	@${REINPLACE_CMD} -e \
59
		's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/src/${i}
60
.endfor
61
55
62
.include <bsd.port.mk>
56
.include <bsd.port.mk>
(-)security/authforce/files/patch-doc__authforce.texi (+12 lines)
Line 0 Link Here
1
--- doc/authforce.texi.orig
2
+++ doc/authforce.texi
3
@@ -2,6 +2,9 @@
4
 @c %**start of header
5
 @setfilename authforce.info
6
 @settitle Authforce
7
+@direntry
8
+* Authforce: (authforce).	HTTP authentification brute forcer.
9
+@end direntry
10
 @c %**end of header
11
 
12
 @setchapternewpage odd

Return to bug 187752