ports/144602: [PATCH] sysutils/munin-node: Use jot(1) instead of seq(1)
Lars Thegler
lth at FreeBSD.org
Tue Mar 9 21:40:01 UTC 2010
>Number: 144602
>Category: ports
>Synopsis: [PATCH] sysutils/munin-node: Use jot(1) instead of seq(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 09 21:40:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Lars Thegler
>Release: FreeBSD 7.2-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD chuck.thegler.dk 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct 2 12:21:39 UTC
>Description:
Use jot(1) instead of seq(1)
GNU seq(1) does not exist on FreeBSD. Use jot(1) instead.
Added file(s):
- files/patch-plugins__node.d__colour_tester.in
- files/patch-plugins__node.d__squeezebox_.in
Port maintainer (des at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- munin-node-1.4.3_2.patch begins here ---
Index: files/patch-plugins__node.d__colour_tester.in
===================================================================
RCS file: files/patch-plugins__node.d__colour_tester.in
diff -N files/patch-plugins__node.d__colour_tester.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-plugins__node.d__colour_tester.in 9 Mar 2010 21:28:42 -0000
@@ -0,0 +1,11 @@
+--- ./plugins/node.d/colour_tester.in.orig 2010-03-09 22:23:28.000000000 +0100
++++ ./plugins/node.d/colour_tester.in 2010-03-09 22:23:46.000000000 +0100
+@@ -29,7 +29,7 @@ NUMCOL=$(($I - 1))
+
+
+ do_ () { # Fetch
+- for I in $(seq 1 $NUMCOL); do
++ for I in $(jot - 1 $NUMCOL); do
+ echo "l$I.value $I"
+ done
+ }
Index: files/patch-plugins__node.d__squeezebox_.in
===================================================================
RCS file: files/patch-plugins__node.d__squeezebox_.in
diff -N files/patch-plugins__node.d__squeezebox_.in
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-plugins__node.d__squeezebox_.in 9 Mar 2010 21:28:42 -0000
@@ -0,0 +1,38 @@
+--- ./plugins/node.d/squeezebox_.in.orig 2010-03-09 22:23:57.000000000 +0100
++++ ./plugins/node.d/squeezebox_.in 2010-03-09 22:24:16.000000000 +0100
+@@ -157,7 +157,7 @@ if [ "$CMD" = "years" ]; then
+ # echo "graph_order y0"
+ echo -n "graph_order y"; echo $years_array | sed 's/ / y/g'
+
+- for i in `seq 0 $no_of_years`; do
++ for i in `jot - 0 $no_of_years`; do
+ year=$(echo ${arr1[$i]})
+ if [ $year = 0 ]; then
+ echo y0.label No year
+@@ -172,7 +172,7 @@ if [ "$CMD" = "years" ]; then
+ done
+ exit 0
+ fi
+- for i in `seq 0 $no_of_years`; do
++ for i in `jot - 0 $no_of_years`; do
+ year=$(echo ${arr1[$i]})
+ echo -n "y${year}.value "
+ printf "%b" "albums 0 0 year:${year}\nexit\n" | $NC $HOST $PORT | sed 's/%3A/:/g' | cut -d ':' -f 3
+@@ -183,7 +183,7 @@ elif [ "$CMD" = "signalstrength" -o "$CM
+ echo "graph_category Squeezebox"
+ COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
+ (( COUNT-- ))
+- for ID in $(seq 0 $COUNT); do
++ for ID in $(jot - 0 $COUNT); do
+ MAC=$(printf "%b" "player id $ID ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%3A/:/g')
+ NAME=$(printf "%b" "player name $MAC ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%20/ /g')
+ MAC2=$(echo $MAC | sed 's/://g; s/\./_/g')
+@@ -193,7 +193,7 @@ elif [ "$CMD" = "signalstrength" -o "$CM
+ fi
+ COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
+ (( COUNT-- ))
+- for ID in $(seq 0 $COUNT); do
++ for ID in $(jot - 0 $COUNT); do
+ MAC=$(printf "%b" "player id $ID ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%3A/:/g')
+ VAL=$(printf "%b" "$MAC $CMD ?\nexit\n"| $NC $HOST $PORT | cut -d " " -f 2- | sed "s/$CMD //")
+ MAC2=$(echo $MAC| sed 's/://g')
--- munin-node-1.4.3_2.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list