summaryrefslogtreecommitdiff
blob: 5bdd0522abfaebeacb86a07c2d99f8fe79aee9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ophcrack/ophcrack-2.2.ebuild,v 1.2 2006/05/25 21:57:33 kugelfang Exp $

inherit eutils

DESCRIPTION="A time-memory-trade-off-cracker"
HOMEPAGE="http://ophcrack.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
		 !ophsmall? ( http://lasecwww.epfl.ch/SSTIC04-5k.zip )
		 ophsmall? ( http://lasecwww.epfl.ch/SSTIC04-10k.zip )"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="ophsmall"

DEPEND="dev-libs/openssl
		net-libs/netwib"
RDEPEND=""

src_unpack() {
	unpack ${A}

	epatch ${FILESDIR}/${P}-linuxtools-install-path.patch
}

src_install() {
	make install DESTDIR=${D}

	TABLENAME="5000"
	use ophsmall && TABLENAME="10000"

	dodir /usr/share/${PN}/${TABLENAME}
	mv ${WORKDIR}/table* ${D}/usr/share/${PN}/${TABLENAME}
}