summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Auty <ikelos@gentoo.org>2006-11-25 17:49:48 +0000
committerMike Auty <ikelos@gentoo.org>2006-11-25 17:49:48 +0000
commitfe274f49692739561ea62322e9bc2ab8b6210839 (patch)
tree8b0ed76940ae7700c701a9a8867ae9593d04c4c9 /app-crypt/ophcrack
parentStable on Alpha + ia64. (diff)
downloadgentoo-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')
-rw-r--r--app-crypt/ophcrack/ChangeLog9
-rw-r--r--app-crypt/ophcrack/files/digest-ophcrack-2.3.315
-rw-r--r--app-crypt/ophcrack/files/ophcrack-2.3.3-linuxtools-install-path.patch32
-rw-r--r--app-crypt/ophcrack/ophcrack-2.3.3.ebuild67
4 files changed, 122 insertions, 1 deletions
diff --git a/app-crypt/ophcrack/ChangeLog b/app-crypt/ophcrack/ChangeLog
index 468d00000cef..5b9159bb427c 100644
--- a/app-crypt/ophcrack/ChangeLog
+++ b/app-crypt/ophcrack/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-crypt/ophcrack
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/ophcrack/ChangeLog,v 1.4 2006/09/02 12:27:23 ikelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/ophcrack/ChangeLog,v 1.5 2006/11/25 17:49:48 ikelos Exp $
+
+*ophcrack-2.3.3 (25 Nov 2006)
+
+ 25 Nov 2006; Mike Auty <ikelos@gentoo.org>
+ +files/ophcrack-2.3.3-linuxtools-install-path.patch,
+ +ophcrack-2.3.3.ebuild:
+ Version bump, compiling bkhive and samdump from source to fix bug 156119.
*ophcrack-2.3.1 (02 Sep 2006)
diff --git a/app-crypt/ophcrack/files/digest-ophcrack-2.3.3 b/app-crypt/ophcrack/files/digest-ophcrack-2.3.3
new file mode 100644
index 000000000000..c30f23a531c6
--- /dev/null
+++ b/app-crypt/ophcrack/files/digest-ophcrack-2.3.3
@@ -0,0 +1,15 @@
+MD5 a5542fc3de4d24ecb62a01154f0f74b9 SSTIC04-10k.zip 364228
+RMD160 bc0678e1b4a00020993a2c2c7f4beb67a0a985f9 SSTIC04-10k.zip 364228
+SHA256 39ee186b7eca2f13a003e1a471ea083a80af7b657b90e829adee32cb1c875259 SSTIC04-10k.zip 364228
+MD5 00181247b0ef30d0fd138341a6f883ff SSTIC04-5k.zip 701900757
+RMD160 4ac60e6d7bd8d817e5deeb2d93db7397a8f42279 SSTIC04-5k.zip 701900757
+SHA256 910cfab447d273564a374d62620d50812d0623657905835da152d53c3542552f SSTIC04-5k.zip 701900757
+MD5 b1c7d23d7cd2efe9f7a6ff05ef92bb44 bkhive2.tar.gz 3283
+RMD160 08ed260fa1d2605e9ac9f25fe6fbb5fe0e7a92f8 bkhive2.tar.gz 3283
+SHA256 13f44f8e85ca0a5ae9a6c630780ada17fc1f31cf5f0181826784ebf0a85520bf bkhive2.tar.gz 3283
+MD5 33eb0e14ab5a196ac168795e38856b8b ophcrack-2.3.3.tar.gz 176184
+RMD160 6cc9317f6c24c4d1bfa3a7b348eb759a8b0cac81 ophcrack-2.3.3.tar.gz 176184
+SHA256 210db7499b76e41a89ac0930f98250aa04fef530f3f29253b42390e658eff6c3 ophcrack-2.3.3.tar.gz 176184
+MD5 75787583cdabdcd88f84604e2591bd03 samdump2_linux.tgz 144901
+RMD160 525f1656285783ed951d6b9a1430eddc1c46426f samdump2_linux.tgz 144901
+SHA256 fefe3b495de5a9901c96736ab85c88b981bd7ce6318dd90bbd68b1747e945d26 samdump2_linux.tgz 144901
diff --git a/app-crypt/ophcrack/files/ophcrack-2.3.3-linuxtools-install-path.patch b/app-crypt/ophcrack/files/ophcrack-2.3.3-linuxtools-install-path.patch
new file mode 100644
index 000000000000..9279526eaba3
--- /dev/null
+++ b/app-crypt/ophcrack/files/ophcrack-2.3.3-linuxtools-install-path.patch
@@ -0,0 +1,32 @@
+diff -uNr Makefile.am.orig Makefile.am
+--- Makefile.am.orig 2005-03-31 15:09:50.000000000 +0100
++++ Makefile.am 2005-11-07 17:24:46.000000000 +0000
+@@ -36,10 +36,10 @@
+ install-exec-local:
+ if test -d $(srcdir)/linux_tools; then \
+ if test -f $(srcdir)/linux_tools/bkhive2; then \
+- $(INSTALL_PROGRAM) $(srcdir)/linux_tools/bkhive2 $(bindir); \
++ $(INSTALL_PROGRAM) $(srcdir)/linux_tools/bkhive2 $(DESTDIR)$(bindir); \
+ fi ;\
+ if test -f $(srcdir)/linux_tools/samdump2; then \
+- $(INSTALL_PROGRAM) $(srcdir)/linux_tools/samdump2 $(bindir); \
++ $(INSTALL_PROGRAM) $(srcdir)/linux_tools/samdump2 $(DESTDIR)$(bindir); \
+ fi \
+ fi
+
+diff -uNr Makefile.in.orig Makefile.in
+--- Makefile.in.orig 2005-03-31 15:10:16.000000000 +0100
++++ Makefile.in 2005-11-07 17:25:09.000000000 +0000
+@@ -383,10 +383,10 @@
+ install-exec-local:
+ if test -d $(srcdir)/linux_tools; then \
+ if test -f $(srcdir)/linux_tools/bkhive2; then \
+- $(INSTALL_PROGRAM) $(srcdir)/linux_tools/bkhive2 $(bindir); \
++ $(INSTALL_PROGRAM) $(srcdir)/linux_tools/bkhive2 $(DESTDIR)$(bindir); \
+ fi ;\
+ if test -f $(srcdir)/linux_tools/samdump2; then \
+- $(INSTALL_PROGRAM) $(srcdir)/linux_tools/samdump2 $(bindir); \
++ $(INSTALL_PROGRAM) $(srcdir)/linux_tools/samdump2 $(DESTDIR)$(bindir); \
+ fi \
+ fi
+
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}
+}