summaryrefslogtreecommitdiff
path: root/security/hashcat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/hashcat/Makefile')
-rw-r--r--security/hashcat/Makefile34
1 files changed, 18 insertions, 16 deletions
diff --git a/security/hashcat/Makefile b/security/hashcat/Makefile
index 8cffda08e8b3..be113eb03c5f 100644
--- a/security/hashcat/Makefile
+++ b/security/hashcat/Makefile
@@ -1,5 +1,5 @@
PORTNAME= hashcat
-PORTVERSION= 6.2.6
+PORTVERSION= 7.1.2
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= security
@@ -11,12 +11,15 @@ WWW= https://hashcat.net/hashcat/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/docs/license.txt
-NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe
-NOT_FOR_ARCHS_REASON= fails to compile: compiling for big-endian architecture not supported
+NOT_FOR_ARCHS= powerpc powerpc64 powerpcspe i386
+NOT_FOR_ARCHS_REASON= highly optimized for specific CPUs
-BUILD_DEPENDS= minizip:archivers/minizip
+BUILD_DEPENDS= minizip:archivers/minizip \
+ rustc:lang/${RUST_DEFAULT}
+LIB_DEPENDS= libiconv.so:converters/libiconv
-USES= compiler:c11 gmake iconv localbase python shebangfix
+USES= cargo compiler:c++11-lang gmake iconv localbase \
+ python:3.12+,build shebangfix
USE_GITHUB= yes
GH_ACCOUNT= KhronosGroup:opencl Cyan4973:xxhash
@@ -27,14 +30,18 @@ PYTHON_NO_DEPENDS= yes
SHEBANG_FILES= extra/tab_completion/install tools/*.py
-MAKE_ARGS+= SHARED=1 \
- CC="${CC}" \
- LFLAGS_NATIVE="${LDFLAGS} -lpthread -lm" \
- CFLAGS_NATIVE="${CFLAGS} -Iinclude -IOpenCL -Ideps/LZMA-SDK/C \
- -Ideps/git/OpenCL-Headers"
-ALL_TARGET= default
+CARGO_CARGOLOCK= ${WRKSRC}/Rust/generic_hash/Cargo.lock
+CARGO_CARGOTOML= ${WRKSRC}/Rust/generic_hash/Cargo.toml
+CARGO_INSTALL= no
+
+MAKE_ARGS= SHARED=1
+
+ALL_TARGET= default
+MAKE_ARGS+= CFLAGS_PYTHON=-I${LOCALBASE}/include/${PYTHON_VERSION}
CFLAGS_aarch64+= -march=armv8-a+crc+crypto
+BINARY_ALIAS= python3-config ${PYTHON_VERSION}-config
+
PLIST_SUB= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= BRAIN DOCS
@@ -43,9 +50,4 @@ BRAIN_DESC= Build Hashcat Brain
BRAIN_MAKE_ARGS_OFF= ENABLE_BRAIN=0
BRAIN_CFLAGS= -DWITH_BRAIN -Ideps/git/xxHash
-pre-install:
- ${STRIP_CMD} ${WRKSRC}/libhashcat.so.${PORTVERSION}
- ${STRIP_CMD} ${WRKSRC}/modules/*.so
- ${STRIP_CMD} ${WRKSRC}/hashcat
-
.include <bsd.port.mk>