summaryrefslogtreecommitdiffstats
path: root/net-mgmt/p5-SNMP/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/p5-SNMP/files/patch-aa')
-rw-r--r--net-mgmt/p5-SNMP/files/patch-aa42
1 files changed, 24 insertions, 18 deletions
diff --git a/net-mgmt/p5-SNMP/files/patch-aa b/net-mgmt/p5-SNMP/files/patch-aa
index d729b11..92d2fff 100644
--- a/net-mgmt/p5-SNMP/files/patch-aa
+++ b/net-mgmt/p5-SNMP/files/patch-aa
@@ -1,18 +1,24 @@
---- Makefile.PL.orig Tue Feb 27 20:35:19 1996
-+++ Makefile.PL Wed Jul 2 09:04:10 1997
-@@ -17,13 +17,9 @@
- my @IncludeFiles = qw[asn1.h parse.h snmp.h snmp_api.h
- snmp_client.h snmp_impl.h];
-
--my @IncludeDirs = qw[/usr/include /usr/local/include];
-+my $IncludeDir = find_files(\@IncludeFiles, [ ( "$ENV{PREFIX}/include/snmp" ) ] );
-
--my $IncludeDir = find_files(\@IncludeFiles,\@IncludeDirs) ||
-- prompt("Where are the cmu-snmpv2 include files installed?","/usr/local/include");
--
--my $LibDir = find_files(["libsnmp.a"],[qw[/usr/lib /usr/local/lib]]) ||
-- prompt("Where is libsnmp.a installed?","/usr/local/lib");
-+my $LibDir = find_files(["libsnmp.a"], [ ( "$ENV{PREFIX}/lib" ) ] );
-
- @IncludeFiles = map {"$IncludeDir/$_";} @IncludeFiles;
- $Params{LIBS} = "-L$LibDir -lsnmp";
+--- Makefile.PL.ORIG Wed Oct 21 11:12:12 1998
++++ Makefile.PL Wed Oct 21 11:24:10 1998
+@@ -26,6 +26,10 @@
+ $snmp_lib = 'libsnmp.dll';
+ $snmp_llib = 'libsnmp';
+ $sep = '\\';
++} elsif ($Config{'osname'} eq 'freebsd') {
++ $snmp_lib = 'libsnmp.so';
++ $snmp_llib = 'snmp';
++ $sep = '/';
+ } else {
+ $snmp_lib = 'libsnmp.a';
+ $snmp_llib = 'snmp';
+@@ -79,8 +83,8 @@
+ }
+ $host ||= 'localhost';
+ $comm ||= 'private';
+- my $resp = prompt("Enter host and community for SNMP tests: ",
+- "$host $comm");
++ $resp = "$host $comm";
++ # my $resp = prompt("Enter host and community for SNMP tests: ", "$host $comm");
+ open(H, ">host") || die "Error: could not open file 'host' ($!)";
+ print H "$resp\n";
+ close H;
OpenPOWER on IntegriCloud