diff options
author | markm <markm@FreeBSD.org> | 1998-10-21 18:07:51 +0800 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1998-10-21 18:07:51 +0800 |
commit | 6ec5906cf7eb511e1e348a766b1b7ed7ea9456dd (patch) | |
tree | b3d1059e5724bb3248c5d2ac5cd6fc1d383aeda2 /net/p5-SNMP/files | |
parent | eb6a4f1d553afeeeeb296a54e49476171c6d889e (diff) | |
download | freebsd-ports-gnome-6ec5906cf7eb511e1e348a766b1b7ed7ea9456dd.tar.gz freebsd-ports-gnome-6ec5906cf7eb511e1e348a766b1b7ed7ea9456dd.tar.zst freebsd-ports-gnome-6ec5906cf7eb511e1e348a766b1b7ed7ea9456dd.zip |
Unbreak.
Upgrade to v1.8b3.
Fix for Perl5.
Diffstat (limited to 'net/p5-SNMP/files')
-rw-r--r-- | net/p5-SNMP/files/patch-aa | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/net/p5-SNMP/files/patch-aa b/net/p5-SNMP/files/patch-aa index d729b1190fa0..92d2fff56acf 100644 --- a/net/p5-SNMP/files/patch-aa +++ b/net/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; |