1 |
patrick 09/09/03 12:36:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: johntheripper-1.7.3.1-r1.ebuild |
5 |
Log: |
6 |
Small set of fixes, thanks to RB. Closes #277811 |
7 |
(Portage version: 2.2_rc40/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.98 app-crypt/johntheripper/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.98&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.98&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.97&r2=1.98 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v |
19 |
retrieving revision 1.97 |
20 |
retrieving revision 1.98 |
21 |
diff -u -r1.97 -r1.98 |
22 |
--- ChangeLog 23 Jun 2009 00:03:52 -0000 1.97 |
23 |
+++ ChangeLog 3 Sep 2009 12:36:47 -0000 1.98 |
24 |
@@ -1,6 +1,15 @@ |
25 |
# ChangeLog for app-crypt/johntheripper |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.97 2009/06/23 00:03:52 rich0 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.98 2009/09/03 12:36:47 patrick Exp $ |
29 |
+ |
30 |
+*johntheripper-1.7.3.1-r1 (03 Sep 2009) |
31 |
+ |
32 |
+ 03 Sep 2009; Patrick Lauer <patrick@g.o> |
33 |
+ +johntheripper-1.7.3.1-r1.ebuild, |
34 |
+ +files/johntheripper-1.7.3.1-all-5-stackdef.S.patch, |
35 |
+ +files/johntheripper-1.7.3.1-cflags.patch, |
36 |
+ files/johntheripper-1.7.3.1-stackdef.S.patch: |
37 |
+ Small set of fixes, thanks to RB. Closes #277811 |
38 |
|
39 |
23 Jun 2009; Richard Freeman <rich0@g.o> |
40 |
johntheripper-1.7.3.1.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 app-crypt/johntheripper/johntheripper-1.7.3.1-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.3.1-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.3.1-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: johntheripper-1.7.3.1-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.3.1-r1.ebuild,v 1.1 2009/09/03 12:36:47 patrick Exp $ |
54 |
|
55 |
EAPI=1 |
56 |
inherit eutils flag-o-matic toolchain-funcs pax-utils |
57 |
|
58 |
JUMBO='all-5' |
59 |
MPI='mpi10' |
60 |
|
61 |
MY_PN="${PN/theripper/}" |
62 |
MY_P="${MY_PN/theripper/}-${PV}" |
63 |
S="${WORKDIR}/${MY_P}" |
64 |
|
65 |
DESCRIPTION="fast password cracker" |
66 |
HOMEPAGE="http://www.openwall.com/john/" |
67 |
|
68 |
SRC_URI="http://www.openwall.com/john/g/${MY_P}.tar.gz |
69 |
!minimal? ( ftp://ftp.openwall.com/john/contrib/${MY_P}-${JUMBO}.diff.gz ) |
70 |
mpi? ( ftp://ftp.openwall.com/john/contrib/mpi/2009-bindshell/${MY_P}-${MPI}.patch.gz )" |
71 |
|
72 |
LICENSE="GPL-2" |
73 |
SLOT="0" |
74 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
75 |
IUSE="mmx altivec sse2 custom-cflags -minimal -mpi" |
76 |
|
77 |
# Seems a bit fussy with other MPI implementations. |
78 |
RDEPEND="!minimal? ( >=dev-libs/openssl-0.9.7 ) |
79 |
mpi? ( sys-cluster/openmpi )" |
80 |
DEPEND="${RDEPEND}" |
81 |
|
82 |
get_target() { |
83 |
if use x86 ; then |
84 |
if use sse2 ; then |
85 |
echo "linux-x86-sse2" |
86 |
elif use mmx ; then |
87 |
echo "linux-x86-mmx" |
88 |
else |
89 |
echo "linux-x86-any" |
90 |
fi |
91 |
elif use alpha ; then |
92 |
echo "linux-alpha" |
93 |
elif use sparc; then |
94 |
echo "linux-sparc" |
95 |
elif use amd64; then |
96 |
echo "linux-x86-64" |
97 |
elif use ppc64; then |
98 |
if use altivec; then |
99 |
echo "linux-ppc32-altivec" |
100 |
else |
101 |
echo "linux-ppc64" |
102 |
fi |
103 |
# linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types. |
104 |
# as per the Makefile comments |
105 |
elif use ppc; then |
106 |
if use altivec; then |
107 |
echo "linux-ppc32-altivec" |
108 |
else |
109 |
echo "linux-ppc32" |
110 |
fi |
111 |
else |
112 |
echo "generic" |
113 |
fi |
114 |
} |
115 |
|
116 |
src_unpack() { |
117 |
unpack ${A} |
118 |
cd "${S}" |
119 |
PATCHLIST="stackdef.S" |
120 |
if use mpi ; then |
121 |
epatch "${WORKDIR}"/${MY_P}-${MPI}.patch |
122 |
fi |
123 |
if ! use minimal ; then |
124 |
epatch "${WORKDIR}"/${MY_P}-${JUMBO}.diff |
125 |
PATCHLIST="${PATCHLIST} ${JUMBO}-stackdef.S" |
126 |
fi |
127 |
PATCHLIST="${PATCHLIST} cflags mkdir-sandbox" |
128 |
|
129 |
cd "${S}/src" |
130 |
for p in ${PATCHLIST}; do |
131 |
epatch "${FILESDIR}/${P}-${p}.patch" |
132 |
done |
133 |
|
134 |
if ! use minimal ; then |
135 |
sed -e "s/LDFLAGS *= */override LDFLAGS += /" -e "/LDFLAGS/s/-s//" \ |
136 |
-e "/LDFLAGS/s/-L[^ ]*//g" -e "/CFLAGS/s/-[IL][^ ]*//g" \ |
137 |
-i Makefile || die "sed Makefile failed" |
138 |
fi |
139 |
} |
140 |
|
141 |
src_compile() { |
142 |
use custom-cflags || strip-flags |
143 |
append-flags -fPIC -fPIE |
144 |
append-ldflags -nopie |
145 |
|
146 |
CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC) |
147 |
use mpi && CPP=mpicxx CC=mpicc AS=mpicc LD=mpicc |
148 |
emake -C src/\ |
149 |
CPP=${CPP} CC=${CC} AS=${AS} LD=${LD} \ |
150 |
CFLAGS="-c -Wall ${CFLAGS} -DJOHN_SYSTEMWIDE -DJOHN_SYSTEMWIDE_HOME=\"\\\"${ROOT}/etc/john\\\"\" -DJOHN_SYSTEMWIDE_EXEC=\"\\\"${ROOT}/usr/libexec/john\\\"\"" \ |
151 |
LDFLAGS="${LDFLAGS}" \ |
152 |
OPT_NORMAL="" \ |
153 |
$(get_target) \ |
154 |
|| die "emake failed" |
155 |
} |
156 |
|
157 |
src_test() { |
158 |
cd "${S}/run" |
159 |
if [ -f /etc/john/john.conf -o -f /etc/john/john.ini ]; then |
160 |
# This requires that MPI is actually 100% online on your system, which might not |
161 |
# be the case, depending on which MPI implementation you are using. |
162 |
#if use mpi ; then |
163 |
# mpirun -np 2 ./john --test || die 'self test failed' |
164 |
#else |
165 |
|
166 |
./john --test || die 'self test failed' |
167 |
else |
168 |
ewarn "selftest requires /etc/john/john.conf or /etc/john/john.ini" |
169 |
fi |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
# executables |
174 |
dosbin run/john |
175 |
newsbin run/mailer john-mailer |
176 |
|
177 |
pax-mark -m "${D}"/usr/sbin/john |
178 |
|
179 |
dosym john /usr/sbin/unafs |
180 |
dosym john /usr/sbin/unique |
181 |
dosym john /usr/sbin/unshadow |
182 |
|
183 |
# jumbo-patch additions |
184 |
if ! use minimal ; then |
185 |
dosym john /usr/sbin/undrop |
186 |
dosbin run/calc_stat |
187 |
dosbin run/genmkvpwd |
188 |
dosbin run/mkvcalcproba |
189 |
insinto /etc/john |
190 |
doins run/genincstats.rb run/stats |
191 |
doins run/netscreen.py run/sap_prepare.pl |
192 |
fi |
193 |
|
194 |
# config files |
195 |
insinto /etc/john |
196 |
doins run/john.conf |
197 |
doins run/*.chr run/password.lst |
198 |
|
199 |
# documentation |
200 |
dodoc doc/* |
201 |
} |