pkgsrc/net/net-snmp/Makefile

133 lines
3.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.63 2007/08/12 13:36:36 joerg Exp $
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
2007-08-11 13:05:56 +02:00
DISTNAME= net-snmp-5.4.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=net-snmp/} \
ftp://ftp.net-smnp.org/pub/sourceforge/net-snmp/
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
2005-03-30 14:10:58 +02:00
MAINTAINER= adam@NetBSD.org
HOMEPAGE= http://www.net-snmp.org/
COMMENT= Extensible SNMP implementation
CONFLICTS= ucd-snmp-[0-9]*
2007-02-15 22:47:21 +01:00
CONFLICTS+= nocol-[0-9]* # bin/snmpget bin/snmpwalk
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= NO
MAKE_ENV+= OPSYS=${OPSYS:Q}
# The self-test of Perl modules only works after installation because perl
# can't load the shared libraries from WRKSRC/
# Until this is fixed you can test them after installation by doing
# `make test TEST_TARGET=perltest'
TEST_TARGET= test
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "DragonFly"
MAKE_ENV+= MIB_SYSTEM_LIBS=-lkinfo
.endif
.if ${OPSYS} == "NetBSD"
OSVERSION_SPECIFIC= YES
. if empty(CFLAGS:U:M*-Dnetbsd1*)
CFLAGS+= -Dnetbsd1
. endif
.endif
.if (${OPSYS} == "NetBSD") || !exists(/usr/bin/lpstat)
CONFIGURE_ENV+= ac_cv_path_LPSTAT_PATH=no
.endif
NET_SNMP_SYS_CONTACT?= default_user@contact.domain
NET_SNMP_SYS_LOCATION?= defaultlocation
NET_SNMP_PERSISTENTDIR?= ${VARBASE}/net-snmp
NET_SNMP_MIBDIRS?= \$$HOME/.snmp/mibs:${PREFIX}/share/snmp/mibs:${PREFIX}/lib/tcl/tnm2.1.10/mibs:/usr/local/share/snmp/mibs
Update to 5.0.9. PR19939 by Greg A. Woods. Changes from NEWS file: --------8<--------8<--------8<--------8<--------8<--------8<--------8< *5.0.9* SECURITY: - An existing user/community could get access to data in MIB objects that were explicitly excluded from their view. Fixes: - Perl build environment should better under Windows - Misc kerberos support fixes. - Improvements on various manual pages. - A annoying bug with SETs being passed to pass scripts was fixed. - The often talked about VACM optimization improvement was fixed again. - mib2c handles augmentation tables better now. - Various 64 bit issues have been addressed. *5.0.8* New: - No new features will be added to the 5.0.x line. Ports: - Update libtool to version 1.4.3, for the benefit of Darwin - diskio support for Darwin - Updates for OpenBSD 3. - Updates to solaris README Fixes: - find libwrap w/nsl on RedHat - fix for openssl 0.9.7 - Fix some AgentX memory leaks - use macro for inline function prototypes - Attempt to find unused port before running tests - Use SNMP_SLEEP environment variable when running tests - calculate a proper ifSpeed under linux when possible - better daemonization of snmpd - close and reopen snmptrapd log files on HUP - support for 16 bit reuqest ids - Recognize new 't' code in display hints - misc other fixes *5.0.7* New: - VACM (access control) optimizations which will greatly benefit people who wish to exclude large portions of the MIB tree from some people. Previously this was a large resource drain. - Add command line option to snmpd to set syslog facility - Reverse DISPLAY-HINT processing, i.e. it allows you to input data formatted like a DISPLAY-HINT prescribes - Support setting of sysDescr and sysObjectID via snmpd.conf configuration directives - New output option to force display of strings as hex - Persistent directory can be specified at runtime - Add support for Linux virtual interfaces in the ipAddressTable. - implemented the mteEventTable and the mteEventNotificationTable form the DISMAN-EVENT-MIB. Fixes: - AgentX no longer flagged as experimental - A few memory leak fixes for the table_iterator agent API. - Processed flag cleared before each pass of a set request - Remove snmpd pid file on exit - Restore default behaviour of building shared libraries - misc other fixes --------8<--------8<--------8<--------8<--------8<--------8<--------8<
2003-09-12 14:07:18 +02:00
BUILD_DEFS+= NET_SNMP_SYS_CONTACT
BUILD_DEFS+= NET_SNMP_SYS_LOCATION
BUILD_DEFS+= NET_SNMP_PERSISTENTDIR
BUILD_DEFS+= NET_SNMP_MIBDIRS
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --with-defaults
2006-01-18 19:14:18 +01:00
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
2005-10-18 06:32:37 +02:00
CONFIGURE_ARGS+= --with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}/lib
CONFIGURE_ARGS+= --with-sys-contact=${NET_SNMP_SYS_CONTACT:Q}
CONFIGURE_ARGS+= --with-sys-location=${NET_SNMP_SYS_LOCATION:Q}
Update to 5.0.9. PR19939 by Greg A. Woods. Changes from NEWS file: --------8<--------8<--------8<--------8<--------8<--------8<--------8< *5.0.9* SECURITY: - An existing user/community could get access to data in MIB objects that were explicitly excluded from their view. Fixes: - Perl build environment should better under Windows - Misc kerberos support fixes. - Improvements on various manual pages. - A annoying bug with SETs being passed to pass scripts was fixed. - The often talked about VACM optimization improvement was fixed again. - mib2c handles augmentation tables better now. - Various 64 bit issues have been addressed. *5.0.8* New: - No new features will be added to the 5.0.x line. Ports: - Update libtool to version 1.4.3, for the benefit of Darwin - diskio support for Darwin - Updates for OpenBSD 3. - Updates to solaris README Fixes: - find libwrap w/nsl on RedHat - fix for openssl 0.9.7 - Fix some AgentX memory leaks - use macro for inline function prototypes - Attempt to find unused port before running tests - Use SNMP_SLEEP environment variable when running tests - calculate a proper ifSpeed under linux when possible - better daemonization of snmpd - close and reopen snmptrapd log files on HUP - support for 16 bit reuqest ids - Recognize new 't' code in display hints - misc other fixes *5.0.7* New: - VACM (access control) optimizations which will greatly benefit people who wish to exclude large portions of the MIB tree from some people. Previously this was a large resource drain. - Add command line option to snmpd to set syslog facility - Reverse DISPLAY-HINT processing, i.e. it allows you to input data formatted like a DISPLAY-HINT prescribes - Support setting of sysDescr and sysObjectID via snmpd.conf configuration directives - New output option to force display of strings as hex - Persistent directory can be specified at runtime - Add support for Linux virtual interfaces in the ipAddressTable. - implemented the mteEventTable and the mteEventNotificationTable form the DISMAN-EVENT-MIB. Fixes: - AgentX no longer flagged as experimental - A few memory leak fixes for the table_iterator agent API. - Processed flag cleared before each pass of a set request - Remove snmpd pid file on exit - Restore default behaviour of building shared libraries - misc other fixes --------8<--------8<--------8<--------8<--------8<--------8<--------8<
2003-09-12 14:07:18 +02:00
#
# NOTE: if you specify a logfile then this file will be written to by
# default and although it can be disabled on the command line, the
# daemon must be stopped to cycle it properly. Remember rc.d/snmpd
# will use '-s' to enable standard syslog logging anyway.
#
CONFIGURE_ARGS+= --with-logfile=none
CONFIGURE_ARGS+= --with-persistent-directory=${NET_SNMP_PERSISTENTDIR:Q}
.if !empty(NET_SNMP_MIBDIRS)
CONFIGURE_ARGS+= --with-mibdirs=${NET_SNMP_MIBDIRS:Q}
.endif
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --with-mib-modules="smux host ucd-snmp/diskio"
.else
Update to 5.0.9. PR19939 by Greg A. Woods. Changes from NEWS file: --------8<--------8<--------8<--------8<--------8<--------8<--------8< *5.0.9* SECURITY: - An existing user/community could get access to data in MIB objects that were explicitly excluded from their view. Fixes: - Perl build environment should better under Windows - Misc kerberos support fixes. - Improvements on various manual pages. - A annoying bug with SETs being passed to pass scripts was fixed. - The often talked about VACM optimization improvement was fixed again. - mib2c handles augmentation tables better now. - Various 64 bit issues have been addressed. *5.0.8* New: - No new features will be added to the 5.0.x line. Ports: - Update libtool to version 1.4.3, for the benefit of Darwin - diskio support for Darwin - Updates for OpenBSD 3. - Updates to solaris README Fixes: - find libwrap w/nsl on RedHat - fix for openssl 0.9.7 - Fix some AgentX memory leaks - use macro for inline function prototypes - Attempt to find unused port before running tests - Use SNMP_SLEEP environment variable when running tests - calculate a proper ifSpeed under linux when possible - better daemonization of snmpd - close and reopen snmptrapd log files on HUP - support for 16 bit reuqest ids - Recognize new 't' code in display hints - misc other fixes *5.0.7* New: - VACM (access control) optimizations which will greatly benefit people who wish to exclude large portions of the MIB tree from some people. Previously this was a large resource drain. - Add command line option to snmpd to set syslog facility - Reverse DISPLAY-HINT processing, i.e. it allows you to input data formatted like a DISPLAY-HINT prescribes - Support setting of sysDescr and sysObjectID via snmpd.conf configuration directives - New output option to force display of strings as hex - Persistent directory can be specified at runtime - Add support for Linux virtual interfaces in the ipAddressTable. - implemented the mteEventTable and the mteEventNotificationTable form the DISMAN-EVENT-MIB. Fixes: - AgentX no longer flagged as experimental - A few memory leak fixes for the table_iterator agent API. - Processed flag cleared before each pass of a set request - Remove snmpd pid file on exit - Restore default behaviour of building shared libraries - misc other fixes --------8<--------8<--------8<--------8<--------8<--------8<--------8<
2003-09-12 14:07:18 +02:00
CONFIGURE_ARGS+= --with-mib-modules="smux host"
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-[567].*)
CONFIGURE_ARGS+= --with-out-mib-modules="ucd-snmp/diskio mibII"
.endif
#
# Using "dummy" values is technically not compliant with SNMP specs, but
# otherwise, some tools, e.g. net/tcl-scotty, net/tkined, may ignore results
# when they shouldn't.
#
CONFIGURE_ARGS+= --with-dummy-values
#
# Install the UCD-SNMP look-alike headers and libraries to ease porting of
# older software to use net-snmp.
#
CONFIGURE_ARGS+= --enable-ucd-snmp-compatibility
#
# Enable the perl modules build and installation
#
PERL5_CONFIGURE= no
PERL5_PACKLIST= auto/Bundle/NetSNMP/.packlist
CONFIGURE_ARGS+= --with-perl-modules=${MAKE_PARAMS:Q}
CONFIGURE_ENV+= PERLPROG=${PERL5:Q}
.include "options.mk"
# Handle ${PREFIX}/share/snmp in the DEINSTALL script since it may contain
# leftover config files or pidfiles after deinstallation.
#
REQD_DIRS= ${PREFIX}/share/snmp
RCD_SCRIPTS= snmpd snmptrapd
USE_TOOLS+= sh:run
REPLACE_INTERPRETER+= bash
REPLACE.bash.old= /bin/bash
REPLACE.bash.new= ${SH}
REPLACE_FILES.bash= local/mib2c-update
INSTALLATION_DIRS+= share/examples/net-snmp
post-extract:
.if ${OPSYS} == "DragonFly"
cp ${FILESDIR}/cpu_dragonfly.c ${WRKSRC}/agent/mibgroup/hardware/cpu/cpu_nlist.c
.endif
post-wrapper:
.if !empty(MACHINE_PLATFORM:MNetBSD-1.5.[123]*-i386)
mkdir ${BUILDLINK_DIR}/include/sys
cp ${FILESDIR}/disklabel.h ${BUILDLINK_DIR}/include/sys
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf \
${PREFIX}/share/examples/net-snmp/EXAMPLE.conf
.include "../../lang/perl5/module.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"