diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
commit | 7011c19a8c96a2f8fb7c04d61cb28cdc507584a6 (patch) | |
tree | 22c0efaf2b6bb5b461389f9bac9542c7e3a5909a /net-mgmt/net-snmp-devel/files/patch-local:snmpconf | |
parent | Now buildable on 4.x, still broken on >= 5.x. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_11_0'.release/4.11.0
Notes
Notes:
svn path=/head/; revision=127022
svn path=/tags/RELEASE_4_11_0/; revision=127023; tag=release/4.11.0
Diffstat (limited to 'net-mgmt/net-snmp-devel/files/patch-local:snmpconf')
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-local:snmpconf | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-local:snmpconf b/net-mgmt/net-snmp-devel/files/patch-local:snmpconf deleted file mode 100644 index 5b3623782df9..000000000000 --- a/net-mgmt/net-snmp-devel/files/patch-local:snmpconf +++ /dev/null @@ -1,53 +0,0 @@ ---- local/snmpconf.orig Sat Oct 9 01:01:37 2004 -+++ local/snmpconf Mon Oct 25 08:42:23 2004 -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -w -+#!%%PERL%% -w - - # - # A simple configuration file builder based on questions listed in -@@ -32,7 +32,7 @@ - $opts{'c'} = "$ENV{SNMPSHAREPATH}/snmpconf-data"; - } - else { -- $opts{'c'} = "/usr/local/share/snmp/snmpconf-data"; -+ $opts{'c'} = "%%PREFIX%%/share/snmp/snmpconf-data"; - } - - # default config file path -@@ -40,7 +40,7 @@ - $confpath = "$ENV{SNMPCONFPATH}"; - } - else { -- $confpath = "/usr/local/share/snmp"; -+ $confpath = "%%PREFIX%%/share/snmp"; - } - } - else -@@ -128,7 +128,7 @@ - # - # Find existing files to possibly read in. - # --my @searchpath = ("$confpath","/usr/local/etc/snmp", ".", "$home"); -+my @searchpath = ("$confpath","%%PREFIX%%/etc/snmp", ".", "$home"); - push @searchpath, $opts{I} if ($opts{I}); - foreach my $i (@searchpath) { - debug("searching $i\n"); -@@ -227,7 +227,7 @@ - if ($opts{'i'} || $opts{'I'}) { - $opts{'I'} = "$confpath" if (!$opts{'I'}); - -- if (! (-d "$opts{'I'}") && ! (mkdir ("$opts{'I'}"))) { -+ if (! (-d "$opts{'I'}") && ! (mkdir ("$opts{'I'}", 0777))) { - print "\nCould not create $opts{'I'} directory: $!\n"; - print ("File $didfile{$i} left in current directory\n"); - } -@@ -242,7 +242,7 @@ - } - } - } elsif ($opts{'p'}) { -- if (! (-d "$home") && ! (mkdir ("$home"))) { -+ if (! (-d "$home") && ! (mkdir ("$home", 0777))) { - print "\nCould not create $home directory: $!\n"; - print ("File $didfile{$i} left in current directory\n"); - } |