diff options
author | Mike Auty <ikelos@gentoo.org> | 2006-11-25 17:49:48 +0000 |
---|---|---|
committer | Mike Auty <ikelos@gentoo.org> | 2006-11-25 17:49:48 +0000 |
commit | fe274f49692739561ea62322e9bc2ab8b6210839 (patch) | |
tree | 8b0ed76940ae7700c701a9a8867ae9593d04c4c9 /app-crypt/ophcrack/ophcrack-2.3.3.ebuild | |
parent | Stable on Alpha + ia64. (diff) | |
download | gentoo-2-fe274f49692739561ea62322e9bc2ab8b6210839.tar.gz gentoo-2-fe274f49692739561ea62322e9bc2ab8b6210839.tar.bz2 gentoo-2-fe274f49692739561ea62322e9bc2ab8b6210839.zip |
Version bump, compiling bkhive and samdump from source to fix bug 156119.
(Portage version: 2.1.2_rc2-r1)
Diffstat (limited to 'app-crypt/ophcrack/ophcrack-2.3.3.ebuild')
-rw-r--r-- | app-crypt/ophcrack/ophcrack-2.3.3.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/app-crypt/ophcrack/ophcrack-2.3.3.ebuild b/app-crypt/ophcrack/ophcrack-2.3.3.ebuild new file mode 100644 index 000000000000..a240cafc27ed --- /dev/null +++ b/app-crypt/ophcrack/ophcrack-2.3.3.ebuild @@ -0,0 +1,67 @@ +# 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.3.3.ebuild,v 1.1 2006/11/25 17:49:48 ikelos Exp $ + +inherit toolchain-funcs eutils + +DESCRIPTION="A time-memory-trade-off-cracker" +HOMEPAGE="http://ophcrack.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz + mirror://sourceforge/${PN}/bkhive2.tar.gz + http://www.studenti.unina.it/~ncuomo/syskey/samdump2_linux.tgz + !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/samdump2_linux.tgz/} + cd ${S} + + mkdir ${WORKDIR}/samdump2 + pushd ${WORKDIR}/samdump2 + unpack samdump2_linux.tgz + sed -i -e 's!
!!' makedes + + popd + epatch ${FILESDIR}/${P}-linuxtools-install-path.patch +} + +src_compile() { + # Make samdump2 + einfo "Compiling samdump2" + cd ${WORKDIR}/samdump2 + MAKEOPTS="-j1" emake || die "Failed to make samdump" + + # Make bkhive2 + einfo "Compiling bkhive2" + cd ${WORKDIR}/bkhive2 + $(tc-getCXX) ${CXXFLAGS} -lstdc++ -o bkhive2 *.cpp || die "Failed to make bkhive2" + + # Make the program + einfo "Compiling ophcrack" + cd ${S} + econf + emake || die "Failed to make ophcrack" + + # Copy samdump over + cp ${WORKDIR}/samdump2/samdump2 ${S}/linux_tools + cp ${WORKDIR}/bkhive2/bkhive2 ${S}/linux_tools +} + +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} +} |