1 |
zerochaos 13/04/29 16:06:38 |
2 |
|
3 |
Modified: oclhashcat-plus-bin-0.14.ebuild ChangeLog |
4 |
Log: |
5 |
ebuild cleanup, fix tests, fix running as user |
6 |
|
7 |
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key DD11F94A) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: oclhashcat-plus-bin-0.14.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- oclhashcat-plus-bin-0.14.ebuild 28 Apr 2013 02:17:02 -0000 1.2 |
23 |
+++ oclhashcat-plus-bin-0.14.ebuild 29 Apr 2013 16:06:38 -0000 1.3 |
24 |
@@ -1,6 +1,6 @@ |
25 |
# Copyright 1999-2013 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild,v 1.2 2013/04/28 02:17:02 zerochaos Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/oclhashcat-plus-bin-0.14.ebuild,v 1.3 2013/04/29 16:06:38 zerochaos Exp $ |
29 |
|
30 |
EAPI=5 |
31 |
|
32 |
@@ -32,41 +32,53 @@ |
33 |
RESTRICT="strip" |
34 |
QA_PREBUILT="*Hashcat-plus*.bin" |
35 |
|
36 |
+src_prepare() { |
37 |
+ use x86 && rm *Hashcat-plus64* |
38 |
+ use amd64 && rm *Hashcat-plus32* |
39 |
+ use virtualcl || rm vclHashcat-plus* |
40 |
+ |
41 |
+ if ! use video_cards_fglrx; then |
42 |
+ rm -r kernels/4098 || die |
43 |
+ rm oclHashcat-plus*.bin || die |
44 |
+ fi |
45 |
+ if ! use video_cards_nvidia; then |
46 |
+ rm -r kernels/4318 || die |
47 |
+ rm cudaHashcat-plus*.bin || die |
48 |
+ fi |
49 |
+ |
50 |
+ #paxmark goes here so test and install works |
51 |
+ pax-mark r *Hashcat-plus*.bin |
52 |
+} |
53 |
+ |
54 |
src_test() { |
55 |
printf "%02x" ${PV#0.} > "${S}"/eula.accepted |
56 |
if use video_cards_nvidia; then |
57 |
+ addwrite /dev/nvidia0 |
58 |
+ addwrite /dev/nvidiactl |
59 |
if [ ! -w /dev/nvidia0 ]; then |
60 |
einfo "To run these tests, portage likely must be in the video group." |
61 |
einfo "Please run \"gpasswd -a portage video\" if the tests will fail" |
62 |
fi |
63 |
- ./cudaExample0.sh || die |
64 |
- ./cudaExample400.sh || die |
65 |
- ./cudaExample500.sh || die |
66 |
+ if use amd64; then |
67 |
+ ./cudaHashcat-plus64.bin -a 3 -m 1500 nQCk49SiErOgk || die |
68 |
+ elif use x86; then |
69 |
+ ./cudaHashcat-plus32.bin -a 3 -m 1500 nQCk49SiErOgk || die |
70 |
+ fi |
71 |
fi |
72 |
if use video_cards_fglrx; then |
73 |
- ./oclExample0.sh || die |
74 |
- ./oclExample400.sh || die |
75 |
- ./oclExample500.sh || die |
76 |
+ addwrite /dev/ati |
77 |
+ if use amd64; then |
78 |
+ ./oclHashcat-plus64.bin -a 3 -m 1500 nQCk49SiErOgk || die |
79 |
+ elif use x86; then |
80 |
+ ./oclHashcat-plus32.bin -a 3 -m 1500 nQCk49SiErOgk || die |
81 |
+ fi |
82 |
fi |
83 |
- rm "${S}"/eula.accepted |
84 |
+ rm eula.accepted hashcat.pot hashcat.dictstat |
85 |
} |
86 |
|
87 |
src_install() { |
88 |
dodoc docs/* |
89 |
rm -r "${S}"/*.exe "${S}"/*.cmd "${S}"/docs || die |
90 |
- use x86 && rm *Hashcat-plus64* |
91 |
- use amd64 && rm *Hashcat-plus32* |
92 |
- use virtualcl || { rm vclHashcat-plus* || die; } |
93 |
- |
94 |
- if ! use video_cards_fglrx; then |
95 |
- rm -r kernels/4098 || die |
96 |
- rm oclHashcat-plus*.bin || die |
97 |
- fi |
98 |
- if ! use video_cards_nvidia; then |
99 |
- rm -r kernels/4318 || die |
100 |
- rm cudaHashcat-plus*.bin || die |
101 |
- fi |
102 |
- pax-mark m *Hashcat-plus*.bin |
103 |
|
104 |
insinto /opt/${PN} |
105 |
doins -r "${S}"/* || die "Copy files failed" |
106 |
@@ -119,7 +131,8 @@ |
107 |
done |
108 |
|
109 |
fperms +x /opt/bin/oclhashcat-plus |
110 |
- fowners root:video /opt/${PN} |
111 |
+ fowners -R root:video /opt/${PN} |
112 |
+ fperms g+w /opt/${PN} |
113 |
einfo "oclhashcat-plus can be run as user if you are in the video group" |
114 |
} |
115 |
|
116 |
|
117 |
|
118 |
|
119 |
1.11 app-crypt/oclhashcat-plus-bin/ChangeLog |
120 |
|
121 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-plus-bin/ChangeLog?rev=1.11&view=markup |
122 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-plus-bin/ChangeLog?rev=1.11&content-type=text/plain |
123 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/oclhashcat-plus-bin/ChangeLog?r1=1.10&r2=1.11 |
124 |
|
125 |
Index: ChangeLog |
126 |
=================================================================== |
127 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/ChangeLog,v |
128 |
retrieving revision 1.10 |
129 |
retrieving revision 1.11 |
130 |
diff -u -r1.10 -r1.11 |
131 |
--- ChangeLog 28 Apr 2013 02:17:02 -0000 1.10 |
132 |
+++ ChangeLog 29 Apr 2013 16:06:38 -0000 1.11 |
133 |
@@ -1,6 +1,10 @@ |
134 |
# ChangeLog for app-crypt/oclhashcat-plus-bin |
135 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
136 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/ChangeLog,v 1.10 2013/04/28 02:17:02 zerochaos Exp $ |
137 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/oclhashcat-plus-bin/ChangeLog,v 1.11 2013/04/29 16:06:38 zerochaos Exp $ |
138 |
+ |
139 |
+ 29 Apr 2013; Rick Farina <zerochaos@g.o> |
140 |
+ oclhashcat-plus-bin-0.14.ebuild: |
141 |
+ ebuild cleanup, fix tests, fix running as user |
142 |
|
143 |
28 Apr 2013; Rick Farina <zerochaos@g.o> |
144 |
oclhashcat-plus-bin-0.14.ebuild: |