summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDane Smith <c1pher@gentoo.org>2010-12-23 12:40:05 +0000
committerDane Smith <c1pher@gentoo.org>2010-12-23 12:40:05 +0000
commite9de995afc8d459a787d786155da8adff4f00f0e (patch)
tree240682489a88fbefe2be4111e2790eb088b0c992 /app-crypt/mdcrack
parentamd64 stable - 348186 (diff)
downloadhistorical-e9de995afc8d459a787d786155da8adff4f00f0e.tar.gz
historical-e9de995afc8d459a787d786155da8adff4f00f0e.tar.bz2
historical-e9de995afc8d459a787d786155da8adff4f00f0e.zip
Remove interactive tests from app-crypt/mdcrack wrt bug 294634. Ebuild cleanup.
Package-Manager: portage-2.2.0_alpha4/cvs/Linux i686
Diffstat (limited to 'app-crypt/mdcrack')
-rw-r--r--app-crypt/mdcrack/ChangeLog10
-rw-r--r--app-crypt/mdcrack/Manifest23
-rw-r--r--app-crypt/mdcrack/files/mdcrack-1.2-remove-interactive-test.diff120
-rw-r--r--app-crypt/mdcrack/mdcrack-1.2.ebuild39
4 files changed, 173 insertions, 19 deletions
diff --git a/app-crypt/mdcrack/ChangeLog b/app-crypt/mdcrack/ChangeLog
index bbe6da1c59de..c78cf68fc778 100644
--- a/app-crypt/mdcrack/ChangeLog
+++ b/app-crypt/mdcrack/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-crypt/mdcrack
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/mdcrack/ChangeLog,v 1.5 2009/02/10 16:15:32 angelos Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/mdcrack/ChangeLog,v 1.6 2010/12/23 12:40:05 c1pher Exp $
+
+ 23 Dec 2010; Dane Smith <c1pher@gentoo.org> mdcrack-1.2.ebuild,
+ +files/mdcrack-1.2-remove-interactive-test.diff:
+ New patch to remove interactive tests from the Makefile wrt bug 294634.
+ *Ebuild cleanup. Moved to EAPI=2
+ *Fixed respect for jobserver.
10 Feb 2009; Christoph Mende <angelos@gentoo.org>
+files/mdcrack-1.2-asneeded.patch, mdcrack-1.2.ebuild:
diff --git a/app-crypt/mdcrack/Manifest b/app-crypt/mdcrack/Manifest
index b41becf0873e..f9f49372c6de 100644
--- a/app-crypt/mdcrack/Manifest
+++ b/app-crypt/mdcrack/Manifest
@@ -3,14 +3,25 @@ Hash: SHA1
AUX mdcrack-1.2-asneeded.patch 1372 RMD160 db6a45cd79b812ac75095b6f2f99c1306cd3e09a SHA1 1ee1dc824f3f45b2dc0466d1006758cc28464a50 SHA256 0644ac0be6b990ab378655aece4f7e31f41260688d72783b86fa4016ca20373c
AUX mdcrack-1.2-gcc4.diff 798 RMD160 bf13ed93fb69678deb7c2a73501e90da579d72db SHA1 3ffc95d6f1952c60f0128eb1b2e67dd8eb9dba11 SHA256 b803e56979a23c501794dd1ab02c10bc1cecc4ab7531cb5bd2f75a4691260877
+AUX mdcrack-1.2-remove-interactive-test.diff 6871 RMD160 05818cc5a0b8564a57b79b7e8d139391a84d01ba SHA1 0ec3ea53bbeb3886b5e2340156a14678c6a8eec4 SHA256 afdc52e2d5174f81e21cca483702ae41102877f72313374c593f0d9642fbbcf9
DIST mdcrack-1.2.tar.gz 60261 RMD160 6d149decf7f97658838527be70fdcd263a18c5b1 SHA1 18f1f2cc3425858463b24fe08074b6dc2f612d17 SHA256 b68dec25170f177c70264c5a2863a70c28011f669db56a8825ae4ca28b1f5825
-EBUILD mdcrack-1.2.ebuild 960 RMD160 68cef9001aea688ae0bf2cd61f3e0c86d1c440e4 SHA1 f4ed62c298c8fb4d1f939d1a294ba6cec5f07c46 SHA256 8fa2e60fd86a9589835db90ad90492f2b534f64b2f9b2be1052752d18065ae68
-MISC ChangeLog 935 RMD160 086b5f6466dcd15503bf4d295e61e7f3a7ac6bd7 SHA1 4f3bc09f791ba4e739a8373d96790808354a1862 SHA256 297228c0c44abb4913fc0d8366a3749e02cdebb78de8dc47c42e1db4633e4a30
+EBUILD mdcrack-1.2.ebuild 1304 RMD160 e3eb5eee1bb819ebc32bd79258dd2b3637cee976 SHA1 9c5cb4f2ad9f02a11945a42d4ccb42a819a0b701 SHA256 66f1cfc513c1d97127f2f5465200ae66a4a873de6b5c8d15ea5c4c98843ab3a0
+MISC ChangeLog 1193 RMD160 51cff27a8dd01d8bda8da6ac23dce47ed61bca4f SHA1 a3efe63b83ce393c25f9df8636dcfcc9c2c9e79d SHA256 f7f51427d0761142209c8b346a6b12e96df2898de27ed3c8626b30fac1eb46ad
MISC metadata.xml 159 RMD160 7f0018281c6308f73c2d95b3690e3804f0c353c5 SHA1 09baadee9aeb270d0a7f31be07db9db5c105abbc SHA256 fabd15e2740a2a68e0bda738d0cd4300b133ff11239802afe7e60aa3862c9c03
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
+Version: GnuPG v2.0.16 (GNU/Linux)
-iEYEARECAAYFAkmRqCwACgkQKhnDs22gwa8PFACePmSgL0PntYmeLYAI0EpnDQJr
-zPsAoKxjCHStYXSLK40qsMpJCGmwL+zJ
-=OJpr
+iQIcBAEBAgAGBQJNE0LsAAoJEEsurZwMLhUxu30P/09cV5tK60AtnFBhxN5stA1e
+NfA6BoECSeginWKDImpqMf99MbozOAOaWWYiD87PhtjF0uRQGVnz1wzcFBpbUWNQ
+sanI+kIgUP5VuS7Bo12S9Kigzc7e3nVAeo/we2Add+BPt6ykfsovqdsiK2DdLxAr
+kF3ECIzPvyQ1bKHwQUIDm7tCp7H4gbxBtlmY2Zrak3yS2IJ3SoAWNiNN9lnTpSW4
+l59WijdxzDUO+lKujNjn62lzsGojOxy8kF9ZvsHJj2eAK/PrjxF0rj3ZTu4E0pcD
+e9bg7t4al6k7ePO/dBbo95LzamPak+H9keQto+jqpbnAwhk+8uh/bsQQrx88sxa0
+FC9PrasLslA0W4ZwAOxyQbZXKzH4UxoR1qM9XHiCnWGACZEsZEvtoRjlDnYkBwLX
+kesw8i4m5GJu4Qw1/QRuG1RaFNAgsPWpYpP8D9Lx7KfApN89m/41ADK5Ud7NIz1G
+9t+2kp1J2OhIXeNeqCMWGguBXN2QtI+ESJnqPs/L4sMNPmR9vkb3EXaSY2f4GQb2
+GjMV4Nze5t6msyiqsMW0QyleHBZo04ef2P1foaWh00GZBXmqCRgct3jThWrbIuJB
+XqT+0dHSXJSFbIR6uV4lx29eAKF/DkCS2DUJikyx9vq6CgEF8UiqqwjfOwZQzWHx
+sqgxP0YaUotVTZeO+fo/
+=tEWP
-----END PGP SIGNATURE-----
diff --git a/app-crypt/mdcrack/files/mdcrack-1.2-remove-interactive-test.diff b/app-crypt/mdcrack/files/mdcrack-1.2-remove-interactive-test.diff
new file mode 100644
index 000000000000..5208bc4b3cae
--- /dev/null
+++ b/app-crypt/mdcrack/files/mdcrack-1.2-remove-interactive-test.diff
@@ -0,0 +1,120 @@
+--- Makefile 2010-06-28 22:19:55.000000000 -0400
++++ myMakefile 2010-06-28 22:20:03.000000000 -0400
+@@ -47,7 +47,6 @@
+ BLOCK=-DBLOCKSIZE=50
+
+ #full optimization
+-CFLAGS = -O3 -fforce-addr -funroll-loops -fomit-frame-pointer -ffast-math
+
+
+
+@@ -203,8 +202,8 @@
+ @echo
+ @echo "Core 1 (password <= 12) : Cracking \"hack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -s abcdefghijklmnopqrstuvwxyz0123456789 d78b6f30225cdc811adfe8d4e7c9fd34
+- bin/mdcrack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 c1f9e5db622135eaca09665555b308da
++ `echo 1 | bin/mdcrack -s abcdefghijklmnopqrstuvwxyz0123456789 d78b6f30225cdc811adfe8d4e7c9fd34 > out1`
++ `echo 1 | bin/mdcrack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 c1f9e5db622135eaca09665555b308da > out2`
+ @echo
+ @echo "ok."
+ @echo
+@@ -213,8 +212,8 @@
+ @echo
+ @echo "Core 1 with ending string (password <= 12) : Cracking \"bbbhack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -e ack -s abcdefghijklmnopqrstuvwxyz0123456789 afd3256209cb976c40495ea15548faca
+- bin/mdcrack -e ack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 0b3128de2dd2d37ea87cc4eaedde68e1
++ `echo 1 | bin/mdcrack -e ack -s abcdefghijklmnopqrstuvwxyz0123456789 afd3256209cb976c40495ea15548faca > out3`
++ `echo 1 | bin/mdcrack -e ack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 0b3128de2dd2d37ea87cc4eaedde68e1 > out4`
+ @echo
+ @echo "ok."
+ @echo
+@@ -224,8 +223,8 @@
+ @echo
+ @echo "Core 2 with ending string (password <= 28) : Cracking \"bbbbbbbbbbbbbbbhack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -e bbbbbbbbbbhack -s abcdefghijklmnopqrstuvwxyz0123456789 a22fcc8c0fbd42bc44c956ee64a93ef6
+- bin/mdcrack -e bbbbbbbbbbhack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 18acb3389f68c92df3d0cd713ef3ab84
++ `echo 1 | bin/mdcrack -e bbbbbbbbbbhack -s abcdefghijklmnopqrstuvwxyz0123456789 a22fcc8c0fbd42bc44c956ee64a93ef6 > out5`
++ `echo 1 | bin/mdcrack -e bbbbbbbbbbhack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 18acb3389f68c92df3d0cd713ef3ab84 > out6`
+ @echo
+ @echo "ok."
+ @echo
+@@ -236,8 +235,8 @@
+ @echo
+ @echo "Core 3 with ending string (password <= 56) : Cracking \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbhack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -e bbbbbbbbbbbbbbbbbbbbbbbhack -s abcdefghijklmnopqrstuvwxyz0123456789 e9a2926c5540d4a853f463e3fbc4aba7
+- bin/mdcrack -e bbbbbbbbbbbbbbbbbbbbbbbhack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 f85cb507b9f0fb1f181854394892610a
++ `echo 1 | bin/mdcrack -e bbbbbbbbbbbbbbbbbbbbbbbhack -s abcdefghijklmnopqrstuvwxyz0123456789 e9a2926c5540d4a853f463e3fbc4aba7 > out7`
++ `echo 1 | bin/mdcrack -e bbbbbbbbbbbbbbbbbbbbbbbhack -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 f85cb507b9f0fb1f181854394892610a > out8`
+ @echo
+ @echo "ok."
+ @echo
+@@ -247,8 +246,8 @@
+ @echo
+ @echo "Core 1 with beginning string (password <= 12) : Cracking \"aaahack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -b aaa -s abcdefghijklmnopqrstuvwxyz0123456789 16522beac358f4f75eafdda40180ff79
+- bin/mdcrack -b aaa -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 3a0d395696a13d7633de725746f7c164
++ `echo 1 | bin/mdcrack -b aaa -s abcdefghijklmnopqrstuvwxyz0123456789 16522beac358f4f75eafdda40180ff79 > out9`
++ `echo 1 | bin/mdcrack -b aaa -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 3a0d395696a13d7633de725746f7c164 > out10`
+ @echo
+ @echo "ok."
+ @echo
+@@ -258,8 +257,8 @@
+ @echo
+ @echo "Core 1 with beginning/ending string (password <= 12) : Cracking \"aaahack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -b aa -e k -s abcdefghijklmnopqrstuvwxyz0123456789 16522beac358f4f75eafdda40180ff79
+- bin/mdcrack -b aa -M MD4 -e k -s abcdefghijklmnopqrstuvwxyz0123456789 3a0d395696a13d7633de725746f7c164
++ `echo 1 | bin/mdcrack -b aa -e k -s abcdefghijklmnopqrstuvwxyz0123456789 16522beac358f4f75eafdda40180ff79 > out11`
++ `echo 1 | bin/mdcrack -b aa -M MD4 -e k -s abcdefghijklmnopqrstuvwxyz0123456789 3a0d395696a13d7633de725746f7c164 > out12`
+ @echo
+ @echo "ok."
+ @echo
+@@ -269,8 +268,8 @@
+ @echo
+ @echo "Core 2 with beginning string (password <= 28) : Cracking \"aaaaaaaaaaaaaaahack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -b aaaaaaaaaaaaaaa -s abcdefghijklmnopqrstuvwxyz0123456789 707d4f8220ed0b6980cf74c190e95186
+- bin/mdcrack -b aaaaaaaaaaaaaaa -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 ea5544cae8ac6fdfdc69a1fab32da03d
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaaa -s abcdefghijklmnopqrstuvwxyz0123456789 707d4f8220ed0b6980cf74c190e95186 > out13`
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaaa -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 ea5544cae8ac6fdfdc69a1fab32da03d > out14`
+ @echo
+ @echo "ok."
+ @echo
+@@ -280,8 +279,8 @@
+ @echo
+ @echo "Core 2 with beginning/ending string (password <= 28) : Cracking \"aaaaaaaaaaaaaaahack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -b aaaaaaaaaaaaaa -e k -s abcdefghijklmnopqrstuvwxyz0123456789 707d4f8220ed0b6980cf74c190e95186
+- bin/mdcrack -b aaaaaaaaaaaaaa -M MD4 -e k -s abcdefghijklmnopqrstuvwxyz0123456789 ea5544cae8ac6fdfdc69a1fab32da03d
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaa -e k -s abcdefghijklmnopqrstuvwxyz0123456789 707d4f8220ed0b6980cf74c190e95186 > out15`
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaa -M MD4 -e k -s abcdefghijklmnopqrstuvwxyz0123456789 ea5544cae8ac6fdfdc69a1fab32da03d > out16`
+ @echo
+ @echo "ok."
+ @echo
+@@ -292,8 +291,8 @@
+ @echo
+ @echo "Core 3 with beginning string (password <= 56) : Cracking \"aaaaaaaaaaaaaaaaaaaaaaaaaaaahack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaaa -s abcdefghijklmnopqrstuvwxyz0123456789 6067f9a5081e0abadf5e01315f3dad17
+- bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaaa -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 c486a682f42e083e298677a4af6f62be
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaaa -s abcdefghijklmnopqrstuvwxyz0123456789 6067f9a5081e0abadf5e01315f3dad17 > out17`
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaaa -M MD4 -s abcdefghijklmnopqrstuvwxyz0123456789 c486a682f42e083e298677a4af6f62be > out18`
+ @echo
+ @echo "ok."
+ @echo
+@@ -303,8 +302,8 @@
+ @echo
+ @echo "Core 3 with beginning/ending string (password <= 56) : Cracking \"aaaaaaaaaaaaaaaaaaaaaaaaaaaahack\" string with [a-z0-9] charset."
+ @echo
+- bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaa -e k -s abcdefghijklmnopqrstuvwxyz0123456789 6067f9a5081e0abadf5e01315f3dad17
+- bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaa -M MD4 -e k -s abcdefghijklmnopqrstuvwxyz0123456789 c486a682f42e083e298677a4af6f62be
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaa -e k -s abcdefghijklmnopqrstuvwxyz0123456789 6067f9a5081e0abadf5e01315f3dad17 > out19`
++ `echo 1 | bin/mdcrack -b aaaaaaaaaaaaaaaaaaaaaaaaaaa -M MD4 -e k -s abcdefghijklmnopqrstuvwxyz0123456789 c486a682f42e083e298677a4af6f62be > out20`
+ @echo
+ @echo "ok."
+ @echo
diff --git a/app-crypt/mdcrack/mdcrack-1.2.ebuild b/app-crypt/mdcrack/mdcrack-1.2.ebuild
index d7dda2302fc4..dbb7fdce12ac 100644
--- a/app-crypt/mdcrack/mdcrack-1.2.ebuild
+++ b/app-crypt/mdcrack/mdcrack-1.2.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/mdcrack/mdcrack-1.2.ebuild,v 1.4 2009/02/10 16:15:32 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/mdcrack/mdcrack-1.2.ebuild,v 1.5 2010/12/23 12:40:05 c1pher Exp $
+
+EAPI="2"
inherit eutils toolchain-funcs
@@ -13,28 +15,43 @@ LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE="ncurses"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}"/${P}-gcc4.diff \
- "${FILESDIR}"/${P}-asneeded.patch
-}
+ "${FILESDIR}"/${P}-asneeded.patch \
+ "${FILESDIR}"/${P}-remove-interactive-test.diff
-src_compile() {
use ncurses || \
sed -i -e 's/^NCURSES/#NCURSES/g' \
-e 's/^LIBS/#LIBS/g' Makefile
- sed -i -e "/^CFLAGS/d" Makefile
+ sed -i -e '/^CFLAGS/d' \
+ -e 's|make bin/mdcrack|$(MAKE) bin/mdcrack|g' \
+ -e 's|make core|$(MAKE) core|g' Makefile
+}
- #endian
+src_compile() {
emake CC="$(tc-getCC)" little || die "emake failed"
}
src_test() {
+ local failure=false
+
make CC="$(tc-getCC)" fulltest || die "self test failed"
+
+ for i in {1..20}; do
+ if grep "Collision found" out$i ; then
+ elog "Test $i: Passed"
+ else
+ elog "Test $i: Failed"
+ failure=true
+ fi
+ done
+
+ if $failure; then
+ die "Some tests failed"
+ fi
}
src_install() {
dobin bin/mdcrack || die "dobin failed"
- dodoc BENCHMARKS CREDITS FAQ README TODO VERSIONS WWW
+ dodoc BENCHMARKS CREDITS FAQ README TODO VERSIONS WWW || die
}