diff options
Diffstat (limited to 'dev-perl/CUFlow/CUFlow-1.5.ebuild')
-rw-r--r-- | dev-perl/CUFlow/CUFlow-1.5.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-perl/CUFlow/CUFlow-1.5.ebuild b/dev-perl/CUFlow/CUFlow-1.5.ebuild new file mode 100644 index 000000000000..9571626f4a22 --- /dev/null +++ b/dev-perl/CUFlow/CUFlow-1.5.ebuild @@ -0,0 +1,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 +} |