1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A time-memory-trade-off-cracker"
9 HOMEPAGE="http://ophcrack.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
14 KEYWORDS="~amd64 ~ppc ~x86"
15 IUSE="debug libressl qt4 +tables"
17 CDEPEND="!libressl? ( dev-libs/openssl:0= )
18 libressl? ( dev-libs/libressl:0= )
20 qt4? ( dev-qt/qtgui:4 )"
21 DEPEND="app-arch/unzip
24 RDEPEND="tables? ( app-crypt/ophcrack-tables )
27 PATCHES="${FILESDIR}/ophcrack-openssl-des.patch"
33 myconf="$(use_enable qt4 gui)"
34 myconf="${myconf} $(use_enable debug)"
36 econf ${myconf} || die "Failed to compile"
40 emake install DESTDIR="${D}" || die "Installation failed."
43 newicon src/gui/pixmaps/os.xpm ophcrack.xpm
44 make_desktop_entry "${PN}" OphCrack ophcrack