Adopt FreeBSD's patches to make this build with perl 5.24, ref. https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270 https://bugs.gentoo.org/show_bug.cgi?id=582368 Bump PKGREVISION.diff -r1.114 -r1.115 pkgsrc/net/net-snmp/Makefile
(he)
@@ -1,18 +1,18 @@ | @@ -1,18 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.114 2016/03/05 11:27:52 jperkin Exp $ | 1 | # $NetBSD: Makefile,v 1.115 2016/06/06 14:11:35 he Exp $ | |
2 | 2 | |||
3 | .include "Makefile.common" | 3 | .include "Makefile.common" | |
4 | CATEGORIES= net | 4 | CATEGORIES= net | |
5 | PKGREVISION= 3 | 5 | PKGREVISION= 4 | |
6 | 6 | |||
7 | MAINTAINER= adam@NetBSD.org | 7 | MAINTAINER= adam@NetBSD.org | |
8 | COMMENT= Extensible SNMP implementation | 8 | COMMENT= Extensible SNMP implementation | |
9 | 9 | |||
10 | CONFLICTS= ucd-snmp-[0-9]* | 10 | CONFLICTS= ucd-snmp-[0-9]* | |
11 | CONFLICTS+= nocol-[0-9]* # bin/snmpget bin/snmpwalk | 11 | CONFLICTS+= nocol-[0-9]* # bin/snmpget bin/snmpwalk | |
12 | 12 | |||
13 | USE_LIBTOOL= yes | 13 | USE_LIBTOOL= yes | |
14 | GNU_CONFIGURE= yes | 14 | GNU_CONFIGURE= yes | |
15 | 15 | |||
16 | MAKE_ENV+= OPSYS=${OPSYS} | 16 | MAKE_ENV+= OPSYS=${OPSYS} | |
17 | MAKE_JOBS_SAFE= no | 17 | MAKE_JOBS_SAFE= no | |
18 | 18 |
@@ -1,42 +1,55 @@ | @@ -1,42 +1,55 @@ | |||
1 | $NetBSD: distinfo,v 1.88 2016/04/29 19:47:21 adam Exp $ | 1 | $NetBSD: distinfo,v 1.89 2016/06/06 14:11:35 he Exp $ | |
2 | 2 | |||
3 | SHA1 (net-snmp-5.7.3.tar.gz) = 97dc25077257680815de44e34128d365c76bd839 | 3 | SHA1 (net-snmp-5.7.3.tar.gz) = 97dc25077257680815de44e34128d365c76bd839 | |
4 | RMD160 (net-snmp-5.7.3.tar.gz) = c5cf54d5723ee417e07f1f9fa3936aef505104a2 | 4 | RMD160 (net-snmp-5.7.3.tar.gz) = c5cf54d5723ee417e07f1f9fa3936aef505104a2 | |
5 | SHA512 (net-snmp-5.7.3.tar.gz) = 0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb | 5 | SHA512 (net-snmp-5.7.3.tar.gz) = 0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb | |
6 | Size (net-snmp-5.7.3.tar.gz) = 6382428 bytes | 6 | Size (net-snmp-5.7.3.tar.gz) = 6382428 bytes | |
7 | SHA1 (patch-ac) = 59987ecb9467b1cead9af3d4432a4dd69be93480 | 7 | SHA1 (patch-ac) = fa5a32e497a7651f4804082d921bb2e91b17d098 | |
8 | SHA1 (patch-af) = 4fb96b79f9126dedb8a132d44894ea23c9e8c101 | 8 | SHA1 (patch-af) = 4fb96b79f9126dedb8a132d44894ea23c9e8c101 | |
9 | SHA1 (patch-ag) = d9595eceeb5ee986ab4365f62e3c3ab339e605aa | 9 | SHA1 (patch-ag) = d9595eceeb5ee986ab4365f62e3c3ab339e605aa | |
10 | SHA1 (patch-agent_mibgroup_agentx_master.c) = c2b3f145280e3fecc26a431ec914cf89d87a17f4 | 10 | SHA1 (patch-agent_mibgroup_agentx_master.c) = c2b3f145280e3fecc26a431ec914cf89d87a17f4 | |
11 | SHA1 (patch-agent_mibgroup_agentx_master_admin.c) = 3c233c1e3113fbc9c1de34cb4cbacca9ef4a6fe2 | 11 | SHA1 (patch-agent_mibgroup_agentx_master_admin.c) = 3c233c1e3113fbc9c1de34cb4cbacca9ef4a6fe2 | |
12 | SHA1 (patch-agent_mibgroup_at.c) = 50842f54d98b3cf7bf7028ddbb582b84b7ae682f | 12 | SHA1 (patch-agent_mibgroup_at.c) = 50842f54d98b3cf7bf7028ddbb582b84b7ae682f | |
13 | SHA1 (patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c) = 5f1cd89f938b60e57ae87c055a269d3848b6a23e | 13 | SHA1 (patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c) = 5f1cd89f938b60e57ae87c055a269d3848b6a23e | |
14 | SHA1 (patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c) = cee9722d9a3f956726a8760b900ed3a375afde3f | 14 | SHA1 (patch-agent_mibgroup_hardware_fsys_fsys_getfsstats.c) = cee9722d9a3f956726a8760b900ed3a375afde3f | |
15 | SHA1 (patch-agent_mibgroup_hardware_memory_memory__netbsd.c) = 928a5aa99e7893ee91dea3110db8098212e328fa | 15 | SHA1 (patch-agent_mibgroup_hardware_memory_memory__netbsd.c) = 928a5aa99e7893ee91dea3110db8098212e328fa | |
16 | SHA1 (patch-agent_mibgroup_host_data__access_swrun__kinfo.c) = f983ae0d99d85ab1ac6dc7cf2d2c0415b6935258 | 16 | SHA1 (patch-agent_mibgroup_host_data__access_swrun__kinfo.c) = f983ae0d99d85ab1ac6dc7cf2d2c0415b6935258 | |
17 | SHA1 (patch-agent_mibgroup_ip-mib_data__access_arp__sysctl.c) = cad87b474cdd469c7ba762ed8a47202c3c6f9240 | 17 | SHA1 (patch-agent_mibgroup_ip-mib_data__access_arp__sysctl.c) = cad87b474cdd469c7ba762ed8a47202c3c6f9240 | |
18 | SHA1 (patch-agent_mibgroup_kernel__sunos5.c) = 3e345f92f42a47959716b0176096c6b0d91aa65a | 18 | SHA1 (patch-agent_mibgroup_kernel__sunos5.c) = 3e345f92f42a47959716b0176096c6b0d91aa65a | |
19 | SHA1 (patch-agent_mibgroup_kernel__sunos5.h) = eb80eb5e55020014b1e5524fd572839aefdce5a5 | 19 | SHA1 (patch-agent_mibgroup_kernel__sunos5.h) = eb80eb5e55020014b1e5524fd572839aefdce5a5 | |
20 | SHA1 (patch-agent_mibgroup_mibII_ipAddr.c) = cd3345a4b30fe2280d0555ee38feb5f957a55b1e | 20 | SHA1 (patch-agent_mibgroup_mibII_ipAddr.c) = cd3345a4b30fe2280d0555ee38feb5f957a55b1e | |
21 | SHA1 (patch-agent_mibgroup_mibII_ipv6.c) = d6a271145e6ba774cbc1e93caa14e3d22dc43075 | 21 | SHA1 (patch-agent_mibgroup_mibII_ipv6.c) = d6a271145e6ba774cbc1e93caa14e3d22dc43075 | |
22 | SHA1 (patch-agent_mibgroup_mibII_tcpTable.c) = f547f3fd08848803cbf7ce08a41ba463c4d02992 | 22 | SHA1 (patch-agent_mibgroup_mibII_tcpTable.c) = f547f3fd08848803cbf7ce08a41ba463c4d02992 | |
23 | SHA1 (patch-agent_mibgroup_mibII_udpTable.c) = 2eb5e5c05ecb23f69cbb0d38a31e14d5b5ddc6b7 | 23 | SHA1 (patch-agent_mibgroup_mibII_udpTable.c) = 2eb5e5c05ecb23f69cbb0d38a31e14d5b5ddc6b7 | |
24 | SHA1 (patch-agent_mibgroup_var__route.c) = 919348e62849367793e4abf7d608d9824eb8ff2d | 24 | SHA1 (patch-agent_mibgroup_var__route.c) = 919348e62849367793e4abf7d608d9824eb8ff2d | |
25 | SHA1 (patch-agent_snmp__agent.c) = 2dbfea907d0e1881f5d55c5b270984fc3a562da9 | 25 | SHA1 (patch-agent_snmp__agent.c) = 2dbfea907d0e1881f5d55c5b270984fc3a562da9 | |
26 | SHA1 (patch-agent_snmp__perl.c) = 893cf46624d4f26941b3911a64c752c110ba6ef8 | |||
26 | SHA1 (patch-ai) = 04c2a487bad8705c9725ef4a62016051d3898970 | 27 | SHA1 (patch-ai) = 04c2a487bad8705c9725ef4a62016051d3898970 | |
27 | SHA1 (patch-aj) = d110e996d0538d17251d39a5eed46df6944ba0fa | 28 | SHA1 (patch-aj) = d110e996d0538d17251d39a5eed46df6944ba0fa | |
28 | SHA1 (patch-ak) = 50ac67db8a9ffc16d983b4192e74db25ef439321 | 29 | SHA1 (patch-ak) = 50ac67db8a9ffc16d983b4192e74db25ef439321 | |
29 | SHA1 (patch-am) = 52858b71d4e75d813f134c2d006819108430c766 | 30 | SHA1 (patch-am) = d01e8a93f6e766cedfdc324efd69168f71aac76f | |
30 | SHA1 (patch-ap) = 44a4ce6302457094ba2b200e4c47ff6c2a425746 | 31 | SHA1 (patch-ap) = 44a4ce6302457094ba2b200e4c47ff6c2a425746 | |
31 | SHA1 (patch-aq) = a8fe703d8902c2847ca6692af4400ddbf9cbe74b | 32 | SHA1 (patch-aq) = a8fe703d8902c2847ca6692af4400ddbf9cbe74b | |
32 | SHA1 (patch-da) = 40e8d78bad93ca12f4c08c43b86e7f13edafc299 | 33 | SHA1 (patch-da) = 40e8d78bad93ca12f4c08c43b86e7f13edafc299 | |
33 | SHA1 (patch-db) = 281be9a88860987880c71770f4050fd965dd8ed9 | 34 | SHA1 (patch-db) = 281be9a88860987880c71770f4050fd965dd8ed9 | |
34 | SHA1 (patch-dl) = 92563fd6be6f27be5b348cdc8bc02061374026b0 | 35 | SHA1 (patch-dl) = 92563fd6be6f27be5b348cdc8bc02061374026b0 | |
35 | SHA1 (patch-dt) = 452fee78b37f8ce0eb30049f9f18b04cff9b6e6e | 36 | SHA1 (patch-dt) = 452fee78b37f8ce0eb30049f9f18b04cff9b6e6e | |
36 | SHA1 (patch-du) = 51d2c7e11b3d422e57ea2f5761aff624f7333842 | 37 | SHA1 (patch-du) = 51d2c7e11b3d422e57ea2f5761aff624f7333842 | |
37 | SHA1 (patch-el) = b85dbef28e14fe29c9fb944508a08e7423a37152 | 38 | SHA1 (patch-el) = b23d7ae82d367d457181d231a56c80e648b0ee6e | |
38 | SHA1 (patch-es) = 7336d905bac315f344f93664e4118332f88fb6ee | 39 | SHA1 (patch-es) = 7336d905bac315f344f93664e4118332f88fb6ee | |
39 | SHA1 (patch-include_net-snmp_agent_snmp__agent.h) = 2139d849b0ffe004a72f3276a98c0d2cb72dca18 | 40 | SHA1 (patch-include_net-snmp_agent_snmp__agent.h) = 2139d849b0ffe004a72f3276a98c0d2cb72dca18 | |
40 | SHA1 (patch-include_net-snmp_system_netbsd.h) = 7880fded678147b2cc75e035234b89727e213d00 | 41 | SHA1 (patch-include_net-snmp_system_netbsd.h) = 7880fded678147b2cc75e035234b89727e213d00 | |
41 | SHA1 (patch-perl_agent_Makefile.PL) = 722380debeda1552b74b60ff91cea3cbbc716e74 | 42 | SHA1 (patch-perl_ASN_Makefile.PL) = 895ad5ccefee6a271650a822e2bac31c5b9d62d5 | |
43 | SHA1 (patch-perl_AnyData__SNMP_Makefile.PL) = 6d99ac8db72682f9ff074ba8239d7242c149b9bf | |||
44 | SHA1 (patch-perl_OID_Makefile.PL) = 8cbc9e6e3ee422851df62a400f6df30dfe271c88 | |||
45 | SHA1 (patch-perl_SNMP_Makefile.PL) = 252fe35a8d93f38ae2454e962546a7b77967d9c2 | |||
46 | SHA1 (patch-perl_SNMP_SNMP.xs) = 99860cdfea3170ed3777f61cb8b5abe9d49ce44c | |||
47 | SHA1 (patch-perl_TrapReceiver_Makefile.PL) = b0e6350d3a4142e6b998ca11131279896abd4eb1 | |||
48 | SHA1 (patch-perl_TrapReceiver_TrapReceiver.xs) = 4a49bc4a767a1ff1ded925876470168baa86359b | |||
49 | SHA1 (patch-perl_agent_Makefile.PL) = 267dbc5c663ca3823e37e8afcc42f19986bc1a9f | |||
50 | SHA1 (patch-perl_agent_Support_Makefile.PL) = 7ee55ea96e2eeb275f7eed9d7bbc446c7195af4c | |||
51 | SHA1 (patch-perl_agent_agent.xs) = de018255afd1790f7cab70591505dabd6cd15047 | |||
52 | SHA1 (patch-perl_agent_default__store_Makefile.PL) = 0599d99ce5226eaeaab3f1af76c68bfe7e57e1bd | |||
53 | SHA1 (patch-perl_default__store_Makefile.PL) = ed5ad7385680632b2153fa572635c5aea83c9114 | |||
54 | SHA1 (patch-perl_manager_Makefile.PL) = bb34b119a2b3887a1af1f9b88e6d4bad6baf60bb | |||
42 | SHA1 (patch-snmplib_snmp__api.c) = b4f498aa93b61f809e3696df1fc6bf32bd942233 | 55 | SHA1 (patch-snmplib_snmp__api.c) = b4f498aa93b61f809e3696df1fc6bf32bd942233 |
@@ -1,14 +1,16 @@ | @@ -1,14 +1,16 @@ | |||
1 | $NetBSD: patch-ac,v 1.12 2013/03/17 00:15:29 gdt Exp $ | 1 | $NetBSD: patch-ac,v 1.13 2016/06/06 14:11:35 he Exp $ | |
2 | ||||
3 | Improve portability to newer NetBSD versions. | |||
2 | 4 | |||
3 | --- agent/mibgroup/if-mib/data_access/interface.h.orig 2012-10-09 22:28:58.000000000 +0000 | 5 | --- agent/mibgroup/if-mib/data_access/interface.h.orig 2012-10-09 22:28:58.000000000 +0000 | |
4 | +++ agent/mibgroup/if-mib/data_access/interface.h | 6 | +++ agent/mibgroup/if-mib/data_access/interface.h | |
5 | @@ -38,7 +38,8 @@ config_exclude(mibII/interfaces) | 7 | @@ -38,7 +38,8 @@ config_exclude(mibII/interfaces) | |
6 | 8 | |||
7 | # elif defined( openbsd3 ) || \ | 9 | # elif defined( openbsd3 ) || \ | |
8 | defined( freebsd4 ) || defined( freebsd5 ) || defined( freebsd6 ) || \ | 10 | defined( freebsd4 ) || defined( freebsd5 ) || defined( freebsd6 ) || \ | |
9 | - defined( darwin ) || defined( dragonfly ) || defined( netbsd1 ) | 11 | - defined( darwin ) || defined( dragonfly ) || defined( netbsd1 ) | |
10 | + defined( darwin ) || defined( dragonfly ) || defined( netbsd1 ) || \ | 12 | + defined( darwin ) || defined( dragonfly ) || defined( netbsd1 ) || \ | |
11 | + defined(netbsd) || defined(netbsdelf) || defined(netbsdelf2) || defined(netbsdelf3) | 13 | + defined(netbsd) || defined(netbsdelf) || defined(netbsdelf2) || defined(netbsdelf3) | |
12 | 14 | |||
13 | config_require(if-mib/data_access/interface_sysctl) | 15 | config_require(if-mib/data_access/interface_sysctl) | |
14 | 16 |
$NetBSD: patch-agent_snmp__perl.c,v 1.1 2016/06/06 14:11:35 he Exp $
--- agent/snmp_perl.c.orig 2014-12-08 20:23:22.000000000 +0000
+++ agent/snmp_perl.c
@@ -5,6 +5,10 @@
#include <EXTERN.h>
#include "perl.h"
+#ifdef U64TYPE
+#define U64 U64pairU32
+#endif
+
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
$NetBSD: patch-perl_ASN_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/ASN/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/ASN/Makefile.PL
@@ -1,3 +1,4 @@
+package ASN;
use ExtUtils::MakeMaker;
require 5;
use Config;
$NetBSD: patch-perl_AnyData__SNMP_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/AnyData_SNMP/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/AnyData_SNMP/Makefile.PL
@@ -1,3 +1,4 @@
+package AnyData_SNMP;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
$NetBSD: patch-perl_OID_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/OID/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/OID/Makefile.PL
@@ -1,3 +1,4 @@
+package OID;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
$NetBSD: patch-perl_SNMP_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/SNMP/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/SNMP/Makefile.PL
@@ -1,3 +1,4 @@
+package SNMP;
use ExtUtils::MakeMaker;
require 5;
use Config;
$NetBSD: patch-perl_SNMP_SNMP.xs,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/SNMP/SNMP.xs.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/SNMP/SNMP.xs
@@ -16,6 +16,10 @@
#include "perl.h"
#include "XSUB.h"
+#ifdef U64TYPE
+#define U64 U64pairU32
+#endif
+
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <sys/types.h>
$NetBSD: patch-perl_TrapReceiver_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/TrapReceiver/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/TrapReceiver/Makefile.PL
@@ -1,3 +1,4 @@
+package TrapReceiver;
use ExtUtils::MakeMaker;
require 5;
use Config;
$NetBSD: patch-perl_TrapReceiver_TrapReceiver.xs,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/TrapReceiver/TrapReceiver.xs.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/TrapReceiver/TrapReceiver.xs
@@ -9,6 +9,10 @@
#include "ppport.h"
+#ifdef U64TYPE
+#define U64 U64pairU32
+#endif
+
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
$NetBSD: patch-perl_agent_Support_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/agent/Support/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/agent/Support/Makefile.PL
@@ -1,3 +1,4 @@
+package agent_Support;
use ExtUtils::MakeMaker;
require 5;
use Config;
$NetBSD: patch-perl_agent_agent.xs,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/agent/agent.xs.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/agent/agent.xs
@@ -9,6 +9,10 @@
#include <netdb.h>
#include <sys/socket.h>
+#ifdef U64TYPE
+#define U64 U64pairU32
+#endif
+
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
$NetBSD: patch-perl_agent_default__store_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/agent/default_store/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/agent/default_store/Makefile.PL
@@ -1,3 +1,4 @@
+package agent_default_store;
use ExtUtils::MakeMaker;
require 5;
use Config;
$NetBSD: patch-perl_default__store_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/default_store/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/default_store/Makefile.PL
@@ -1,3 +1,4 @@
+package default_store;
use ExtUtils::MakeMaker;
require 5;
use Config;
$NetBSD: patch-perl_manager_Makefile.PL,v 1.1 2016/06/06 14:11:35 he Exp $
Adopt FreeBSD's patch to make this build with perl 5.24, ref.
https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co
https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
https://bugs.gentoo.org/show_bug.cgi?id=582368
--- perl/manager/Makefile.PL.orig 2014-12-08 20:23:22.000000000 +0000
+++ perl/manager/Makefile.PL
@@ -1,3 +1,4 @@
+package manager;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
@@ -1,16 +1,13 @@ | @@ -1,16 +1,13 @@ | |||
1 | $NetBSD: patch-am,v 1.13 2013/03/17 00:17:34 gdt Exp $ | 1 | $NetBSD: patch-am,v 1.14 2016/06/06 14:11:35 he Exp $ | |
2 | 2 | |||
3 | --- agent/mibgroup/host/hr_swrun.c.orig 2012-10-09 22:28:58.000000000 +0000 | 3 | --- agent/mibgroup/host/hr_swrun.c.orig 2014-12-08 20:23:22.000000000 +0000 | |
4 | +++ agent/mibgroup/host/hr_swrun.c | 4 | +++ agent/mibgroup/host/hr_swrun.c | |
5 | @@ -1012,8 +1012,10 @@ var_hrswrun(struct variable * vp, | 5 | @@ -1027,6 +1027,8 @@ var_hrswrun(struct variable * vp, | |
6 | else | 6 | else | |
7 | long_return = 4; /* application */ | 7 | long_return = 4; /* application */ | |
8 | #endif | 8 | #endif | |
9 | -#else | |||
10 | +#elif defined darwin | 9 | +#elif defined darwin | |
11 | + long_return = -1; | 10 | + long_return = -1; | |
12 | +#else | 11 | #else | |
13 | long_return = 4; /* application */ | 12 | long_return = 4; /* application */ | |
14 | #endif | 13 | #endif | |
15 | return (u_char *) & long_return; | |||
16 | case HRSWRUN_STATUS: |
@@ -1,29 +1,20 @@ | @@ -1,29 +1,20 @@ | |||
1 | $NetBSD: patch-el,v 1.4 2013/03/17 00:15:29 gdt Exp $ | 1 | $NetBSD: patch-el,v 1.5 2016/06/06 14:11:35 he Exp $ | |
2 | 2 | |||
3 | --- perl/OID/OID.xs.orig 2012-10-09 22:28:58.000000000 +0000 | 3 | Adopt FreeBSD's patch to make this build with perl 5.24, ref. | |
4 | https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co | |||
5 | https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270 | |||
6 | https://bugs.gentoo.org/show_bug.cgi?id=582368 | |||
7 | ||||
8 | --- perl/OID/OID.xs.orig 2016-06-06 13:52:38.000000000 +0000 | |||
4 | +++ perl/OID/OID.xs | 9 | +++ perl/OID/OID.xs | |
5 | @@ -157,17 +157,22 @@ MODULE = NetSNMP::OID PACKAGE = NetSNMP | 10 | @@ -7,6 +7,10 @@ | |
6 | netsnmp_oid * | 11 | #include "perl.h" | |
7 | nso_newptr(initstring) | 12 | #include "XSUB.h" | |
8 | char *initstring | 13 | ||
9 | + PREINIT: | 14 | +#ifdef U64TYPE | |
10 | + STRLEN len; | 15 | +#define U64 U64pairU32 | |
11 | CODE: | 16 | +#endif | |
12 | if (get_tree_head() == NULL) | 17 | + | |
13 | netsnmp_init_mib(); | 18 | #include <net-snmp/net-snmp-config.h> | |
14 | RETVAL = malloc(sizeof(netsnmp_oid)); | 19 | #include <net-snmp/net-snmp-includes.h> | |
15 | RETVAL->name = RETVAL->namebuf; | 20 | ||
16 | - RETVAL->len = sizeof(RETVAL->namebuf)/sizeof(RETVAL->namebuf[0]); | |||
17 | - if (!snmp_parse_oid(initstring, (oid *) RETVAL->name, &RETVAL->len)) { | |||
18 | + len = sizeof(RETVAL->namebuf)/sizeof(RETVAL->namebuf[0]); | |||
19 | + if (!snmp_parse_oid(initstring, (oid *) RETVAL->name, &len)) { | |||
20 | snmp_log(LOG_ERR, "Can't parse: %s\n", initstring); | |||
21 | RETVAL->len = 0; | |||
22 | free(RETVAL); | |||
23 | RETVAL = NULL; | |||
24 | + } | |||
25 | + else { | |||
26 | + RETVAL->len = len; | |||
27 | } | |||
28 | OUTPUT: | |||
29 | RETVAL |
@@ -1,16 +1,14 @@ | @@ -1,16 +1,14 @@ | |||
1 | $NetBSD: patch-perl_agent_Makefile.PL,v 1.1 2013/11/05 17:40:30 joerg Exp $ | 1 | $NetBSD: patch-perl_agent_Makefile.PL,v 1.2 2016/06/06 14:11:35 he Exp $ | |
2 | 2 | |||
3 | --- perl/agent/Makefile.PL.orig 2012-10-09 22:28:58.000000000 +0000 | 3 | Adopt FreeBSD's patch to make this build with perl 5.24, ref. | |
4 | https://svnweb.freebsd.org/ports/head/net-mgmt/net-snmp/files/patch-perl5.23?view=co | |||
5 | https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270 | |||
6 | https://bugs.gentoo.org/show_bug.cgi?id=582368 | |||
7 | ||||
8 | --- perl/agent/Makefile.PL.orig 2016-06-06 13:52:38.000000000 +0000 | |||
4 | +++ perl/agent/Makefile.PL | 9 | +++ perl/agent/Makefile.PL | |
5 | @@ -79,7 +79,10 @@ sub InitMakeParams { | 10 | @@ -1,3 +1,4 @@ | |
6 | else { | 11 | +package agent; | |
7 | $opts = NetSNMPGetOpts(); | 12 | use ExtUtils::MakeMaker; | |
8 | $Params{'LDDLFLAGS'} = "$Config{lddlflags} " . `$opts->{'nsconfig'} --ldflags`; | 13 | require 5; | |
9 | - $Params{'LIBS'} = `$opts->{'nsconfig'} --base-agent-libs`; | 14 | use Config; | |
10 | + chomp($Params{'LDDLFLAGS'}); | |||
11 | + $Params{'LDDLFLAGS'} = $Params{'LDDLFLAGS'} . " " . $Config{'ccdlflags'}; | |||
12 | + chomp($Params{'LDDLFLAGS'}); | |||
13 | + $Params{'LIBS'} = `$opts->{'nsconfig'} --base-agent-libs`; | |||
14 | chomp($Params{'LIBS'}); | |||
15 | $Params{'CCFLAGS'} = `$opts->{'nsconfig'} --cflags`; | |||
16 | chomp($Params{'CCFLAGS'}); |