Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/hashcat-bin: hashcat-bin-0.47.ebuild ChangeLog hashcat-bin-0.44.ebuild hashcat-bin-0.40.ebuild hashcat-bin-0.41.ebuild hashcat-bin-0.39.ebuild hashcat-bin-0.42.ebuild
Date: Mon, 05 May 2014 15:42:58
Message-Id: 20140505154255.1EDE62004C@flycatcher.gentoo.org
1 alonbl 14/05/05 15:42:54
2
3 Modified: ChangeLog
4 Added: hashcat-bin-0.47.ebuild
5 Removed: hashcat-bin-0.44.ebuild hashcat-bin-0.40.ebuild
6 hashcat-bin-0.41.ebuild hashcat-bin-0.39.ebuild
7 hashcat-bin-0.42.ebuild
8 Log:
9 Version bump, bug#509616. Cleanup old
10
11 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
12
13 Revision Changes Path
14 1.11 app-crypt/hashcat-bin/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/ChangeLog?rev=1.11&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/ChangeLog?rev=1.11&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/ChangeLog?r1=1.10&r2=1.11
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v
23 retrieving revision 1.10
24 retrieving revision 1.11
25 diff -u -r1.10 -r1.11
26 --- ChangeLog 20 Sep 2013 23:17:12 -0000 1.10
27 +++ ChangeLog 5 May 2014 15:42:54 -0000 1.11
28 @@ -1,6 +1,13 @@
29 # ChangeLog for app-crypt/hashcat-bin
30 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v 1.10 2013/09/20 23:17:12 zerochaos Exp $
32 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
33 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/ChangeLog,v 1.11 2014/05/05 15:42:54 alonbl Exp $
34 +
35 +*hashcat-bin-0.47 (05 May 2014)
36 +
37 + 05 May 2014; Alon Bar-Lev <alonbl@g.o> +hashcat-bin-0.47.ebuild,
38 + -hashcat-bin-0.39.ebuild, -hashcat-bin-0.40.ebuild, -hashcat-bin-0.41.ebuild,
39 + -hashcat-bin-0.42.ebuild, -hashcat-bin-0.44.ebuild:
40 + Version bump, bug#509616. Cleanup old
41
42 *hashcat-bin-0.46 (20 Sep 2013)
43
44
45
46
47 1.1 app-crypt/hashcat-bin/hashcat-bin-0.47.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.47.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.47.ebuild?rev=1.1&content-type=text/plain
51
52 Index: hashcat-bin-0.47.ebuild
53 ===================================================================
54 # Copyright 1999-2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/app-crypt/hashcat-bin/hashcat-bin-0.47.ebuild,v 1.1 2014/05/05 15:42:54 alonbl Exp $
57
58 EAPI=5
59
60 MY_P="hashcat-${PV}"
61
62 inherit eutils pax-utils
63 DESCRIPTION="An multi-threaded multihash cracker"
64 HOMEPAGE="http://hashcat.net/hashcat/"
65
66 SRC_URI="http://hashcat.net/files/${MY_P}.7z"
67
68 #license applies to this version per http://hashcat.net/forum/thread-1348.html
69 LICENSE="hashcat"
70 SLOT="0"
71 KEYWORDS="-* ~amd64 ~amd64-linux ~x64-macos ~x86 ~x86-linux"
72
73 IUSE=""
74
75 RDEPEND=""
76 DEPEND="${RDEPEND}
77 app-arch/p7zip"
78
79 S="${WORKDIR}/${MY_P}"
80
81 RESTRICT="strip"
82 QA_PREBUILT="opt/${PN}/hashcat-cli*.bin
83 opt/${PN}/hashcat-cli64.app"
84
85 has_xop() {
86 echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __XOP__ 1"
87 }
88
89 has_avx() {
90 echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __AVX__ 1"
91 }
92
93 src_install() {
94 dodoc docs/*
95 rm -r *.exe docs || die
96 use x86 || { rm hashcat-cli32.bin || die; }
97 use amd64 || { rm hashcat-cli64.bin || die; }
98 use x64-macos || { rm hashcat-cli64.app || die; }
99 has_avx || { rm hashcat-cliAVX.bin || die; }
100 has_xop || { rm hashcat-cliXOP.bin || die; }
101
102 #I assume this is needed but I didn't check
103 pax-mark m hashcat-cli*.bin
104
105 insinto /opt/${PN}
106 doins -r "${S}"/*
107
108 dodir /opt/bin
109 if [ -f "${ED}"/opt/${PN}/hashcat-cli32.bin ]
110 then
111 fperms +x /opt/${PN}/hashcat-cli32.bin
112 cat <<-EOF > "${ED}"/opt/bin/hashcat-cli32.bin
113 #! /bin/sh
114 cd "${EPREFIX}"/opt/${PN}
115 echo "Warning: hashcat-cli32.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
116 exec ./hashcat-cli32.bin \$@
117 EOF
118 fperms +x /opt/bin/hashcat-cli32.bin
119 fi
120 if [ -f "${ED}"/opt/${PN}/hashcat-cli64.bin ]
121 then
122 fperms +x /opt/${PN}/hashcat-cli64.bin
123 cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.bin
124 #! /bin/sh
125 cd "${EPREFIX}"/opt/${PN}
126 echo "Warning: hashcat-cli64.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
127 exec ./hashcat-cli64.bin \$@
128 EOF
129 fperms +x /opt/bin/hashcat-cli64.bin
130 fi
131 if [ -f "${ED}"/opt/${PN}/hashcat-cliAVX.bin ]
132 then
133 fperms +x /opt/${PN}/hashcat-cliAVX.bin
134 cat <<-EOF > "${ED}"/opt/bin/hashcat-cliAVX.bin
135 #! /bin/sh
136 cd "${EPREFIX}"/opt/${PN}
137 echo "Warning: hashcat-cliAVX.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
138 exec ./hashcat-cliAVX.bin \$@
139 EOF
140 fperms +x /opt/bin/hashcat-cliAVX.bin
141 fi
142 if [ -f "${ED}"/opt/${PN}/hashcat-cliXOP.bin ]
143 then
144 fperms +x /opt/${PN}/hashcat-cliXOP.bin
145 cat <<-EOF > "${ED}"/opt/bin/hashcat-cliXOP.bin
146 #! /bin/sh
147 cd "${EPREFIX}"/opt/${PN}
148 echo "Warning: hashcat-cliXOP.bin is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
149 exec ./hashcat-cliXOP.bin \$@
150 EOF
151 fperms +x /opt/bin/hashcat-cliXOP.bin
152 fi
153 if [ -f "${ED}"/opt/${PN}/hashcat-cli64.app ]
154 then
155 fperms +x /opt/${PN}/hashcat-cli64.app
156 cat <<-EOF > "${ED}"/opt/bin/hashcat-cli64.app
157 #! /bin/sh
158 cd "${EPREFIX}"/opt/${PN}
159 echo "Warning: hashcat-cli64.app is running from ${EPREFIX}/opt/${PN} so be careful of relative paths."
160 exec ./hashcat-cli64.app \$@
161 EOF
162 fperms +x /opt/bin/hashcat-cli64.app
163 fi
164 }