summaryrefslogtreecommitdiff
blob: 80061869c549d75f12efa720c8c40a4e3d71498b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/argus/argus-2.0.6.ebuild,v 1.4 2008/01/16 18:57:38 grobian 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="virtual/libc
	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}-2.0.5-gentoo.diff
}

src_install () {
	dodoc ChangeLog CREDITS README doc/{FAQ,HOW-TO,CHANGES}

	#do not install man/man1/tcpdump.1, file collision
	doman man/man5/* man/man8/*

	dolib lib/argus_common.a lib/argus_parse.a

	[[ ${CHOST} == *-darwin* ]] && newsbin bin/argus_bpf argus || newsbin bin/argus_linux argus

	insinto /etc/argus
	doins support/Config/argus.conf

	newinitd "${FILESDIR}"/argus.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."
}