blob: 9571626f4a2202bfc1372af7b4cb87e12449d1b2 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:
inherit eutils
DESCRIPTION="Provides an API for reading and analysing raw flow files"
HOMEPAGE="http://www.columbia.edu/acis/networks/advanced/CUFlow/CUFlow.html"
SRC_URI="http://www.columbia.edu/acis/networks/advanced/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="dev-lang/perl
net-analyzer/FlowScan
net-www/apache"
DEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i "s%my \$rrddir = \"/cflow/reports/rrds\";%my \$rrddir = \"/var/lib/flows/rrds\";%" CUGrapher.pl \
|| die "sed failed"
}
src_install() {
insinto /var/lib/flows/bin
doins ${FILESDIR}/CUFlow.cf
exeinto /var/lib/flows/bin
doexe CUFlow.pm
exeinto /var/www/localhost/cgi-bin
doexe CUGrapher.pl
ewarn "CUGrapher.pl has been placed in /var/www/localhost/cgi-bin"
ewarn "If this is not where your cgi-bin directory is then you must"
ewarn "move it manually"
dodoc COPYING README.txt
}
pkg_postinst() {
chown flows:flows /var/lib/flows/bin/CUFlow.pm
chown flows:flows /var/lib/flows/bin/CUFlow.cf
einfo
einfo "Edit /var/lib/flows/bin/CUFlow.cf for your site"
einfo "You will need to add the following line to flowscan.cf:"
einfo " ReportClasses CUFlow"
einfo "You must also comment out any other lines that contain"
einfo "ReportClasses."
einfo
}
|