summaryrefslogtreecommitdiff
path: root/net/smokeping/patches/patch-ad
blob: e8735b7eaccec67df51486773aacd978766f5158 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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