/[gentoo-x86]/app-crypt/mdcrack/mdcrack-1.2.ebuild
Gentoo

Contents of /app-crypt/mdcrack/mdcrack-1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 10 02:27:00 2014 UTC (5 years, 3 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Fix description for more repoman happy

(Portage version: 2.2.11-r1/cvs/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-crypt/mdcrack/mdcrack-1.2.ebuild,v 1.5 2010/12/23 12:40:05 c1pher Exp $
4
5 EAPI="2"
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="A MD4/MD5/NTML hashes bruteforcer"
10 HOMEPAGE="http://mdcrack.df.ru/"
11 SRC_URI="http://mdcrack.df.ru/download/${P}.tar.gz"
12
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="ncurses"
17
18 src_prepare() {
19 epatch "${FILESDIR}"/${P}-gcc4.diff \
20 "${FILESDIR}"/${P}-asneeded.patch \
21 "${FILESDIR}"/${P}-remove-interactive-test.diff
22
23 use ncurses || \
24 sed -i -e 's/^NCURSES/#NCURSES/g' \
25 -e 's/^LIBS/#LIBS/g' Makefile
26 sed -i -e '/^CFLAGS/d' \
27 -e 's|make bin/mdcrack|$(MAKE) bin/mdcrack|g' \
28 -e 's|make core|$(MAKE) core|g' Makefile
29 }
30
31 src_compile() {
32 emake CC="$(tc-getCC)" little || die "emake failed"
33 }
34
35 src_test() {
36 local failure=false
37
38 make CC="$(tc-getCC)" fulltest || die "self test failed"
39
40 for i in {1..20}; do
41 if grep "Collision found" out$i ; then
42 elog "Test $i: Passed"
43 else
44 elog "Test $i: Failed"
45 failure=true
46 fi
47 done
48
49 if $failure; then
50 die "Some tests failed"
51 fi
52 }
53
54 src_install() {
55 dobin bin/mdcrack || die "dobin failed"
56 dodoc BENCHMARKS CREDITS FAQ README TODO VERSIONS WWW || die
57 }

  ViewVC Help
Powered by ViewVC 1.1.20