summaryrefslogtreecommitdiff
path: root/net/ocsinventory-agent/patches/patch-am
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2009-08-16 18:25:53 +0000
committerbouyer <bouyer@pkgsrc.org>2009-08-16 18:25:53 +0000
commitd5700bc2c1bb13ef446004c0a291545e58ed80e8 (patch)
tree34f9ae646bc97e463c657387ce61682cee2c4dbf /net/ocsinventory-agent/patches/patch-am
parent700edae2fe122b11668358a9b075d2aaf7597f2a (diff)
downloadpkgsrc-d5700bc2c1bb13ef446004c0a291545e58ed80e8.tar.gz
Import ocsinventory-agent 1.1.2 to pkgsrc.
Open Computer and Software Inventory Next Generation is an application designed to help a network or system administrator keep track of the computers configuration and software that are installed on the network. Information about Hardware and Operating System are collected.
Diffstat (limited to 'net/ocsinventory-agent/patches/patch-am')
-rw-r--r--net/ocsinventory-agent/patches/patch-am19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/ocsinventory-agent/patches/patch-am b/net/ocsinventory-agent/patches/patch-am
new file mode 100644
index 00000000000..3c2d804363c
--- /dev/null
+++ b/net/ocsinventory-agent/patches/patch-am
@@ -0,0 +1,19 @@
+$NetBSD: patch-am,v 1.1.1.1 2009/08/16 18:25:53 bouyer Exp $
+
+--- lib/Ocsinventory/Agent/Backend/OS/BSD/Archs/Sparc.pm.orig 2009-07-30 15:47:09.000000000 +0200
++++ lib/Ocsinventory/Agent/Backend/OS/BSD/Archs/Sparc.pm 2009-07-30 15:54:21.000000000 +0200
+@@ -52,9 +52,11 @@
+ # c) FreeBSD
+ # cpu0: Sun Microsystems UltraSparc-I Processor (167.00 MHz CPU)
+
+- for (`dmesg`) {
+- if (/^mainbus0 \(root\):\s*(.*)$/) { $SystemModel = $1; }
+- if (/^cpu[^:]*:\s*(.*)$/i) { $processort = $1 unless $processort; }
++ if ( -r "/var/run/dmesg.boot") {
++ for(`cat /var/run/dmesg.boot`){
++ if (/^mainbus0 \(root\):\s*(.*)$/) { $SystemModel = $1; }
++ if (/^cpu[^:]*:\s*(.*)$/i) { $processort = $1 unless $processort; }
++ }
+ }
+ $SystemModel || chomp ($SystemModel = `sysctl -n hw.model`); # for FreeBSD
+ $SystemManufacturer = "SUN";