# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A distributed password cracker package." HOMEPAGE="http://btb.banquise.net/" SRC_URI="http://btb.banquise.net/bin/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~sparc" IUSE="debug sse2" DEPEND="dev-libs/libevent" src_unpack() { unpack ${A} } src_compile() { econf \ $(use_enable debug) \ $(use_enable sse2) \ || die "econfigure failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "install failed" dodoc ChangeLog } pkg_postinst() { if use sse2; then ewarn ewarn "If it segfaults, try again with: USE="-sse2"" ewarn fi einfo einfo "bob_server :" einfo "Just run : bob_server -k SECRET_KEY" einfo einfo "bob_admin :" einfo "Use it to add jobs and check status. For now only" einfo "the following commands work:" einfo " * newjob : add a new job" einfo " * status : gives general status" einfo " * jobinf : give detailled status" einfo einfo "Don't forget to use the -k switch for PSK." einfo einfo "bob_client :" einfo "Put this one on as many computers as possible," einfo "and just run : bob_client -d -k SECRET_KEY server_host_name" einfo }