diff options
author | Ryan Steinmetz <zi@FreeBSD.org> | 2013-02-13 00:41:56 +0000 |
---|---|---|
committer | Ryan Steinmetz <zi@FreeBSD.org> | 2013-02-13 00:41:56 +0000 |
commit | 29e2b46af0e87a44f1908ed1d43fe29b77c83326 (patch) | |
tree | b93f2f3a86331196bed819f920d77b5526d513e9 /net-mgmt/net-snmp | |
parent | e4eb04de71005632d6ca5f1e6473a55ab99627f2 (diff) | |
download | ports-29e2b46af0e87a44f1908ed1d43fe29b77c83326.tar.gz ports-29e2b46af0e87a44f1908ed1d43fe29b77c83326.zip |
Notes
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r-- | net-mgmt/net-snmp/Makefile | 10 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-agent__mibgroup__host__data_access__swrun_kinfo.c | 11 | ||||
-rw-r--r-- | net-mgmt/net-snmp/pkg-plist | 2 |
3 files changed, 14 insertions, 9 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile index ebd6b6177af3..e5e852485ca9 100644 --- a/net-mgmt/net-snmp/Makefile +++ b/net-mgmt/net-snmp/Makefile @@ -1,13 +1,9 @@ -# New ports collection makefile for: ucd-snmp -# Date created: 26 June 1996 -# Whom: gpalmer -# +# Created by: gpalmer # $FreeBSD$ -# PORTNAME= snmp PORTVERSION= 5.7.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt ipv6 MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION} PKGNAMEPREFIX= net- @@ -327,7 +323,7 @@ install-config-files: ${INSTALL_DATA} ${WRKSRC}/EXAMPLE.conf ${DATADIR}/snmpd.conf.example install-doc-files: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} . for filename in ${DOC_FILES} ${INSTALL_DATA} ${WRKSRC}/${filename} ${DOCSDIR} diff --git a/net-mgmt/net-snmp/files/patch-agent__mibgroup__host__data_access__swrun_kinfo.c b/net-mgmt/net-snmp/files/patch-agent__mibgroup__host__data_access__swrun_kinfo.c new file mode 100644 index 000000000000..572462466418 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent__mibgroup__host__data_access__swrun_kinfo.c @@ -0,0 +1,11 @@ +--- ./agent/mibgroup/host/data_access/swrun_kinfo.c.orig 2012-10-09 18:28:58.000000000 -0400 ++++ ./agent/mibgroup/host/data_access/swrun_kinfo.c 2013-02-12 18:55:42.000000000 -0500 +@@ -186,7 +186,7 @@ + #if HAVE_KVM_GETPROC2 + argv = kvm_getargv2( kd, &(proc_table[i]), 0); + #else +- argv = kvm_getargv( kd, &(proc_table[i]), 0); ++ argv = kvm_getargv( kd, &(proc_table[i]), BUFSIZ); + #endif + + entry->hrSWRunName_len = snprintf(entry->hrSWRunName, diff --git a/net-mgmt/net-snmp/pkg-plist b/net-mgmt/net-snmp/pkg-plist index c54ec0d9c4fb..76dacef26b74 100644 --- a/net-mgmt/net-snmp/pkg-plist +++ b/net-mgmt/net-snmp/pkg-plist @@ -29,7 +29,6 @@ bin/snmpvacm bin/snmpwalk %%WITH_TKMIB%%bin/tkmib bin/traptoemail -@exec mkdir %D/etc/snmp 2>/dev/null || true include/net-snmp/agent/agent_callbacks.h include/net-snmp/agent/agent_handler.h include/net-snmp/agent/agent_index.h @@ -482,5 +481,4 @@ sbin/snmptrapd @dirrm include/net-snmp/library @dirrm include/net-snmp/agent @dirrm include/net-snmp -@dirrmtry etc/snmp @unexec rmdir /var/agentx 2>/dev/null || true |