diff options
Diffstat (limited to 'net/p5-SNMP/patches/patch-aa')
-rw-r--r-- | net/p5-SNMP/patches/patch-aa | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/net/p5-SNMP/patches/patch-aa b/net/p5-SNMP/patches/patch-aa index 5c681c576ec..7f0d28b2754 100644 --- a/net/p5-SNMP/patches/patch-aa +++ b/net/p5-SNMP/patches/patch-aa @@ -1,34 +1,13 @@ -$NetBSD: patch-aa,v 1.3 2001/01/30 22:03:39 wrstuden Exp $ +$NetBSD: patch-aa,v 1.4 2004/02/13 17:46:22 seb Exp $ ---- Makefile.PL.orig Fri Jan 26 13:35:24 2001 -+++ Makefile.PL Fri Jan 26 14:03:10 2001 -@@ -31,9 +31,9 @@ - $snmp_link_lib = 'snmp'; - $sep = '/'; - } -- my $inc_path1 = "${sep}usr${sep}local${sep}include"; -+ my $inc_path1 = "$ENV{'PREFIX'}${sep}include"; - my $inc_path2 = "${sep}usr${sep}include"; -- my $lib_path1 = "${sep}usr${sep}local${sep}lib"; -+ my $lib_path1 = "$ENV{'PREFIX'}${sep}lib"; - my $lib_path2 = "${sep}usr${sep}lib"; +--- OID/OID.xs.orig Thu Dec 19 22:49:21 2002 ++++ OID/OID.xs +@@ -12,7 +12,7 @@ + #define NETSNMP_NAMEBUF_LEN 128 + typedef struct netsnmp_oid_s { + oid *name; +- unsigned int len; ++ size_t len; + oid namebuf[ NETSNMP_NAMEBUF_LEN ]; + } netsnmp_oid; - my @IncludeFiles = qw[ucd-snmp/ucd-snmp-config.h -@@ -58,7 +58,7 @@ - $ssl_link_lib = ($^O =~ /win32/i ? 'libeay32' : 'crypto'); - my $ssl_link_libs; - if (HasSSL("$IncludeDir${sep}ucd-snmp/ucd-snmp-config.h")) { -- my @SSLLibDirs = ("/usr/local/lib", "/usr/local/ssl/lib", "/usr/lib"); -+ my @SSLLibDirs = ("/usr/lib", "$ENV{'PREFIX'}/lib"); - my $SSLLibDir = find_files([$ssl_lib], \@SSLLibDirs) || - prompt("Where is the SSL library installed?", $SSLLibDirs[1]); - $ssl_link = "-L$SSLLibDir -l$ssl_link_lib" if $SSLLibDir; -@@ -87,7 +87,7 @@ - sub GetTestInfo { - my $sep = ($^O =~ /win32/i ? '\\' : '/'); - my $info_file = "t${sep}snmptest.cmd"; -- my $snmpd_path1 = "${sep}usr${sep}local${sep}sbin"; -+ my $snmpd_path1 = "$ENV{'PREFIX'}${sep}sbin"; - my $snmpd_path2 = "${sep}usr${sep}sbin"; - my $snmpd_path3 = "${sep}usr${sep}bin"; - return if -e $info_file; |