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, 03 Mar 2017 16:44:38
Message-Id: 1488559465.0a8d15747a6a53bbb300303cc0d596caf5e3bf22.zerochaos@gentoo
1 commit: 0a8d15747a6a53bbb300303cc0d596caf5e3bf22
2 Author: Zero_Chaos <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 3 16:44:02 2017 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 3 16:44:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a8d1574
7
8 app-crypt/hashcat: bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-crypt/hashcat/Manifest | 1 +
13 app-crypt/hashcat/hashcat-3.40.ebuild | 49 +++++++++++++++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/app-crypt/hashcat/Manifest b/app-crypt/hashcat/Manifest
17 index 3a6c9ef6833..da97a614a44 100644
18 --- a/app-crypt/hashcat/Manifest
19 +++ b/app-crypt/hashcat/Manifest
20 @@ -1 +1,2 @@
21 DIST hashcat-3.30.tar.gz 3970267 SHA256 d255147cbbf6b3cacea81b818ee228170969b61487dd7d49b339fc94dfe53e8e SHA512 8f160a5ec4bd9add83cfc468e9335dcfc9297585180c67263fce18235a8b748f75205fa5bd5ddd1c34efc65569d94408ba98c6181a2b1ab760f33371f92c3c54 WHIRLPOOL c9396118d4223175f7bb19f095a590b66ba8cdbb9970a1e84b406b7423a6a0b3009491dd6c8b7394d38eee1f796fe290ac88b839e30d6166077ae54fbedc528b
22 +DIST hashcat-3.40.tar.gz 4099155 SHA256 92627197daa850dc7d723793150801c0791fe31f6c767de68417cee097ad6f4c SHA512 fd8d1927703cfe56c7708c460cc142de4ce64d96b651ed68817b70e6a53cac376a191d16752cbb7cabfcb0230299301173a5eda6c27e6188e79b5d83d758378e WHIRLPOOL bcd25930b4a9616f7a0ebd19575432d98a8abd67083ca434758d40d887ca642418a0305d54e4a0ade662f34059cdc1705097423733d02d97ba1eda0213280e4d
23
24 diff --git a/app-crypt/hashcat/hashcat-3.40.ebuild b/app-crypt/hashcat/hashcat-3.40.ebuild
25 new file mode 100644
26 index 00000000000..3d4a6f2cc02
27 --- /dev/null
28 +++ b/app-crypt/hashcat/hashcat-3.40.ebuild
29 @@ -0,0 +1,49 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit eutils pax-utils multilib
36 +
37 +DESCRIPTION="World's fastest and most advanced password recovery utility"
38 +HOMEPAGE="https://github.com/hashcat/hashcat"
39 +SRC_URI="https://github.com/hashcat/hashcat/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~x86 ~amd64"
43 +
44 +IUSE="custom-cflags video_cards_nvidia video_cards_fglrx"
45 +DEPEND="virtual/opencl"
46 +RDEPEND="${DEPEND}"
47 +
48 +src_prepare() {
49 + #do not strip
50 + sed -i "/LFLAGS += -s/d" src/Makefile
51 + #do not add random CFLAGS
52 + sed -i "s/-O2//" src/Makefile || die
53 + export PREFIX=/usr
54 + export LIBRARY_FOLDER="/usr/$(get_libdir)"
55 + eapply_user
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 +}