blob: 855c3a7afcbe4e7aa9e70cfe28da40862a30a097 [file] [log] [blame]
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/argus/argus-2.0.5.ebuild,v 1.17 2009/09/23 18:17:00 patrick Exp $
inherit eutils
DESCRIPTION="network Audit Record Generation and Utilization System"
HOMEPAGE="http://www.qosient.com/argus/"
SRC_URI="ftp://ftp.qosient.com/pub/argus/src/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
RDEPEND="net-libs/libpcap"
DEPEND="${RDEPEND}
>=sys-devel/bison-1.28
>=sys-devel/flex-2.4.6"
src_unpack() {
unpack ${A} ; cd "${S}"
epatch "${FILESDIR}"/${P}-libpcap-include.patch
# Fix hardcoded config file
epatch "${FILESDIR}"/${PF}-gentoo.diff
}
src_install () {
dodoc CREDITS README doc/{FAQ,HOW-TO,CHANGES}
#do not install man/man1/tcpdump.1, file collision
doman man/man1/ra* man/man5/* man/man8/*
dolib lib/argus_common.a lib/argus_parse.a
dobin bin/ra*
[[ ${CHOST} == *-darwin* ]] && newsbin bin/argus_bpf argus || newsbin bin/argus_linux argus
insinto /etc/argus
doins support/Config/argus.conf
}