$NetBSD: patch-ad,v 1.5 2008/08/17 11:09:10 adrianp 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;
 use RRDs;
 
 # Point to your Smokeping config file
-my $cfgfile = "etc/config.dist";
+my $cfgfile = "@PKG_SYSCONFDIR@/config";
 
 # 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
 
