Support stage

Get rid of NOPORTDATA
Convert USE_GMAKE ->USES = gmake
Do not include the license file for a well known license
This commit is contained in:
Baptiste Daroussin 2014-01-17 17:32:49 +00:00
parent ee96ae5820
commit 5ab98479cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340086

View File

@ -9,32 +9,26 @@ MASTER_SITES= https://truecrack.googlecode.com/files/ \
DISTNAME= ${PORTNAME}
MAINTAINER= zi@FreeBSD.org
COMMENT= A password cracker for TrueCrypt volumes
COMMENT= Password cracker for TrueCrypt volumes
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/license.txt
USE_GMAKE= yes
USES= gmake
CFLAGS+= -DTC_BSD
PLIST_FILES= bin/truecrack
.if !defined(NOPORTDATA)
DICTIONARIES= dictionary_100k.txt dictionary_10k.txt dictionary.txt
PORTDATA= ${DICTIONARIES}
.endif
NO_STAGE= yes
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)
${INSTALL_PROGRAM} ${WRKSRC}/truecrack ${STAGEDIR}${PREFIX}/bin
.for dict in ${DICTIONARIES}
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/${dict} ${DATADIR}
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/${dict} ${STAGEDIR}${DATADIR}
.endfor
.endif
.include <bsd.port.mk>