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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Dec 14 05:18:07 2013 UTC (9 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
net-analyzer/traffic-vis is gone

1 # Copyright 1999-2012 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-r2.ebuild,v 1.6 2012/11/21 04:38:10 jer Exp $
4
5 EAPI="2"
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="Generate traffic stats in html, ps, text and gif format"
10 HOMEPAGE="http://www.mindrot.org/traffic-vis.html"
11 SRC_URI="http://www.mindrot.org/files/${P}.tar.gz"
12
13 LICENSE="BSD GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86"
16
17 IUSE="gif"
18 DEPEND="net-libs/libpcap
19 gif? ( media-libs/netpbm
20 app-text/ghostscript-gpl
21 dev-lang/perl )
22 =dev-libs/glib-1.2*"
23
24 RDEPEND="${DEPEND}"
25
26 src_prepare() {
27 epatch "${FILESDIR}"/${P}-gentoo.patch
28 epatch "${FILESDIR}"/${P}-libpcap-header-fix.patch
29
30 # bug 143930 - traffic-vis expects /usr/sbin/traffic-tops
31 sed -i frontends/traffic-togif \
32 -e "s:/usr/sbin/traffic-tops:/usr/bin/traffic-tops:g" \
33 || die "sed frontends/traffic-togif"
34 # drop DEBUG flags
35 sed -i -e "/^DEBUGFLAGS/d" Makefile || die
36 tc-export CC
37 }
38
39 src_install() {
40 dosbin collector/traffic-collector || die
41 doman collector/traffic-collector.8 || die
42
43 for mybin in $(use gif && echo frontends/traffic-togif) \
44 frontends/traffic-tohtml \
45 frontends/traffic-tops \
46 frontends/traffic-totext \
47 sort/traffic-sort \
48 utils/traffic-exclude \
49 utils/traffic-resolve ; do
50
51 dobin ${mybin} || die
52 doman ${mybin}.8 || die
53 done
54
55 newinitd "${FILESDIR}"/traffic-vis.init.d traffic-vis || die
56 newconfd "${FILESDIR}"/traffic-vis.conf.d traffic-vis || die
57
58 dodoc TODO README BUGS CHANGELOG || die
59 }

  ViewVC Help
Powered by ViewVC 1.1.20