summaryrefslogtreecommitdiff
path: root/net/smokeping/patches/patch-ad
diff options
context:
space:
mode:
authoradrianp <adrianp>2005-10-28 21:43:18 +0000
committeradrianp <adrianp>2005-10-28 21:43:18 +0000
commitb22ecd550e89fbfdee1b2df4a59c5cc3f15f3e51 (patch)
tree77210a2d630f7554952db5fd270ee892e4953564 /net/smokeping/patches/patch-ad
parent0b05ee9801ae649e743fe637f8cb3adbd64704a3 (diff)
downloadpkgsrc-b22ecd550e89fbfdee1b2df4a59c5cc3f15f3e51.tar.gz
Upgrade from smokeping 1.3.x to 2.0.4
Ok'ed bouyer@ Lots of changes but in brief: new probe programming interface allow target-specific vars get defaults from Probes section config file examples and smokeping_examples document documentation updates and reorganizing new commandline options '--config=X' and '--check' Perl 5.8.0 compatibility fix RRDtool 1.2.x compatibility fix ("unknown RRD version: 0003" on restart) See this URL for all the details: http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/CHANGES
Diffstat (limited to 'net/smokeping/patches/patch-ad')
-rw-r--r--net/smokeping/patches/patch-ad56
1 files changed, 56 insertions, 0 deletions
diff --git a/net/smokeping/patches/patch-ad b/net/smokeping/patches/patch-ad
new file mode 100644
index 00000000000..e8735b7eacc
--- /dev/null
+++ b/net/smokeping/patches/patch-ad
@@ -0,0 +1,56 @@
+$NetBSD: patch-ad,v 1.1 2005/10/28 21:43:18 adrianp Exp $
+
+--- bin/tSmoke.dist.orig 2005-10-23 22:31:49.000000000 +0100
++++ bin/tSmoke.dist
+@@ -50,8 +50,7 @@ use strict;
+ # -- Getopt::Long
+ #
+ # Point the lib variables to your implementation
+-use lib qw(lib);
+-use lib "/usr/local/rrdtool-1.0.39/lib/perl";
++use lib "@PREFIX@/lib/smokeping";
+
+ use Smokeping 2.000004;
+ use Net::SMTP;
+@@ -60,7 +59,7 @@ use Pod::Usage;
+ use RRDs;
+
+ # Point to your Smokeping config file
+-my $cfgfile = "etc/config.dist";
++my $cfgfile = "@PKG_SYSCONFDIR@/config";
+
+ # global variables
+ my $cfg;
+@@ -473,9 +472,9 @@ past week and past month including an ov
+ Typical crontab used to invoke this are
+
+ # Quick morning alert to see what's down
+- 0 6 * * * /usr/local/smokeping/bin/tSmoke.pl --q --to=mobilephone@att.net.invalid --morning
++ 0 6 * * * @PREFIX@/bin/tSmoke.pl --q --to=mobilephone@att.net.invalid --morning
+ # Weekly report on the percent availability of network systems with no detail
+- 0 8 * * * /usr/local/smokeping/bin/tSmoke.pl --q --to=mailbox@company.com.invalid --weekly --detail=0
++ 0 8 * * * @PREFIX@/tSmoke.pl --q --to=mailbox@company.com.invalid --weekly --detail=0
+
+ =head1 SETUP
+
+@@ -495,17 +494,16 @@ We need to use the following B<libraries
+
+ Set up your libraries:
+
+- use lib "/usr/local/smokeping/lib";
+- use lib "/usr/local/rrdtool-1.0.39/lib/perl";
++ use lib "@PREFIX@/lib/smokeping";
+
+ Point to your Smokeping B<config> file
+
+- my $cfgfile = "/usr/local/smokeping/etc/config";
++ my $cfgfile = "@PKG_SYSCONFDIR@/config";
+
+ Modify the Smokeping config file to include a path for tmail in the
+ General section:
+
+- tmail = /usr/local/smokeping/etc/tmail
++ tmail = @PKG_SYSCONFDIR@/tmail
+
+ =head1 COPYRIGHT
+