diff options
Diffstat (limited to 'net/smokeping/patches/patch-ad')
-rw-r--r-- | net/smokeping/patches/patch-ad | 53 |
1 files changed, 5 insertions, 48 deletions
diff --git a/net/smokeping/patches/patch-ad b/net/smokeping/patches/patch-ad index c23056122be..7e588aedc1b 100644 --- a/net/smokeping/patches/patch-ad +++ b/net/smokeping/patches/patch-ad @@ -1,56 +1,13 @@ -$NetBSD: patch-ad,v 1.5 2008/08/17 11:09:10 adrianp Exp $ +$NetBSD: patch-ad,v 1.6 2012/02/02 18:54:35 bouyer Exp $ ---- bin/tSmoke.dist.orig 2008-07-24 18:37:05.000000000 +0100 -+++ bin/tSmoke.dist -@@ -51,8 +51,7 @@ use warnings; - # -- Getopt::Long - # - # Point the lib variables to your implementation --use lib qw(lib); --use lib qw(/usr/local/rrdtool-1.0.39/lib/perl); -+use lib "@PREFIX@/lib/smokeping"; - - use Smokeping 2.004002; - use Net::SMTP; -@@ -61,7 +60,7 @@ use Pod::Usage; +--- bin/tSmoke.orig 2012-02-02 15:16:10.000000000 +0100 ++++ bin/tSmoke 2012-02-02 15:16:31.000000000 +0100 +@@ -63,7 +63,7 @@ use RRDs; # Point to your Smokeping config file -my $cfgfile = "etc/config.dist"; -+my $cfgfile = "@PKG_SYSCONFDIR@/config"; ++my $cfgfile = "@PKG_SYSCONFDIR@/config.dist"; # global variables my $cfg; -@@ -476,9 +475,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@/bin/tSmoke.pl --q --to=mailbox@company.com.invalid --weekly --detail=0 - - =head1 SETUP - -@@ -498,17 +497,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 - |