Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Dec 2007 22:58:08 +0200
From:      Tim Priebe <tim@pinnacle-networks.com>
To:        ports@freebsd.org
Subject:   FreeBSD Port: net-mgmt/cricket
Message-ID:  <200712172258.08947.tim@pinnacle-networks.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712172258.08947.tim>