1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net-mgmt/net-snmp53/files/patch-local:snmpconf
Jun Kuriyama de310693e8 - Upgrade to 5.2.2.
- Return more appropriate values for hrSWRunType (1)

PR:		ports/86572 (1)
Submitted by:	wollman (1)
2005-11-30 05:22:40 +00:00

36 lines
880 B
Plaintext

--- 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";