freebsd-ports/net/smokeping/files/patch-bin-tSmoke.dist
Lars Thegler c96404e983 - Update to 2.0.9
- Permanent uid/gid [1]
- Better handling of www uid [1]
- Update WWW: URL in pkg-descr [1]

PR:		ports/96310 [1]
Submitted by:	Gea-Suan Lin <gslin@gslin.org>
2006-07-26 12:55:58 +00:00

63 lines
1.3 KiB
Text

--- bin/tSmoke.dist.orig Mon Sep 19 00:50:50 2005
+++ bin/tSmoke.dist Mon Sep 19 00:54:58 2005
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!%%PERL%%
#
#-----------------------------------------------
# tSmoke.pl
@@ -50,8 +50,7 @@
# -- 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 qw(%%PREFIX%%/smokeping/lib);
use Smokeping 2.000009;
use Net::SMTP;
@@ -60,7 +59,7 @@
use RRDs;
# Point to your Smokeping config file
-my $cfgfile = "etc/config.dist";
+my $cfgfile = "%%PREFIX%%/etc/config";
# global variables
my $cfg;
@@ -479,33 +478,8 @@
=head1 SETUP
-When installing tSmoke, some variables must be adjusted to fit your local system.
-
-We need to use the following B<libraries>:
-
-=over
-
-=item Smokeping
-
-=item RRDTool Perl bindings
-
-=item Getopt::Long
-
-=back
-
-Set up your libraries:
-
- use lib "/usr/local/smokeping/lib";
- use lib "/usr/local/rrdtool-1.0.39/lib/perl";
-
-Point to your Smokeping B<config> file
-
- my $cfgfile = "/usr/local/smokeping/etc/config";
-
-Modify the Smokeping config file to include a path for tmail in the
-General section:
-
- tmail = /usr/local/smokeping/etc/tmail
+When installing tSmoke, this file has been adjusted to fit your
+local system. There should be no need for further path adjustments.
=head1 COPYRIGHT