summaryrefslogtreecommitdiffstats
path: root/net-mgmt/netsaint-plugins
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-24 20:40:04 +0000
committerpav <pav@FreeBSD.org>2004-05-24 20:40:04 +0000
commitde48a22ebcb295b57619267711ad54d8e09ee506 (patch)
tree159d1c306913209630c143efa82a91d58debd25f /net-mgmt/netsaint-plugins
parent943ead9ecae836c950cc99e95723d48c63a24924 (diff)
downloadFreeBSD-ports-de48a22ebcb295b57619267711ad54d8e09ee506.zip
FreeBSD-ports-de48a22ebcb295b57619267711ad54d8e09ee506.tar.gz
- Fix argument parsing in check_mrtg
PR: ports/67056 Submitted by: Michael Wayne <wayne@staff.msen.com>
Diffstat (limited to 'net-mgmt/netsaint-plugins')
-rw-r--r--net-mgmt/netsaint-plugins/Makefile2
-rw-r--r--net-mgmt/netsaint-plugins/files/patch-check_mrtg.c15
2 files changed, 16 insertions, 1 deletions
diff --git a/net-mgmt/netsaint-plugins/Makefile b/net-mgmt/netsaint-plugins/Makefile
index 4046b6b..66625a0 100644
--- a/net-mgmt/netsaint-plugins/Makefile
+++ b/net-mgmt/netsaint-plugins/Makefile
@@ -7,7 +7,7 @@
PORTNAME= netsaint-plugins
PORTVERSION= 1.2.9.4
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= netsaintplug
diff --git a/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c b/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c
new file mode 100644
index 0000000..7443d87
--- /dev/null
+++ b/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c
@@ -0,0 +1,15 @@
+--- plugins/check_mrtg.c.orig Mon May 24 22:29:35 2004
++++ plugins/check_mrtg.c Mon May 24 22:29:52 2004
+@@ -338,10 +338,10 @@
+ usage("Invalid variable number\n");
+ break;
+ case 'w': /* critical time threshold */
+- value_warning_threshold=strtoul(argv[5],NULL,10);
++ value_warning_threshold=strtoul(optarg,NULL,10);
+ break;
+ case 'c': /* warning time threshold */
+- value_critical_threshold=strtoul(argv[6],NULL,10);
++ value_critical_threshold=strtoul(optarg,NULL,10);
+ break;
+ case 'l': /* label */
+ value_label=optarg;
OpenPOWER on IntegriCloud