- net/bmon: Update from 3.3 to 4.0

- Changelog: https://github.com/tgraf/bmon/blob/master/NEWS

PR:			219392
Reported by:	Eric Camachat
Approved by:	michelle@sorbs.net (maintainer timeout, 2 weeks), miwi (mentor)
Differential Revision:	https://reviews.freebsd.org/D11038
This commit is contained in:
Jochen Neumeister 2017-06-04 12:31:59 +00:00
parent 6d6ae0b87c
commit 4b52451036
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442558
3 changed files with 15 additions and 4 deletions

View File

@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= bmon
PORTVERSION= 3.3
PORTVERSION= 4.0
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= net
MAINTAINER= michelle@sorbs.net

View File

@ -1,2 +1,3 @@
SHA256 (tgraf-bmon-v3.3_GH0.tar.gz) = 1d62451178d3d682a6cf2778ebade7e63f2a9bebe3d35aef20cf94b51679dcca
SIZE (tgraf-bmon-v3.3_GH0.tar.gz) = 57331
TIMESTAMP = 1495133346
SHA256 (tgraf-bmon-v4.0_GH0.tar.gz) = d5e503ff6b116c681ebf4d10e238604dde836dceb9c0008eb92416a96c87ca40
SIZE (tgraf-bmon-v4.0_GH0.tar.gz) = 61843

View File

@ -0,0 +1,11 @@
--- src/in_sysctl.c.orig 2017-05-18 12:03:29.320093000 -0700
+++ src/in_sysctl.c 2017-05-18 12:17:31.135080000 -0700
@@ -232,7 +232,7 @@ sysctl_read(void)
snprintf(info_buf, sizeof(info_buf), "%ju", (uintmax_t)ifm->ifm_data.ifi_metric);
element_update_info(e, "Metric", info_buf);
-#ifndef __NetBSD__
+#if !(defined(__NetBSD__) || defined(__FreeBSD__))
snprintf(info_buf, sizeof(info_buf), "%u", ifm->ifm_data.ifi_recvquota);
element_update_info(e, "RX-Quota", info_buf);