Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-crypt/johntheripper: ChangeLog johntheripper-1.7.2-r3.ebuild
Date: Fri, 14 Dec 2007 19:33:48
Message-Id: E1J3GHw-0006lK-WF@stork.gentoo.org
1 alonbl 07/12/14 19:33:36
2
3 Modified: ChangeLog
4 Added: johntheripper-1.7.2-r3.ebuild
5 Log:
6 Fix hardened issues, bug#167731
7 (Portage version: 2.1.4_rc10)
8
9 Revision Changes Path
10 1.74 app-crypt/johntheripper/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.74&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?rev=1.74&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/ChangeLog?r1=1.73&r2=1.74
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v
19 retrieving revision 1.73
20 retrieving revision 1.74
21 diff -u -r1.73 -r1.74
22 --- ChangeLog 16 Nov 2007 16:29:04 -0000 1.73
23 +++ ChangeLog 14 Dec 2007 19:33:36 -0000 1.74
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-crypt/johntheripper
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.73 2007/11/16 16:29:04 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/ChangeLog,v 1.74 2007/12/14 19:33:36 alonbl Exp $
29 +
30 +*johntheripper-1.7.2-r3 (14 Dec 2007)
31 +
32 + 14 Dec 2007; Alon Bar-Lev <alonbl@g.o>
33 + +johntheripper-1.7.2-r3.ebuild:
34 + Fix hardened issues, bug#167731
35
36 16 Nov 2007; Raúl Porcel <armin76@g.o>
37 johntheripper-1.7.2-r2.ebuild:
38
39
40
41 1.1 app-crypt/johntheripper/johntheripper-1.7.2-r3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-crypt/johntheripper/johntheripper-1.7.2-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: johntheripper-1.7.2-r3.ebuild
47 ===================================================================
48 # Copyright 1999-2007 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-r3.ebuild,v 1.1 2007/12/14 19:33:36 alonbl Exp $
51
52 inherit eutils flag-o-matic toolchain-funcs pax-utils
53
54 MY_PBASE=${P/theripper/}
55 MY_PNBASE=${PN/theripper/}
56 S=${WORKDIR}/${MY_PBASE}
57 DESCRIPTION="fast password cracker"
58 HOMEPAGE="http://www.openwall.com/john/"
59 SRC_URI="http://www.openwall.com/john/f/${MY_PBASE}.tar.gz
60 http://www.openwall.com/john/contrib/${MY_PNBASE}-1.7.2-all-7.diff.gz"
61
62 # banquise-to-bigpatch-17.patch.bz2"
63 # based off /var/tmp/portage/johntheripper-1.6.40
64
65 LICENSE="GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
68 IUSE="mmx altivec sse2 custom-cflags"
69
70 RDEPEND=">=dev-libs/openssl-0.9.7"
71
72 src_unpack() {
73 unpack ${A}
74 cd "${S}"
75 epatch "${WORKDIR}"/${MY_PNBASE}-1.7.2-all-7.diff
76
77 for p in sha1-memset stackdef.S stackdef-2.S mkdir-sandbox; do
78 epatch "${FILESDIR}/${P}-${p}.patch"
79 done
80 }
81
82 src_compile() {
83 #
84 # upstream request to strip
85 # any flags, as he optimize the
86 # outputs
87 #
88 use custom-cflags || strip-flags
89 append-flags -fno-PIC -fno-PIE
90 append-ldflags -nopie
91
92 cd "${S}"/src
93
94 # Remove default OPT_NORMAL -funroll-loops bug#198659 for unknown archs
95 OPTIONS="CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC) \
96 CFLAGS=\"-c -Wall ${CFLAGS} -DJOHN_SYSTEMWIDE \
97 -DJOHN_SYSTEMWIDE_HOME=\\\"\\\\\\\"/etc/john\\\\\\\"\\\"\" \
98 LDFLAGS=\"${LDFLAGS}\" \
99 OPT_NORMAL=\"\""
100
101 if use x86 ; then
102 if use sse2 ; then
103 eval emake ${OPTIONS} linux-x86-sse2 || die "Make failed"
104 elif use mmx ; then
105 eval emake ${OPTIONS} linux-x86-mmx || die "Make failed"
106 else
107 eval emake ${OPTIONS} linux-x86-any || die "Make failed"
108 fi
109 elif use alpha ; then
110 eval emake ${OPTIONS} linux-alpha || die "Make failed"
111 elif use sparc; then
112 eval emake ${OPTIONS} linux-sparc || die "Make failed"
113 elif use amd64; then
114 eval emake ${OPTIONS} linux-x86-64 || die "Make failed"
115 elif use ppc-macos; then
116 if use altivec; then
117 eval emake ${OPTIONS} macosx-ppc32-altivec || die "Make failed"
118 else
119 eval emake ${OPTIONS} macosx-ppc32 || die "Make failed"
120 fi
121 # for Tiger this can be macosx-ppc64
122 elif use ppc64; then
123 if use altivec; then
124 eval emake ${OPTIONS} linux-ppc32-altivec || die "Make failed"
125 else
126 eval emake ${OPTIONS} linux-ppc64 || die "Make failed"
127 fi
128 # linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types.
129 # as per the Makefile comments
130 elif use ppc; then
131 if use altivec; then
132 eval emake ${OPTIONS} linux-ppc32-altivec || die "Make failed"
133 else
134 eval emake ${OPTIONS} linux-ppc32 || die "Make failed"
135 fi
136 else
137 eval emake ${OPTIONS} generic || die "Make failed"
138 fi
139
140 # currently broken
141 #eval emake bench || die "make failed"
142 }
143
144 src_test() {
145 cd run
146 if [ -f /etc/john/john.conf -o -f /etc/john/john.ini ]; then
147 ./john --test || die 'self test failed'
148 else
149 ewarn "selftest requires /etc/john/john.conf or /etc/john/john.ini"
150 fi
151 }
152
153 src_install() {
154 # executables
155 dosbin run/john
156 newsbin run/mailer john-mailer
157
158 pax-mark -m "${D}"/usr/sbin/john
159
160 dosym john /usr/sbin/unafs
161 dosym john /usr/sbin/unique
162 dosym john /usr/sbin/unshadow
163
164 # for EGG only
165 dosym john /usr/sbin/undrop
166
167 #newsbin src/bench john-bench
168
169 # config files
170 insinto /etc/john
171 doins run/john.conf
172 doins run/*.chr run/password.lst
173
174 # documentation
175 dodoc doc/*
176 }
177
178
179
180 --
181 gentoo-commits@g.o mailing list