blob: 1d64e3266ec57f1998a4894c14c1886339f48e3d (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/darkstat/darkstat-2.6-r1.ebuild,v 1.9 2006/02/25 23:46:38 vanquirius Exp $
inherit eutils
DESCRIPTION="darkstat is a network traffic analyzer"
HOMEPAGE="http://dmr.ath.cx/net/darkstat/"
SRC_URI="http://dmr.ath.cx/net/darkstat/${P}.tar.gz"
KEYWORDS="x86 ~ppc ppc-macos ~amd64"
IUSE="nls"
LICENSE="GPL-2"
SLOT="0"
DEPEND="net-libs/libpcap
nls? ( sys-devel/gettext )"
RDEPEND="nls? ( virtual/libintl )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/ipcheck.patch
}
src_compile() {
use nls && myconf="`use_with nls`"
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
${myconf} || die "./configure failed"
emake || die
}
src_install() {
make DESTDIR="${D}" install || die
dodir /var/spool/darkstat
dodoc ABOUT-NLS AUTHORS ChangeLog ISSUES NEWS README TODO
newinitd "${FILESDIR}"/darkstat-init darkstat
newconfd "${FILESDIR}"/darkstat-confd darkstat
}
|