# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 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}"/${PN}-2.0.6-libpcap-include.patch # Fix hardcoded config file epatch "${FILESDIR}"/${PN}-3.0.2-gentoo.patch } src_install () { dodoc ChangeLog doc/README #do not install man/man1/tcpdump.1, file collision doman man/man5/* man/man8/* dolib lib/argus_common.a || die "dolib failed" newsbin bin/argus argus || die "newsbin failed" insinto /etc/argus doins support/Config/argus.conf newinitd "${FILESDIR}"/argus-3.0.2.initd argus } pkg_postinst() { elog "Please note that argus-clients has been split up from this" elog "package by upstream as of 2.0.6. If you want it, please emerge" elog "net-analyzer/argus-clients." elog "Also, you might want to edit /etc/argus/argus.conf before" elog "running argus." }