pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/50352: (envstat2mrtg) envstat does not support '-n' no longer
>Number: 50352
>Category: pkg
>Synopsis: (envstat2mrtg) envstat does not support '-n' no longer
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Oct 21 13:55:00 +0000 2015
>Originator: Susumu Miwa
>Release: 2015Q3
>Organization:
area51.gr.jp
>Environment:
NetBSD mogu.area51.gr.jp 7.0 NetBSD 7.0 (GENERIC.201509250726Z) i386
>Description:
hi.
pkgsrc/net/mrtg
envstat does not support '-n' no longer.
'-n' was deleted.
http://cvsweb.netbsd.org/cgi-bin/cvsweb.cgi/src/usr.sbin/envstat/envstat.c.diff?r1=1.24&r2=1.25&f=h
>How-To-Repeat:
>Fix:
# diff -u /usr/pkg/libexec/envstat2mrtg.orig /usr/pkg/libexec/envstat2mrtg
--- /usr/pkg/libexec/envstat2mrtg.orig 2015-10-21 21:24:08.000000000 +0900
+++ /usr/pkg/libexec/envstat2mrtg 2015-10-21 21:24:30.000000000 +0900
@@ -3,7 +3,7 @@
if (@ARGV == 1)
{
- open(CMDOUT, "envstat -n0 -s '@ARGV[0]'|");
+ open(CMDOUT, "envstat -s '@ARGV[0]'|");
$line = <CMDOUT>;
chop $line;
if ($line =~ m|^[\s\t]+(\w+)$|)
@@ -25,7 +25,7 @@
if (@ARGV == 2)
{
- open(CMDOUT, "envstat -n0 -s '@ARGV[0],@ARGV[1]'|");
+ open(CMDOUT, "envstat -s '@ARGV[0],@ARGV[1]'|");
$line = <CMDOUT>;
if ($line =~ m|^[\s\t]+(\w+)[\s\t]+(\w+)$|)
{
Home |
Main Index |
Thread Index |
Old Index