1 |
alonbl 08/01/11 07:10:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: johntheripper-1.7.2-r4.ebuild |
5 |
Log: |
6 |
Cleanups, bug#202306, thanks to Alex Barker |
7 |
(Portage version: 2.1.4_rc14) |
8 |
|
9 |
Revision Changes Path |
10 |
1.82 app-crypt/johntheripper/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.82&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.82&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.81&r2=1.82 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v |
19 |
retrieving revision 1.81 |
20 |
retrieving revision 1.82 |
21 |
diff -u -r1.81 -r1.82 |
22 |
--- ChangeLog 6 Jan 2008 06:33:03 -0000 1.81 |
23 |
+++ ChangeLog 11 Jan 2008 07:10:26 -0000 1.82 |
24 |
@@ -1,6 +1,12 @@ |
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.81 2008/01/06 06:33:03 alonbl Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.82 2008/01/11 07:10:26 alonbl Exp $ |
29 |
+ |
30 |
+*johntheripper-1.7.2-r4 (11 Jan 2008) |
31 |
+ |
32 |
+ 11 Jan 2008; Alon Bar-Lev <alonbl@g.o> |
33 |
+ +johntheripper-1.7.2-r4.ebuild: |
34 |
+ Cleanups, bug#202306, thanks to Alex Barker |
35 |
|
36 |
06 Jan 2008; Alon Bar-Lev <alonbl@g.o> |
37 |
-johntheripper-1.7.2-r2.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-crypt/johntheripper/johntheripper-1.7.2-r4.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r4.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r4.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: johntheripper-1.7.2-r4.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r4.ebuild,v 1.1 2008/01/11 07:10:26 alonbl Exp $ |
51 |
|
52 |
inherit eutils flag-o-matic toolchain-funcs pax-utils |
53 |
|
54 |
MY_PN="${PN/theripper/}" |
55 |
MY_P="${MY_PN/theripper/}-${PV}" |
56 |
S="${WORKDIR}/${MY_P}" |
57 |
|
58 |
DESCRIPTION="fast password cracker" |
59 |
HOMEPAGE="http://www.openwall.com/john/" |
60 |
|
61 |
SRC_URI="http://www.openwall.com/john/f/${MY_P}.tar.gz |
62 |
http://www.openwall.com/john/contrib/${MY_P}-all-9.diff.gz" |
63 |
# When mpi stable: |
64 |
# mpi? ( http://bindshell.net/tools/johntheripper/${MY_P}-bp17-mpi2.patch.gz )" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
69 |
IUSE="mmx altivec sse2 custom-cflags" |
70 |
|
71 |
RDEPEND=">=dev-libs/openssl-0.9.7" |
72 |
# When mpi stable: |
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 ppc-macos; then |
92 |
if use altivec; then |
93 |
echo "macosx-ppc32-altivec" |
94 |
else |
95 |
echo "macosx-ppc32" |
96 |
fi |
97 |
# for Tiger this can be macosx-ppc64 |
98 |
elif use ppc64; then |
99 |
if use altivec; then |
100 |
echo "linux-ppc32-altivec" |
101 |
else |
102 |
echo "linux-ppc64" |
103 |
fi |
104 |
# linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types. |
105 |
# as per the Makefile comments |
106 |
elif use ppc; then |
107 |
if use altivec; then |
108 |
echo "linux-ppc32-altivec" |
109 |
else |
110 |
echo "linux-ppc32" |
111 |
fi |
112 |
else |
113 |
echo "generic" |
114 |
fi |
115 |
} |
116 |
|
117 |
src_unpack() { |
118 |
unpack ${A} |
119 |
cd "${S}" |
120 |
|
121 |
# When mpi stable: |
122 |
# if use mpi ; then |
123 |
# epatch "${WORKDIR}"/${MY_P}-bp17-mpi2.patch |
124 |
# else |
125 |
|
126 |
cd "${S}/src" |
127 |
epatch "${WORKDIR}"/${MY_P}-all-9.diff |
128 |
|
129 |
for p in stackdef.S stackdef-2.S mkdir-sandbox; do |
130 |
epatch "${FILESDIR}/${P}-${p}.patch" |
131 |
done |
132 |
} |
133 |
|
134 |
src_compile() { |
135 |
cd "${S}/src" |
136 |
|
137 |
use custom-cflags || strip-flags |
138 |
append-flags -fno-PIC -fno-PIE |
139 |
append-ldflags -nopie |
140 |
|
141 |
emake \ |
142 |
CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC) \ |
143 |
CFLAGS="-c -Wall ${CFLAGS} -DJOHN_SYSTEMWIDE \ |
144 |
-DJOHN_SYSTEMWIDE_HOME=\"\\\"/etc/john\\\"\"" \ |
145 |
LDFLAGS="${LDFLAGS}" \ |
146 |
OPT_NORMAL="" \ |
147 |
$(get_target) \ |
148 |
|| die "make failed" |
149 |
} |
150 |
|
151 |
src_test() { |
152 |
cd "${S}/run" |
153 |
if [ -f /etc/john/john.conf -o -f /etc/john/john.ini ]; then |
154 |
# When mpi stable: |
155 |
# if use mpi ; then |
156 |
# mpirun -np 2 ./john --test || die 'self test failed' |
157 |
# else |
158 |
|
159 |
./john --test || die 'self test failed' |
160 |
else |
161 |
ewarn "selftest requires /etc/john/john.conf or /etc/john/john.ini" |
162 |
fi |
163 |
} |
164 |
|
165 |
src_install() { |
166 |
# executables |
167 |
dosbin run/john |
168 |
newsbin run/mailer john-mailer |
169 |
|
170 |
pax-mark -m "${D}"/usr/sbin/john |
171 |
|
172 |
dosym john /usr/sbin/unafs |
173 |
dosym john /usr/sbin/unique |
174 |
dosym john /usr/sbin/unshadow |
175 |
|
176 |
# for EGG only |
177 |
dosym john /usr/sbin/undrop |
178 |
|
179 |
#newsbin src/bench john-bench |
180 |
|
181 |
# config files |
182 |
insinto /etc/john |
183 |
doins run/john.conf |
184 |
doins run/*.chr run/password.lst |
185 |
|
186 |
# documentation |
187 |
dodoc doc/* |
188 |
} |
189 |
|
190 |
|
191 |
|
192 |
-- |
193 |
gentoo-commits@l.g.o mailing list |