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

(-)security/authforce/Makefile (-20 / +46 lines)
Lines 1-38 Link Here
1
# Ports collection makefile for:  authforce
1
# Created by: ache
2
# Date created:                   08.05.2002
3
# Whom:                           ache
4
#
5
# $FreeBSD: ports/security/authforce/Makefile,v 1.22 2012/09/21 10:07:33 bapt Exp $
2
# $FreeBSD: ports/security/authforce/Makefile,v 1.22 2012/09/21 10:07:33 bapt Exp $
6
#
7
3
8
PORTNAME=	authforce
4
PORTNAME=	authforce
9
PORTVERSION=	0.9.9
5
PORTVERSION=	0.9.9
10
CATEGORIES=	security www
6
CATEGORIES=	security www
11
MASTER_SITES=	http://www.divineinvasion.net/authforce/
7
MASTER_SITES=	http://cloud.github.com/downloads/zlandau/authforce/
12
8
13
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
14
COMMENT=	HTTP authentication brute forcer
10
COMMENT=	HTTP authentication brute forcer
15
11
16
DEPRECATED=	No more public distfiles
12
LICENSE=	GPLv2
17
EXPIRATION_DATE=	2012-10-20
18
13
19
LIB_DEPENDS=	curl.6:${PORTSDIR}/ftp/curl
14
OPTIONS_DEFINE=	CURL NLS
15
OPTIONS_DEFAULT=CURL
20
16
21
CONFIGURE_ENV=	LIBS="-lintl"
22
LDFLAGS+=	-L${LOCALBASE}/lib
23
CPPFLAGS+=	-I${LOCALBASE}/include
24
GNU_CONFIGURE=	yes
25
USE_BZIP2=	yes
17
USE_BZIP2=	yes
26
USE_GETTEXT=	yes
18
USE_NCURSES=	yes
19
USE_READLINE=	yes
20
GNU_CONFIGURE=	yes
21
MAKE_JOBS_SAFE=	yes
22
23
CPPFLAGS+=	-I${LOCALBASE}/include
24
LDFLAGS+=	-L${LOCALBASE}/lib
27
25
28
INFO=		authforce
29
MAN1=		authforce.1
30
MANCOMPRESSED=	yes
26
MANCOMPRESSED=	yes
27
MAN1=		authforce.1
28
INFO=		authforce
29
PLIST_FILES=	bin/authforce \
30
		%%DATADIR%%/blank.lst \
31
		%%DATADIR%%/dummy.lst \
32
		%%DATADIR%%/password.lst \
33
		%%DATADIR%%/username.lst \
34
		%%DATADIR%%/userpass.lst
35
PLIST_DIRS=	%%DATADIR%%
36
37
.include <bsd.port.options.mk>
38
39
.if ${PORT_OPTIONS:MCURL}
40
LIB_DEPENDS+=	curl:${PORTSDIR}/ftp/curl
41
.else
42
CONFIGURE_ARGS+=--without-curl
43
.endif
44
45
.if ${PORT_OPTIONS:MNLS}
46
USE_GETTEXT=	yes
47
PLIST_FILES+=	share/locale/nl/LC_MESSAGES/authforce.mo
48
.else
49
CONFIGURE_ARGS+=--disable-nls
50
.endif
31
51
32
post-patch:
52
post-patch:
33
	@${REINPLACE_CMD} -e '/#include <malloc.h>/d' ${WRKSRC}/src/methods.c ${WRKSRC}/src/misc.c
53
	@${REINPLACE_CMD} -e \
34
	@${REINPLACE_CMD} -e 's|#include <malloc.h>|#include <stdlib.h>|' ${WRKSRC}/src/extract.c
54
		'/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
35
	@${REINPLACE_CMD} -e '/^pwlistsdir = / s|/data$$||' ${WRKSRC}/data/Makefile.in
55
	@${REINPLACE_CMD} -e \
36
	@${REINPLACE_CMD} -e '/<curl\/types.h>/d' ${WRKSRC}/src/http.c
56
		'/^mangdir = / s|/mang$$|/man1|' ${WRKSRC}/doc/Makefile.in
57
	@${REINPLACE_CMD} -e \
58
		'/<curl\/types.h>/d' ${WRKSRC}/src/http.c
59
.for i in extract.c methods.c misc.c
60
	@${REINPLACE_CMD} -e \
61
		's|<malloc.h>|<stdlib.h>|' ${WRKSRC}/src/${i}
62
.endfor
37
63
38
.include <bsd.port.mk>
64
.include <bsd.port.mk>
(-)security/authforce/files/patch-ad (-11 lines)
Lines 1-11 Link Here
1
--- doc/Makefile.in.orig	2007-05-14 06:54:38.000000000 +0800
2
+++ doc/Makefile.in	2011-08-30 16:43:21.864890601 +0800
3
@@ -68,7 +68,7 @@
4
 AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
5
 DVIPS = dvips
6
 am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(mangdir)"
7
-mangdir = $(mandir)/mang
8
+mangdir = $(mandir)/man1
9
 NROFF = nroff
10
 MANS = $(man_MANS)
11
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
(-)security/authforce/pkg-descr (-1 / +1 lines)
Lines 5-8 Link Here
5
of your site and to prove the insecurity of HTTP authentication based on
5
of your site and to prove the insecurity of HTTP authentication based on
6
the fact that users just don't pick good passwords.
6
the fact that users just don't pick good passwords.
7
7
8
WWW: http://www.divineinvasion.net/authforce/
8
WWW: https://github.com/zlandau/authforce
(-)security/authforce/pkg-plist (-8 lines)
Lines 1-8 Link Here
1
bin/authforce
2
%%DATADIR%%/blank.lst
3
%%DATADIR%%/dummy.lst
4
%%DATADIR%%/password.lst
5
%%DATADIR%%/username.lst
6
%%DATADIR%%/userpass.lst
7
share/locale/nl/LC_MESSAGES/authforce.mo
8
@dirrm %%DATADIR%%

Return to bug 172053