pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/nsd Redirecting stdout and stderr with &> is not p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30c79d5f5477
branches:  trunk
changeset: 396434:30c79d5f5477
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jul 24 07:08:10 2009 +0000

description:
Redirecting stdout and stderr with &> is not portable, fix this.
Issue raised by Koh-ichi Ito on nsd-users.

diffstat:

 net/nsd/Makefile         |   3 ++-
 net/nsd/distinfo         |   3 ++-
 net/nsd/patches/patch-ab |  18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 3004cd377c5e -r 30c79d5f5477 net/nsd/Makefile
--- a/net/nsd/Makefile  Fri Jul 24 06:54:37 2009 +0000
+++ b/net/nsd/Makefile  Fri Jul 24 07:08:10 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2009/05/20 01:55:55 joerg Exp $
+# $NetBSD: Makefile,v 1.47 2009/07/24 07:08:10 joerg Exp $
 
 DISTNAME=      nsd-3.2.2
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  http://www.nlnetlabs.nl/downloads/nsd/
 
diff -r 3004cd377c5e -r 30c79d5f5477 net/nsd/distinfo
--- a/net/nsd/distinfo  Fri Jul 24 06:54:37 2009 +0000
+++ b/net/nsd/distinfo  Fri Jul 24 07:08:10 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.25 2009/05/20 01:55:55 joerg Exp $
+$NetBSD: distinfo,v 1.26 2009/07/24 07:08:10 joerg Exp $
 
 SHA1 (nsd-3.2.2.tar.gz) = 23fc0be5d447ea852acd49f64743c96403a091fa
 RMD160 (nsd-3.2.2.tar.gz) = 740b81386488d3f45b82e9ae26dbd7a2bfc85aa9
 Size (nsd-3.2.2.tar.gz) = 840917 bytes
 SHA1 (patch-aa) = 81b820eb4f2056ab85cad16b7dc526f1ba2737aa
+SHA1 (patch-ab) = 53fad0fe0fec84da8f06909070f1d60bb8c74f85
diff -r 3004cd377c5e -r 30c79d5f5477 net/nsd/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nsd/patches/patch-ab  Fri Jul 24 07:08:10 2009 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ab,v 1.3 2009/07/24 07:08:10 joerg Exp $
+
+--- nsdc.sh.in.orig    2009-07-24 09:04:04.000000000 +0200
++++ nsdc.sh.in
+@@ -195,11 +195,11 @@ controlled_stop() {
+                       if [ $try -eq 1 ]; then
+                               kill -TERM ${pid}
+                       else
+-                              kill -TERM ${pid} &>/dev/null
++                              kill -TERM ${pid} > /dev/null 2>&1
+                       fi
+ 
+                       # really stopped?
+-                      kill -0 ${pid} &>/dev/null 
++                      kill -0 ${pid} > /dev/null 2>&1
+                       if [ $? -eq 0 ]; then
+                               controlled_sleep ${try}
+                               try=`expr ${try} + 1`



Home | Main Index | Thread Index | Old Index