Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/johntheripper: ChangeLog johntheripper-1.7.2-r5.ebuild
Date: Mon, 16 Jun 2008 19:16:41
Message-Id: E1K8KBv-0002zp-La@stork.gentoo.org
1 robbat2 08/06/16 19:16:35
2
3 Modified: ChangeLog
4 Added: johntheripper-1.7.2-r5.ebuild
5 Log:
6 Re-add the MPI support. Tested with OpenMPI+Torque running 8 instances between a ppc (G5) and an amd64 box. ~hppa and ~mips dropped per bug #227631.
7 (Portage version: 2.1.5.5)
8
9 Revision Changes Path
10 1.84 app-crypt/johntheripper/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.84&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.84&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.83&r2=1.84
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v
19 retrieving revision 1.83
20 retrieving revision 1.84
21 diff -p -w -b -B -u -u -r1.83 -r1.84
22 --- ChangeLog 13 Feb 2008 10:34:49 -0000 1.83
23 +++ ChangeLog 16 Jun 2008 19:16:35 -0000 1.84
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-crypt/johntheripper
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.83 2008/02/13 10:34:49 alonbl Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.84 2008/06/16 19:16:35 robbat2 Exp $
29 +
30 +*johntheripper-1.7.2-r5 (16 Jun 2008)
31 +
32 + 16 Jun 2008; Robin H. Johnson <robbat2@g.o>
33 + +johntheripper-1.7.2-r5.ebuild:
34 + Re-add the MPI support. Tested with OpenMPI+Torque running 8 instances
35 + between a ppc (G5) and an amd64 box. ~hppa and ~mips dropped per bug #227631.
36
37 13 Feb 2008; Alon Bar-Lev <alonbl@g.o> -johntheripper-1.7.2.ebuild:
38 Cleanup
39
40
41
42 1.1 app-crypt/johntheripper/johntheripper-1.7.2-r5.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: johntheripper-1.7.2-r5.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r5.ebuild,v 1.1 2008/06/16 19:16:35 robbat2 Exp $
52
53 inherit eutils flag-o-matic toolchain-funcs pax-utils
54
55 MY_PN="${PN/theripper/}"
56 MY_P="${MY_PN/theripper/}-${PV}"
57 S="${WORKDIR}/${MY_P}"
58
59 DESCRIPTION="fast password cracker"
60 HOMEPAGE="http://www.openwall.com/john/"
61
62 SRC_URI="http://www.openwall.com/john/f/${MY_P}.tar.gz
63 http://www.openwall.com/john/contrib/${MY_P}-all-9.diff.gz
64 mpi? ( http://bindshell.net/tools/johntheripper/${MY_P}-bp17-mpi8.patch.gz )"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
69 IUSE="mmx altivec sse2 custom-cflags mpi"
70
71 # Seems a bit fussy with other MPI implementations.
72 RDEPEND=">=dev-libs/openssl-0.9.7
73 mpi? ( sys-cluster/openmpi )"
74 DEPEND="${RDEPEND}"
75
76 get_target() {
77 if use x86 ; then
78 if use sse2 ; then
79 echo "linux-x86-sse2"
80 elif use mmx ; then
81 echo "linux-x86-mmx"
82 else
83 echo "linux-x86-any"
84 fi
85 elif use alpha ; then
86 echo "linux-alpha"
87 elif use sparc; then
88 echo "linux-sparc"
89 elif use amd64; then
90 echo "linux-x86-64"
91 elif use ppc64; then
92 if use altivec; then
93 echo "linux-ppc32-altivec"
94 else
95 echo "linux-ppc64"
96 fi
97 # linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types.
98 # as per the Makefile comments
99 elif use ppc; then
100 if use altivec; then
101 echo "linux-ppc32-altivec"
102 else
103 echo "linux-ppc32"
104 fi
105 else
106 echo "generic"
107 fi
108 }
109
110 src_unpack() {
111 unpack ${A}
112 cd "${S}"
113 PATCHLIST=""
114 if use mpi ; then
115 epatch "${WORKDIR}"/${MY_P}-bp17-mpi8.patch
116 else
117 cd "${S}/src"
118 epatch "${WORKDIR}"/${MY_P}-all-9.diff
119 PATCHLIST=stackdef.S
120 fi
121 PATCHLIST="${PATCHLIST} stackdef-2.S mkdir-sandbox"
122
123 cd "${S}/src"
124 for p in ${PATCHLIST}; do
125 epatch "${FILESDIR}/${P}-${p}.patch"
126 done
127 }
128
129 src_compile() {
130 cd "${S}/src"
131
132 use custom-cflags || strip-flags
133 append-flags -fno-PIC -fno-PIE
134 append-ldflags -nopie
135
136 CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC)
137 use mpi && CPP=mpicxx CC=mpicc AS=mpicc LD=mpicc
138 emake \
139 CPP=${CPP} CC=${CC} AS=${AS} LD=${LD} \
140 CFLAGS="-c -Wall ${CFLAGS} -DJOHN_SYSTEMWIDE \
141 -DJOHN_SYSTEMWIDE_HOME=\"\\\"/etc/john\\\"\"" \
142 LDFLAGS="${LDFLAGS}" \
143 OPT_NORMAL="" \
144 $(get_target) \
145 || die "make failed"
146 }
147
148 src_test() {
149 cd "${S}/run"
150 if [ -f /etc/john/john.conf -o -f /etc/john/john.ini ]; then
151 # This requires that MPI is actually 100% online on your system, which might not
152 # be the case, depending on which MPI implementation you are using.
153 #if use mpi ; then
154 # mpirun -np 2 ./john --test || die 'self test failed'
155 #else
156
157 ./john --test || die 'self test failed'
158 else
159 ewarn "selftest requires /etc/john/john.conf or /etc/john/john.ini"
160 fi
161 }
162
163 src_install() {
164 # executables
165 dosbin run/john
166 newsbin run/mailer john-mailer
167
168 pax-mark -m "${D}"/usr/sbin/john
169
170 dosym john /usr/sbin/unafs
171 dosym john /usr/sbin/unique
172 dosym john /usr/sbin/unshadow
173
174 # for EGG only
175 dosym john /usr/sbin/undrop
176
177 #newsbin src/bench john-bench
178
179 # config files
180 insinto /etc/john
181 doins run/john.conf
182 doins run/*.chr run/password.lst
183
184 # documentation
185 dodoc doc/*
186 }
187
188
189
190 --
191 gentoo-commits@l.g.o mailing list