head 1.17; access; symbols pkgsrc-2020Q1:1.16.0.38 pkgsrc-2020Q1-base:1.16 pkgsrc-2019Q4:1.16.0.60 pkgsrc-2019Q4-base:1.16 pkgsrc-2019Q3:1.16.0.56 pkgsrc-2019Q3-base:1.16 pkgsrc-2019Q2:1.16.0.54 pkgsrc-2019Q2-base:1.16 pkgsrc-2019Q1:1.16.0.52 pkgsrc-2019Q1-base:1.16 pkgsrc-2018Q4:1.16.0.50 pkgsrc-2018Q4-base:1.16 pkgsrc-2018Q3:1.16.0.48 pkgsrc-2018Q3-base:1.16 pkgsrc-2018Q2:1.16.0.46 pkgsrc-2018Q2-base:1.16 pkgsrc-2018Q1:1.16.0.44 pkgsrc-2018Q1-base:1.16 pkgsrc-2017Q4:1.16.0.42 pkgsrc-2017Q4-base:1.16 pkgsrc-2017Q3:1.16.0.40 pkgsrc-2017Q3-base:1.16 pkgsrc-2017Q2:1.16.0.36 pkgsrc-2017Q2-base:1.16 pkgsrc-2017Q1:1.16.0.34 pkgsrc-2017Q1-base:1.16 pkgsrc-2016Q4:1.16.0.32 pkgsrc-2016Q4-base:1.16 pkgsrc-2016Q3:1.16.0.30 pkgsrc-2016Q3-base:1.16 pkgsrc-2016Q2:1.16.0.28 pkgsrc-2016Q2-base:1.16 pkgsrc-2016Q1:1.16.0.26 pkgsrc-2016Q1-base:1.16 pkgsrc-2015Q4:1.16.0.24 pkgsrc-2015Q4-base:1.16 pkgsrc-2015Q3:1.16.0.22 pkgsrc-2015Q3-base:1.16 pkgsrc-2015Q2:1.16.0.20 pkgsrc-2015Q2-base:1.16 pkgsrc-2015Q1:1.16.0.18 pkgsrc-2015Q1-base:1.16 pkgsrc-2014Q4:1.16.0.16 pkgsrc-2014Q4-base:1.16 pkgsrc-2014Q3:1.16.0.14 pkgsrc-2014Q3-base:1.16 pkgsrc-2014Q2:1.16.0.12 pkgsrc-2014Q2-base:1.16 pkgsrc-2014Q1:1.16.0.10 pkgsrc-2014Q1-base:1.16 pkgsrc-2013Q4:1.16.0.8 pkgsrc-2013Q4-base:1.16 pkgsrc-2013Q3:1.16.0.6 pkgsrc-2013Q3-base:1.16 pkgsrc-2013Q2:1.16.0.4 pkgsrc-2013Q2-base:1.16 pkgsrc-2013Q1:1.16.0.2 pkgsrc-2013Q1-base:1.16 pkgsrc-2012Q4:1.15.0.14 pkgsrc-2012Q4-base:1.15 pkgsrc-2012Q3:1.15.0.12 pkgsrc-2012Q3-base:1.15 pkgsrc-2012Q2:1.15.0.10 pkgsrc-2012Q2-base:1.15 pkgsrc-2012Q1:1.15.0.8 pkgsrc-2012Q1-base:1.15 pkgsrc-2011Q4:1.15.0.6 pkgsrc-2011Q4-base:1.15 pkgsrc-2011Q3:1.15.0.4 pkgsrc-2011Q3-base:1.15 pkgsrc-2011Q2:1.15.0.2 pkgsrc-2011Q2-base:1.15 pkgsrc-2011Q1:1.14.0.6 pkgsrc-2011Q1-base:1.14 pkgsrc-2010Q4:1.14.0.4 pkgsrc-2010Q4-base:1.14 pkgsrc-2010Q3:1.14.0.2 pkgsrc-2010Q3-base:1.14 pkgsrc-2010Q2:1.13.0.12 pkgsrc-2010Q2-base:1.13 pkgsrc-2010Q1:1.13.0.10 pkgsrc-2010Q1-base:1.13 pkgsrc-2009Q4:1.13.0.8 pkgsrc-2009Q4-base:1.13 pkgsrc-2009Q3:1.13.0.6 pkgsrc-2009Q3-base:1.13 pkgsrc-2009Q2:1.13.0.4 pkgsrc-2009Q2-base:1.13 pkgsrc-2009Q1:1.13.0.2 pkgsrc-2009Q1-base:1.13 pkgsrc-2008Q4:1.12.0.6 pkgsrc-2008Q4-base:1.12 pkgsrc-2008Q3:1.12.0.4 pkgsrc-2008Q3-base:1.12 cube-native-xorg:1.12.0.2 cube-native-xorg-base:1.12 pkgsrc-2008Q2:1.11.0.10 pkgsrc-2008Q2-base:1.11 cwrapper:1.11.0.8 pkgsrc-2008Q1:1.11.0.6 pkgsrc-2008Q1-base:1.11 pkgsrc-2007Q4:1.11.0.4 pkgsrc-2007Q4-base:1.11 pkgsrc-2007Q3:1.11.0.2 pkgsrc-2007Q3-base:1.11 pkgsrc-2007Q2:1.10.0.2 pkgsrc-2007Q2-base:1.10 pkgsrc-2007Q1:1.9.0.2 pkgsrc-2007Q1-base:1.9 pkgsrc-2006Q4:1.8.0.2 pkgsrc-2006Q4-base:1.8 pkgsrc-2006Q3:1.7.0.2 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.6.0.4 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.2 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.4.0.6 pkgsrc-2005Q4-base:1.4 pkgsrc-2005Q3:1.4.0.4 pkgsrc-2005Q3-base:1.4 pkgsrc-2005Q2:1.4.0.2 pkgsrc-2005Q2-base:1.4 pkgsrc-2005Q1:1.3.0.6 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.4 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.2 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.2.0.2 pkgsrc-2004Q2-base:1.2; locks; strict; comment @# @; 1.17 date 2020.06.12.02.22.08; author sevan; state dead; branches; next 1.16; commitid FaWD0tqe6gSVwSbC; 1.16 date 2013.03.17.00.15.29; author gdt; state Exp; branches; next 1.15; 1.15 date 2011.05.27.10.55.25; author adam; state Exp; branches; next 1.14; 1.14 date 2010.07.20.08.33.44; author adam; state Exp; branches; next 1.13; 1.13 date 2009.03.10.18.30.44; author apb; state Exp; branches; next 1.12; 1.12 date 2008.09.08.12.58.09; author adam; state Exp; branches; next 1.11; 1.11 date 2007.08.11.11.05.56; author adam; state Exp; branches; next 1.10; 1.10 date 2007.05.20.13.55.29; author seb; state Exp; branches; next 1.9; 1.9 date 2007.02.05.12.06.16; author adam; state Exp; branches; next 1.8; 1.8 date 2006.10.11.19.15.19; author rillig; state Exp; branches; next 1.7; 1.7 date 2006.07.29.16.48.27; author adam; state Exp; branches; next 1.6; 1.6 date 2006.03.19.22.03.29; author joerg; state Exp; branches; next 1.5; 1.5 date 2006.01.24.22.16.55; author adam; state Exp; branches; next 1.4; 1.4 date 2005.03.30.12.10.58; author adam; state Exp; branches; next 1.3; 1.3 date 2004.08.13.11.28.50; author adam; state Exp; branches; next 1.2; 1.2 date 2004.05.14.13.30.34; author adam; state Exp; branches; next 1.1; 1.1 date 2004.04.22.16.50.02; author christos; state Exp; branches; next ; desc @@ 1.17 log @Update to net-snmp 5.8 *5.8* snmplib: - TLS/DTLS fixes - fix usm keychanges for new algorithms and longer keylengths - IP address formatting fixes - BUG: 2592: from Stuart Kendrick - increase MAXTC to 16384 - add new sha2 auth protocols - Restore AES-192 and AES-256 privacy protocols - from draft-blumenthal-aes-usm-04 (precursor to RFC 3826) - Use OIDs from http://www.snmp.com/eso/esoConsortiumMIB.txt - Some code borrowed from PATCH 1346, thanks to Alexander Ivanov and Vladimir Sukhorukov. - BUG: 2622: Fix excessive indents in log file - new config tokens: - sendMessageMaxSize - disableSNMPv1 / disableSNMPv2c - new api for dynamic debug log level (netsnmp_set_debug_log_level) snmpd: - SNMP-TARGET-MIB: Fix snmpTargetAddrTAddress - Com2sec and com2sec6 SOURCE values may deny sources as well as permit. - allow trap sinks to set Target-MIB characteristics (name, tag, profile) - add source addr/port option to trapsink/trap2sink/informsink - packet filtering by source ip (enableSourceFiltering/filtersource) - several getbulk handling improvements - several new APIs introduced for run-time configuration of agent: - netsnmp_vacm_simple_usm_add/del - usm_create_usmUser_* - netsnmp_udp_com2SecEntry_create/netsnmp_udp_com2SecList_remove - netsnmp_agent_listen_on to open agent port Win32: - Add support for the DTLS-UDP and TLS-TCP transports scripts: - A new 'checkbandwidth' script to check host min/max bandwidth snmptranslate: - Introduce bulk translation mode The special argument "-" causes snmptranslate to enter bulk translation mode, in which it expects one OID per line. Whitespace is treated as the end of the OID, and only that portion of the line is replaced, meaning that this can be used to translate, e.g., "snmpwalk" output without the proper MIBs loaded: snmptranslate -m all -OX < numeric.txt > symbolic.txt building: - Add Travis and Appveyor CI support - IPv6 support is now compiled by default. If you need an IPv4-only agent, use --disable-ipv6. - Fixed/improved support for several non-Linux platforms - Many fixes found by Coverity anf Fortify scans @ text @$NetBSD: patch-af,v 1.16 2013/03/17 00:15:29 gdt Exp $ --- configure.orig 2012-10-09 22:35:37.000000000 +0000 +++ configure @@@@ -20981,6 +20981,81 @@@@ fi ## ######################################### + +echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 +echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 +if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldes $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char des_cbc_encrypt (); +int +main () +{ +des_cbc_encrypt (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_des_des_cbc_encrypt=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_des_des_cbc_encrypt=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 +echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 +if test $ac_cv_lib_des_des_cbc_encrypt = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBDES 1 +_ACEOF + + LIBS="-ldes $LIBS" + +fi + + ## # Compilation-related ## @ 1.16 log @Update to 5.7.2. This is a major update in terms of pkgsrc patches, of which there are far far too many. Analysis of patches was done by Karen Sirois of BBN, and I have remvoed patches that have been applied upstream. This builds fine and passes tests on NetBSD 6 i386. If you look after some other platform (Dragonfly, Darwin, FreeBSD, etc.), please make sure any problems are filed as upstream tickets; pkgsrc is not appropriate to carry patches long-term that should be fixed upstream, and this package has gotten out of hand. (OK by adam@@ to do the update, but he has not reviewed the changes, so errors are my fault. It's quite likely there are issues on other platforms.) Upstream NEWS: *5.7.2* snmp: - BUG: 3526549: CVE-2012-2141 Array index error leading to crash snmpd: - BUG: 3532090: Fix high ifIndex values crashing hrDeviceDescr building: - PATCH: 2091156: correctly declare dependencies in Makefile. 'make -j ' should work now. Backport this to V5-4 as it is needed for correct operation in the single threaded case of make miblib as well. Many other miscellaneous minor bug fixes *5.7.1* libnetsnmp: - Fixed the mib-parsing-bug introduced shortly before 5.7 agent: - fixed rounding errors for disk percentage calculations openbsd: - better support for recent openbsd releases features: - bug fixes with minimalist support after additional user feedback Many other miscellaneous minor bug fixes *5.7* snmpd: - Delivery of data via regularily scheduled notifications. (see "Data Delivery via Notfications" in snmpd.conf) - Many time-based config options can take (m)ins, (h)ours, ... arguments (see the snmpd.conf manual page) - The PING and TRACEROUTE MIBs now compile and work-ish on linux http://www.net-snmp.org/wiki/index.php/DISMAN - Mib handlers can now implement a data_clone function for cloning the myvoid structure variable to avoid dangling pointers - Fixed persistent storage of VACM MIB configuration - Multi-homed agents send UDP responses from the proper IP address - The hrStorageTable implementation now supports large filesystems better - optimizations for large route tables - Added a deliveryByNotify config token for regular data delivery (see the snmpd.conf manual page and the NET-SNMP-PERIODIC-NOTIFY-MIB) - [PATCH 3141462]: fix agentx subagent issues with multiple-object requests - [PATCH 3057093]: linux uses libpci for creating useful ifDescr strings - [PATCH 3131397]: huge speedups of the TCP/UDP Tables libnetsnmp: - Removed the older CMU compatibility support - The SSH transport is now configurable TLS/DTLS support: - The SNMP over DTLS transport now properly supports IPv6 - Introduced new configuration tokens: localCert/peerCert (deprecating serverCert, clientCert, defX509ServerPub, defX509ClientPub) - Various fixes for the TLS/DTLS transports apps: - Added a per-variable timed output support to snmpwalk using -CT - snmpinform now correctly uses the local engineID for informs - A number of mib2c bug fixes - New snmp.conf tokens for timeouts and retries building: - New flags to reduce the amount of compiled code to bare minimums. This is provided by a new generic feature marking/selection mechanism. http://www.net-snmp.org/wiki/index.php/Feature_Marking_and_Selection - It's now possible to build without SNMPv3/USM (e.g., if you only want TLS/DTLS with SNMPv3/TSM) - It's possible to build the suite with no SET support configure using --enable-read-only - It's possible to build the agent as a notify-only agent configure using --enable-notify-only - Added a script to test memory usage with various config options (see the local/minimalist/sizetests script) - Net-SNMP can now be built to perform local DNSSEC validation (install DNSSEC-Tools' libval and use --with-local-dnssec-validation) testing: - a number of new API unit-tests have been added to the suite (to run the tests: cd testing && ./RUNFULLTESTS -g unit-tests) - The unit tests can be more easily run under valgrind (See http://bit.ly/jsgRnv for details) openbsd: - Support for updating the routing table via SNMP win32: - The testing suite works better under win32 environments - Many building fixes for the win32 environment(s) solaris: - Net-SNMP now supports the SCTP-MIB DragonFlyBSD, FreeBSD8: - Net-SNMP should now work on DragonFlyBSD and FreeBSD8 And of course: - Many other bug fixes. See the CHANGES and ChangeLog for details. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.15 2011/05/27 10:55:25 adam Exp $ @ 1.15 log @Changes 5.6.1.1: * OID Typedef Bug Fix: The oid typedef was changed in 5.6.1 to an u_int32 from a u_long. This broke binary compatibility and likely 3rd-party code. 5.6.1.1 reverts this change and fixes an underlying OID printing problem in two agent modules that caused someone to change the typedef in the first place. Changes 5.6.1: * General: - The DTLS and TLS transports and the TSM security model are no longer "beta" (they've undergone rigorous interoperability testing). - Many Bug Fixes (see the CHANGES and ChangeLog files for full details) * snmpd: - 0 Patch 3141462: from fenner: fix agentx subagent issues with multiple-object requests - Patch from Niels to fix VACM persistant storage. Changes 5.6: * all: - Implemented the SNMP over TLS and SNMP over DTLS protocols [RFC-to-be] - Implemented the "Transport Security Model" [RFC5591] - Generic host-specific configuration .conf files are now read. - Include statements can now be used in .conf files. * snmpd: - Fix handling of multiple matching VACM entries. (Use the "best" match, rather than the first one). Reported by Adam Lewis. Note that this could potentially affect the behaviour of existing access control configurations. - Agent will no longer call table handlers if a set request for the handler has invalid indexes - table_data/tdata next handler will not be called during get processing if no valid rows are found for the handler - [PATCH 2952708]: Added Perl implementation of BRIDGE-MIB - moved all functions defined in libnetsnmphelpers to libnetsnmpagent. libnetsnmphelpers is now an empty library. - Implemented the TSM-MIB and the TLSTM-MIB - new API for indicating that persistent store needs to be saved after the current request finishes processing - [PATCH 2931446]: make the load averages writable. * apps: - A new tool 'net-snmp-cert' that easily creates and manages X.509 certificates for use with the SNMP over (D)TLS protocols. - Added an 'agentxtrap' command to send notifications via AgentX - -T command line flag can be used to pass configuration directly to transports that can accept configuration tokens - A new 'snmptls' command for manipulating the agent's TLS configuration * snmplib: - A more modular transport subsystem that allows third party extensions and dependencies for code reuse. - New transport functions: f_config, f_open, f_copy and f_setup_session - Transports can now specify session defaults - [PATCH 2942940]: Add a new function, netsnmp_parse_args, that is like snmp_parse_args but takes an additional bitmask, flags, to affect the behaviour. Also remove the magic handling of some application names. - A new X.509 certificate API for indexing and reading certificates - new experimental row creation API which uses a state machine to try really hard to create a row from a given varbind list - netsnmp_container enhancements: - added a free_item function - added a CONTAINER_FREE_ALL macro/function - added an interface for duplicating a container (CONTAINER_DUP) - added a remove function to container_iterators - added an ability to set options on binary_array containers - new snmp token logOption allows specifying log destinations via configuration conf files - A very significant reduction in compiler warning output - new experimental simple state machine handling API @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- configure.orig 2011-01-03 23:31:36.000000000 +0000 d5 1 a5 21 @@@@ -19162,6 +19162,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #if HAVE_SYS_QUEUE_H #include #endif +#if HAVE_NET_ROUTE_H +#include +#endif #if HAVE_NETINET_IN_H #include #endif @@@@ -19259,6 +19262,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #if HAVE_NET_ROUTE_H #include #endif +#if HAVE_NETINET_IP_H +#include +#endif #include <$ac_header> @@@@ -28917,6 +28923,81 @@@@ fi a86 387 @@@@ -37938,6 +38019,12 @@@@ char $ac_func (); #if defined __stub_$ac_func || defined __stub___$ac_func choke me #endif +#if HAVE_NET_IF_H +#include +#endif +#if HAVE_NET_ROUTE_H +#include +#endif int main () @@@@ -47154,6 +47241,219 @@@@ _ACEOF fi +{ $as_echo "$as_me:$LINENO: checking for struct ifnet.if_lastchange.tv_nsec" >&5 +$as_echo_n "checking for struct ifnet.if_lastchange.tv_nsec... " >&6; } +if test "${ac_cv_member_struct_ifnet_if_lastchange_tv_nsec+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#ifdef NETSNMP_IFNET_NEEDS_KERNEL +#define _KERNEL 1 +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NET_IF_H +#include +#endif +#ifdef HAVE_NET_IF_VAR_H +#include +#endif +#ifdef HAVE_SYS_QUEUE_H +#include +#endif +#ifdef linux +struct ifnet { + char *if_name; /* name, e.g. "en" or "lo" */ + short if_unit; /* sub-unit for lower level driver */ + short if_mtu; /* maximum transmission unit */ + short if_flags; /* up/down, broadcast, etc. */ + int if_metric; /* routing metric (external only) */ + char if_hwaddr [6]; /* ethernet address */ + int if_type; /* interface type: 1=generic, + 28=slip, ether=6, loopback=24 */ + int if_speed; /* interface speed: in bits/sec */ + + struct sockaddr if_addr; /* interface's address */ + struct sockaddr ifu_broadaddr; /* broadcast address */ + struct sockaddr ia_subnetmask; /* interface's mask */ + + struct ifqueue { + int ifq_len; + int ifq_drops; + } if_snd; /* output queue */ + int if_ibytes; /* octets received on interface */ + int if_ipackets; /* packets received on interface */ + int if_ierrors; /* input errors on interface */ + int if_iqdrops; /* input queue overruns */ + int if_obytes; /* octets sent on interface */ + int if_opackets; /* packets sent on interface */ + int if_oerrors; /* output errors on interface */ + int if_collisions; /* collisions on csma interfaces */ +/* end statistics */ + struct ifnet *if_next; +}; +#endif + + +int +main () +{ +static struct ifnet ac_aggr; +if (ac_aggr.if_lastchange.tv_nsec) +return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_member_struct_ifnet_if_lastchange_tv_nsec=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#ifdef NETSNMP_IFNET_NEEDS_KERNEL +#define _KERNEL 1 +#endif +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_SYS_TIME_H +#include +#endif +#ifdef HAVE_NET_IF_H +#include +#endif +#ifdef HAVE_NET_IF_VAR_H +#include +#endif +#ifdef HAVE_SYS_QUEUE_H +#include +#endif +#ifdef linux +struct ifnet { + char *if_name; /* name, e.g. "en" or "lo" */ + short if_unit; /* sub-unit for lower level driver */ + short if_mtu; /* maximum transmission unit */ + short if_flags; /* up/down, broadcast, etc. */ + int if_metric; /* routing metric (external only) */ + char if_hwaddr [6]; /* ethernet address */ + int if_type; /* interface type: 1=generic, + 28=slip, ether=6, loopback=24 */ + int if_speed; /* interface speed: in bits/sec */ + + struct sockaddr if_addr; /* interface's address */ + struct sockaddr ifu_broadaddr; /* broadcast address */ + struct sockaddr ia_subnetmask; /* interface's mask */ + + struct ifqueue { + int ifq_len; + int ifq_drops; + } if_snd; /* output queue */ + int if_ibytes; /* octets received on interface */ + int if_ipackets; /* packets received on interface */ + int if_ierrors; /* input errors on interface */ + int if_iqdrops; /* input queue overruns */ + int if_obytes; /* octets sent on interface */ + int if_opackets; /* packets sent on interface */ + int if_oerrors; /* output errors on interface */ + int if_collisions; /* collisions on csma interfaces */ +/* end statistics */ + struct ifnet *if_next; +}; +#endif + + +int +main () +{ +static struct ifnet ac_aggr; +if (sizeof ac_aggr.if_lastchange.tv_nsec) +return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_member_struct_ifnet_if_lastchange_tv_nsec=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_member_struct_ifnet_if_lastchange_tv_nsec=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifnet_if_lastchange_tv_nsec" >&5 +$as_echo "$ac_cv_member_struct_ifnet_if_lastchange_tv_nsec" >&6; } +if test "x$ac_cv_member_struct_ifnet_if_lastchange_tv_nsec" = x""yes; then + +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_IFNET_IF_LASTCHANGE_TV_NSEC 1 +_ACEOF + + +fi { $as_echo "$as_me:$LINENO: checking for struct ifnet.if_mtu" >&5 $as_echo_n "checking for struct ifnet.if_mtu... " >&6; } if test "${ac_cv_member_struct_ifnet_if_mtu+set}" = set; then @@@@ -48674,8 +48974,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -48732,8 +49034,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -48813,8 +49117,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -48871,8 +49177,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -48952,8 +49260,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49010,8 +49320,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49091,8 +49403,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49149,8 +49463,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49230,8 +49546,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49288,8 +49606,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49369,8 +49689,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49427,8 +49749,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #ifdef HAVE_SYS_SOCKET_H #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49516,8 +49840,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -49585,8 +49911,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef NETSNMP_IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @ 1.14 log @Changes 5.4.3: snmpd: - Change default AgentX target from 0.0.0.0:705 to localhost:705 - Fix CVE-2008-4309 (GETBULK issue reported by Oscar Mira-Sanchez) - Fix handling of multiple matching VACM entries (Use the "best" match, rather than the first one). Note that this could potentially affect the behaviour of existing access control configurations. - Latch large-disk statistics at 2Tb (rather than wrapping) Linux: - Fix build on modern distributions (using rpm-4.6) Windows: - Fix various builds (recent MSVC, MinGW, IPv6, winExtDLL) @ text @d3 1 a3 1 --- configure.orig 2010-05-23 21:10:00.000000000 +0000 d5 18 a22 2 @@@@ -27854,6 +27854,81 @@@@ _ACEOF fi d24 4 d104 6 a109 6 # Check for libraries that the agent needs # saving old libraries NONAGENTLIBS=$LIBS @@@@ -36914,6 +36989,12 @@@@ cat >>conftest.$ac_ext <<_ACEOF #if HAVE_NETINET_IP6_H #include d118 3 a121 10 #include <$ac_header> @@@@ -42919,8 +43000,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include d123 15 a137 8 @@@@ -43017,8 +43100,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d139 2 a140 10 #include @@@@ -43311,8 +43396,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d142 2 a143 10 #include #undef KERNEL #undef _KERNEL @@@@ -43400,8 +43487,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d145 2 a146 10 #include #undef KERNEL #undef _KERNEL @@@@ -43469,8 +43558,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d148 2 a149 10 #include #undef KERNEL #undef _KERNEL @@@@ -43609,8 +43700,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d151 2 a152 10 #include #undef KERNEL #undef _KERNEL @@@@ -43842,8 +43935,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d154 2 a155 10 #include #undef KERNEL #undef _KERNEL @@@@ -43943,8 +44038,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d157 31 a187 10 #include #undef KERNEL #undef _KERNEL @@@@ -44044,8 +44141,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif d189 31 a219 26 #include #undef KERNEL #undef _KERNEL @@@@ -44145,8 +44244,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF #include #ifdef IFNET_NEEDS_KERNEL #define KERNEL +#if !defined(__DragonFly__) #define _KERNEL #endif +#endif #include #undef KERNEL #undef _KERNEL @@@@ -45800,6 +45901,143 @@@@ fi ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'` +ac_safe_member=`echo "if_lastchange.tv_nsec" | sed 'y%./+-%__p_%'` +ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}" + ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + +echo "$as_me:$LINENO: checking for ifnet.if_lastchange.tv_nsec" >&5 +echo $ECHO_N "checking for ifnet.if_lastchange.tv_nsec... $ECHO_C" >&6 +if eval "test \"\${$ac_safe_all+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 d221 2 d224 1 a224 8 +if test "x" = "x"; then + defineit="= 0" +elif test "x" = "xno"; then + defineit="" +else + defineit="" +fi +cat >conftest.$ac_ext <<_ACEOF d231 1 a231 2 + +#ifdef IFNET_NEEDS_KERNEL d234 1 d236 2 d239 1 d243 1 d245 1 d289 3 a291 4 + +struct ifnet testit; +testit.if_lastchange.tv_nsec $defineit; + d297 8 a304 2 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 d309 6 a314 16 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + eval "${ac_safe_all}=yes" d316 1 a316 1 + echo "$as_me: failed program was:" >&5 d319 1 a319 1 +eval "${ac_safe_all}=no" a320 1 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext d322 1 d325 5 d331 2 a332 5 +if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + cat >>confdefs.h <<_ACEOF +#define $ac_uc_define 1 d335 1 a335 3 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 d337 157 a493 10 + + + + + + +ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'` ac_safe_member=`echo "if_obytes" | sed 'y%./+-%__p_%'` ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}" ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` @ 1.13 log @Some systems define ifnet.if_lastchange as struct timespec (with a tv_nsec field measured in nanoseconds), while other systems define it as struct timeval (with a tv_usec field measured in microseconds). Add a configure test and conditional code in agent/mibgroup/mibII/interfaces.c.orig. This should fix PR 40990. Bump PKGREVISION to 2. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.12 2008/09/08 12:58:09 adam Exp $ d3 1 a3 1 --- configure.orig 2008-10-31 17:53:45.000000000 +0200 d87 1 a87 1 @@@@ -36844,6 +36919,12 @@@@ cat >>conftest.$ac_ext <<_ACEOF d100 1 a100 1 @@@@ -42849,8 +42930,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d111 1 a111 1 @@@@ -42947,8 +43030,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d122 1 a122 1 @@@@ -43241,8 +43326,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d133 1 a133 1 @@@@ -43330,8 +43417,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d144 1 a144 1 @@@@ -43399,8 +43488,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d155 1 a155 1 @@@@ -43539,8 +43630,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d166 1 a166 1 @@@@ -43772,8 +43865,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d177 1 a177 1 @@@@ -43873,8 +43968,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d188 1 a188 1 @@@@ -43974,8 +44071,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d199 1 a199 1 @@@@ -44075,8 +44174,10 @@@@ cat >>conftest.$ac_ext <<_ACEOF d210 1 a210 1 @@@@ -45730,6 +45831,143 @@@@ fi @ 1.12 log @Changes 5.4.2: snmplib: - [PATCH 1921861]: Avoid endless loop after truncating 64bit int - Better handling of CONTAINER_INSERT failures with multiple indices snmpd: - [PATCH 2023633]: add SCTP-MIB implementation (Linux only) - suppress annoying "registration != duplicate" warning for root oids build: - [BUG 2023803]: Compilation problems on HP-UX 11.31 - Update to libtool 1.5.26 AIX: - Add support for AIX 6.x. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- configure.orig 2008-09-05 11:29:01.000000000 +0200 d210 144 @ 1.11 log @Chagesn 5.4.1: snmplib: - [BUG 1619827]: link libraries against needed external libraries - [PATCH 1616912]: fix memory leak in UDP transport code - [PATCH 1592706]: fix memory leak when cloning varbinds - Change snmp_sess_add_ex to consistently close and delete the transport argument on failure, earlier the liveness of the transport argument was undecided. snmpd: - [BUG 1558823]: fix ipAddressTable memory leak - [BUG 1596638]: fix memory leak in ipCidrRouteTable, inetCidrRouteTable - [BUG 1611524]: fix tcp connection table file descriptor leak - handle row deletion issues in dataset tables - [BUG 1712988]: default and configurable maximum number of varbinds returnable to a GETBULK request. - [PATCH 1666737]: include ipv6 counts in udpInDatagrams, udpNoPorts, udpInErrors, udpOutDatagrams - [PATCH 1700157]: fixes ordering of exec tokens in the resulting mib tree - [PATCH 1719253]: fix skipNFSInHostResources so it does not break on the second walk of the table. perl: - link Perl modules against the exact set of libraries needed - [BUG 1619827]: properly link against libperl when configured with --enable-as-needed - [PATCH 1725049]: fix bulkwalk in cases of non-repeater python: - [PATCH 1716114]: Let python build in the Net-SNMP source tree MacOSX: - [PATCH 1600522]: CPU Hardware Abstraction Layer (HAL) implementation for mach/darwin - IF-MIB rewrite now enabled by default Win32: - fix AES support - [PATCH 1706344]: fix compilation with cygwin IRIX: - [PATCH 1709748]: Optimized IRIX cpu stats AIX: - Fix default shared library building instead of forcing static use FreeBSD: - [BUG 1633483]: Support CPU HAL on FreeBSD4.x @ text @d3 1 a3 1 --- configure.orig 2007-08-11 12:20:35.000000000 +0200 d5 1 a5 1 @@@@ -27463,6 +27463,81 @@@@ _ACEOF d87 1 a87 1 @@@@ -36453,6 +36528,12 @@@@ cat >>conftest.$ac_ext <<_ACEOF d100 1 a100 2 @@@@ -42273,7 +42354,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d102 1 d106 1 d109 3 a111 4 #undef KERNEL #undef _KERNEL @@@@ -42371,7 +42454,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d113 1 d117 1 d120 3 a122 4 #undef KERNEL #undef _KERNEL @@@@ -42665,7 +42750,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d124 1 d128 1 d133 1 a133 2 @@@@ -42752,7 +42839,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d135 1 d139 1 d144 1 a144 2 @@@@ -42819,7 +42908,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d146 1 d150 1 d155 1 a155 2 @@@@ -42957,7 +43048,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d157 1 d161 1 d166 1 a166 2 @@@@ -43188,7 +43281,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d168 1 d172 1 d177 1 a177 2 @@@@ -43287,7 +43382,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d179 1 d183 1 d188 1 a188 2 @@@@ -43386,7 +43483,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d190 1 d194 1 d199 1 a199 2 @@@@ -43485,7 +43584,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF #endif d201 1 d205 1 @ 1.10 log @Fix build on recent NetBSD current: net/route.h needs to be included before netinet6/in6_pcb.h.h and net/if.h needs to be included before netinet6/in6_var.h. While here add a patch file on the source of the configure script which IMHO should have been added earlier. Bump PKGREVISION to 1. Note: I supposed the libdes related hunk in patches/patch-af had been generated by an older than 2.59 autoconf script and carried over from one net-snmp version update to the next. This would explain the slight differences about this hunk between the revision I'm committing and the previous one. @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.9 2007/02/05 12:06:16 adam Exp $ d3 1 a3 1 --- configure.orig 2006-11-24 17:56:15.000000000 +0000 d5 2 a6 8 @@@@ -1,5 +1,5 @@@@ #! /bin/sh -# From configure.in Revision: 5.295 . +# From configure.in Revision: 5.296 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59 for Net-SNMP 5.4. # @@@@ -27031,6 +27031,81 @@@@ fi a7 1 fi d87 1 a87 1 @@@@ -35037,6 +35112,12 @@@@ cat >>conftest.$ac_ext <<_ACEOF d100 1 a100 1 @@@@ -40752,7 +40833,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d110 1 a110 1 @@@@ -40850,7 +40933,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d120 1 a120 1 @@@@ -41144,7 +41229,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d130 1 a130 1 @@@@ -41231,7 +41318,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d140 1 a140 1 @@@@ -41298,7 +41387,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d150 1 a150 1 @@@@ -41436,7 +41527,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d160 1 a160 1 @@@@ -41531,7 +41624,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d170 1 a170 1 @@@@ -41630,7 +41725,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d180 1 a180 1 @@@@ -41729,7 +41826,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d190 1 a190 1 @@@@ -41828,7 +41927,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF @ 1.9 log @Changes 5.4: - The default configuration now enables embedded Perl and the Perl modules by default when possible unless explicitly disabled. You may use the --disable-embedded-perl and --without-perl-modules configure options, respectively, to revert to the former default configuration. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- configure.orig 2006-11-24 18:56:15.000000000 +0100 d5 8 a12 1 @@@@ -27031,6 +27031,53 @@@@ fi d16 5 a20 5 +echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 +echo "configure:8529: checking for des_cbc_encrypt in -ldes" >&5 +ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 d22 1 a22 1 + ac_save_LIBS="$LIBS" d24 7 a30 3 +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" d75 3 a77 3 +rm -f conftest* +LIBS="$ac_save_LIBS" + d79 6 a84 7 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 d90 1 d94 14 a107 1 @@@@ -40752,7 +40799,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d117 1 a117 1 @@@@ -40850,7 +40899,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d127 1 a127 1 @@@@ -41144,7 +41195,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d137 1 a137 1 @@@@ -41231,7 +41284,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d147 1 a147 1 @@@@ -41298,7 +41353,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d157 1 a157 1 @@@@ -41436,7 +41493,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d167 1 a167 1 @@@@ -41531,7 +41590,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d177 1 a177 1 @@@@ -41630,7 +41691,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d187 1 a187 1 @@@@ -41729,7 +41792,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d197 1 a197 1 @@@@ -41828,7 +41893,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF @ 1.8 log @Fixed "test ==". @ text @d1 1 a1 1 $NetBSD: patch-af,v 1.7 2006/07/29 16:48:27 adam Exp $ d3 3 a5 12 --- configure.orig 2006-07-13 23:58:38.000000000 +0200 +++ configure 2006-10-11 21:13:18.000000000 +0200 @@@@ -13548,7 +13548,7 @@@@ else default_mibs=IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB case $target_os in - linux* | freebsd* | dynix* | solaris2* | hpux* ) + linux* | freebsd* | dynix* | solaris2* | hpux* | dragonfly* ) new_module_list="$new_module_list host" ;; *) @@@@ -15630,6 +15630,53 @@@@ fi d59 1 a59 1 @@@@ -28131,7 +28178,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d69 1 a69 1 @@@@ -28229,7 +28278,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d79 1 a79 1 @@@@ -28327,10 +28378,14 @@@@ cat >>conftest.$ac_ext <<_ACEOF d88 2 a89 8 -#undef _KERNEL +#if !defined(__DragonFly__) +#define _KERNEL +#endif #include @@@@ -28414,7 +28469,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d99 1 a99 1 @@@@ -28481,7 +28538,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d109 1 a109 1 @@@@ -28619,7 +28678,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d119 1 a119 1 @@@@ -28714,7 +28775,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d129 1 a129 1 @@@@ -28813,7 +28876,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d139 1 a139 1 @@@@ -28912,7 +28977,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d149 1 a149 1 @@@@ -29011,7 +29078,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF @ 1.7 log @Changes 5.3.1: snmpd: - fix trap processing from SMUX peers - fix disman/event monitoring crashes - fix bug 1399369: ifNumber broken - fix re-init of daemons after SIGHUP snmptrapd: - fix bug 1420758/1458815: snmptrapd aborts/loops in select() - fix re-init of daemons after SIGHUP snmplib: - fix OID lookups for fully qualified object names (eg .iso.org) snmpusm: - performance improvement when changing localized keys perl: - The perl modules now check to make sure they're building against the proper Net-SNMP version. misc: - Coverity fixes @ text @d1 1 a1 1 $NetBSD$ d3 2 a4 2 --- configure.orig 2006-07-29 17:35:31.000000000 +0200 +++ configure a173 9 @@@@ -35133,6 +35202,8 @@@@ do _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + # Avoid regenerating for rechecks on pkgsrc + exit 0 ac_cs_recheck=: ;; --version | --vers* | -V ) echo "$ac_cs_version"; exit 0 ;; @ 1.6 log @Add DragonFly support. Bump revision due to PLIST changes. @ text @d3 1 a3 1 --- configure.orig 2006-01-14 01:51:51.000000000 +0000 d5 1 a5 1 @@@@ -13421,7 +13421,7 @@@@ else d9 2 a10 2 - linux* | mingw32* | cygwin* | freebsd* | dynix* | solaris2* | hpux* ) + linux* | mingw32* | cygwin* | freebsd* | dynix* | solaris2* | hpux* | dragonfly* ) d14 1 a14 1 @@@@ -15503,6 +15503,53 @@@@ fi d68 1 a68 1 @@@@ -27716,7 +27763,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d78 1 a78 1 @@@@ -27814,7 +27863,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d88 1 a88 1 @@@@ -27912,10 +27963,14 @@@@ cat >>conftest.$ac_ext <<_ACEOF d104 1 a104 1 @@@@ -27999,7 +28054,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d114 1 a114 1 @@@@ -28066,7 +28123,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d124 1 a124 1 @@@@ -28204,7 +28263,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d134 1 a134 1 @@@@ -28299,7 +28360,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d144 1 a144 1 @@@@ -28398,7 +28461,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d154 1 a154 1 @@@@ -28497,7 +28562,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d164 1 a164 1 @@@@ -28596,7 +28663,9 @@@@ cat >>conftest.$ac_ext <<_ACEOF d174 1 a174 1 @@@@ -34718,6 +34787,8 @@@@ do @ 1.5 log @Changes 5.3.0.1: *** Security Fix *** Changes 5.3: *** Important Notes *** Several very significant changes have been made in Net-SNMP for this release that warrant special attention. - shared library version number no longer matches the release number. We now follow the versioning scheme recommended by libtool. For the 5.3 release this means that the libraries now have a SONAME ending with ".so.10", e.g. libnetsnmp.so.10. - snmpd has not been truncating log files at startup, as documented in the man pages, for a while now. This default behaviour has been restored. Please use the '-A' flag if you want to continue appending to your log files at startup. - snmptrapd will no longer accept all traps by default. It must be configured with authorized SNMPv1/v2c community strings and/or SNMPv3 users. Non-authorized traps/informs will be dropped. - Due to a copyright statement that didn't allow modifications, snmpnetstat has been completely rewritten. The new version now accepts the same command-line options as the other tools, which has introduced a number of incompatible changes. However, it does now finally support SNMPv3. @ text @d3 1 a3 1 --- configure.orig 2006-01-14 02:51:51.000000000 +0100 d5 9 d68 115 @ 1.4 log @Changes 5.2.1: Fixes: Building: - configure --disable-snmpv2c now works - fix make test tests for rfc1213 - bug 1049607: net-snmp-config --compile-subagent broken library: - bug 1084413: Can't disable file logging - bug 1072406: invalid operator precedence in opendir() agent library: - disconnected AgentX subagents now reconnect with correct context - fix table_array row insert/delete during set processing agent: - don't override clientAddr setting for local trapsinks - bug 1088765: Agent fails to send traps to remote target - bug 1034008: memory leak using SET for table_dataset - patch 1052460: fix agent deadlock on exec - bug 1055781: get-next fails to step into interfaces group correctly - bug 1056760: agent ignores ifspeed, type settings in snmpd.conf - bug 1062986: pass and pass_persist fail and crash snmpd - fix snmpd.conf table token to handle augments tables snmptrapd: - bug 1085981: snmptrapd complains about logging and access control - bug 1040711: snmptrapd: SIGHUP duplicates traphandlers (repeatedly) MFD: - Misc updates to MFD templates - add auto-handling of cache update for row insert/delete Ports: - Win32 - fixes for compiling without the Microsoft PSDK installed - fix Win32 getenv crash - Mac OS X compile error fix - HP-UX configure now detects and won't use unavailable function - Linux - patch 1055036: if-mib init order fix - patch 1057057: ipSystemStatsTable index fix, add ipv6 - patch 1073897: fix if-mib data access 64bit counter wrap detection MIBs: - update IP-FORWARD-MIB from an ID set to become an RFC @ text @d3 1 a3 1 --- configure.orig 2005-01-25 01:00:12.000000000 +0000 d5 1 a5 1 @@@@ -16597,6 +16597,53 @@@@ fi @ 1.3 log @Changes 5.1.2: * Minor improvements to snmpdelta * Minor improvements to snmpnetstat (IPv6 output) * Fixes @ text @d3 1 a3 1 --- configure.orig 2004-07-05 06:52:34.000000000 +0000 d5 1 a5 1 @@@@ -11214,6 +11214,53 @@@@ fi @ 1.2 log @Changes 5.1.1: New: - test suite supports testing over other transports (tcp, udp6, unix, ...) (see the -P switch to the testing/RUNTESTS script) - Solaris supports the use of it's PKCS#11 library for supporting cryptographic functions (OpenSSL isn't required if PKCS#11 is available) (see configure's --with-pkcs flag) Fixes: - Improvements on 64 bit architectures. - A few minor memory leaks fixed. - An extremely large number of minor bug fixes. - Many perl module specific bug fixes. - snmpd will safely handle more signals. Ports: - Many many significant Windows improvements. - A win32 build script in win32/build.pl - Support for the MinGW compiler - (see the README.win32 file for details on new ports) - Various helpful win32/*.bat files for installation, etc. - Some linux 2.6 support improvements @ text @d3 1 a3 1 --- configure.orig 2004-03-20 07:13:55.000000000 +0000 d5 1 a5 1 @@@@ -11205,6 +11205,53 @@@@ fi @ 1.1 log @Fix configure to look for des_cbc_encrypt in -ldes. I did not commit all 7K lines of diff that autoconf produced because of the changed line numbers, just the relevant ones. @ text @d3 3 a5 15 --- configure.in.orig Sat Sep 6 02:41:25 2003 +++ configure.in Thu Apr 22 11:26:53 2004 @@@@ -1362,6 +1362,8 @@@@ AC_CHECK_FUNCS(AES_cfb128_encrypt) fi +AC_CHECK_LIB(des, des_cbc_encrypt) + dnl Check for libraries that the agent needs dnl saving old libraries NONAGENTLIBS=$LIBS --- configure.orig Sat Sep 6 03:22:58 2003 +++ configure Thu Apr 22 11:26:56 2004 @@@@ -8524,6 +8524,54 @@@@ d18 1 a18 1 +#line 8537 "configure" d56 2 a57 1 + a58 2 _cppflags="${CPPFLAGS}" @