From: | "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-crypt/johntheripper: johntheripper-1.7.3.4.ebuild ChangeLog |
Date: | Sat, 03 Oct 2009 22:54:25 |
Message-Id: | E1MuDUc-00021u-MO@stork.gentoo.org |
1 | arfrever 09/10/03 22:54:22 |
2 | |
3 | Modified: ChangeLog |
4 | Added: johntheripper-1.7.3.4.ebuild |
5 | Log: |
6 | Version bump. |
7 | (Portage version: 14484-svn/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.100 app-crypt/johntheripper/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.100&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.100&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.99&r2=1.100 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v |
19 | retrieving revision 1.99 |
20 | retrieving revision 1.100 |
21 | diff -u -r1.99 -r1.100 |
22 | --- ChangeLog 5 Sep 2009 15:23:30 -0000 1.99 |
23 | +++ ChangeLog 3 Oct 2009 22:54:22 -0000 1.100 |
24 | @@ -1,6 +1,12 @@ |
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.99 2009/09/05 15:23:30 arfrever Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.100 2009/10/03 22:54:22 arfrever Exp $ |
29 | + |
30 | +*johntheripper-1.7.3.4 (04 Oct 2009) |
31 | + |
32 | + 04 Oct 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
33 | + +johntheripper-1.7.3.4.ebuild: |
34 | + Version bump. |
35 | |
36 | 05 Sep 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
37 | johntheripper-1.7.3.1-r1.ebuild: |
38 | |
39 | |
40 | |
41 | 1.1 app-crypt/johntheripper/johntheripper-1.7.3.4.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.3.4.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.3.4.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: johntheripper-1.7.3.4.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2009 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.3.4.ebuild,v 1.1 2009/10/03 22:54:22 arfrever Exp $ |
51 | |
52 | EAPI="2" |
53 | |
54 | inherit eutils flag-o-matic toolchain-funcs pax-utils |
55 | |
56 | MY_PN="john" |
57 | MY_P="${MY_PN}-${PV}" |
58 | |
59 | JUMBO="jumbo-1" |
60 | #MPI="mpi10" |
61 | |
62 | DESCRIPTION="fast password cracker" |
63 | HOMEPAGE="http://www.openwall.com/john/" |
64 | |
65 | SRC_URI="http://www.openwall.com/john/g/${MY_P}.tar.gz |
66 | !minimal? ( ftp://ftp.openwall.com/john/contrib/${MY_P}-${JUMBO}.diff.gz )" |
67 | # mpi? ( ftp://ftp.openwall.com/john/contrib/mpi/2009-bindshell/${MY_P}-${MPI}.patch.gz ) |
68 | |
69 | LICENSE="GPL-2" |
70 | SLOT="0" |
71 | KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
72 | IUSE="altivec custom-cflags -minimal mmx sse2" |
73 | #IUSE="altivec custom-cflags -minimal mmx -mpi sse2" |
74 | |
75 | # Seems a bit fussy with other MPI implementations. |
76 | RDEPEND="!minimal? ( >=dev-libs/openssl-0.9.7 )" |
77 | # mpi? ( sys-cluster/openmpi ) |
78 | DEPEND="${RDEPEND}" |
79 | |
80 | S="${WORKDIR}/${MY_P}" |
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_prepare() { |
117 | # if use mpi; then |
118 | # epatch "${WORKDIR}/${MY_P}-${MPI}.patch" |
119 | # fi |
120 | if ! use minimal; then |
121 | epatch "${WORKDIR}/${MY_P}-${JUMBO}.diff" |
122 | fi |
123 | local PATCHLIST="${PATCHLIST} cflags mkdir-sandbox" |
124 | |
125 | cd src |
126 | for p in ${PATCHLIST}; do |
127 | epatch "${FILESDIR}/${PN}-1.7.3.1-${p}.patch" |
128 | done |
129 | |
130 | if ! use minimal; then |
131 | sed -e "s/LDFLAGS *= */override LDFLAGS += /" -e "/LDFLAGS/s/-s//" \ |
132 | -e "/LDFLAGS/s/-L[^ ]*//g" -e "/CFLAGS/s/-[IL][^ ]*//g" \ |
133 | -i Makefile || die "sed Makefile failed" |
134 | fi |
135 | } |
136 | |
137 | src_compile() { |
138 | use custom-cflags || strip-flags |
139 | append-flags -fPIC -fPIE |
140 | append-ldflags -nopie |
141 | |
142 | CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC) |
143 | # use mpi && CPP=mpicxx CC=mpicc AS=mpicc LD=mpicc |
144 | emake -C src/\ |
145 | CPP=${CPP} CC=${CC} AS=${AS} LD=${LD} \ |
146 | CFLAGS="-c -Wall ${CFLAGS} -DJOHN_SYSTEMWIDE -DJOHN_SYSTEMWIDE_HOME=\"\\\"/etc/john\\\"\" -DJOHN_SYSTEMWIDE_EXEC=\"\\\"/usr/libexec/john\\\"\"" \ |
147 | LDFLAGS="${LDFLAGS}" \ |
148 | OPT_NORMAL="" \ |
149 | $(get_target) || die "emake failed" |
150 | } |
151 | |
152 | src_test() { |
153 | cd run |
154 | if [[ -f "/etc/john/john.conf" || -f "/etc/john/john.ini" ]]; then |
155 | # This requires that MPI is actually 100% online on your system, which might not |
156 | # be the case, depending on which MPI implementation you are using. |
157 | #if use mpi; then |
158 | # mpirun -np 2 ./john --test || die 'self test failed' |
159 | #else |
160 | |
161 | ./john --test || die 'self test failed' |
162 | else |
163 | ewarn "selftest requires /etc/john/john.conf or /etc/john/john.ini" |
164 | fi |
165 | } |
166 | |
167 | src_install() { |
168 | # executables |
169 | dosbin run/john |
170 | newsbin run/mailer john-mailer |
171 | |
172 | pax-mark -m "${D}"/usr/sbin/john |
173 | |
174 | dosym john /usr/sbin/unafs |
175 | dosym john /usr/sbin/unique |
176 | dosym john /usr/sbin/unshadow |
177 | |
178 | # jumbo-patch additions |
179 | if ! use minimal; then |
180 | dosym john /usr/sbin/undrop |
181 | dosbin run/calc_stat |
182 | dosbin run/genmkvpwd |
183 | dosbin run/mkvcalcproba |
184 | insinto /etc/john |
185 | doins run/genincstats.rb run/stats |
186 | doins run/netscreen.py run/sap_prepare.pl |
187 | fi |
188 | |
189 | # config files |
190 | insinto /etc/john |
191 | doins run/john.conf |
192 | doins run/*.chr run/password.lst |
193 | |
194 | # documentation |
195 | dodoc doc/* |
196 | } |