summaryrefslogtreecommitdiff
path: root/net/smokeping/patches/patch-ad
blob: 6778ec25dc4da7b03d7ff65e4aaf0b0678fd79df (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.3 2007/11/22 20:25:54 adrianp Exp $

--- bin/tSmoke.dist.orig	2007-11-05 21:59:38.000000000 +0000
+++ 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.002007;
 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;
@@ -462,9 +461,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
 
@@ -484,17 +483,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
+ @PKG_SYSCONFDIR@/tmail
 
 =head1 COPYRIGHT