2016-07-11 23:27:18 +02:00
|
|
|
# Created by: Nikolai Lifanov <lifanov@mail.lifanov.com>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= hashcat-legacy
|
|
|
|
PORTVERSION= 2.00
|
Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.
This includes ports
- featuring USE_GCC=yes or USE_GCC=any,
- featuring USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and those
- with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.
PR: 222542
2018-07-30 00:18:44 +02:00
|
|
|
PORTREVISION= 5
|
2016-07-11 23:27:18 +02:00
|
|
|
CATEGORIES= security
|
|
|
|
|
2016-12-14 04:47:18 +01:00
|
|
|
MAINTAINER= lifanov@FreeBSD.org
|
2016-07-11 23:27:18 +02:00
|
|
|
COMMENT= Advanced CPU-based password recovery utility
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/docs/license.txt
|
|
|
|
|
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp
|
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= hashcat
|
|
|
|
|
|
|
|
USE_GCC= any
|
|
|
|
|
|
|
|
USES= gmake
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= amd64
|
|
|
|
ONLY_FOR_ARCHS_REASON= uses amd64 instructions
|
|
|
|
|
|
|
|
ALL_TARGET= posix64 posixXOP
|
|
|
|
|
2018-09-10 15:15:47 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2018-09-10 15:14:50 +02:00
|
|
|
|
2016-12-15 15:18:40 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -r 's|^(CC_.*[[:blank:]]*=[[:blank:]]*)gcc[[:blank:]]*$$|\1${CC}|' ${WRKSRC}/src/Makefile
|
|
|
|
|
2016-07-11 23:27:18 +02:00
|
|
|
do-install:
|
|
|
|
.for v in 64 XOP
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hashcat-cli${v}.bin ${STAGEDIR}${LOCALBASE}/bin
|
|
|
|
.endfor
|
|
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "charsets rules tables salts" ${STAGEDIR}${DATADIR})
|
|
|
|
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|