# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/hydra/hydra-4.4.ebuild,v 1.1 2004/12/18 13:34:14 eldad Exp $ DESCRIPTION="Advanced parallized login hacker" HOMEPAGE="http://www.thc.org/" SRC_URI="http://www.foofus.net/jmk/tools/${P}.tar.gz" LICENSE="HYDRA GPL-2" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="ssl" DEPEND=" ssl? ( dev-libs/openssl net-libs/libssh )" S=${WORKDIR}/${P} src_unpack() { unpack ${A} cd ${S} sed -i "s:-O2:${CFLAGS}:" Makefile.am } src_compile() { # has it's own stupid custom configure script ./configure --prefix=/usr || die "configure failed" sed -i \ -e '/^XDEFINES=/s:=.*:=:' \ -e '/^XLIBS=/s:=.*:=:' \ -e '/^XLIBPATHS/s:=.*:=:' \ -e '/^XIPATHS=/s:=.*:=:' \ Makefile || die "pruning vars" if use ssl ; then sed -i \ -e '/^XDEFINES=/s:=:=-DLIBOPENSSL -DLIBSSH:' \ -e '/^XLIBS=/s:=:=-lcrypto -lssl -lssh:' \ Makefile || die "adding ssl" fi emake || die "make failed" } src_install() { dobin hydra || die "dobin failed" dodoc CHANGES README TODO }