pkgsrc-Bugs archive

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

pkg/48590: rc.d script bugs in net/ntp4



>Number:         48590
>Category:       pkg
>Synopsis:       rc.d scripts reference wrong path ntpd and ntpdate
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 11 17:35:00 +0000 2014
>Originator:     Jason White
>Release:        NetBSD 3.1
>Organization:
>Environment:
System: NetBSD bender.menelos.com 3.1 NetBSD 3.1 (GENERIC) #0: Tue Oct 31 
04:27:07 UTC 2006 
builds%b0.netbsd.org@localhost:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386
Architecture: i386
Machine: i386
>Description:
The rc.d scripts for ntpd and ntpdate incorrectly reference the path
$PREFIX/bin instead of $PREFIX/sbin.

>How-To-Repeat:
Install the package, copy the sample rc.d scripts for ntpd and ntpdate, invoke.

>Fix:
Patch the rc.d scripts.

Index: files/ntpd.sh
===================================================================
RCS file: /cvsroot/pkgsrc/net/ntp4/files/ntpd.sh,v
retrieving revision 1.2
diff -u -r1.2 ntpd.sh
--- files/ntpd.sh       28 Mar 2004 06:35:03 -0000      1.2
+++ files/ntpd.sh       11 Feb 2014 16:08:42 -0000
@@ -12,7 +12,7 @@

 name="ntpd"
 rcvar=$name
-command="@PREFIX@/bin/${name}"
+command="@PREFIX@/sbin/${name}"
 pidfile="/var/run/${name}.pid"
 start_precmd="ntpd_precmd"
 required_files="@PKG_SYSCONFDIR@/ntp.conf"

Index: files/ntpdate.sh
===================================================================
RCS file: /cvsroot/pkgsrc/net/ntp4/files/ntpdate.sh,v
retrieving revision 1.1
diff -u -r1.1 ntpdate.sh
--- files/ntpdate.sh    11 Mar 2004 20:39:40 -0000      1.1
+++ files/ntpdate.sh    11 Feb 2014 16:08:42 -0000
@@ -23,7 +23,7 @@
        fi
        if [ -n "$ntpdate_hosts"  ]; then
                echo "Setting date via ntp."
-               @PREFIX@/bin/ntpdate $rc_flags $ntpdate_hosts
+               @PREFIX@/sbin/ntpdate $rc_flags $ntpdate_hosts
        fi
 }



Home | Main Index | Thread Index | Old Index