Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/hashcat/
Date: Fri, 02 Sep 2016 04:05:18
Message-Id: 1472788979.b0c353930f14d040d685bb9c7df551fbd3506f39.zerochaos@gentoo
1 commit: b0c353930f14d040d685bb9c7df551fbd3506f39
2 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 2 04:02:59 2016 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 2 04:02:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0c35393
7
8 app-crypt/hashcat: import hashcat from pentoo overlay
9
10 Package-Manager: portage-2.3.0
11
12 app-crypt/hashcat/Manifest | 1 +
13 app-crypt/hashcat/hashcat-3.10-r1.ebuild | 48 ++++++++++++++++++++++++++++++++
14 app-crypt/hashcat/metadata.xml | 10 +++++++
15 3 files changed, 59 insertions(+)
16
17 diff --git a/app-crypt/hashcat/Manifest b/app-crypt/hashcat/Manifest
18 new file mode 100644
19 index 00000000..340f885
20 --- /dev/null
21 +++ b/app-crypt/hashcat/Manifest
22 @@ -0,0 +1 @@
23 +DIST hashcat-3.10.tar.gz 4077692 SHA256 3b555e5f7b35ab6a4558bc460f28d80b32f5a211bf9e08d6a1ba1bad5203e3e9 SHA512 2adf16513118b91085fe587c53b15f142abb7673f659b2721dcba8aacdac6f024b65e7b50b916f86c161c21e98eb4758f187d25ad1ca4c66cdb67a259b07ae04 WHIRLPOOL 64ea5b3491094b2578264675025d6438e9981d69b77376bffb2b02cdf4c1e2899a2f6585295d288197e84710a3802c105d17e392795aaa5a00a09c2eeaa4a50d
24
25 diff --git a/app-crypt/hashcat/hashcat-3.10-r1.ebuild b/app-crypt/hashcat/hashcat-3.10-r1.ebuild
26 new file mode 100644
27 index 00000000..805aabf
28 --- /dev/null
29 +++ b/app-crypt/hashcat/hashcat-3.10-r1.ebuild
30 @@ -0,0 +1,48 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +inherit eutils pax-utils
38 +
39 +DESCRIPTION="An advanced CPU-based password recovery utility"
40 +HOMEPAGE="https://github.com/hashcat/hashcat"
41 +SRC_URI="https://github.com/hashcat/hashcat/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~x86 ~amd64"
45 +
46 +IUSE="video_cards_nvidia video_cards_fglrx"
47 +DEPEND="virtual/opencl"
48 +RDEPEND="${DEPEND}"
49 +
50 +src_prepare() {
51 + #do not strip
52 + sed -i "/CFLAGS_NATIVE += -s/d" src/Makefile || die
53 + #do not add random CFLAGS
54 + sed -i "s/-O2//" src/Makefile || die
55 + export PREFIX=/usr
56 +}
57 +
58 +src_compile() {
59 + default
60 + pax-mark -mr hashcat
61 +}
62 +
63 +src_test() {
64 + if use video_cards_nvidia; then
65 + addwrite /dev/nvidia0
66 + addwrite /dev/nvidiactl
67 + addwrite /dev/nvidia-uvm
68 + if [ ! -w /dev/nvidia0 ]; then
69 + einfo "To run these tests, portage likely must be in the video group."
70 + einfo "Please run \"gpasswd -a portage video\" if the tests will fail"
71 + fi
72 + elif use vidia_cards_fglrx; then
73 + addwrite /dev/ati
74 + fi
75 + #this always exits with 255 despite success
76 + #./hashcat -b -m 2500 || die "Test failed"
77 + ./hashcat -a 3 -m 1500 nQCk49SiErOgk
78 +}
79
80 diff --git a/app-crypt/hashcat/metadata.xml b/app-crypt/hashcat/metadata.xml
81 new file mode 100644
82 index 00000000..f513208
83 --- /dev/null
84 +++ b/app-crypt/hashcat/metadata.xml
85 @@ -0,0 +1,10 @@
86 +<?xml version="1.0" encoding="UTF-8"?>
87 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
88 +<pkgmetadata>
89 + <maintainer type="person">
90 + <email>zerochaos@g.o</email>
91 + <name>Rick Farina</name>
92 + </maintainer>
93 + <longdescription lang="en">
94 + </longdescription>
95 +</pkgmetadata>