diff options
Diffstat (limited to '')
-rw-r--r-- | security/hashcat/Makefile | 35 | ||||
-rw-r--r-- | security/hashcat/Makefile.crates | 44 |
2 files changed, 63 insertions, 16 deletions
diff --git a/security/hashcat/Makefile b/security/hashcat/Makefile index 8cffda08e8b3..f2c76ff7fa2b 100644 --- a/security/hashcat/Makefile +++ b/security/hashcat/Makefile @@ -1,6 +1,7 @@ PORTNAME= hashcat -PORTVERSION= 6.2.6 +PORTVERSION= 7.1.2 DISTVERSIONPREFIX= v +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= security @@ -11,12 +12,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 +31,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 +51,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> diff --git a/security/hashcat/Makefile.crates b/security/hashcat/Makefile.crates new file mode 100644 index 000000000000..3d950138cddc --- /dev/null +++ b/security/hashcat/Makefile.crates @@ -0,0 +1,44 @@ +CARGO_CRATES= aho-corasick-1.1.3 \ + bindgen-0.72.0 \ + bitflags-2.9.3 \ + block-buffer-0.10.4 \ + cexpr-0.6.0 \ + cfg-if-1.0.3 \ + clang-sys-1.8.1 \ + cpufeatures-0.2.17 \ + crypto-common-0.1.6 \ + digest-0.10.7 \ + either-1.15.0 \ + generic-array-0.14.7 \ + glob-0.3.3 \ + hex-0.4.3 \ + itertools-0.13.0 \ + libc-0.2.175 \ + libloading-0.8.8 \ + log-0.4.27 \ + memchr-2.7.5 \ + minimal-lexical-0.2.1 \ + nom-7.1.3 \ + prettyplease-0.2.37 \ + proc-macro2-1.0.101 \ + quote-1.0.40 \ + regex-1.11.2 \ + regex-automata-0.4.10 \ + regex-syntax-0.8.6 \ + rustc-hash-2.1.1 \ + sha2-0.10.9 \ + shlex-1.3.0 \ + syn-2.0.106 \ + typenum-1.18.0 \ + unicode-ident-1.0.18 \ + version_check-0.9.5 \ + windows-link-0.1.3 \ + windows-targets-0.53.3 \ + windows_aarch64_gnullvm-0.53.0 \ + windows_aarch64_msvc-0.53.0 \ + windows_i686_gnu-0.53.0 \ + windows_i686_gnullvm-0.53.0 \ + windows_i686_msvc-0.53.0 \ + windows_x86_64_gnu-0.53.0 \ + windows_x86_64_gnullvm-0.53.0 \ + windows_x86_64_msvc-0.53.0 |