freebsd-ports/security/truecrack/Makefile
Ryan Steinmetz d5bd9df70b New port: security/truecrack
TrueCrack is a brute-force password cracker for TrueCrypt (Copyright) volume
files. It works on Linux and it is optimized with Nvidia Cuda technology.
It works with cripted volumes with the following algorithms:

- PBKDF2 (defined in PKCS5 v2.0) based on RIPEMD160 Key derivation function.
- XTS block cipher mode of operation used for hard disk encryption based on
  AES.

TrueCrack can work in two different modes of use:

- Dictionary attack: read the passwords from a file of words (one password
  for line).
- Charset attack: generate the passwords from a charset of symbols defined
  by the user (for example: all possible strings of n characters from the
  charset "abc" ).

WWW: https://code.google.com/p/truecrack/
2012-05-23 19:58:16 +00:00

42 lines
1,000 B
Makefile

# New ports collection makefile for: truecrack
# Date created: 23 May 2012
# Whom: 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= A password cracker for TrueCrypt volumes
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/license.txt
USE_GMAKE= yes
CFLAGS+= -DTC_BSD
PLIST_FILES= bin/truecrack
.if !defined(NOPORTDATA)
DICTIONARIES= dictionary_100k.txt dictionary_10k.txt dictionary.txt
PORTDATA= ${DICTIONARIES}
.endif
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 ${PREFIX}/bin
.if !defined(NOPORTDATA)
.for dict in ${DICTIONARIES}
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/${dict} ${DATADIR}
.endfor
.endif
.include <bsd.port.mk>