1 |
c1pher 11/07/05 14:01:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: johntheripper-1.7.8.ebuild |
5 |
Log: |
6 |
app-crypt/johntheripper: Version bump wrt bug 374123. Move to EAPI 4. Add required use to deal with openmp and minimal. |
7 |
|
8 |
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.133 app-crypt/johntheripper/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.133&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.133&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.132&r2=1.133 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v |
20 |
retrieving revision 1.132 |
21 |
retrieving revision 1.133 |
22 |
diff -u -r1.132 -r1.133 |
23 |
--- ChangeLog 8 Mar 2011 19:33:41 -0000 1.132 |
24 |
+++ ChangeLog 5 Jul 2011 14:01:52 -0000 1.133 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-crypt/johntheripper |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.132 2011/03/08 19:33:41 abcd Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.133 2011/07/05 14:01:52 c1pher Exp $ |
30 |
+ |
31 |
+*johntheripper-1.7.8 (05 Jul 2011) |
32 |
+ |
33 |
+ 05 Jul 2011; Dane Smith <c1pher@g.o> +johntheripper-1.7.8.ebuild: |
34 |
+ Version bump wrt bug 374123. Move to EAPI 4. Add REQUIRED_USE so that |
35 |
+ openmp can't be used with minimal since the community patches are what |
36 |
+ provied openmp support. Remove no longer needed || die. |
37 |
|
38 |
08 Mar 2011; Jonathan Callen <abcd@g.o> johntheripper-1.7.6-r1.ebuild: |
39 |
Add prefix keywords, support |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-crypt/johntheripper/johntheripper-1.7.8.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.8.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.8.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: johntheripper-1.7.8.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 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.8.ebuild,v 1.1 2011/07/05 14:01:52 c1pher 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-2" |
62 |
#MPI="mpi10" |
63 |
|
64 |
DESCRIPTION="fast password cracker" |
65 |
HOMEPAGE="http://www.openwall.com/john/" |
66 |
|
67 |
SRC_URI="http://www.openwall.com/john/g/${MY_P}.tar.gz |
68 |
!minimal? ( http://www.openwall.com/john/g/${MY_P}-${JUMBO}.diff.gz )" |
69 |
# mpi? ( ftp://ftp.openwall.com/john/contrib/mpi/2009-bindshell/${MY_P}-${MPI}.patch.gz ) |
70 |
|
71 |
LICENSE="GPL-2" |
72 |
SLOT="0" |
73 |
# This package can't be marked stable for ppc or ppc64 before bug 327211 is closed. |
74 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" |
75 |
IUSE="custom-cflags -minimal mmx openmp sse2" |
76 |
REQUIRED_USE="openmp? ( !minimal )" |
77 |
#Remove AltiVec USE flag. Appears to be an upstream issue. |
78 |
#IUSE="altivec custom-cflags -minimal mmx openmp sse2" |
79 |
#IUSE="altivec custom-cflags -minimal mmx -mpi sse2" |
80 |
|
81 |
# Seems a bit fussy with other MPI implementations. |
82 |
RDEPEND="!minimal? ( >=dev-libs/openssl-0.9.7 )" |
83 |
# mpi? ( sys-cluster/openmpi ) |
84 |
DEPEND="${RDEPEND} |
85 |
openmp? ( >=sys-devel/gcc-4.2[openmp] )" |
86 |
|
87 |
S="${WORKDIR}/${MY_P}" |
88 |
|
89 |
get_target() { |
90 |
if use alpha; then |
91 |
echo "linux-alpha" |
92 |
elif use amd64; then |
93 |
echo "linux-x86-64" |
94 |
elif use ppc; then |
95 |
#if use altivec; then |
96 |
# echo "linux-ppc32-altivec" |
97 |
#else |
98 |
echo "linux-ppc32" |
99 |
#fi |
100 |
elif use ppc64; then |
101 |
#if use altivec; then |
102 |
# echo "linux-ppc32-altivec" |
103 |
#else |
104 |
echo "linux-ppc64" |
105 |
#fi |
106 |
# linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types. |
107 |
# as per the Makefile comments |
108 |
elif use sparc; then |
109 |
echo "linux-sparc" |
110 |
elif use x86; then |
111 |
if use sse2; then |
112 |
echo "linux-x86-sse2" |
113 |
elif use mmx; then |
114 |
echo "linux-x86-mmx" |
115 |
else |
116 |
echo "linux-x86-any" |
117 |
fi |
118 |
elif use ppc-macos; then |
119 |
# force AltiVec, the non-altivec profile contains ancient compiler cruft |
120 |
# if use altivec; then |
121 |
echo "macosx-ppc32-altivec" |
122 |
# else |
123 |
# echo "macosx-ppc32" |
124 |
# fi |
125 |
# for Tiger this can be macosx-ppc64 |
126 |
elif use x86-macos; then |
127 |
if use sse2; then |
128 |
echo "macosx-x86-sse2" |
129 |
else |
130 |
echo "macosx-x86" |
131 |
fi |
132 |
elif use x86-solaris; then |
133 |
echo "solaris-x86-any" |
134 |
else |
135 |
echo "generic" |
136 |
fi |
137 |
} |
138 |
|
139 |
src_prepare() { |
140 |
# if use mpi; then |
141 |
# epatch "${WORKDIR}/${MY_P}-${MPI}.patch" |
142 |
# fi |
143 |
if ! use minimal; then |
144 |
epatch "${WORKDIR}/${MY_P}-${JUMBO}.diff" |
145 |
fi |
146 |
local PATCHLIST="1.7.6-cflags 1.7.3.1-mkdir-sandbox" |
147 |
|
148 |
cd src |
149 |
for p in ${PATCHLIST}; do |
150 |
epatch "${FILESDIR}/${PN}-${p}.patch" |
151 |
done |
152 |
|
153 |
if ! use minimal; then |
154 |
sed -e "s/LDFLAGS *= */override LDFLAGS += /" -e "/LDFLAGS/s/-s//" \ |
155 |
-e "/LDFLAGS/s/-L[^ ]*//g" -e "/CFLAGS/s/-[IL][^ ]*//g" \ |
156 |
-i Makefile || die "sed Makefile failed" |
157 |
fi |
158 |
} |
159 |
|
160 |
src_compile() { |
161 |
local OMP |
162 |
|
163 |
use custom-cflags || strip-flags |
164 |
echo "#define JOHN_SYSTEMWIDE 1" >> config.gentoo |
165 |
echo "#define JOHN_SYSTEMWIDE_HOME \"${EPREFIX}/etc/john\"" >> config.gentoo |
166 |
echo "#define JOHN_SYSTEMWIDE_EXEC \"${EPREFIX}/usr/libexec/john\"" >> config.gentoo |
167 |
append-flags -fPIC -fPIE -include "${S}"/config.gentoo |
168 |
gcc-specs-pie && append-ldflags -nopie |
169 |
use openmp && OMP="-fopenmp" |
170 |
|
171 |
CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC) |
172 |
# use mpi && CPP=mpicxx CC=mpicc AS=mpicc LD=mpicc |
173 |
emake -C src/ \ |
174 |
CPP=${CPP} CC=${CC} AS=${AS} LD=${LD} \ |
175 |
CFLAGS="-c -Wall ${CFLAGS} ${OMP}" \ |
176 |
LDFLAGS="${LDFLAGS}" \ |
177 |
OPT_NORMAL="" \ |
178 |
OMPFLAGS="${OMP}" \ |
179 |
$(get_target) |
180 |
} |
181 |
|
182 |
src_test() { |
183 |
cd run |
184 |
if [[ -f "${EPREFIX}/etc/john/john.conf" || -f "${EPREFIX}/etc/john/john.ini" ]]; then |
185 |
# This requires that MPI is actually 100% online on your system, which might not |
186 |
# be the case, depending on which MPI implementation you are using. |
187 |
#if use mpi; then |
188 |
# mpirun -np 2 ./john --test || die 'self test failed' |
189 |
#else |
190 |
|
191 |
./john --test || die 'self test failed' |
192 |
else |
193 |
ewarn "Tests require '${EPREFIX}/etc/john/john.conf' or '${EPREFIX}/etc/john/john.ini'" |
194 |
fi |
195 |
} |
196 |
|
197 |
src_install() { |
198 |
# executables |
199 |
dosbin run/john |
200 |
newsbin run/mailer john-mailer |
201 |
|
202 |
pax-mark -m "${ED}usr/sbin/john" || die |
203 |
|
204 |
dosym john /usr/sbin/unafs |
205 |
dosym john /usr/sbin/unique |
206 |
dosym john /usr/sbin/unshadow |
207 |
|
208 |
# jumbo-patch additions |
209 |
if ! use minimal; then |
210 |
dosym john /usr/sbin/undrop |
211 |
dosbin run/calc_stat |
212 |
dosbin run/genmkvpwd |
213 |
dosbin run/mkvcalcproba |
214 |
insinto /etc/john |
215 |
doins run/genincstats.rb run/stats |
216 |
doins run/netscreen.py run/sap_prepare.pl |
217 |
fi |
218 |
|
219 |
# config files |
220 |
insinto /etc/john |
221 |
doins run/john.conf |
222 |
doins run/*.chr run/password.lst |
223 |
|
224 |
# documentation |
225 |
dodoc doc/* |
226 |
} |