summaryrefslogtreecommitdiff
path: root/security/truecrack/Makefile
blob: e1ea56340ed828883f4103f4ff4959be55e48aef (plain)
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
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$

PORTNAME=	truecrack
PORTVERSION=	0.1
CATEGORIES=	security
MASTER_SITES=	https://truecrack.googlecode.com/files/ \
		http://mirrors.rit.edu/zi/
DISTNAME=	${PORTNAME}

MAINTAINER=	zi@FreeBSD.org
COMMENT=	Password cracker for TrueCrypt volumes

LICENSE=	GPLv3

BROKEN=		Unfetchable (google code has gone away)
DEPRECATED=	Unfetchable for more than six months (google code has gone away)
EXPIRATION_DATE=	2017-04-30

USES=		gmake
CFLAGS+=	-DTC_BSD
PLIST_FILES=	bin/truecrack

DICTIONARIES=	dictionary_100k.txt dictionary_10k.txt dictionary.txt
PORTDATA=	${DICTIONARIES}

post-patch:
	@${REINPLACE_CMD} -e 's/CFLAGS =/CFLAGS +=/g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's/return ;/return 0;/g' ${WRKSRC}/Main/Utils.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/truecrack ${STAGEDIR}${PREFIX}/bin
.for dict in ${DICTIONARIES}
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/${dict} ${STAGEDIR}${DATADIR}
.endfor

.include <bsd.port.mk>