From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-899564-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id A029E138330
	for <garchives@archives.gentoo.org>; Fri,  2 Sep 2016 04:05:18 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 947FE21C012;
	Fri,  2 Sep 2016 04:05:15 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2398E21C012
	for <gentoo-commits@lists.gentoo.org>; Fri,  2 Sep 2016 04:05:15 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 9A1AF33E3A9
	for <gentoo-commits@lists.gentoo.org>; Fri,  2 Sep 2016 04:05:13 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 4BCE92473
	for <gentoo-commits@lists.gentoo.org>; Fri,  2 Sep 2016 04:05:11 +0000 (UTC)
From: "Richard Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" <zerochaos@gentoo.org>
Message-ID: <1472788979.b0c353930f14d040d685bb9c7df551fbd3506f39.zerochaos@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/hashcat/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-crypt/hashcat/Manifest app-crypt/hashcat/hashcat-3.10-r1.ebuild app-crypt/hashcat/metadata.xml
X-VCS-Directories: app-crypt/hashcat/
X-VCS-Committer: zerochaos
X-VCS-Committer-Name: Richard Farina
X-VCS-Revision: b0c353930f14d040d685bb9c7df551fbd3506f39
X-VCS-Branch: master
Date: Fri,  2 Sep 2016 04:05:11 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: ab75f787-1c6b-4d34-9fe2-64b22ebab4fe
X-Archives-Hash: 326efcf410cc276b07988428bd2b75cc

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>zerochaos@gentoo.org</email>
+		<name>Rick Farina</name>
+	</maintainer>
+	<longdescription lang="en">
+	</longdescription>
+</pkgmetadata>