/[gentoo-x86]/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild
Gentoo

Contents of /net-analyzer/traffic-vis/traffic-vis-0.35.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Thu Sep 6 18:48:50 2007 UTC (7 years ago) by jokey
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
Cleanup
(Portage version: 2.1.3.7)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/traffic-vis/traffic-vis-0.35.ebuild,v 1.13 2007/04/22 10:24:42 pva Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Generate traffic stats in html, ps, text and gif format"
8 HOMEPAGE="http://www.mindrot.org/traffic-vis.html"
9 SRC_URI="http://www.mindrot.org/files/${P}.tar.gz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc x86"
14
15 IUSE="gif"
16 DEPEND="virtual/libc
17 net-libs/libpcap
18 gif? ( media-libs/netpbm
19 virtual/ghostscript
20 dev-lang/perl )
21 =dev-libs/glib-1.2*"
22
23 src_unpack() {
24 unpack ${A} ; cd ${S}
25
26 epatch "${FILESDIR}"/${P}-gentoo.patch
27 epatch "${FILESDIR}"/${P}-libpcap-header-fix.patch
28 }
29
30 src_compile() {
31 make || die "make failed"
32 }
33
34 src_install() {
35 dosbin collector/traffic-collector
36 doman collector/traffic-collector.8
37
38 for mybin in $(useq gif && echo frontends/traffic-togif) \
39 frontends/traffic-tohtml \
40 frontends/traffic-tops \
41 frontends/traffic-totext \
42 sort/traffic-sort \
43 utils/traffic-exclude \
44 utils/traffic-resolve ; do
45
46 dobin ${mybin}
47 doman ${mybin}.8
48 done
49
50 newinitd "${FILESDIR}"/traffic-vis.init.d traffic-vis
51 newconfd "${FILESDIR}"/traffic-vis.conf.d traffic-vis
52
53 dodoc TODO README COPYING BUGS CHANGELOG
54 }

  ViewVC Help
Powered by ViewVC 1.1.20