pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/nagios-base /bin/sh is not the right shell to use ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01f163357348
branches:  trunk
changeset: 512533:01f163357348
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu May 11 07:32:02 2006 +0000

description:
/bin/sh is not the right shell to use in pkgsrc rc scripts. use
@RCD_SCRIPTS_SHELL@. don't bother testing for /etc/rc.subr because it
won't work without it, anyway.

bump PKGREVISION.

diffstat:

 net/nagios-base/Makefile        |  3 ++-
 net/nagios-base/files/nagios.sh |  8 +++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r e9a98b3d28b9 -r 01f163357348 net/nagios-base/Makefile
--- a/net/nagios-base/Makefile  Thu May 11 06:51:54 2006 +0000
+++ b/net/nagios-base/Makefile  Thu May 11 07:32:02 2006 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2006/05/09 18:09:10 bouyer Exp $
+# $NetBSD: Makefile,v 1.7 2006/05/11 07:32:02 grant Exp $
 #
 
 DISTNAME=      nagios-2.3
+PKGREVISION=   1
 PKGNAME=       ${DISTNAME:S/-/-base-/}
 CATEGORIES=    net sysutils
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=nagios/}
diff -r e9a98b3d28b9 -r 01f163357348 net/nagios-base/files/nagios.sh
--- a/net/nagios-base/files/nagios.sh   Thu May 11 06:51:54 2006 +0000
+++ b/net/nagios-base/files/nagios.sh   Thu May 11 07:32:02 2006 +0000
@@ -1,13 +1,11 @@
-#!/bin/sh
+#!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: nagios.sh,v 1.1.1.1 2006/02/18 17:12:20 bouyer Exp $
+# $NetBSD: nagios.sh,v 1.2 2006/05/11 07:32:02 grant Exp $
 #
 # PROVIDE: nagios
 # REQUIRE: DAEMON
 
-if [ -f /etc/rc.subr ]; then
-       . /etc/rc.subr
-fi
+. /etc/rc.subr
 
 name="nagios"
 rcvar=$name



Home | Main Index | Thread Index | Old Index