summaryrefslogtreecommitdiff
path: root/net/smokeping/patches/patch-ad
diff options
context:
space:
mode:
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
+