# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-analyzer/authforce/authforce-0.9.6.ebuild,v 1.1 2004/04/23 10:51:42 stuart Exp $

DESCRIPTION="An HTTP authentication brute forcer"
HOMEPAGE="http://kapheine.hypa.net/authforce/"
SRC_URI="http://kapheine.hypa.net/authforce/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="nls"
DEPEND="virtual/glibc"

src_compile() {
	econf \
		`use_enable nls` \
		--with-path=/usr/share/${PN}:. || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	dobin src/authforce
	dodoc AUTHORS BUGS INSTALL NEWS README THANKS TODO authforcerc.sample
	doman doc/authforce.1.gz
	doinfo doc/authforce.info
	insinto /usr/share/${PN}
	doins data/*.lst
}