aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/bigsister
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-05-20 14:10:13 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-05-20 14:10:13 +0000
commitd7c7a482a82f6a63381543ddd032857eb085195a (patch)
tree4dcfde94eb6323b4a55409ee63c13391e18f9be9 /net-mgmt/bigsister
parent8ffa74d90d3982258a44d5651fa236d03639b87e (diff)
downloadports-d7c7a482a82f6a63381543ddd032857eb085195a.tar.gz
ports-d7c7a482a82f6a63381543ddd032857eb085195a.zip
Notes
Diffstat (limited to 'net-mgmt/bigsister')
-rw-r--r--net-mgmt/bigsister/Makefile10
-rw-r--r--net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::DisplayCFG.pm11
-rw-r--r--net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::bs_evgen.pm11
-rw-r--r--net-mgmt/bigsister/files/patch-tools::bb_start.pl20
-rw-r--r--net-mgmt/bigsister/files/patch-tools::module.pl11
-rw-r--r--net-mgmt/bigsister/pkg-plist2
6 files changed, 64 insertions, 1 deletions
diff --git a/net-mgmt/bigsister/Makefile b/net-mgmt/bigsister/Makefile
index 408035d4c12b..3d8a2f1d730d 100644
--- a/net-mgmt/bigsister/Makefile
+++ b/net-mgmt/bigsister/Makefile
@@ -20,11 +20,19 @@ RUN_DEPENDS= \
${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD \
${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
- ${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/p5-SNMP \
${SITE_PERL}/SNMP_Session.pm:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI
+# net-snmp provides SNMP.pm. ucd-snmp does not; requires p5-SNMP.
+# Depend on net-snmp by default.
+.if defined(WITH_UCDSNMP)
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/p5-SNMP
+.else
+RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/net-snmp
+.endif
+
GNU_CONFIGURE= yes
+USE_GMAKE= yes
USE_RC_SUBR= yes
USE_REINPLACE= yes
NO_BUILD= yes
diff --git a/net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::DisplayCFG.pm b/net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::DisplayCFG.pm
new file mode 100644
index 000000000000..0ee26cf6e207
--- /dev/null
+++ b/net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::DisplayCFG.pm
@@ -0,0 +1,11 @@
+--- bsmonitor/Statusmon/DisplayCFG.pm.orig Sat Feb 28 16:46:51 2004
++++ bsmonitor/Statusmon/DisplayCFG.pm Sat Feb 28 16:47:15 2004
+@@ -358,7 +358,7 @@
+ "name" => $table
+ } );
+ $tab{"group"} = $table;
+- foreach my $arg qw( refto itemref sort select select_names items ) {
++ foreach my $arg (qw( refto itemref sort select select_names items )) {
+ $tab{$arg} = $args{$arg} if( $args{$arg} );
+ }
+ $tab{"type"} = "table";
diff --git a/net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::bs_evgen.pm b/net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::bs_evgen.pm
new file mode 100644
index 000000000000..d1720ebd38b8
--- /dev/null
+++ b/net-mgmt/bigsister/files/patch-bsmonitor::Statusmon::bs_evgen.pm
@@ -0,0 +1,11 @@
+--- bsmonitor/Statusmon/bs_evgen.pm.orig Sat Feb 28 16:47:57 2004
++++ bsmonitor/Statusmon/bs_evgen.pm Sat Feb 28 16:47:30 2004
+@@ -405,7 +405,7 @@
+ elsif( $event->{"cmd"} eq "remove" ) {
+ my $host = $event->{"host"};
+ my $check = $event->{"check"};
+- foreach my $queuename qw( alarms new_alarms old_alarms ) {
++ foreach my $queuename (qw( alarms new_alarms old_alarms )) {
+ my $queue = $self->{$queuename};
+ for( my $i=$#$queue; $i>=0; $i-- ) {
+ my $alarm = $queue->[$i];
diff --git a/net-mgmt/bigsister/files/patch-tools::bb_start.pl b/net-mgmt/bigsister/files/patch-tools::bb_start.pl
new file mode 100644
index 000000000000..322dcab92ce0
--- /dev/null
+++ b/net-mgmt/bigsister/files/patch-tools::bb_start.pl
@@ -0,0 +1,20 @@
+--- tools/bb_start.pl.orig Mon Aug 11 21:29:38 2003
++++ tools/bb_start.pl Sat Feb 28 17:28:29 2004
+@@ -161,7 +161,7 @@
+
+ sub proclist {
+ my @result;
+- foreach my $cmd ( "ps cax", "ps -e", "ps -ef" ) {
++ foreach my $cmd ( "/bin/ps ax" ) {
+ open( CMD, "$cmd 2>/dev/null|" );
+ @result = ();
+ while( <CMD> ) {
+@@ -197,7 +197,7 @@
+ exec( $cmd );
+ }
+ else {
+- exec( "su", "-", "$user", "-c", $cmd );
++ exec( "/usr/bin/su", "-m", "$user", "-c", $cmd );
+ }
+ exit(1);
+ }
diff --git a/net-mgmt/bigsister/files/patch-tools::module.pl b/net-mgmt/bigsister/files/patch-tools::module.pl
new file mode 100644
index 000000000000..61f93019caf4
--- /dev/null
+++ b/net-mgmt/bigsister/files/patch-tools::module.pl
@@ -0,0 +1,11 @@
+--- tools/module.pl.orig Sat Feb 28 15:03:52 2004
++++ tools/module.pl Sat Feb 28 15:04:06 2004
+@@ -419,7 +419,7 @@
+
+
+ sub lock_mod {
+- my $lock = "$BigSister::common::fs{'var'}/module.lock";
++ my $lock = "$BigSister::common::fs{'tmp'}/module.lock";
+ my $locktmp = "$lock.$$";
+ push( @tmp, $locktmp );
+ my $timeout = time + 5;
diff --git a/net-mgmt/bigsister/pkg-plist b/net-mgmt/bigsister/pkg-plist
index 3c1c966a7586..7b9dcf1f5d2d 100644
--- a/net-mgmt/bigsister/pkg-plist
+++ b/net-mgmt/bigsister/pkg-plist
@@ -72,6 +72,7 @@ bigsister/bin/StatusLog.pm
bigsister/bin/Statusmon/BBLog.pm
bigsister/bin/Statusmon/Display.pm
bigsister/bin/Statusmon/DisplayCFG.pm
+bigsister/bin/Statusmon/DisplayCFG.pm.orig
bigsister/bin/Statusmon/Grapher.pm
bigsister/bin/Statusmon/HTMLLog.pm
bigsister/bin/Statusmon/RRDi.pm
@@ -80,6 +81,7 @@ bigsister/bin/Statusmon/Rsync.pm
bigsister/bin/Statusmon/Statusmon.pm
bigsister/bin/Statusmon/TrackLast.pm
bigsister/bin/Statusmon/bs_evgen.pm
+bigsister/bin/Statusmon/bs_evgen.pm.orig
bigsister/bin/Statusmon/grouping.pm
bigsister/bin/Statusmon/history.pm
bigsister/bin/Statusmon/test.pm