aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2013-02-13 08:41:56 +0800
committerzi <zi@FreeBSD.org>2013-02-13 08:41:56 +0800
commitfd485a5541f36c70920859989dd018b8523858d4 (patch)
treeb93f2f3a86331196bed819f920d77b5526d513e9 /net-mgmt/net-snmp
parenta4befa9e02cdcd91e5c891826c515a3dc6f897cf (diff)
downloadfreebsd-ports-gnome-fd485a5541f36c70920859989dd018b8523858d4.tar.gz
freebsd-ports-gnome-fd485a5541f36c70920859989dd018b8523858d4.tar.zst
freebsd-ports-gnome-fd485a5541f36c70920859989dd018b8523858d4.zip
- Merge in upstream fix for bug 2439 [1]
- Convert header to new 'created by' style - Fix pkgng issue [2] - Bump PORTREVISION Submitted by: Paul Beard <paulbeard@gmail.com> [1] Reported by: bapt@ [2]
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile10
-rw-r--r--net-mgmt/net-snmp/files/patch-agent__mibgroup__host__data_access__swrun_kinfo.c11
-rw-r--r--net-mgmt/net-snmp/pkg-plist2
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