FreeBSD Port: net-mgmt/cricket
Tim Priebe
tim at pinnacle-networks.com
Mon Dec 17 13:39:09 PST 2007
The following replacement patch for patch-lib-RRD-Format.pm makes cricket also
work on amd64 FreeBSD systems:
--- Format.pm.orig Wed Jan 21 04:11:09 2004
+++ Format.pm Mon Dec 17 22:47:18 2007
@@ -120,6 +120,7 @@
$self->{'dsDef'} = "a20 a20 L x4 d d x56";
$self->{'rraDef'} = "a20 L L d x72";
$self->{'pdpDef'} = "a30 x2 L x4 d x64";
+ $self->{"liveHead3"} = "L L";
$self->{'cdpDef'} = "d L x4 x64";
$self->{'liveHead'} = "L";
@@ -159,6 +160,15 @@
$self->{'liveHead'} = "Q";
$self->{'rraPtr'} = "Q";
$self->{'element'} = "d";
+ } elsif ( $archname eq 'amd64-freebsd' ) {
+ $self->{'statHead'} = "a4 a5 x7 d Q Q Q x80";
+ $self->{'dsDef'} = "a20 a20 Q d d x56";
+ $self->{'rraDef'} = "a20 x4 Q Q d x72";
+ $self->{'pdpDef'} = "a30 x2 Q d x64";
+ $self->{'cdpDef'} = "d Q x64";
+ $self->{'liveHead3'} = "Q Q";
+ $self->{'rraPtr'} = "Q";
+ $self->{'element'} = "d";
} elsif ( $archname eq 'sparc64-netbsd' ) {
$self->{'statHead'} = "a4 a5 x7 d Q Q Q x80";
$self->{'dsDef'} = "a20 a20 Q d d x56";
This first bit is just the old patch. The second bit is the amd64 bit. I have
been using it for some time now without any problems, and only remembered
when I installed a new system, and had to patch it too.
Tim Priebe.
Pinnacle Networks
Windhoek, Namibia
More information about the freebsd-ports
mailing list