summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-02-26 17:40:33 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-02-26 17:40:33 +0000
commit0e1ec9fec19a20a61b0329d08333cd01b502f811 (patch)
tree974a3964d2502a3d64b2b8a48d7e2421c6dba68d /net-analyzer/FlowScan
parentpunt since there is no matching rrdtool left in tree (diff)
downloadhistorical-0e1ec9fec19a20a61b0329d08333cd01b502f811.tar.gz
historical-0e1ec9fec19a20a61b0329d08333cd01b502f811.tar.bz2
historical-0e1ec9fec19a20a61b0329d08333cd01b502f811.zip
punt since there is no matching rrdtool left in tree
Diffstat (limited to 'net-analyzer/FlowScan')
-rw-r--r--net-analyzer/FlowScan/ChangeLog61
-rw-r--r--net-analyzer/FlowScan/FlowScan-1.006-r3.ebuild65
-rw-r--r--net-analyzer/FlowScan/Manifest26
-rw-r--r--net-analyzer/FlowScan/files/FlowScan.pm336
-rwxr-xr-xnet-analyzer/FlowScan/files/flowscan.init20
-rw-r--r--net-analyzer/FlowScan/metadata.xml5
6 files changed, 0 insertions, 513 deletions
diff --git a/net-analyzer/FlowScan/ChangeLog b/net-analyzer/FlowScan/ChangeLog
deleted file mode 100644
index 81696effbbc2..000000000000
--- a/net-analyzer/FlowScan/ChangeLog
+++ /dev/null
@@ -1,61 +0,0 @@
-# ChangeLog for net-analyzer/FlowScan
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/FlowScan/ChangeLog,v 1.14 2012/02/10 22:39:38 hwoarang Exp $
-
- 10 Feb 2012; Markos Chandras <hwoarang@gentoo.org> FlowScan-1.006-r3.ebuild:
- drop app-shells/ksh from DEPEND
-
- 16 Aug 2008; Torsten Veller <tove@gentoo.org> metadata.xml:
- Remove strerror from metadata.xml (#89719)
-
-*FlowScan-1.006-r3 (15 Aug 2007)
-
- 15 Aug 2007; Markus Ullmann <jokey@gentoo.org> files/flowscan.init,
- -FlowScan-1.006-r2.ebuild, +FlowScan-1.006-r3.ebuild:
- Fix minor bug in init script wrt bug #186700
-
- 02 Jun 2007; Markus Ullmann <jokey@gentoo.org> FlowScan-1.006-r2.ebuild:
- Stable on x86
-
- 14 Apr 2007; Marcelo Goes <vanquirius@gentoo.org>
- FlowScan-1.006-r2.ebuild:
- Use elog instead of einfo.
-
- 01 Feb 2007; Markus Ullmann <jokey@gentoo.org> +files/flowscan.init:
- fix exec bit
-
- 01 Feb 2007; Markus Ullmann <jokey@gentoo.org> -files/flowscan.init,
- -FlowScan-1.006.ebuild, -FlowScan-1.006-r1.ebuild:
- cleanup
-
- 27 Apr 2006; Alec Warner <antarus@gentoo.org> Manifest:
- Fixing SHA256 digest, pass four
-
- 05 Mar 2006; Markus Ullmann <jokey@gentoo.org> FlowScan-1.006.ebuild,
- FlowScan-1.006-r1.ebuild, FlowScan-1.006-r2.ebuild:
- INSTALL/COPYING cleanup
-
- 12 Aug 2005; David Holm <dholm@gentoo.org> FlowScan-1.006-r2.ebuild:
- Added to ~ppc.
-
-*FlowScan-1.006-r2 (11 Aug 2005)
-
- 11 Aug 2005; Benjamin Smee <strerror@gentoo.org>
- +FlowScan-1.006-r2.ebuild:
- Changed RDEPEND and DEPEND to fix bug #101862
-
- 22 Jun 2005; Benjamin Smee <strerror@gentoo.org> FlowScan-1.006-r1.ebuild:
- Changed DEPEND
-
-*FlowScan-1.006-r1 (22 Jun 2005)
-
- 22 Jun 2005; Benjamin Smee <strerror@gentoo.org>
- +FlowScan-1.006-r1.ebuild:
- Fixed RDEPEND and DEPEND
-
-*FlowScan-1.006 (22 Jun 2005)
-
- 22 Jun 2005; Benjamin Smee <strerror@gentoo.org> +files/FlowScan.pm,
- +files/flowscan.init, +metadata.xml, +FlowScan-1.006.ebuild:
- Initial import.
-
diff --git a/net-analyzer/FlowScan/FlowScan-1.006-r3.ebuild b/net-analyzer/FlowScan/FlowScan-1.006-r3.ebuild
deleted file mode 100644
index af766d3483ab..000000000000
--- a/net-analyzer/FlowScan/FlowScan-1.006-r3.ebuild
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/FlowScan/FlowScan-1.006-r3.ebuild,v 1.2 2012/02/10 22:39:38 hwoarang Exp $
-
-inherit eutils
-
-DESCRIPTION="Program to report and analyze flow files"
-HOMEPAGE="http://net.doit.wisc.edu/~plonka/FlowScan/"
-SRC_URI="http://net.doit.wisc.edu/~plonka/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~ppc x86"
-IUSE=""
-
-RDEPEND="app-shells/pdksh
- dev-lang/perl
- <net-analyzer/rrdtool-1.2
- dev-perl/ConfigReader
- dev-perl/Boulder
- dev-perl/HTML-Table
- dev-perl/Net-Patricia
- dev-perl/Cflow"
-DEPEND="|| ( app-shells/pdksh app-shells/ksh )
- <net-analyzer/rrdtool-1.2"
-
-pkg_setup() {
- enewgroup flows
- enewuser flows -1 -1 /var/lib/flows flows
-}
-
-src_compile() {
- ./configure --prefix="${D}"/var/lib/flows --bindir=/var/lib/flows/bin || die "configure failed"
-}
-
-src_install() {
- make install || die "install failed"
-
- newinitd "${FILESDIR}"/flowscan.init flowscan
-
- dodoc Changes *README* TODO
- newdoc INSTALL README.update
-
- keepdir /var/lib/flows/ft
- keepdir /var/lib/flows/rrds
- keepdir /var/lib/flows/scoreboard
-
- sed -i 's|FlowFileGlob flows.*:*\[0-9\]|FlowFileGlob /var/lib/flows/ft-v05.*|' ${S}/cf/flowscan.cf \
- || die "sed failed"
-
- exeinto /var/lib/flows/bin
- newexe "${FILESDIR}"/FlowScan.pm FlowScan.pm
- insinto /var/lib/flows/bin
- doins cf/flowscan.cf cf/CampusIO.cf
-}
-
-pkg_postinst() {
- chown flows:flows /var/lib/flows/{ft,rrds,scoreboard}
- chown flows:flows /var/lib/flows/bin/flowscan.cf
- chown flows:flows /var/lib/flows/bin/FlowScan.pm
- elog "Please note that while you can use the reporting modules that come"
- elog "with FlowScan, it is recommended that you install either JKFlow or"
- elog "for more simple implementations CUFlow. Both are available in"
- elog "Portage."
-}
diff --git a/net-analyzer/FlowScan/Manifest b/net-analyzer/FlowScan/Manifest
deleted file mode 100644
index 15371a3a1f19..000000000000
--- a/net-analyzer/FlowScan/Manifest
+++ /dev/null
@@ -1,26 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
-
-AUX FlowScan.pm 8696 RMD160 8020c6563ec170b10eb4d9d1e1fd6a93debe1a83 SHA1 5d4193f275f5aae4f39f13476e86e2bc8cf2478b SHA256 234472ce9b49fb61d3e2c4cd0e83db31969a988670724621a75982ac93509f3c
-AUX flowscan.init 510 RMD160 c32ba0f45457195e5bbc6c4b40b7c8fb39f284fe SHA1 9cb9dda7eb434f4566d27903d67d1dce78309169 SHA256 9d4d41b83a3bb4f363c37e54b46aa32a4997420682fd2c74e6eac3d10a8f9436
-DIST FlowScan-1.006.tar.gz 149514 RMD160 01108351273b81295d724d009921ccbec44ddc0a SHA1 ff2e2767cdc1f42298c297bd27a55fc256f4bb94 SHA256 279562cef77ae0b51f49d115309277f360516d15eae6802cd2182cee17154e44
-EBUILD FlowScan-1.006-r3.ebuild 1845 RMD160 4756344336a77bd1b2fcc4d366d8471c567f0165 SHA1 881fdf06ccc23c248ffdc2c174062b1369b6fbe3 SHA256 cfdfc828ef03fcc2545cece624268a9b6bec2a5b6ceea2eb468a47d731c90248
-MISC ChangeLog 1991 RMD160 6c6be3749c9af9021964446951d33af449fef7d6 SHA1 0f9952741ca2ba1ce0444fc66fb5c9008c23bbe9 SHA256 1f87b91fd1501045c5b521c853267c3805a0cab8cb9b312f690970322166795d
-MISC metadata.xml 161 RMD160 404fe32f194325ecc180c31feaed3b71cff5e438 SHA1 aa4aff2479db4b6a96f99889365cb17375ba8c4d SHA256 442ce683981a7e51854e06ffdc2bdbbd956decf0d7a1f0c1ca056439a7230ebd
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.18 (GNU/Linux)
-
-iQIcBAEBCgAGBQJPNZysAAoJEPqDWhW0r/LCNiQP/3xvyrxTXcPMZ8LByl2QQ9uK
-p/UXGvw0Jh+W3l5G+N3K6hAeUodUvCMQ59+mJeqUZ0VZJU1CpbuGzXrye+b3OIs9
-/Z331db817LLpd5ZBDtRjn3E/mljCEIelCubFeHMec0BpOp6hau6AqgXZFk6sMqg
-2v04+Tb7K9iIoS1i1nkZydPdpbq2IXDywh2Ldz+vyPAgvPNeHOWblbULFgMj/mzp
-nEIeHhqz+hNJY/vGCJz+rMSz3sUnU1/bnypQIHRVLotPQTxYNRr51gZfA3vvIuVQ
-o3GpeBAnkwmvSwJYTEMdffzZM5aZt0SfePfvDEF7lCGjkuOMe1m5ESxERd+khRB9
-Rc83sQwkxJPx0/eWqoNB1GF+wCp0MHAPuKWYQC3JwbSJLYVMrStqIxtiDegg6wql
-tccyXGAbUEzMRKuYV8wiRLVcmUqXcg7Lug9XLmyu0aHh6wqsbSBE1Ndz7MZ0f+3B
-gV4f2NbGQklv8fWNDEV45D2PO83QmrdxJICUNePqNGbdhveKY0Tdh27ApoXcfzIi
-LIoiOQSvYow8Hlo7m+jqdYhJ1/8L4MK6+tnOXiP8P2Qy9Od9P6WGNN3BD/Ihgzjv
-RCWMoW0ckZ2HIeI4zLeiON/F4oMiGBlI+Ezmx5H91kuI0xaJmsUdbp3ep0DXHBhP
-pk+kaNrfkcn1yjSQj9Bs
-=6h3Y
------END PGP SIGNATURE-----
diff --git a/net-analyzer/FlowScan/files/FlowScan.pm b/net-analyzer/FlowScan/files/FlowScan.pm
deleted file mode 100644
index d2e02be4a5cf..000000000000
--- a/net-analyzer/FlowScan/files/FlowScan.pm
+++ /dev/null
@@ -1,336 +0,0 @@
-# FlowScan.pm - a base class for scanning and reporting on flows
-# Copyright (C) 1998-2001 Dave Plonka
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-# $Id: FlowScan.pm,v 1.1 2005/06/22 14:56:17 strerror Exp $
-# Dave Plonka <plonka@doit.wisc.edu>
-
-use strict;
-use RRDs;
-
-package FlowScan;
-
-require 5;
-require Exporter;
-
-@FlowScan::ISA=qw(Exporter);
-@FlowScan::EXPORT_OK=qw(ip2name);
-# convert the RCS revision to a reasonable Exporter VERSION:
-'$Revision: 1.1 $' =~ m/(\d+)\.(\d+)/ && (( $FlowScan::VERSION ) = sprintf("%d.%03d", $1, $2));
-
-=head1 NAME
-
-FlowScan -
-
-=head1 SYNOPSIS
-
- $ flowscan FlowScanDerivedClass [...]
-
-=head1 DESCRIPTION
-
-This package implements a base-class solely for use with the flowscan utility.
-Once you author derived classes, those class names are passed as arguments.
-
-The following methods and subroutines are defined:
-
-=over 4
-
-=cut
-
-=item new
-
-The B<new> method constructs and returns a B<FlowScan> object.
-You must define a report method in your derived class.
-
-=cut
-
-sub new {
- die "you must define a new method in your derived class!\n"
-}
-
-=item wanted
-
-You must define a report method in your derived class.
-
-=cut
-
-sub wanted {
- die "you must define a wanted method in your derived class!\n"
-}
-
-=item perfile
-
-You may define a perfile method in your derived class.
-To maintain the functionality of the base-class method, do something like this:
-
- sub perfile {
- my $self = shift;
- $self->SUPER::perfile(@_);
- # ...
- }
-
-=cut
-
-sub perfile {
- my $self = shift;
- my $file = shift;
- $self->{filetime} = file2time_t($file)
-}
-
-sub file2time_t {
- my $file = shift;
- if ($file =~
- m/(\d\d\d\d)-?(\d\d)-?(\d\d)[_.](\d\d):?(\d\d):?(\d\d)([+-])(\d\d)(\d\d)/) {
- # The file name contains an "hours east of GMT" component
- my(@tm) = ($6, $5, $4, $3, $2-1, $1-1900, 0, 0, -1);
- my($tm_sec, $tm_min, $tm_hour, $tm_mday, $tm_mon, $tm_year,
- $tm_wday, $tm_yday, $tm_isdst) = (0 .. 8); # from "man perlfunc"
- if ('+' eq $7) { # subtract hours and minutes to get UTC
- $tm[$tm_min] -= 60*$8+$9
- } else { # add hours and minutes to get UTC
- $tm[$tm_min] += 60*$8+$9
- }
- mutt_normalize_time(@tm);
- return mutt_mktime(@tm, -1, 0)
- } elsif ($file =~ m/(\d\d\d\d)-?(\d\d)-?(\d\d)[_.](\d\d):?(\d\d):?(\d\d)$/) {
- # The file name contains just the plain old localtime
- return mutt_mktime($6, $5, $4, $3, $2-1, $1-1900, 0, 0, -1, 1)
- } else {
- return -1
- }
- # NOTREACHED
-}
-
-sub mkdirs_as_necessary {
- my $n = 0;
- foreach my $file (@_) {
- my $pos = 0;
- my $len;
- while (-1 < ($len = index($file, '/', $pos))) {
- $len++;
- my $dir = substr($file, 0, $len);
- $pos = $len;
- next if -d $dir;
- if (!mkdir($dir, 0777)) {
- warn "mkdir \"$dir\": $!\n";
- return 0
- }
- $n++;
- }
- }
- return $n # no. of successful mkdir(2)s
-}
-
-sub createGeneralRRD {
- my $self = shift;
- die unless ref($self);
- my $file = shift;
-
- die unless @_; # DS types and names are required
-
- my $time_t = $self->{filetime};
-
- my $startwhen = $time_t - 300;
- my($name, $type, @DS);
- while (($type = shift(@_)) &&
- ($name = shift(@_))) {
- push(@DS, "DS:${name}:${type}:400:U:U")
- }
- RRDs::create($file,
- '--start', $startwhen,
- '--step', 300,
- @DS,
- qw(
- RRA:AVERAGE:0:1:600
- RRA:AVERAGE:0:6:600
- RRA:AVERAGE:0:24:600
- RRA:AVERAGE:0:288:1827
- RRA:MAX:0:24:600
- RRA:MAX:0:288:1827
- )
- );
- my $err=RRDs::error;
- warn "ERROR creating $file: $err\n" if $err;
-}
-
-=item report
-
-You must define a report method in your derived class.
-
-=cut
-
-sub report {
- die "you must define a report method in your derived class!\n"
-}
-
-=head1 BUGS
-
-=head1 AUTHOR
-
-Dave Plonka <plonka@doit.wisc.edu>
-
-Copyright (C) 1998-2001 Dave Plonka.
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-=head1 VERSION
-
-The version number is the module file RCS revision number (B<$Revision: 1.1 $>)
-with the minor number printed right justified with leading zeroes to 3
-decimal places. For instance, RCS revision 1.1 would yield a package version
-number of 1.001.
-
-This is so that revision 1.10 (which is version 1.010), for example, will
-test greater than revision 1.2 (which is version 1.002) when you want to
-B<require> a minimum version of this module.
-
-=cut
-
-# The following routines are my rewrites from mutt's "date.c", which is:
-#
-# Copyright (C) 1996-2000 Michael R. Elkins <me@cs.hmc.edu>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-#
-
-# returns the seconds east of UTC given `g' and its corresponding gmtime()
-# representation
-sub compute_tz {
- my($g, @utc) = @_;
- my @lt = localtime($g);
- my $t;
- my $yday;
-
- my($tm_hour, $tm_min, $tm_yday) = (2, 1, 7); # from "man perlfunc"
- $t = ((($lt[$tm_hour] - $utc[$tm_hour]) * 60) +
- ($lt[$tm_min] - $utc[$tm_min])) * 60;
-
- if ($yday = ($lt[$tm_yday] - $utc[$tm_yday])) {
- # This code is optimized to negative timezones (West of Greenwich)
- if ($yday == -1 || # UTC passed midnight before localtime
- $yday > 1) { # UTC passed new year before localtime
- $t -= 24 * 60 * 60
- }
- else {
- $t += 24 * 60 * 60
- }
- }
-
- return $t
-}
-
-# converts struct tm to time_t, but does not take the local timezone into
-# account unless ``local'' is nonzero
-sub mutt_mktime {
- my $local = pop(@_);
- my(@t) = @_;
- my $g;
-
- my @AccumDaysPerMonth = (
- 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
- );
-
- my($tm_sec, $tm_min, $tm_hour, $tm_mday, $tm_mon,
- $tm_year, $tm_wday, $tm_yday, $tm_isdst) = (0 .. 8); # from "man perlfunc"
- # Compute the number of days since January 1 in the same year
- $g = $AccumDaysPerMonth[$t[$tm_mon] % 12];
-
- # The leap years are 1972 and every 4. year until 2096,
- # but this algoritm will fail after year 2099
- $g += $t[$tm_mday];
- if (($t[$tm_year] % 4) || $t[$tm_mon] < 2) {
- $g--
- }
- $t[$tm_yday] = $g;
-
- # Compute the number of days since January 1, 1970
- $g += ($t[$tm_year] - 70) * 365;
- $g += int(($t[$tm_year] - 69) / 4);
-
- # Compute the number of hours
- $g *= 24;
- $g += $t[$tm_hour];
-
- # Compute the number of minutes
- $g *= 60;
- $g += $t[$tm_min];
-
- # Compute the number of seconds
- $g *= 60;
- $g += $t[$tm_sec];
-
- if ($local) {
- $g -= compute_tz($g, @t);
- }
-
- return($g)
-}
-
-sub mutt_normalize_time {
- my @DaysPerMonth = (
- 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
- );
-
- my($tm_sec, $tm_min, $tm_hour, $tm_mday, $tm_mon,
- $tm_year, $tm_wday, $tm_yday, $tm_isdst) = (0 .. 8); # from "man perlfunc"
- while ($_[$tm_sec] < 0)
- {
- $_[$tm_sec] += 60;
- $_[$tm_min]--
- }
- while ($_[$tm_min] < 0)
- {
- $_[$tm_min] += 60;
- $_[$tm_hour]--
- }
- while ($_[$tm_hour] < 0)
- {
- $_[$tm_hour] += 24;
- $_[$tm_mday]--
- }
- while ($_[$tm_mon] < 0)
- {
- $_[$tm_mon] += 12;
- $_[$tm_year]--
- }
- while ($_[$tm_mday] < 0)
- {
- if ($_[$tm_mon]) {
- $_[$tm_mon]--
- } else {
- $_[$tm_mon] = 11;
- $_[$tm_year]--
- }
- $_[$tm_mday] += $DaysPerMonth[$_[$tm_mon]]
- }
-}
-
-1
-
diff --git a/net-analyzer/FlowScan/files/flowscan.init b/net-analyzer/FlowScan/files/flowscan.init
deleted file mode 100755
index f6067448e51d..000000000000
--- a/net-analyzer/FlowScan/files/flowscan.init
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting flowscan processing"
- start-stop-daemon --start --quiet -c flows:flows --exec /var/lib/flows/bin/flowscan \
- -p /var/run/flows/flowscan.pid -m -b >> /var/log/flowscan 2>&1 </dev/null & >/dev/null
- eend $?
-}
-
-stop() {
- ebegin "Stopping flowscan processing"
- start-stop-daemon --stop --quiet -p /var/run/flows/flowscan.pid
- eend $?
-}
diff --git a/net-analyzer/FlowScan/metadata.xml b/net-analyzer/FlowScan/metadata.xml
deleted file mode 100644
index 43ff75467369..000000000000
--- a/net-analyzer/FlowScan/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <herd>netmon</herd>
-</pkgmetadata>