aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Blum <torstenb@FreeBSD.org>2000-02-13 21:00:09 +0000
committerTorsten Blum <torstenb@FreeBSD.org>2000-02-13 21:00:09 +0000
commit93aa7b501831458ba36e8da2a2889231179fb817 (patch)
tree5eb653fb09d88954079b4ee42b3b2425c8e5263d
parent226171ceed092eb704b31f692f1ba5276e81c2ea (diff)
downloadports-93aa7b501831458ba36e8da2a2889231179fb817.tar.gz
ports-93aa7b501831458ba36e8da2a2889231179fb817.zip
Notes
-rw-r--r--net-mgmt/cricket/Makefile34
-rw-r--r--net-mgmt/cricket/distinfo1
-rw-r--r--net-mgmt/cricket/files/patch-aa19
-rw-r--r--net-mgmt/cricket/files/patch-ab31
-rw-r--r--net-mgmt/cricket/files/patch-ac40
-rw-r--r--net-mgmt/cricket/files/patch-ad31
-rw-r--r--net-mgmt/cricket/files/patch-ae13
-rw-r--r--net-mgmt/cricket/files/patch-af13
-rw-r--r--net-mgmt/cricket/files/patch-ag28
-rw-r--r--net-mgmt/cricket/files/patch-ah31
-rw-r--r--net-mgmt/cricket/files/patch-ai13
-rw-r--r--net-mgmt/cricket/files/patch-aj31
-rw-r--r--net-mgmt/cricket/files/patch-ak31
-rw-r--r--net-mgmt/cricket/files/patch-al31
-rw-r--r--net-mgmt/cricket/files/patch-am44
-rw-r--r--net-mgmt/cricket/files/patch-an31
-rw-r--r--net-mgmt/cricket/files/patch-ao31
-rw-r--r--net-mgmt/cricket/pkg-comment1
-rw-r--r--net-mgmt/cricket/pkg-descr6
-rw-r--r--net-mgmt/cricket/pkg-plist85
-rw-r--r--net-mgmt/cricket/scripts/configure23
-rw-r--r--net/cricket/Makefile34
-rw-r--r--net/cricket/distinfo1
-rw-r--r--net/cricket/files/patch-aa19
-rw-r--r--net/cricket/files/patch-ab31
-rw-r--r--net/cricket/files/patch-ac40
-rw-r--r--net/cricket/files/patch-ad31
-rw-r--r--net/cricket/files/patch-ae13
-rw-r--r--net/cricket/files/patch-af13
-rw-r--r--net/cricket/files/patch-ag28
-rw-r--r--net/cricket/files/patch-ah31
-rw-r--r--net/cricket/files/patch-ai13
-rw-r--r--net/cricket/files/patch-aj31
-rw-r--r--net/cricket/files/patch-ak31
-rw-r--r--net/cricket/files/patch-al31
-rw-r--r--net/cricket/files/patch-am44
-rw-r--r--net/cricket/files/patch-an31
-rw-r--r--net/cricket/files/patch-ao31
-rw-r--r--net/cricket/pkg-comment1
-rw-r--r--net/cricket/pkg-descr6
-rw-r--r--net/cricket/pkg-plist85
-rw-r--r--net/cricket/scripts/configure23
42 files changed, 1136 insertions, 0 deletions
diff --git a/net-mgmt/cricket/Makefile b/net-mgmt/cricket/Makefile
new file mode 100644
index 000000000000..4f00c31517d6
--- /dev/null
+++ b/net-mgmt/cricket/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: Cricket
+# Version required: 0.72
+# Date created: 20 November 1999
+# Whom: torstenb
+#
+# $FreeBSD$
+#
+
+DISTNAME= cricket-0.72
+CATEGORIES= net
+MASTER_SITES= http://www.munitions.com/~jra/cricket/dists/
+
+MAINTAINER= torstenb@FreeBSD.org
+
+RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/SNMP_Session.pm:${PORTSDIR}/net/p5-SNMP_Session
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/RRDs.pm:${PORTSDIR}/net/rrdtool
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/LWP.pm:${PORTSDIR}/www/p5-libwww
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/Time/Zone.pm:${PORTSDIR}/devel/p5-TimeDate
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+
+USE_PERL5= yes
+
+FETCH_BEFORE_ARGS= -b
+SCRIPTS_ENV+= PERL5=${PERL5}
+
+do-build:
+
+do-install:
+ @${MKDIR} -m 755 ${PREFIX}/cricket
+ @${CP} -R ${WRKSRC}/* ${PREFIX}/cricket
+ @find ${PREFIX}/cricket -name \*.orig -or -name \*.bak | xargs ${RM} -f
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/cricket/distinfo b/net-mgmt/cricket/distinfo
new file mode 100644
index 000000000000..ea857b76293a
--- /dev/null
+++ b/net-mgmt/cricket/distinfo
@@ -0,0 +1 @@
+MD5 (cricket-0.72.tar.gz) = e8441c8795eb743cf8c0efc585fa3db9
diff --git a/net-mgmt/cricket/files/patch-aa b/net-mgmt/cricket/files/patch-aa
new file mode 100644
index 000000000000..7bce91d18f91
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-aa
@@ -0,0 +1,19 @@
+*** sample-config/news-server/Defaults.orig Sat Jan 22 12:39:37 2000
+--- sample-config/news-server/Defaults Sat Jan 22 12:40:10 2000
+***************
+*** 11,17 ****
+ # you'll probably want to change this... unless you
+ # have Cricket in ~/cricket and your config tree in ~/config
+ util-dir = %auto-base%/../cricket/util
+! remexec = "/usr/local/net/bin/ssh -l %user% %server%"
+ user = news
+ server = nntp-host
+ target-type = news-server
+--- 11,17 ----
+ # you'll probably want to change this... unless you
+ # have Cricket in ~/cricket and your config tree in ~/config
+ util-dir = %auto-base%/../cricket/util
+! remexec = "%%PREFIX%%/bin/ssh -l %user% %server%"
+ user = news
+ server = nntp-host
+ target-type = news-server
diff --git a/net-mgmt/cricket/files/patch-ab b/net-mgmt/cricket/files/patch-ab
new file mode 100644
index 000000000000..650ceb627c1f
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ab
@@ -0,0 +1,31 @@
+*** util/dump-targets.orig Sun Jan 9 09:25:52 2000
+--- util/dump-targets Sun Feb 13 20:46:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$Common::global::gInstallRoot/../lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$Common::global::gInstallRoot/../lib";
diff --git a/net-mgmt/cricket/files/patch-ac b/net-mgmt/cricket/files/patch-ac
new file mode 100644
index 000000000000..2bdff6c439ff
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ac
@@ -0,0 +1,40 @@
+*** util/generate-statics.orig Sun Jan 9 09:29:20 2000
+--- util/generate-statics Sun Feb 13 20:47:27 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,30 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+
+ # You need to update this to point to the URL
+ # you use to access Cricket.
+! $gBaseURL = "http://localhost/~cricket/grapher.cgi";
+ }
+
+ use lib "$gInstallRoot/../lib";
+--- 20,32 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+
+ # You need to update this to point to the URL
+ # you use to access Cricket.
+! # $gBaseURL = "http://localhost/~cricket/grapher.cgi";
+! $gBaseURL = "http://localhost/cgi-bin/grapher.cgi";
+ }
+
+ use lib "$gInstallRoot/../lib";
diff --git a/net-mgmt/cricket/files/patch-ad b/net-mgmt/cricket/files/patch-ad
new file mode 100644
index 000000000000..886df19252f5
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ad
@@ -0,0 +1,31 @@
+*** util/listInterfaces.orig Mon Jul 19 19:55:45 1999
+--- util/listInterfaces Sun Feb 13 20:48:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+ }
+
+ use lib "$gInstallRoot/lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$gInstallRoot/lib";
diff --git a/net-mgmt/cricket/files/patch-ae b/net-mgmt/cricket/files/patch-ae
new file mode 100644
index 000000000000..11802a51fd23
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ae
@@ -0,0 +1,13 @@
+*** util/newsstats.orig Sat Jan 22 12:41:06 2000
+--- util/newsstats Sat Jan 22 12:41:12 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl
+
+ ##
+ # Get simple stats from INND with cleanfeed
+--- 1,4 ----
+! #!%%PATHPERLBIN%%
+
+ ##
+ # Get simple stats from INND with cleanfeed
diff --git a/net-mgmt/cricket/files/patch-af b/net-mgmt/cricket/files/patch-af
new file mode 100644
index 000000000000..18d6bcb1ef21
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-af
@@ -0,0 +1,13 @@
+*** util/pmlines.pl.orig Sat Jan 22 12:41:27 2000
+--- util/pmlines.pl Sat Jan 22 12:41:35 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl
+
+ # pmlines.pl
+ #
+--- 1,4 ----
+! #!%%PATHPERLBIN%%
+
+ # pmlines.pl
+ #
diff --git a/net-mgmt/cricket/files/patch-ag b/net-mgmt/cricket/files/patch-ag
new file mode 100644
index 000000000000..830972963a84
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ag
@@ -0,0 +1,28 @@
+*** util/rrd-dump.orig Wed Jun 16 04:28:02 1999
+--- util/rrd-dump Sun Feb 13 20:49:13 2000
+***************
+*** 1,11 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # this is a little script to exercise RRD::File -- useful
+ # when I was developing it, and possibly useful now too
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+ }
+
+ use lib "$gInstallRoot/lib";
+--- 1,12 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # this is a little script to exercise RRD::File -- useful
+ # when I was developing it, and possibly useful now too
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$gInstallRoot/lib";
diff --git a/net-mgmt/cricket/files/patch-ah b/net-mgmt/cricket/files/patch-ah
new file mode 100644
index 000000000000..7f204c5d03b2
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ah
@@ -0,0 +1,31 @@
+*** util/rrd-tune.orig Mon Jan 10 06:38:41 2000
+--- util/rrd-tune Sun Feb 13 20:49:47 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$gInstallRoot/../lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$gInstallRoot/../lib";
diff --git a/net-mgmt/cricket/files/patch-ai b/net-mgmt/cricket/files/patch-ai
new file mode 100644
index 000000000000..76da6e08e799
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ai
@@ -0,0 +1,13 @@
+*** util/test-url.orig Sat Jan 22 12:43:07 2000
+--- util/test-url Sat Jan 22 12:43:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # test-url: a simple script to see how fast a webserver is
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # test-url: a simple script to see how fast a webserver is
diff --git a/net-mgmt/cricket/files/patch-aj b/net-mgmt/cricket/files/patch-aj
new file mode 100644
index 000000000000..ee86b8388f14
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-aj
@@ -0,0 +1,31 @@
+*** util/usrModemUsage.orig Tue Jul 20 03:02:29 1999
+--- util/usrModemUsage Sun Feb 13 20:50:34 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # usrModemUsage
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # usrModemUsage
+***************
+*** 23,29 ****
+ # modem chassis.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+ }
+
+ #
+--- 23,30 ----
+ # modem chassis.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ #
diff --git a/net-mgmt/cricket/files/patch-ak b/net-mgmt/cricket/files/patch-ak
new file mode 100644
index 000000000000..c856a71a5639
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ak
@@ -0,0 +1,31 @@
+*** collect-subtrees.orig Mon Jan 24 03:24:13 2000
+--- collect-subtrees Sun Feb 13 20:42:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 30,36 ****
+ # to tell collect-subtrees where to find it.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use Getopt::Long;
+--- 30,37 ----
+ # to tell collect-subtrees where to find it.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use Getopt::Long;
diff --git a/net-mgmt/cricket/files/patch-al b/net-mgmt/cricket/files/patch-al
new file mode 100644
index 000000000000..c391d5d62086
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-al
@@ -0,0 +1,31 @@
+*** collector.orig Mon Jan 10 06:37:37 2000
+--- collector Sun Feb 13 20:42:06 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
diff --git a/net-mgmt/cricket/files/patch-am b/net-mgmt/cricket/files/patch-am
new file mode 100644
index 000000000000..5a5562994c42
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-am
@@ -0,0 +1,44 @@
+*** grapher.cgi.orig Mon Jan 24 08:47:49 2000
+--- grapher.cgi Sun Feb 13 20:44:03 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 27,39 ****
+ # be prepended. Special care is taken to set $HOME right,
+ # even when running as user nobody (see fixHome for info).
+
+! $Common::global::gConfigRoot = 'cricket-config'; # i.e. $HOME/config
+
+ # This magic attempts to guess the install directory based
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
+--- 27,41 ----
+ # be prepended. Special care is taken to set $HOME right,
+ # even when running as user nobody (see fixHome for info).
+
+! # $Common::global::gConfigRoot = 'cricket-config'; # i.e. $HOME/config
+! $Common::global::gConfigRoot = '%%PREFIX%%/cricket/cricket-config';
+
+ # This magic attempts to guess the install directory based
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
diff --git a/net-mgmt/cricket/files/patch-an b/net-mgmt/cricket/files/patch-an
new file mode 100644
index 000000000000..b8d06434bef8
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-an
@@ -0,0 +1,31 @@
+*** mini-graph.cgi.orig Sat Jul 10 05:17:41 1999
+--- mini-graph.cgi Sun Feb 13 20:44:34 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 24,30 ****
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
+--- 24,31 ----
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+! $gInstallRoot = '%%PREFIX%%/cricket';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
diff --git a/net-mgmt/cricket/files/patch-ao b/net-mgmt/cricket/files/patch-ao
new file mode 100644
index 000000000000..f9834d9dfb96
--- /dev/null
+++ b/net-mgmt/cricket/files/patch-ao
@@ -0,0 +1,31 @@
+*** compile.orig Fri Jul 16 08:07:25 1999
+--- compile Sun Feb 13 20:42:54 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
diff --git a/net-mgmt/cricket/pkg-comment b/net-mgmt/cricket/pkg-comment
new file mode 100644
index 000000000000..5bcf5d816419
--- /dev/null
+++ b/net-mgmt/cricket/pkg-comment
@@ -0,0 +1 @@
+A high performance, extremely flexible monitoring system
diff --git a/net-mgmt/cricket/pkg-descr b/net-mgmt/cricket/pkg-descr
new file mode 100644
index 000000000000..93c7b0e30bbb
--- /dev/null
+++ b/net-mgmt/cricket/pkg-descr
@@ -0,0 +1,6 @@
+Cricket is a high performance, extremely flexible system for monitoring
+trends in time-series data. Cricket was expressly developed to help network
+managers visualize and understand the traffic on their networks, but it can
+be used all kinds of other jobs, as well.
+It's similar to mrtg, but has a different approach.
+See http://http://www.munitions.com/~jra/cricket/ for details
diff --git a/net-mgmt/cricket/pkg-plist b/net-mgmt/cricket/pkg-plist
new file mode 100644
index 000000000000..841738975358
--- /dev/null
+++ b/net-mgmt/cricket/pkg-plist
@@ -0,0 +1,85 @@
+cricket/doc/neta-paper/paper.ps.gz
+cricket/doc/neta-paper/fig2.gif
+cricket/doc/neta-paper/paper.html
+cricket/doc/neta-paper/fig1.gif
+cricket/doc/neta-paper/peer1.gif
+cricket/doc/neta-paper/peer2.gif
+cricket/doc/neta-paper/ss.gif
+cricket/doc/beginner.txt
+cricket/doc/index.html
+cricket/doc/mrtg-users.html
+cricket/doc/reference.html
+cricket/sample-config/usr/Defaults
+cricket/sample-config/usr/targets
+cricket/sample-config/atm-interfaces/atm-intb-pvc/Defaults
+cricket/sample-config/atm-interfaces/atm-intb-pvc/interfaces
+cricket/sample-config/atm-interfaces/atm-rtr-uni/Defaults
+cricket/sample-config/atm-interfaces/atm-rtr-uni/interfaces
+cricket/sample-config/atm-interfaces/atm-trunks/Defaults
+cricket/sample-config/atm-interfaces/atm-trunks/interfaces
+cricket/sample-config/atm-interfaces/Defaults
+cricket/sample-config/http-performance/Defaults
+cricket/sample-config/http-performance/urls
+cricket/sample-config/news-server/Defaults
+cricket/sample-config/news-server/targets
+cricket/sample-config/portmasters/Defaults
+cricket/sample-config/portmasters/portmasters
+cricket/sample-config/router-interfaces/Defaults
+cricket/sample-config/router-interfaces/interfaces
+cricket/sample-config/routers/Defaults
+cricket/sample-config/routers/Targets
+cricket/sample-config/routing/Defaults
+cricket/sample-config/routing/Targets
+cricket/sample-config/squid-proxy/Defaults
+cricket/sample-config/switch-ports/Defaults
+cricket/sample-config/switch-ports/switches
+cricket/sample-config/switches/Defaults
+cricket/sample-config/switches/switches
+cricket/sample-config/Defaults
+cricket/lib/ConfigTree/Cache.pm
+cricket/lib/ConfigTree/Node.pm
+cricket/lib/RRD/File.pm
+cricket/lib/RRD/Format.pm
+cricket/lib/Common/HandleTarget.pm
+cricket/lib/Common/Log.pm
+cricket/lib/Common/Map.pm
+cricket/lib/Common/Options.pm
+cricket/lib/Common/Util.pm
+cricket/lib/Common/Version.pm
+cricket/lib/exec.pm
+cricket/lib/file.pm
+cricket/lib/func.pm
+cricket/lib/snmp.pm
+cricket/lib/snmpUtils.pm
+cricket/lib/Monitor.pm
+cricket/lib/RPN.pm
+cricket/images/cricket-sm.gif
+cricket/images/failed.gif
+cricket/images/rrdtool.gif
+cricket/util/dump-targets
+cricket/util/generate-statics
+cricket/util/getFormat.c
+cricket/util/listInterfaces
+cricket/util/newsstats
+cricket/util/pmlines.pl
+cricket/util/relocate-perl
+cricket/util/rrd-dump
+cricket/util/rrd-tune
+cricket/util/test-url
+cricket/util/usrModemUsage
+cricket/util/README
+cricket/mini-graph.cgi
+cricket/grapher.cgi
+cricket/configure
+cricket/compile
+cricket/collector
+cricket/collect-subtrees
+cricket/VERSION
+cricket/TODO
+cricket/THANKS
+cricket/README
+cricket/Makefile
+cricket/FAQ
+cricket/COPYING
+cricket/CHANGES
+cricket/subtree-sets
diff --git a/net-mgmt/cricket/scripts/configure b/net-mgmt/cricket/scripts/configure
new file mode 100644
index 000000000000..bcf7568dd6b3
--- /dev/null
+++ b/net-mgmt/cricket/scripts/configure
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $FreeBSD$
+echo var set to ${PERL5} >/tmp/debug1
+
+FILES_PERLPATH="util/dump-targets util/generate-statics util/listInterfaces \
+ compile util/newsstats util/pmlines.pl util/rrd-dump util/rrd-tune \
+ util/test-url util/usrModemUsage collect-subtrees collector \
+ grapher.cgi mini-graph.cgi"
+FILES_PREFIX="sample-config/news-server/Defaults collect-subtrees collector \
+ compile grapher.cgi mini-graph.cgi util/dump-targets \
+ util/generate-statics util/listInterfaces util/rrd-dump \
+ util/rrd-tune util/usrModemUsage"
+
+for f in $FILES_PERLPATH ; do
+ mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
+ s+%%PATHPERLBIN%%+${PERL5}+g >${WRKSRC}/${f}
+done
+
+for f in $FILES_PREFIX ; do
+ mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
+ s+%%PREFIX%%+${PREFIX}+g >${WRKSRC}/${f}
+done
diff --git a/net/cricket/Makefile b/net/cricket/Makefile
new file mode 100644
index 000000000000..4f00c31517d6
--- /dev/null
+++ b/net/cricket/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: Cricket
+# Version required: 0.72
+# Date created: 20 November 1999
+# Whom: torstenb
+#
+# $FreeBSD$
+#
+
+DISTNAME= cricket-0.72
+CATEGORIES= net
+MASTER_SITES= http://www.munitions.com/~jra/cricket/dists/
+
+MAINTAINER= torstenb@FreeBSD.org
+
+RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/SNMP_Session.pm:${PORTSDIR}/net/p5-SNMP_Session
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/RRDs.pm:${PORTSDIR}/net/rrdtool
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/LWP.pm:${PORTSDIR}/www/p5-libwww
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/Time/Zone.pm:${PORTSDIR}/devel/p5-TimeDate
+RUN_DEPENDS+= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VERSION}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
+
+USE_PERL5= yes
+
+FETCH_BEFORE_ARGS= -b
+SCRIPTS_ENV+= PERL5=${PERL5}
+
+do-build:
+
+do-install:
+ @${MKDIR} -m 755 ${PREFIX}/cricket
+ @${CP} -R ${WRKSRC}/* ${PREFIX}/cricket
+ @find ${PREFIX}/cricket -name \*.orig -or -name \*.bak | xargs ${RM} -f
+
+.include <bsd.port.mk>
diff --git a/net/cricket/distinfo b/net/cricket/distinfo
new file mode 100644
index 000000000000..ea857b76293a
--- /dev/null
+++ b/net/cricket/distinfo
@@ -0,0 +1 @@
+MD5 (cricket-0.72.tar.gz) = e8441c8795eb743cf8c0efc585fa3db9
diff --git a/net/cricket/files/patch-aa b/net/cricket/files/patch-aa
new file mode 100644
index 000000000000..7bce91d18f91
--- /dev/null
+++ b/net/cricket/files/patch-aa
@@ -0,0 +1,19 @@
+*** sample-config/news-server/Defaults.orig Sat Jan 22 12:39:37 2000
+--- sample-config/news-server/Defaults Sat Jan 22 12:40:10 2000
+***************
+*** 11,17 ****
+ # you'll probably want to change this... unless you
+ # have Cricket in ~/cricket and your config tree in ~/config
+ util-dir = %auto-base%/../cricket/util
+! remexec = "/usr/local/net/bin/ssh -l %user% %server%"
+ user = news
+ server = nntp-host
+ target-type = news-server
+--- 11,17 ----
+ # you'll probably want to change this... unless you
+ # have Cricket in ~/cricket and your config tree in ~/config
+ util-dir = %auto-base%/../cricket/util
+! remexec = "%%PREFIX%%/bin/ssh -l %user% %server%"
+ user = news
+ server = nntp-host
+ target-type = news-server
diff --git a/net/cricket/files/patch-ab b/net/cricket/files/patch-ab
new file mode 100644
index 000000000000..650ceb627c1f
--- /dev/null
+++ b/net/cricket/files/patch-ab
@@ -0,0 +1,31 @@
+*** util/dump-targets.orig Sun Jan 9 09:25:52 2000
+--- util/dump-targets Sun Feb 13 20:46:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$Common::global::gInstallRoot/../lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$Common::global::gInstallRoot/../lib";
diff --git a/net/cricket/files/patch-ac b/net/cricket/files/patch-ac
new file mode 100644
index 000000000000..2bdff6c439ff
--- /dev/null
+++ b/net/cricket/files/patch-ac
@@ -0,0 +1,40 @@
+*** util/generate-statics.orig Sun Jan 9 09:29:20 2000
+--- util/generate-statics Sun Feb 13 20:47:27 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,30 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+
+ # You need to update this to point to the URL
+ # you use to access Cricket.
+! $gBaseURL = "http://localhost/~cricket/grapher.cgi";
+ }
+
+ use lib "$gInstallRoot/../lib";
+--- 20,32 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+
+ # You need to update this to point to the URL
+ # you use to access Cricket.
+! # $gBaseURL = "http://localhost/~cricket/grapher.cgi";
+! $gBaseURL = "http://localhost/cgi-bin/grapher.cgi";
+ }
+
+ use lib "$gInstallRoot/../lib";
diff --git a/net/cricket/files/patch-ad b/net/cricket/files/patch-ad
new file mode 100644
index 000000000000..886df19252f5
--- /dev/null
+++ b/net/cricket/files/patch-ad
@@ -0,0 +1,31 @@
+*** util/listInterfaces.orig Mon Jul 19 19:55:45 1999
+--- util/listInterfaces Sun Feb 13 20:48:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+ }
+
+ use lib "$gInstallRoot/lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$gInstallRoot/lib";
diff --git a/net/cricket/files/patch-ae b/net/cricket/files/patch-ae
new file mode 100644
index 000000000000..11802a51fd23
--- /dev/null
+++ b/net/cricket/files/patch-ae
@@ -0,0 +1,13 @@
+*** util/newsstats.orig Sat Jan 22 12:41:06 2000
+--- util/newsstats Sat Jan 22 12:41:12 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl
+
+ ##
+ # Get simple stats from INND with cleanfeed
+--- 1,4 ----
+! #!%%PATHPERLBIN%%
+
+ ##
+ # Get simple stats from INND with cleanfeed
diff --git a/net/cricket/files/patch-af b/net/cricket/files/patch-af
new file mode 100644
index 000000000000..18d6bcb1ef21
--- /dev/null
+++ b/net/cricket/files/patch-af
@@ -0,0 +1,13 @@
+*** util/pmlines.pl.orig Sat Jan 22 12:41:27 2000
+--- util/pmlines.pl Sat Jan 22 12:41:35 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl
+
+ # pmlines.pl
+ #
+--- 1,4 ----
+! #!%%PATHPERLBIN%%
+
+ # pmlines.pl
+ #
diff --git a/net/cricket/files/patch-ag b/net/cricket/files/patch-ag
new file mode 100644
index 000000000000..830972963a84
--- /dev/null
+++ b/net/cricket/files/patch-ag
@@ -0,0 +1,28 @@
+*** util/rrd-dump.orig Wed Jun 16 04:28:02 1999
+--- util/rrd-dump Sun Feb 13 20:49:13 2000
+***************
+*** 1,11 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # this is a little script to exercise RRD::File -- useful
+ # when I was developing it, and possibly useful now too
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+ }
+
+ use lib "$gInstallRoot/lib";
+--- 1,12 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # this is a little script to exercise RRD::File -- useful
+ # when I was developing it, and possibly useful now too
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$gInstallRoot/lib";
diff --git a/net/cricket/files/patch-ah b/net/cricket/files/patch-ah
new file mode 100644
index 000000000000..7f204c5d03b2
--- /dev/null
+++ b/net/cricket/files/patch-ah
@@ -0,0 +1,31 @@
+*** util/rrd-tune.orig Mon Jan 10 06:38:41 2000
+--- util/rrd-tune Sun Feb 13 20:49:47 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$gInstallRoot/../lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$gInstallRoot/../lib";
diff --git a/net/cricket/files/patch-ai b/net/cricket/files/patch-ai
new file mode 100644
index 000000000000..76da6e08e799
--- /dev/null
+++ b/net/cricket/files/patch-ai
@@ -0,0 +1,13 @@
+*** util/test-url.orig Sat Jan 22 12:43:07 2000
+--- util/test-url Sat Jan 22 12:43:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # test-url: a simple script to see how fast a webserver is
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # test-url: a simple script to see how fast a webserver is
diff --git a/net/cricket/files/patch-aj b/net/cricket/files/patch-aj
new file mode 100644
index 000000000000..ee86b8388f14
--- /dev/null
+++ b/net/cricket/files/patch-aj
@@ -0,0 +1,31 @@
+*** util/usrModemUsage.orig Tue Jul 20 03:02:29 1999
+--- util/usrModemUsage Sun Feb 13 20:50:34 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # usrModemUsage
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # usrModemUsage
+***************
+*** 23,29 ****
+ # modem chassis.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+ }
+
+ #
+--- 23,30 ----
+ # modem chassis.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . "..";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ #
diff --git a/net/cricket/files/patch-ak b/net/cricket/files/patch-ak
new file mode 100644
index 000000000000..c856a71a5639
--- /dev/null
+++ b/net/cricket/files/patch-ak
@@ -0,0 +1,31 @@
+*** collect-subtrees.orig Mon Jan 24 03:24:13 2000
+--- collect-subtrees Sun Feb 13 20:42:15 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 30,36 ****
+ # to tell collect-subtrees where to find it.
+
+ BEGIN {
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use Getopt::Long;
+--- 30,37 ----
+ # to tell collect-subtrees where to find it.
+
+ BEGIN {
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use Getopt::Long;
diff --git a/net/cricket/files/patch-al b/net/cricket/files/patch-al
new file mode 100644
index 000000000000..c391d5d62086
--- /dev/null
+++ b/net/cricket/files/patch-al
@@ -0,0 +1,31 @@
+*** collector.orig Mon Jan 10 06:37:37 2000
+--- collector Sun Feb 13 20:42:06 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
diff --git a/net/cricket/files/patch-am b/net/cricket/files/patch-am
new file mode 100644
index 000000000000..5a5562994c42
--- /dev/null
+++ b/net/cricket/files/patch-am
@@ -0,0 +1,44 @@
+*** grapher.cgi.orig Mon Jan 24 08:47:49 2000
+--- grapher.cgi Sun Feb 13 20:44:03 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 27,39 ****
+ # be prepended. Special care is taken to set $HOME right,
+ # even when running as user nobody (see fixHome for info).
+
+! $Common::global::gConfigRoot = 'cricket-config'; # i.e. $HOME/config
+
+ # This magic attempts to guess the install directory based
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
+--- 27,41 ----
+ # be prepended. Special care is taken to set $HOME right,
+ # even when running as user nobody (see fixHome for info).
+
+! # $Common::global::gConfigRoot = 'cricket-config'; # i.e. $HOME/config
+! $Common::global::gConfigRoot = '%%PREFIX%%/cricket/cricket-config';
+
+ # This magic attempts to guess the install directory based
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
diff --git a/net/cricket/files/patch-an b/net/cricket/files/patch-an
new file mode 100644
index 000000000000..b8d06434bef8
--- /dev/null
+++ b/net/cricket/files/patch-an
@@ -0,0 +1,31 @@
+*** mini-graph.cgi.orig Sat Jul 10 05:17:41 1999
+--- mini-graph.cgi Sun Feb 13 20:44:34 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 24,30 ****
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! $gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
+--- 24,31 ----
+ # on how the script was called. If it fails for you, just
+ # hardcode it.
+
+! # $gInstallRoot = (($0 =~ m:^(.*/):)[0] || './') . '.';
+! $gInstallRoot = '%%PREFIX%%/cricket';
+
+ # cached images are stored here... there will be no more than
+ # 5 minutes worth of images, so it won't take too much space.
diff --git a/net/cricket/files/patch-ao b/net/cricket/files/patch-ao
new file mode 100644
index 000000000000..f9834d9dfb96
--- /dev/null
+++ b/net/cricket/files/patch-ao
@@ -0,0 +1,31 @@
+*** compile.orig Fri Jul 16 08:07:25 1999
+--- compile Sun Feb 13 20:42:54 2000
+***************
+*** 1,4 ****
+! #!/usr/local/bin/perl -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+--- 1,4 ----
+! #!%%PATHPERLBIN%% -w
+ # -*- perl -*-
+
+ # Cricket: a configuration, polling and data display wrapper for RRD files
+***************
+*** 20,26 ****
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
+--- 20,27 ----
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ BEGIN {
+! # $Common::global::gInstallRoot = (($0 =~ m:^(.*/):)[0] || "./") . ".";
+! $Common::global::gInstallRoot = '%%PREFIX%%/cricket';
+ }
+
+ use lib "$Common::global::gInstallRoot/lib";
diff --git a/net/cricket/pkg-comment b/net/cricket/pkg-comment
new file mode 100644
index 000000000000..5bcf5d816419
--- /dev/null
+++ b/net/cricket/pkg-comment
@@ -0,0 +1 @@
+A high performance, extremely flexible monitoring system
diff --git a/net/cricket/pkg-descr b/net/cricket/pkg-descr
new file mode 100644
index 000000000000..93c7b0e30bbb
--- /dev/null
+++ b/net/cricket/pkg-descr
@@ -0,0 +1,6 @@
+Cricket is a high performance, extremely flexible system for monitoring
+trends in time-series data. Cricket was expressly developed to help network
+managers visualize and understand the traffic on their networks, but it can
+be used all kinds of other jobs, as well.
+It's similar to mrtg, but has a different approach.
+See http://http://www.munitions.com/~jra/cricket/ for details
diff --git a/net/cricket/pkg-plist b/net/cricket/pkg-plist
new file mode 100644
index 000000000000..841738975358
--- /dev/null
+++ b/net/cricket/pkg-plist
@@ -0,0 +1,85 @@
+cricket/doc/neta-paper/paper.ps.gz
+cricket/doc/neta-paper/fig2.gif
+cricket/doc/neta-paper/paper.html
+cricket/doc/neta-paper/fig1.gif
+cricket/doc/neta-paper/peer1.gif
+cricket/doc/neta-paper/peer2.gif
+cricket/doc/neta-paper/ss.gif
+cricket/doc/beginner.txt
+cricket/doc/index.html
+cricket/doc/mrtg-users.html
+cricket/doc/reference.html
+cricket/sample-config/usr/Defaults
+cricket/sample-config/usr/targets
+cricket/sample-config/atm-interfaces/atm-intb-pvc/Defaults
+cricket/sample-config/atm-interfaces/atm-intb-pvc/interfaces
+cricket/sample-config/atm-interfaces/atm-rtr-uni/Defaults
+cricket/sample-config/atm-interfaces/atm-rtr-uni/interfaces
+cricket/sample-config/atm-interfaces/atm-trunks/Defaults
+cricket/sample-config/atm-interfaces/atm-trunks/interfaces
+cricket/sample-config/atm-interfaces/Defaults
+cricket/sample-config/http-performance/Defaults
+cricket/sample-config/http-performance/urls
+cricket/sample-config/news-server/Defaults
+cricket/sample-config/news-server/targets
+cricket/sample-config/portmasters/Defaults
+cricket/sample-config/portmasters/portmasters
+cricket/sample-config/router-interfaces/Defaults
+cricket/sample-config/router-interfaces/interfaces
+cricket/sample-config/routers/Defaults
+cricket/sample-config/routers/Targets
+cricket/sample-config/routing/Defaults
+cricket/sample-config/routing/Targets
+cricket/sample-config/squid-proxy/Defaults
+cricket/sample-config/switch-ports/Defaults
+cricket/sample-config/switch-ports/switches
+cricket/sample-config/switches/Defaults
+cricket/sample-config/switches/switches
+cricket/sample-config/Defaults
+cricket/lib/ConfigTree/Cache.pm
+cricket/lib/ConfigTree/Node.pm
+cricket/lib/RRD/File.pm
+cricket/lib/RRD/Format.pm
+cricket/lib/Common/HandleTarget.pm
+cricket/lib/Common/Log.pm
+cricket/lib/Common/Map.pm
+cricket/lib/Common/Options.pm
+cricket/lib/Common/Util.pm
+cricket/lib/Common/Version.pm
+cricket/lib/exec.pm
+cricket/lib/file.pm
+cricket/lib/func.pm
+cricket/lib/snmp.pm
+cricket/lib/snmpUtils.pm
+cricket/lib/Monitor.pm
+cricket/lib/RPN.pm
+cricket/images/cricket-sm.gif
+cricket/images/failed.gif
+cricket/images/rrdtool.gif
+cricket/util/dump-targets
+cricket/util/generate-statics
+cricket/util/getFormat.c
+cricket/util/listInterfaces
+cricket/util/newsstats
+cricket/util/pmlines.pl
+cricket/util/relocate-perl
+cricket/util/rrd-dump
+cricket/util/rrd-tune
+cricket/util/test-url
+cricket/util/usrModemUsage
+cricket/util/README
+cricket/mini-graph.cgi
+cricket/grapher.cgi
+cricket/configure
+cricket/compile
+cricket/collector
+cricket/collect-subtrees
+cricket/VERSION
+cricket/TODO
+cricket/THANKS
+cricket/README
+cricket/Makefile
+cricket/FAQ
+cricket/COPYING
+cricket/CHANGES
+cricket/subtree-sets
diff --git a/net/cricket/scripts/configure b/net/cricket/scripts/configure
new file mode 100644
index 000000000000..bcf7568dd6b3
--- /dev/null
+++ b/net/cricket/scripts/configure
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# $FreeBSD$
+echo var set to ${PERL5} >/tmp/debug1
+
+FILES_PERLPATH="util/dump-targets util/generate-statics util/listInterfaces \
+ compile util/newsstats util/pmlines.pl util/rrd-dump util/rrd-tune \
+ util/test-url util/usrModemUsage collect-subtrees collector \
+ grapher.cgi mini-graph.cgi"
+FILES_PREFIX="sample-config/news-server/Defaults collect-subtrees collector \
+ compile grapher.cgi mini-graph.cgi util/dump-targets \
+ util/generate-statics util/listInterfaces util/rrd-dump \
+ util/rrd-tune util/usrModemUsage"
+
+for f in $FILES_PERLPATH ; do
+ mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
+ s+%%PATHPERLBIN%%+${PERL5}+g >${WRKSRC}/${f}
+done
+
+for f in $FILES_PREFIX ; do
+ mv ${WRKSRC}/${f} ${WRKSRC}/$f.bak && sed <${WRKSRC}/${f}.bak \
+ s+%%PREFIX%%+${PREFIX}+g >${WRKSRC}/${f}
+done