diff options
Diffstat (limited to 'app-crypt/johntheripper/johntheripper-1.6.38.ebuild')
-rw-r--r-- | app-crypt/johntheripper/johntheripper-1.6.38.ebuild | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/app-crypt/johntheripper/johntheripper-1.6.38.ebuild b/app-crypt/johntheripper/johntheripper-1.6.38.ebuild new file mode 100644 index 000000000000..92bbd2debc14 --- /dev/null +++ b/app-crypt/johntheripper/johntheripper-1.6.38.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/johntheripper/johntheripper-1.6.38.ebuild,v 1.1 2005/08/23 14:04:28 dragonheart Exp $ + +inherit eutils flag-o-matic toolchain-funcs + +MY_PBASE=${P/theripper/} +S=${WORKDIR}/${MY_PBASE} +DESCRIPTION="fast password cracker" +HOMEPAGE="http://www.openwall.com/john/" +SRC_URI="http://www.openwall.com/john/b/${MY_PBASE}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64 ~ppc64 ~mips ~hppa" +IUSE="mmx" + +RDEPEND="virtual/libc" + +DEPEND="${RDEPEND}" + + +src_compile() { + cd src + # Note this program uses AS and LD incorrectly + OPTIONS="CPP=$(tc-getCXX) CC=$(tc-getCC) AS=$(tc-getCC) LD=$(tc-getCC)" + + if use x86 ; then + if use mmx ; then + emake ${OPTIONS} linux-x86-mmx-elf || die "Make failed" + elif is-flag "-march=k6-3" || is-flag "-march=k6-2" \ + || is-flag "-march=k6"; then + emake ${OPTIONS} linux-x86-k6-elf || die "Make failed" + else + emake ${OPTIONS} linux-x86-any-elf || die "Make failed" + fi + elif use alpha ; then + emake ${OPTIONS} linux-alpha || die "Make failed" + elif use sparc; then + emake ${OPTIONS} linux-sparc || die "Make failed" + elif use ppc; then + emake ${OPTIONS} linux-ppc || die "Make failed" + elif use amd64; then + if use mmx; then + emake ${OPTIONS} linux-x86-64-mmx || die "Make failed" + else + emake ${OPTIONS} linux-x86-64 || die "Make failed" + fi + elif use ppc-macos; then + emake ${OPTIONS} macosx-ppc-altivec-cc || die "Make failed" + #emake ${OPTIONS} macosx-ppc-cc || die "Make failed" + else + emake ${OPTIONS} generic || die "Make failed" + fi + + # currently broken + #emake bench || die "make failed" +} + + +#src_test() { +# cd run +# mkdir etc +# mkdir lib +# ln john.conf etc +# cp ${ROOT}/lib/libc.so.? /lib/ld-linux.so.? lib +# chroot . john --test +#} + +src_install() { + # config files + insinto /etc/john + doins run/john.conf + + # executables + dosbin run/john + newsbin run/mailer john-mailer + + dosym john /usr/sbin/unafs + dosym john /usr/sbin/unique + dosym john /usr/sbin/unshadow + + # for EGG only + dosym john /usr/sbin/undrop + + #newsbin src/bench john-bench + + # documentation + dodoc doc/* +} |