aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp53/files/patch-local:snmpconf
blob: f2a0b11cf75e32c822ff581149b295273f27a097 (plain) (blame)
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
--- local/snmpconf.orig	Sun Aug 21 10:23:23 2005
+++ local/snmpconf	Wed Nov 30 12:19:42 2005
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%%PERL%% -w
 
 #
 # A simple configuration file builder based on questions listed in
@@ -31,7 +31,7 @@
   $opts{'c'} = &my_getenv("SNMPSHAREPATH") . "/snmpconf-data";
 }
 else {
-  $opts{'c'} = "/usr/local/share/snmp/snmpconf-data";
+  $opts{'c'} = "%%PREFIX%%/share/snmp/snmpconf-data";
 }
  
 # default config file path
@@ -39,7 +39,7 @@
   $confpath = &my_getenv("SNMPCONFPATH");
 }
 else {
-  $confpath = "/usr/local/share/snmp";
+  $confpath = "%%PREFIX%%/share/snmp";
 }
 
 # home environment variable
@@ -100,7 +100,7 @@
   $ENV_SEPARATOR = ';';
 }
 my @searchpath = split(/$ENV_SEPARATOR/, $confpath);
-push @searchpath, "/usr/local/etc/snmp";
+push @searchpath, "%%PREFIX%%/etc/snmp";
 push @searchpath, ".";
 push @searchpath, "$home";