summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2011-09-11 12:03:03 +0200
committerTobi Oetiker <tobi@oetiker.ch>2011-09-11 12:03:03 +0200
commit5e4b9fe9ed3975e519e317e07288fcee1a2180a3 (patch)
treed337bd23e26f3b6007843805d89d2719a9de19ef
parent72898b7566ea545be6ee94a91a5ec29ef9bf0aa0 (diff)
downloadsmokeping-5e4b9fe9ed3975e519e317e07288fcee1a2180a3.tar.gz
smokeping-5e4b9fe9ed3975e519e317e07288fcee1a2180a3.tar.xz
fix library paths and start perl via env, following todays custom
-rwxr-xr-xbin/smokeping (renamed from bin/smokeping.dist)9
-rwxr-xr-xbin/tSmoke (renamed from bin/tSmoke.dist)7
2 files changed, 10 insertions, 6 deletions
diff --git a/bin/smokeping.dist b/bin/smokeping
index 94e7807..3fe0575 100755
--- a/bin/smokeping.dist
+++ b/bin/smokeping
@@ -1,10 +1,13 @@
-#!/usr/bin/perl -w
+#!/usr/bin/env perl
# -*-perl-*-
-use lib qw(/scratch/oetiker/rrd-trunk/lib/perl);
-use lib qw(lib);
use strict;
use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/../thirdparty/lib/perl5";
+use lib "$FindBin::Bin/../lib";
+
use Smokeping 2.004002;
Smokeping::main("etc/config.dist");
diff --git a/bin/tSmoke.dist b/bin/tSmoke
index e389ff2..fc0d74f 100755
--- a/bin/tSmoke.dist
+++ b/bin/tSmoke
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
#-----------------------------------------------
# tSmoke.pl
@@ -51,8 +51,9 @@ 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 FindBin;
+use lib "$FindBin::Bin/../thirdparty/lib/perl5";
+use lib "$FindBin::Bin/../lib";
use Smokeping 2.004002;
use Net::SMTP;