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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Dec 7 07:52:33 2011 UTC (3 years, 7 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2011 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-r1.ebuild,v 1.6 2011/07/08 11:09:11 ssuominen 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="net-libs/libpcap
17 gif? ( media-libs/netpbm
18 app-text/ghostscript-gpl
19 dev-lang/perl )
20 =dev-libs/glib-1.2*"
21
22 src_unpack() {
23 unpack ${A} ; cd "${S}"
24
25 epatch "${FILESDIR}"/${P}-gentoo.patch
26 epatch "${FILESDIR}"/${P}-libpcap-header-fix.patch
27 # bug 143930 - traffic-vis expects /usr/sbin/traffic-tops
28 sed -i -e "s:/usr/sbin/traffic-tops:/usr/bin/traffic-tops:g" \
29 "${S}"/frontends/traffic-togif
30 }
31
32 src_compile() {
33 make || die "make failed"
34 }
35
36 src_install() {
37 dosbin collector/traffic-collector
38 doman collector/traffic-collector.8
39
40 for mybin in $(use gif && echo frontends/traffic-togif) \
41 frontends/traffic-tohtml \
42 frontends/traffic-tops \
43 frontends/traffic-totext \
44 sort/traffic-sort \
45 utils/traffic-exclude \
46 utils/traffic-resolve ; do
47
48 dobin ${mybin}
49 doman ${mybin}.8
50 done
51
52 newinitd "${FILESDIR}"/traffic-vis.init.d traffic-vis
53 newconfd "${FILESDIR}"/traffic-vis.conf.d traffic-vis
54
55 dodoc TODO README BUGS CHANGELOG
56 }

  ViewVC Help
Powered by ViewVC 1.1.20