# $Id: Portfile 37069 2008-05-25 09:08:21Z mww@macports.org $

PortSystem 1.0

name			unhash
version			1.0
categories		security
platforms		darwin
maintainers		mww
description		brute force attack against MD5 or SHA1 hashes
long_description	UnHash is a program that tries a brute force attack \
			against a given hash. The hash can be MD5 or SHA1, and \
			the program will auto-detect which one is given.

homepage		http://www.geocities.com/dxp2532/
master_sites		${homepage}
extract.suffix		.tgz
checksums		sha1 7227428bb3ab42b3fed3f284cf7a94482ba372ac

depends_lib		port:openssl

use_configure		no

build.type		gnu
build.args		CFLAGS="-I${prefix}/include" LIBS="-L${prefix}/lib -lssl -lcrypto"

destroot {
	xinstall -m 755 -s ${worksrcpath}/unhash ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}-${version}
	xinstall -m 444 -W ${worksrcpath} AUTHOR CHANGES COPYING INSTALL README TODO ${destroot}${prefix}/share/doc/${name}-${version}
}

