# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="ncurses" DESCRIPTION="A MD4/MD5/NTML hashes bruteforcer." HOMEPAGE="http://mdcrack.df.ru/" SRC_URI="http://mdcrack.df.ru/download/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 " DEPEND="virtual/glibc" src_compile() { use ncurses || sed -i 's/^NCURSES/#NCURSES/g' Makefile use ncurses || sed -i 's/^LDFLAGS/#LDFLAGS/g' Makefile sed -i "s,^\(CFLAGS =\).*,\1 ${CFLAGS},g" Makefile emake little || die "emake failed" } src_install() { dosbin bin/mdcrack dodoc BENCHMARKS CREDITS FAQ README TODO VERSIONS WWW }