commit:     b0c353930f14d040d685bb9c7df551fbd3506f39
Author:     Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  2 04:02:59 2016 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Fri Sep  2 04:02:59 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0c35393

app-crypt/hashcat: import hashcat from pentoo overlay

Package-Manager: portage-2.3.0

 app-crypt/hashcat/Manifest               |  1 +
 app-crypt/hashcat/hashcat-3.10-r1.ebuild | 48 ++++++++++++++++++++++++++++++++
 app-crypt/hashcat/metadata.xml           | 10 +++++++
 3 files changed, 59 insertions(+)

diff --git a/app-crypt/hashcat/Manifest b/app-crypt/hashcat/Manifest
new file mode 100644
index 00000000..340f885
--- /dev/null
+++ b/app-crypt/hashcat/Manifest
@@ -0,0 +1 @@
+DIST hashcat-3.10.tar.gz 4077692 SHA256 
3b555e5f7b35ab6a4558bc460f28d80b32f5a211bf9e08d6a1ba1bad5203e3e9 SHA512 
2adf16513118b91085fe587c53b15f142abb7673f659b2721dcba8aacdac6f024b65e7b50b916f86c161c21e98eb4758f187d25ad1ca4c66cdb67a259b07ae04
 WHIRLPOOL 
64ea5b3491094b2578264675025d6438e9981d69b77376bffb2b02cdf4c1e2899a2f6585295d288197e84710a3802c105d17e392795aaa5a00a09c2eeaa4a50d

diff --git a/app-crypt/hashcat/hashcat-3.10-r1.ebuild 
b/app-crypt/hashcat/hashcat-3.10-r1.ebuild
new file mode 100644
index 00000000..805aabf
--- /dev/null
+++ b/app-crypt/hashcat/hashcat-3.10-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils pax-utils
+
+DESCRIPTION="An advanced CPU-based password recovery utility"
+HOMEPAGE="https://github.com/hashcat/hashcat";
+SRC_URI="https://github.com/hashcat/hashcat/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+IUSE="video_cards_nvidia video_cards_fglrx"
+DEPEND="virtual/opencl"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       #do not strip
+       sed -i "/CFLAGS_NATIVE            += -s/d" src/Makefile || die
+       #do not add random CFLAGS
+       sed -i "s/-O2//" src/Makefile || die
+       export PREFIX=/usr
+}
+
+src_compile() {
+       default
+       pax-mark -mr hashcat
+}
+
+src_test() {
+       if use video_cards_nvidia; then
+               addwrite /dev/nvidia0
+               addwrite /dev/nvidiactl
+               addwrite /dev/nvidia-uvm
+               if [ ! -w /dev/nvidia0 ]; then
+                       einfo "To run these tests, portage likely must be in 
the video group."
+                       einfo "Please run \"gpasswd -a portage video\" if the 
tests will fail"
+               fi
+       elif use vidia_cards_fglrx; then
+               addwrite /dev/ati
+       fi
+       #this always exits with 255 despite success
+       #./hashcat -b -m 2500 || die "Test failed"
+       ./hashcat -a 3 -m 1500 nQCk49SiErOgk
+}

diff --git a/app-crypt/hashcat/metadata.xml b/app-crypt/hashcat/metadata.xml
new file mode 100644
index 00000000..f513208
--- /dev/null
+++ b/app-crypt/hashcat/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Rick Farina</name>
+       </maintainer>
+       <longdescription lang="en">
+       </longdescription>
+</pkgmetadata>

Reply via email to