pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/hobbitmon Avoid an endless loop when fping does no...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f38dae7d2160
branches: trunk
changeset: 506311:f38dae7d2160
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Jan 14 02:52:42 2006 +0000
description:
Avoid an endless loop when fping does not work _and_ no user input is
available.
diffstat:
net/hobbitmon/distinfo | 4 ++--
net/hobbitmon/patches/patch-ab | 23 +++++++++++++++++------
2 files changed, 19 insertions(+), 8 deletions(-)
diffs (50 lines):
diff -r 92666622b9f0 -r f38dae7d2160 net/hobbitmon/distinfo
--- a/net/hobbitmon/distinfo Sat Jan 14 01:48:08 2006 +0000
+++ b/net/hobbitmon/distinfo Sat Jan 14 02:52:42 2006 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.5 2005/09/17 21:31:26 minskim Exp $
+$NetBSD: distinfo,v 1.6 2006/01/14 02:52:42 rillig Exp $
SHA1 (hobbit-4.0-beta6.tar.gz) = 82e6a76e55682c205adac47e54830064bba44f2d
RMD160 (hobbit-4.0-beta6.tar.gz) = 6542f6a1cd58236c85eefc74872436ee75f36b4b
Size (hobbit-4.0-beta6.tar.gz) = 1130547 bytes
SHA1 (patch-aa) = a1d5ceaaa7cc99be2a55543234cdd3b20dd0e1a9
-SHA1 (patch-ab) = a5d0145f0dd6886a631aa22a093da1d6a28299e3
+SHA1 (patch-ab) = 810b67dfa9c149defb3d05886d70e62798eaf96f
SHA1 (patch-ac) = 26ea6fd07f9529fe2af3067d1e704a64157756d0
SHA1 (patch-ae) = 1355886e3aeafe26bb9ec5322235a464ab475993
SHA1 (patch-aj) = 4758ccbabb6a109c3f3da40c3fd5129be1f7bbfd
diff -r 92666622b9f0 -r f38dae7d2160 net/hobbitmon/patches/patch-ab
--- a/net/hobbitmon/patches/patch-ab Sat Jan 14 01:48:08 2006 +0000
+++ b/net/hobbitmon/patches/patch-ab Sat Jan 14 02:52:42 2006 +0000
@@ -1,8 +1,11 @@
-$NetBSD: patch-ab,v 1.2 2005/01/24 18:16:20 manu Exp $
---- build/fping.sh.orig 2005-01-24 17:28:28.000000000 +0100
-+++ build/fping.sh 2005-01-24 17:28:01.000000000 +0100
-@@ -1,9 +1,9 @@
- #!/bin/sh
+$NetBSD: patch-ab,v 1.3 2006/01/14 02:52:42 rillig Exp $
+
+The second hunk avoids an endless loop when there is no
+way to read from stdin.
+
+--- build/fping.sh.orig 2005-01-23 09:19:02.000000000 +0100
++++ build/fping.sh 2006-01-14 03:47:22.000000000 +0100
+@@ -2,7 +2,7 @@
echo "Checking for fping ..."
@@ -11,4 +14,12 @@
for DIR in /bin /usr/bin /sbin /usr/sbin /usr/local/bin /usr/local/sbin /opt/bin /usr/pkg/bin
do
- if test -x $DIR/fping
+@@ -41,7 +41,7 @@
+ echo "like 'sudo' to run fping."
+ echo ""
+ echo "Hobbit needs the fping utility. What command should it use to run fping ?"
+- read FPING
++ read FPING || exit 1
+ fi
+ done
+
Home |
Main Index |
Thread Index |
Old Index