1 |
radhermit 12/04/08 05:19:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: johntheripper-1.7.9-r2.ebuild |
5 |
Log: |
6 |
Revision bump. Fix typo in jumbo patch and apply performance fix. |
7 |
|
8 |
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.141 app-crypt/johntheripper/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.141&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.141&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.140&r2=1.141 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v |
20 |
retrieving revision 1.140 |
21 |
retrieving revision 1.141 |
22 |
diff -u -r1.140 -r1.141 |
23 |
--- ChangeLog 7 Apr 2012 20:36:41 -0000 1.140 |
24 |
+++ ChangeLog 8 Apr 2012 05:19:03 -0000 1.141 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-crypt/johntheripper |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.140 2012/04/07 20:36:41 radhermit Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.141 2012/04/08 05:19:03 radhermit Exp $ |
30 |
+ |
31 |
+*johntheripper-1.7.9-r2 (08 Apr 2012) |
32 |
+ |
33 |
+ 08 Apr 2012; Tim Harder <radhermit@g.o> |
34 |
+ +johntheripper-1.7.9-r2.ebuild, |
35 |
+ +files/johntheripper-1.7.9-jumbo-5-NT-performance-02.patch: |
36 |
+ Revision bump. Fix typo in jumbo patch and apply performance fix. |
37 |
|
38 |
07 Apr 2012; Tim Harder <radhermit@g.o> johntheripper-1.7.9-r1.ebuild: |
39 |
Fix CFLAGS quoting build error. |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-crypt/johntheripper/johntheripper-1.7.9-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.9-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.9-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: johntheripper-1.7.9-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.9-r2.ebuild,v 1.1 2012/04/08 05:19:03 radhermit Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
|
56 |
inherit eutils flag-o-matic toolchain-funcs pax-utils |
57 |
|
58 |
MY_PN="john" |
59 |
MY_P="${MY_PN}-${PV}" |
60 |
|
61 |
JUMBO="jumbo-5" |
62 |
|
63 |
DESCRIPTION="fast password cracker" |
64 |
HOMEPAGE="http://www.openwall.com/john/" |
65 |
|
66 |
SRC_URI="http://www.openwall.com/john/g/${MY_P}.tar.bz2 |
67 |
!minimal? ( http://www.openwall.com/john/g/${MY_P}-${JUMBO}.diff.gz )" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
SLOT="0" |
71 |
# This package can't be marked stable for ppc or ppc64 before bug 327211 is closed. |
72 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" |
73 |
#Remove AltiVec USE flag. Appears to be an upstream issue. |
74 |
IUSE="custom-cflags -minimal mmx mpi openmp sse2" |
75 |
REQUIRED_USE="openmp? ( !minimal ) |
76 |
mpi? ( !minimal )" |
77 |
|
78 |
RDEPEND="!minimal? ( >=dev-libs/openssl-0.9.7:0 ) |
79 |
mpi? ( virtual/mpi )" |
80 |
DEPEND="${RDEPEND}" |
81 |
|
82 |
S="${WORKDIR}/${MY_P}" |
83 |
|
84 |
has_xop() { |
85 |
echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __XOP__ 1" |
86 |
} |
87 |
|
88 |
has_avx() { |
89 |
echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __AVX__ 1" |
90 |
} |
91 |
|
92 |
get_target() { |
93 |
if use alpha; then |
94 |
echo "linux-alpha" |
95 |
elif use amd64; then |
96 |
if has_xop; then |
97 |
echo "linux-x86-64-xop" |
98 |
elif has_avx; then |
99 |
echo "linux-x86-64-avx" |
100 |
else |
101 |
echo "linux-x86-64" |
102 |
fi |
103 |
elif use ppc; then |
104 |
#if use altivec; then |
105 |
# echo "linux-ppc32-altivec" |
106 |
#else |
107 |
echo "linux-ppc32" |
108 |
#fi |
109 |
elif use ppc64; then |
110 |
#if use altivec; then |
111 |
# echo "linux-ppc32-altivec" |
112 |
#else |
113 |
echo "linux-ppc64" |
114 |
#fi |
115 |
# linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types. |
116 |
# as per the Makefile comments |
117 |
elif use sparc; then |
118 |
echo "linux-sparc" |
119 |
elif use x86; then |
120 |
if has_xop; then |
121 |
echo "linux-x86-xop" |
122 |
elif has_avx; then |
123 |
echo "linux-x86-avx" |
124 |
elif use sse2; then |
125 |
echo "linux-x86-sse2" |
126 |
elif use mmx; then |
127 |
echo "linux-x86-mmx" |
128 |
else |
129 |
echo "linux-x86-any" |
130 |
fi |
131 |
elif use ppc-macos; then |
132 |
# force AltiVec, the non-altivec profile contains ancient compiler cruft |
133 |
# if use altivec; then |
134 |
echo "macosx-ppc32-altivec" |
135 |
# else |
136 |
# echo "macosx-ppc32" |
137 |
# fi |
138 |
# for Tiger this can be macosx-ppc64 |
139 |
elif use x86-macos; then |
140 |
if use sse2; then |
141 |
echo "macosx-x86-sse2" |
142 |
else |
143 |
echo "macosx-x86" |
144 |
fi |
145 |
elif use x86-solaris; then |
146 |
echo "solaris-x86-any" |
147 |
elif use x86-fbsd; then |
148 |
if use sse2; then |
149 |
echo "freebsd-x86-sse2" |
150 |
elif use mmx; then |
151 |
echo "freebsd-x86-mmx" |
152 |
else |
153 |
echo "freebsd-x86-any" |
154 |
fi |
155 |
elif use amd64-fbsd; then |
156 |
echo "freebsd-x86-64" |
157 |
else |
158 |
echo "generic" |
159 |
fi |
160 |
} |
161 |
|
162 |
pkg_setup() { |
163 |
if use openmp ; then |
164 |
tc-has-openmp || die "Please switch to an openmp compatible compiler" |
165 |
fi |
166 |
} |
167 |
|
168 |
src_prepare() { |
169 |
if ! use minimal; then |
170 |
epatch "${WORKDIR}/${MY_P}-${JUMBO}.diff" |
171 |
|
172 |
if use mpi ; then |
173 |
sed -e "s/^#CC = mpicc/CC = mpicc/" \ |
174 |
-e "s/^#MPIOBJ =/MPIOBJ =/" \ |
175 |
-i src/Makefile || die |
176 |
fi |
177 |
|
178 |
# fix typo in jumbo patch |
179 |
sed -i 's:All15:All5:' run/john.conf || die |
180 |
fi |
181 |
|
182 |
local PATCHLIST="1.7.6-cflags 1.7.3.1-mkdir-sandbox" |
183 |
|
184 |
cd src |
185 |
for p in ${PATCHLIST}; do |
186 |
epatch "${FILESDIR}/${PN}-${p}.patch" |
187 |
done |
188 |
|
189 |
if ! use minimal; then |
190 |
epatch "${FILESDIR}/${P}-jumbo-5-NT-performance-02.patch" |
191 |
|
192 |
sed -e "s/LDFLAGS *= */override LDFLAGS += /" -e "/LDFLAGS/s/-s//" \ |
193 |
-e "/LDFLAGS/s/-L[^ ]*//g" -e "/CFLAGS/s/-[IL][^ ]*//g" \ |
194 |
-i Makefile || die "sed Makefile failed" |
195 |
fi |
196 |
} |
197 |
|
198 |
src_compile() { |
199 |
local OMP |
200 |
|
201 |
use custom-cflags || strip-flags |
202 |
echo "#define JOHN_SYSTEMWIDE 1" >> config.gentoo |
203 |
echo "#define JOHN_SYSTEMWIDE_HOME \"${EPREFIX}/etc/john\"" >> config.gentoo |
204 |
echo "#define JOHN_SYSTEMWIDE_EXEC \"${EPREFIX}/usr/libexec/john\"" >> config.gentoo |
205 |
append-flags -fPIC -fPIE |
206 |
gcc-specs-pie && append-ldflags -nopie |
207 |
use openmp && OMP="-fopenmp" |
208 |
|
209 |
CPP="$(tc-getCXX)" CC="$(tc-getCC)" AS="$(tc-getCC)" LD="$(tc-getCC)" |
210 |
use mpi && CPP=mpicxx CC=mpicc AS=mpicc LD=mpicc |
211 |
|
212 |
emake -C src/ \ |
213 |
CPP="${CPP}" CC="${CC}" AS="${AS}" LD="${LD}" \ |
214 |
CFLAGS="-c -Wall -include \\\"${S}\\\"/config.gentoo ${CFLAGS} ${OMP}" \ |
215 |
LDFLAGS="${LDFLAGS}" \ |
216 |
OPT_NORMAL="" \ |
217 |
OMPFLAGS="${OMP}" \ |
218 |
$(get_target) |
219 |
} |
220 |
|
221 |
src_test() { |
222 |
cd run |
223 |
if [[ -f "${EPREFIX}/etc/john/john.conf" || -f "${EPREFIX}/etc/john/john.ini" ]] ; then |
224 |
# This requires that MPI is actually 100% online on your system, which might not |
225 |
# be the case, depending on which MPI implementation you are using. |
226 |
#if use mpi; then |
227 |
# mpirun -np 2 ./john --test || die "self test failed" |
228 |
#else |
229 |
|
230 |
./john --test || die 'self test failed' |
231 |
else |
232 |
ewarn "Tests require '${EPREFIX}/etc/john/john.conf' or '${EPREFIX}/etc/john/john.ini'" |
233 |
fi |
234 |
} |
235 |
|
236 |
src_install() { |
237 |
# executables |
238 |
dosbin run/john |
239 |
newsbin run/mailer john-mailer |
240 |
|
241 |
pax-mark -m "${ED}usr/sbin/john" || die |
242 |
|
243 |
dosym john /usr/sbin/unafs |
244 |
dosym john /usr/sbin/unique |
245 |
dosym john /usr/sbin/unshadow |
246 |
|
247 |
# jumbo-patch additions |
248 |
if ! use minimal; then |
249 |
dosym john /usr/sbin/undrop |
250 |
dosbin run/calc_stat |
251 |
dosbin run/genmkvpwd |
252 |
dosbin run/mkvcalcproba |
253 |
dosbin run/tgtsnarf |
254 |
insinto /etc/john |
255 |
doins run/genincstats.rb run/stats |
256 |
doins run/netscreen.py run/sap_prepare.pl |
257 |
fi |
258 |
|
259 |
# config files |
260 |
insinto /etc/john |
261 |
doins run/*.chr run/password.lst |
262 |
doins run/*.conf |
263 |
|
264 |
# documentation |
265 |
dodoc doc/* |
266 |
} |