From: | "Richard Farina (zerochaos)" <zerochaos@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-crypt/oclhashcat-lite-bin: oclhashcat-lite-bin-0.13.ebuild ChangeLog |
Date: | Mon, 31 Dec 2012 21:28:13 |
Message-Id: | 20121231212801.B37EE2171D@flycatcher.gentoo.org |
1 | zerochaos 12/12/31 21:28:01 |
2 | |
3 | Modified: ChangeLog |
4 | Added: oclhashcat-lite-bin-0.13.ebuild |
5 | Log: |
6 | version bump |
7 | |
8 | (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) |
9 | |
10 | Revision Changes Path |
11 | 1.4 app-crypt/oclhashcat-lite-bin/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog?rev=1.4&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog?rev=1.4&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog?r1=1.3&r2=1.4 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog,v |
20 | retrieving revision 1.3 |
21 | retrieving revision 1.4 |
22 | diff -u -r1.3 -r1.4 |
23 | --- ChangeLog 4 Jul 2012 17:41:29 -0000 1.3 |
24 | +++ ChangeLog 31 Dec 2012 21:28:01 -0000 1.4 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for app-crypt/oclhashcat-lite-bin |
27 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog,v 1.3 2012/07/04 17:41:29 zerochaos Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/ChangeLog,v 1.4 2012/12/31 21:28:01 zerochaos Exp $ |
30 | + |
31 | +*oclhashcat-lite-bin-0.13 (31 Dec 2012) |
32 | + |
33 | + 31 Dec 2012; Rick Farina <zerochaos@g.o> |
34 | + +oclhashcat-lite-bin-0.13.ebuild: |
35 | + version bump |
36 | |
37 | 04 Jul 2012; Rick Farina <zerochaos@g.o> |
38 | oclhashcat-lite-bin-0.10.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.13.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.13.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.13.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: oclhashcat-lite-bin-0.13.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2012 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-lite-bin/oclhashcat-lite-bin-0.13.ebuild,v 1.1 2012/12/31 21:28:01 zerochaos Exp $ |
52 | |
53 | EAPI=4 |
54 | |
55 | inherit eutils pax-utils |
56 | |
57 | DESCRIPTION="An opencl hash cracker" |
58 | HOMEPAGE="http://hashcat.net/oclhashcat-lite/" |
59 | MY_P="oclHashcat-lite-${PV}" |
60 | SRC_URI="http://hashcat.net/files/${MY_P}.7z" |
61 | |
62 | #license applies to this version per http://hashcat.net/forum/thread-1348.html |
63 | LICENSE="hashcat" |
64 | SLOT="0" |
65 | KEYWORDS="-* ~amd64 ~x86" |
66 | |
67 | IUSE_VIDEO_CARDS="video_cards_fglrx |
68 | video_cards_nvidia" |
69 | |
70 | IUSE="${IUSE_VIDEO_CARDS}" |
71 | |
72 | RDEPEND="sys-libs/zlib |
73 | video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-304.51 ) |
74 | video_cards_fglrx? ( =x11-drivers/ati-drivers-12.8 )" |
75 | DEPEND="${RDEPEND} |
76 | app-arch/p7zip" |
77 | |
78 | S="${WORKDIR}/${MY_P}" |
79 | |
80 | RESTRICT="strip" |
81 | QA_PREBUILT="*Hashcat-lite*.bin" |
82 | |
83 | src_install() { |
84 | dodoc docs/* |
85 | rm -rf *.exe docs || die |
86 | if use x86; then |
87 | rm oclHashcat-lite64.bin || die |
88 | rm cudaHashcat-lite64.bin || die |
89 | fi |
90 | if use amd64; then |
91 | rm oclHashcat-lite32.bin || die |
92 | rm cudaHashcat-lite32.bin || die |
93 | fi |
94 | if ! use video_cards_fglrx; then |
95 | rm -r kernels/4098 || die |
96 | rm oclHashcat-lite*.bin || die |
97 | fi |
98 | if ! use video_cards_nvidia; then |
99 | rm -r kernels/4318 || die |
100 | rm cudaHashcat-lite*.bin || die |
101 | fi |
102 | |
103 | #I assume this is needed but I didn't check |
104 | pax-mark m *Hashcat-lite*.bin |
105 | |
106 | insinto /opt/${PN} |
107 | doins -r "${S}"/* |
108 | |
109 | dodir /opt/bin |
110 | |
111 | cat <<-EOF > "${ED}"/opt/bin/oclhashcat-lite |
112 | #! /bin/sh |
113 | echo "oclHashcat-lite and all related files have been installed in /opt/${PN}" |
114 | echo "Please run one of the following binaries to use gpu accelerated hashcat:" |
115 | EOF |
116 | |
117 | for x in oclHashcat-lite64.bin oclHashcat-lite32.bin cudaHashcat-lite64.bin cudaHashcat-lite32.bin |
118 | do |
119 | if [ -f "${ED}"/opt/${PN}/${x} ] |
120 | then |
121 | case "${x}" in |
122 | oclHashcat-lite64.bin) |
123 | echo "echo '64 bit ATI accelerated \"oclHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite |
124 | ;; |
125 | oclHashcat-lite32.bin) |
126 | echo "echo '32 bit ATI accelerated \"oclHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite |
127 | ;; |
128 | cudaHashcat-lite64.bin) |
129 | echo "echo '64 bit NVIDIA accelerated \"cudaHashcat-lite64.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite |
130 | ;; |
131 | cudaHashcat-lite32.bin) |
132 | echo "echo '32 bit NVIDIA accelerated \"cudaHashcat-lite32.bin\"'" >> "${ED}"/opt/bin/oclhashcat-lite |
133 | ;; |
134 | esac |
135 | |
136 | fperms +x /opt/${PN}/${x} |
137 | |
138 | cat <<-EOF > "${ED}"/opt/bin/${x} |
139 | #! /bin/sh |
140 | cd /opt/${PN} |
141 | echo "Warning: ${x} is running from /opt/${PN} so be careful of relative paths." |
142 | exec ./${x} "\$@" |
143 | EOF |
144 | |
145 | fperms +x /opt/bin/${x} |
146 | |
147 | fi |
148 | done |
149 | |
150 | fperms +x /opt/bin/oclhashcat-lite |
151 | fowners root:video /opt/${PN} |
152 | einfo "oclhashcat-lite can be run as user if you are in the video group" |
153 | } |