pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
hashcat: add broken package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Sat Jul 2 11:15:22 2016 +0200
Changeset: 72caf4bf3b4e489e7ba66342ebcdc1977ff5ad0a
Modified Files:
Makefile
Added Files:
hashcat/DESCR
hashcat/Makefile
hashcat/PLIST
hashcat/TODO
hashcat/distinfo
hashcat/patches/patch-src_Makefile
Log Message:
hashcat: add broken package
The hope is that someone adds OpenCL for NetBSD to fix this.
TODO:
Does not build on NetBSD due to missing OpenCL support.
DESCR:
hashcat is the world's fastest and most advanced password recovery
utility, supporting five unique modes of attack for over 160
highly-optimized hashing algorithms. hashcat currently supports
CPU's, GPU's other hardware-accelerators on Linux, Windows and OSX,
and has facilities to help enable distributed password cracking.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=72caf4bf3b4e489e7ba66342ebcdc1977ff5ad0a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 3 +++
hashcat/DESCR | 5 ++++
hashcat/Makefile | 16 ++++++++++++
hashcat/PLIST | 1 +
hashcat/TODO | 1 +
hashcat/distinfo | 7 +++++
hashcat/patches/patch-src_Makefile | 52 ++++++++++++++++++++++++++++++++++++++
7 files changed, 85 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index f063f45..b270d92 100644
--- a/Makefile
+++ b/Makefile
@@ -1060,6 +1060,7 @@ SUBDIR+= haproxy-devel
SUBDIR+= haproxy15
SUBDIR+= hasciicam
SUBDIR+= haserl
+SUBDIR+= hashcat
SUBDIR+= haskell-mode
SUBDIR+= hasktags
SUBDIR+= hawk
@@ -1724,6 +1725,7 @@ SUBDIR+= ltp
SUBDIR+= ltrace
SUBDIR+= lua-MessagePack
SUBDIR+= lua-lbn
+SUBDIR+= lua-mpack
SUBDIR+= lua-pgsql
SUBDIR+= lucene
SUBDIR+= lugaru
@@ -2020,6 +2022,7 @@ SUBDIR+= nss-pam-ldapd
SUBDIR+= ntimed-git
SUBDIR+= nuget-git
SUBDIR+= nullpop
+SUBDIR+= num-utils
SUBDIR+= numactl
SUBDIR+= nuppelvideo
SUBDIR+= nuttcp
diff --git a/hashcat/DESCR b/hashcat/DESCR
new file mode 100644
index 0000000..78a00b0
--- /dev/null
+++ b/hashcat/DESCR
@@ -0,0 +1,5 @@
+hashcat is the world's fastest and most advanced password recovery
+utility, supporting five unique modes of attack for over 160
+highly-optimized hashing algorithms. hashcat currently supports
+CPU's, GPU's other hardware-accelerators on Linux, Windows and OSX,
+and has facilities to help enable distributed password cracking.
diff --git a/hashcat/Makefile b/hashcat/Makefile
new file mode 100644
index 0000000..62c6cb8
--- /dev/null
+++ b/hashcat/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+DISTNAME= hashcat-3.00
+CATEGORIES= security
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hashcat/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/hashcat/hashcat/
+COMMENT= World's fastest and most advanced password recovery utility
+LICENSE= mit
+
+USE_TOOLS+= gmake
+BUILD_TARGET= hashcat
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/hashcat/PLIST b/hashcat/PLIST
new file mode 100644
index 0000000..48d96a5
--- /dev/null
+++ b/hashcat/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD$
diff --git a/hashcat/TODO b/hashcat/TODO
new file mode 100644
index 0000000..6cd91ae
--- /dev/null
+++ b/hashcat/TODO
@@ -0,0 +1 @@
+Does not build on NetBSD due to missing OpenCL support.
diff --git a/hashcat/distinfo b/hashcat/distinfo
new file mode 100644
index 0000000..d6bb13b
--- /dev/null
+++ b/hashcat/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (hashcat-3.00.tar.gz) = 3f882ab112b99da22fca59cd3fa4420376f3da86
+RMD160 (hashcat-3.00.tar.gz) = 98f09aa0e68fdccf6527a11221fe649676fdb8eb
+SHA512 (hashcat-3.00.tar.gz) = cdaf00830a1f4b52b008c5c6499cd6246eb328a1711be1446ea7b8b3d6ad9afeb9f3626cf9cef58a04b4a414d10e09e5a8429bc47684a9d6dbf511effbc2eedb
+Size (hashcat-3.00.tar.gz) = 4068649 bytes
+SHA1 (patch-src_Makefile) = aa29b2d92f57d61559a32ea51aee0a5cf06db2f1
diff --git a/hashcat/patches/patch-src_Makefile b/hashcat/patches/patch-src_Makefile
new file mode 100644
index 0000000..3d34412
--- /dev/null
+++ b/hashcat/patches/patch-src_Makefile
@@ -0,0 +1,52 @@
+$NetBSD$
+
+Add minimal NetBSD support.
+
+--- src/Makefile.orig 2016-06-28 09:47:32.000000000 +0000
++++ src/Makefile
+@@ -17,7 +17,7 @@ UNAME := $(shell unam
+ # we need to strip the windows version number to be able to build hashcat on cygwin hosts
+ UNAME := $(patsubst CYGWIN_NT-%,CYGWIN_NT-,$(UNAME))
+
+-ifeq (,$(filter $(UNAME),Linux Darwin CYGWIN_NT-))
++ifeq (,$(filter $(UNAME),Linux Darwin NetBSD CYGWIN_NT-))
+ $(error "! Your Operating System ($(UNAME)) is not supported by $(PROG_NAME) Makefile")
+ endif
+
+@@ -87,7 +87,7 @@ VERSION_TAG := $(shell test
+ ## Compiler flags
+ ##
+
+-CFLAGS := -pipe -W -Wall -std=c99 -Iinclude/ -IOpenCL/ -I$(OPENCL_HEADERS_KHRONOS)/
++CFLAGS := -pipe -W -Wall -std=c99 -Iinclude/ -IOpenCL/ -I$(OPENCL_HEADERS_KHRONOS)/ -I../include
+
+ ifndef DEBUG
+ CFLAGS += -O2
+@@ -122,6 +122,16 @@ LFLAGS_NATIVE := -lpthread -l
+ CFLAGS_NATIVE += -DHAVE_HWMON
+ endif # linux
+
++ifeq ($(UNAME),NetBSD)
++CFLAGS_NATIVE := -D_POSIX
++ifndef DEBUG
++CFLAGS_NATIVE += -s
++endif
++CFLAGS_NATIVE += $(CFLAGS)
++LFLAGS_NATIVE := -lpthread
++CFLAGS_NATIVE += -DHAVE_HWMON
++endif # linux
++
+ ##
+ ## Cross compilation target
+ ##
+@@ -150,9 +160,9 @@ LFLAGS_CROSS_WIN := -lpsapi
+ ## Objects
+ ##
+
++ifeq ($(UNAME),Linux)
+ NATIVE_OBJS := obj/ext_OpenCL.NATIVE.o obj/shared.NATIVE.o obj/rp_kernel_on_cpu.NATIVE.o
+
+-ifeq ($(UNAME),Linux)
+ NATIVE_OBJS += obj/ext_ADL.NATIVE.o
+ NATIVE_OBJS += obj/ext_nvapi.NATIVE.o
+ NATIVE_OBJS += obj/ext_nvml.NATIVE.o
Home |
Main Index |
Thread Index |
Old Index