diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2012-05-23 19:58:16 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2012-05-23 19:58:16 +0000 |
commit | d5bd9df70b968d35e575b68543efa86c75774825 (patch) | |
tree | bf3278079cfc77aa6f3b267f84f8be3add1456d3 /security/truecrack/Makefile | |
parent | cc18b2487de09cbdd3226e1691155fda8b79fed8 (diff) | |
download | ports-d5bd9df70b968d35e575b68543efa86c75774825.tar.gz ports-d5bd9df70b968d35e575b68543efa86c75774825.zip |
Notes
Diffstat (limited to 'security/truecrack/Makefile')
-rw-r--r-- | security/truecrack/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/security/truecrack/Makefile b/security/truecrack/Makefile new file mode 100644 index 000000000000..d51f55f0ea2a --- /dev/null +++ b/security/truecrack/Makefile @@ -0,0 +1,42 @@ +# 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> |