--- snmpdx.pl 2003/09/09 09:24:28 1.1
+++ snmpdx.pl 2003/09/09 12:50:04 1.2
@@ -35,8 +35,8 @@
# program information
my $prg = {
'name' => 'OSSP snmpdx',
- 'version' => '0.2.0',
- 'date' => '01-Sep-2003'
+ 'version' => '@V@',
+ 'date' => '@D@'
};
## _________________________________________________________________________
@@ -475,12 +475,9 @@
package main;
-# find path to ourself
-my $myroot = "$FindBin::Bin";
-
# parameters (defaults)
my $opt = {
- 'config' => "$myroot/snmpdx.cfg",
+ 'config' => "@sysconfdir@/snmpdx.cfg",
'version' => 0,
'help' => 0,
'tmpdir' => ($ENV{TMPDIR} || $ENV{TEMPDIR} || "/tmp"),
@@ -488,11 +485,11 @@
'next' => 0,
'set' => 0,
'bindir' => "/cw/bin",
- 'probedir' => "$myroot/snmpdx.d",
+ 'probedir' => "@libexecdir@",
'probename' => "*",
- 'mibdir' => "$myroot/snmpdx.mib",
+ 'mibdir' => "@datadir@/snmpdx/mibs",
'mibname' => "snmpdx",
- 'logfile' => "$myroot/snmpdx.log",
+ 'logfile' => "@localstatedir@/snmpdx.log",
'loglevel' => 9,
'strict' => 0,
};
|