pkgsrc/sysutils/munin-node/patches/patch-ae
abs b99437cd9c Use PKG_SYSCONFSUBDIR so PKG_SYSCONFBASE can be set
Use REPLACE_PERL on all plugins
Adjust sensors_ to work with NetBSD 3
Bump PKGREVISION
2006-07-21 23:28:37 +00:00

15 lines
554 B
Text

$NetBSD: patch-ae,v 1.1 2006/07/21 23:28:37 abs Exp $
--- node/node.d/hddtemp_smartctl.in.orig 2005-01-29 22:14:02.000000000 +0000
+++ node/node.d/hddtemp_smartctl.in
@@ -93,6 +93,10 @@ if ($^O eq 'linux') {
}
} elsif ($^O eq 'solaris') {
@drives = map { s@.*/@@ } glob '/dev/rdsk/c*t*d*s2';
+} elsif ($^O eq 'netbsd') {
+ my $rawpart = chr(`sysctl -n kern.rawpartition` + 97); # 'c' or 'd'
+ @drives = map { $_ . $rawpart } grep { /^wd/ } split ' ',
+ `sysctl -n hw.disknames`;
}
@drives = split ' ', $ENV{drives} if exists $ENV{drives};