pkgsrc-Bugs archive

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

Re: pkg/47149 (net/ntp4 fails to ntp.conf)



The following reply was made to PR pkg/47149; it has been noted by GNATS.

From: =?ISO-2022-JP?B?GyRCQFA6amZGQkAbKEI=?= <zakinko%snowrabbit.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/47149 (net/ntp4 fails to ntp.conf)
Date: Fri, 2 Nov 2012 19:10:21 +0900

 --f46d04339cdeecdb5004cd8057bb
 Content-Type: text/plain; charset=ISO-8859-1
 
 pkg/47149 should not be closed.
 
 pkg/47149 issues the original ntp4 configure bug (So, NTP4 team should
 fix it ;-).
 
 "/etc/ntp.conf" path is hard-coded in ntp4 source codes though pkgsrc
 does not modify the path of them.
 
 Pkgsrc "/etc/rc.d" scripts check the existence of
 @PKG_SYSCONFDIR@/ntp.conf but /usr/pkg/bin/*ntp* tries to read
 /etc/ntp.conf since it is hard-coded. This causes WARNING of rc.d
 scripts.
 
   ./files/ntpd.sh:required_
 files="@PKG_SYSCONFDIR@/ntp.conf"
   ./files/ntpdate.sh:             ' <@PKG_SYSCONFDIR@/ntp.conf`
 
 The following patches (SHAR) fix the hard-conding but the
 corresponding configure fixes must be needed.
 
 
 
 echo x - patches/patch-za
 sed 's/^X//' >patches/patch-za << 'END-of-patches/patch-za'
 X--- include/ntp_config.h       2006-12-28 21:03:04.000000000 +0900
 X+++ include/ntp_config.h       2012-11-02 18:25:44.000000000 +0900
 X@@ -3,7 +3,7 @@
 X  */
 X #ifndef CONFIG_FILE
 X # ifndef SYS_WINNT
 X-#  define     CONFIG_FILE "/etc/ntp.conf"
 X+#  define     CONFIG_FILE "@PKG_SYSCONFDIR@/ntp.conf"
 X # else /* SYS_WINNT */
 X #  define     CONFIG_FILE     "%windir%\\system32\\drivers\\etc\\ntp.conf"
 X #  define     ALT_CONFIG_FILE "%windir%\\ntp.conf"
 END-of-patches/patch-za
 echo x - patches/patch-zb
 sed 's/^X//' >patches/patch-zb << 'END-of-patches/patch-zb'
 X--- ntpd/ntpdbase-opts.def     2008-03-22 20:03:22.000000000 +0900
 X+++ ntpd/ntpdbase-opts.def     2012-11-02 18:26:13.000000000 +0900
 X@@ -74,7 +74,7 @@
 X     descrip   = "configuration file name";
 X     doc = <<-  _EndOfDoc_
 X       The name and path of the configuration file,
 X-      /etc/ntp.conf
 X+      @PKG_SYSCONFDIR@/ntp.conf
 X       by default.
 X       _EndOfDoc_;
 X };
 X@@ -104,7 +104,7 @@
 X       This is the same operation as the
 X       driftfile driftfile
 X       configuration specification in the
 X-      /etc/ntp.conf
 X+      @PKG_SYSCONFDIR@/ntp.conf
 X       file.
 X       _EndOfDoc_;
 X };
 X
 END-of-patches/patch-zb
 echo x - patches/patch-zc
 sed 's/^X//' >patches/patch-zc << 'END-of-patches/patch-zc'
 X--- ntpd/ntpd-opts.texi        2009-12-08 22:13:11.000000000 +0900
 X+++ ntp-4.2.4p8.new/ntpd/ntpd-opts.texi        2012-11-02
 18:32:24.000000000 +0900
 X@@ -200,7 +200,7 @@
 X
 X This is the ``configuration file name'' option.
 X The name and path of the configuration file,
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X by default.
 X
 X @node ntpd debug-level
 X@@ -247,7 +247,7 @@
 X This is the same operation as the
 X driftfile driftfile
 X configuration specification in the
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X file.
 X
 X @node ntpd panicgate
 END-of-patches/patch-zc
 echo x - patches/patch-zd
 sed 's/^X//' >patches/patch-zd << 'END-of-patches/patch-zd'
 X--- ntpd/ntpd.1        2009-12-08 22:13:11.000000000 +0900
 X+++ ntp-4.2.4p8.new/ntpd/ntpd.1        2012-11-02 18:32:29.000000000 +0900
 X@@ -59,7 +59,7 @@
 X configuration file name.
 X .sp
 X The name and path of the configuration file,
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X by default.
 X .TP
 X .BR \-d ", " \--debug-level
 X@@ -84,7 +84,7 @@
 X This is the same operation as the
 X driftfile driftfile
 X configuration specification in the
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X file.
 X .TP
 X .BR \-g ", " \--panicgate
 END-of-patches/patch-zd
 echo x - patches/patch-ze
 sed 's/^X//' >patches/patch-ze << 'END-of-patches/patch-ze'
 X--- ntpd/ntpdsim-opts.texi     2009-12-08 22:13:15.000000000 +0900
 X+++ ntp-4.2.4p8.new/ntpd/ntpdsim-opts.texi     2012-11-02 18:32:
 07.000000000 +0900
 X@@ -216,7 +216,7 @@
 X
 X This is the ``configuration file name'' option.
 X The name and path of the configuration file,
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X by default.
 X
 X @node ntpdsim phasenoise
 X@@ -270,7 +270,7 @@
 X This is the same operation as the
 X driftfile driftfile
 X configuration specification in the
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X file.
 X
 X @node ntpdsim panicgate
 X
 END-of-patches/patch-ze
 echo x - patches/patch-zf
 sed 's/^X//' >patches/patch-zf << 'END-of-patches/patch-zf'
 X--- ntpd/ntpdsim.1     2009-12-08 22:13:14.000000000 +0900
 X+++ ntp-4.2.4p8.new/ntpd/ntpdsim.1     2012-11-02 18:32:16.000000000 +0900
 X@@ -64,7 +64,7 @@
 X configuration file name.
 X .sp
 X The name and path of the configuration file,
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X by default.
 X .TP
 X .BR \-C " \fIstring\fP, " \--phasenoise "=" \fIstring\fP
 X@@ -94,7 +94,7 @@
 X This is the same operation as the
 X driftfile driftfile
 X configuration specification in the
 X-/etc/ntp.conf
 X+@PKG_SYSCONFDIR@/ntp.conf
 X file.
 X .TP
 X .BR \-g ", " \--panicgate
 END-of-patches/patch-zf
 exit
 
 -- 
 Network Science (and Service) Research Group
 http://www.nsrg.fml.org/
 Ishizaki Showta
 zakinko%snowrabbit.org@localhost
 
 --f46d04339cdeecdb5004cd8057bb
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 pkg/47149 should not be closed.<br>
 <br>
 pkg/47149 issues the original ntp4 configure bug (So, NTP4 team should<br>
 fix it ;-).<br>
 <br>
 &quot;/etc/ntp.conf&quot; path is hard-coded in ntp4 source codes though pk=
 gsrc<br>
 does not modify the path of them.<br>
 <br>
 Pkgsrc &quot;/etc/rc.d&quot; scripts check the existence of<br>
 @PKG_SYSCONFDIR@/ntp.conf but /usr/pkg/bin/*ntp* tries to read<br>
 /etc/ntp.conf since it is hard-coded. This causes WARNING of rc.d<br>
 scripts.<br>
 <br>
 =A0 ./files/ntpd.sh:required_<div id=3D":j0">files=3D&quot;@PKG_SYSCONFDIR@=
 /ntp.conf&quot;<br>
 =A0 ./files/ntpdate.sh: =A0 =A0 =A0 =A0 =A0 =A0 &#39; &lt;@PKG_SYSCONFDIR@/=
 ntp.conf`<br>
 <br>
 The following patches (SHAR) fix the hard-conding but the<br>
 corresponding configure fixes must be needed.<br>
 <br>
 <br>
 <br>
 echo x - patches/patch-za<br>
 sed &#39;s/^X//&#39; &gt;patches/patch-za &lt;&lt; &#39;END-of-patches/patc=
 h-za&#39;<br>
 X--- include/ntp_config.h =A0 =A0 =A0 2006-12-28 21:03:04.000000000 +0900<b=
 r>
 X+++ include/ntp_config.h =A0 =A0 =A0 2012-11-02 18:25:44.000000000 +0900<b=
 r>
 X@@ -3,7 +3,7 @@<br>
 X =A0*/<br>
 X #ifndef CONFIG_FILE<br>
 X # ifndef SYS_WINNT<br>
 X-# =A0define =A0 =A0 CONFIG_FILE &quot;/etc/ntp.conf&quot;<br>
 X+# =A0define =A0 =A0 CONFIG_FILE &quot;@PKG_SYSCONFDIR@/ntp.conf&quot;<br>
 X # else /* SYS_WINNT */<br>
 X # =A0define =A0 =A0 CONFIG_FILE =A0 =A0 &quot;%windir%\\system32\\drivers=
 \\etc\\ntp.conf&quot;<br>
 X # =A0define =A0 =A0 ALT_CONFIG_FILE &quot;%windir%\\ntp.conf&quot;<br>
 END-of-patches/patch-za<br>
 echo x - patches/patch-zb<br>
 sed &#39;s/^X//&#39; &gt;patches/patch-zb &lt;&lt; &#39;END-of-patches/patc=
 h-zb&#39;<br>
 X--- ntpd/ntpdbase-opts.def =A0 =A0 2008-03-22 20:03:22.000000000 +0900<br>
 X+++ ntpd/ntpdbase-opts.def =A0 =A0 2012-11-02 18:26:13.000000000 +0900<br>
 X@@ -74,7 +74,7 @@<br>
 X =A0 =A0 descrip =A0 =3D &quot;configuration file name&quot;;<br>
 X =A0 =A0 doc =3D &lt;&lt;- =A0_EndOfDoc_<br>
 X =A0 =A0 =A0 The name and path of the configuration file,<br>
 X- =A0 =A0 =A0/etc/ntp.conf<br>
 X+ =A0 =A0 =A0@PKG_SYSCONFDIR@/ntp.conf<br>
 X =A0 =A0 =A0 by default.<br>
 X =A0 =A0 =A0 _EndOfDoc_;<br>
 X };<br>
 X@@ -104,7 +104,7 @@<br>
 X =A0 =A0 =A0 This is the same operation as the<br>
 X =A0 =A0 =A0 driftfile driftfile<br>
 X =A0 =A0 =A0 configuration specification in the<br>
 X- =A0 =A0 =A0/etc/ntp.conf<br>
 X+ =A0 =A0 =A0@PKG_SYSCONFDIR@/ntp.conf<br>
 X =A0 =A0 =A0 file.<br>
 X =A0 =A0 =A0 _EndOfDoc_;<br>
 X };<br>
 X<br>
 END-of-patches/patch-zb<br>
 echo x - patches/patch-zc<br>
 sed &#39;s/^X//&#39; &gt;patches/patch-zc &lt;&lt; &#39;END-of-patches/patc=
 h-zc&#39;<br>
 X--- ntpd/ntpd-opts.texi =A0 =A0 =A0 =A02009-12-08 22:13:11.000000000 +0900=
 <br>
 X+++ ntp-4.2.4p8.new/ntpd/ntpd-opts.texi =A0 =A0 =A0 =A02012-11-02 18:32:24=
 .000000000 +0900<br>
 X@@ -200,7 +200,7 @@<br>
 X<br>
 X This is the ``configuration file name&#39;&#39; option.<br>
 X The name and path of the configuration file,<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X by default.<br>
 X<br>
 X @node ntpd debug-level<br>
 X@@ -247,7 +247,7 @@<br>
 X This is the same operation as the<br>
 X driftfile driftfile<br>
 X configuration specification in the<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X file.<br>
 X<br>
 X @node ntpd panicgate<br>
 END-of-patches/patch-zc<br>
 echo x - patches/patch-zd<br>
 sed &#39;s/^X//&#39; &gt;patches/patch-zd &lt;&lt; &#39;END-of-patches/patc=
 h-zd&#39;<br>
 X--- ntpd/ntpd.1 =A0 =A0 =A0 =A02009-12-08 22:13:11.000000000 +0900<br>
 X+++ ntp-4.2.4p8.new/ntpd/ntpd.1 =A0 =A0 =A0 =A02012-11-02 18:32:29.0000000=
 00 +0900<br>
 X@@ -59,7 +59,7 @@<br>
 X configuration file name.<br>
 X .sp<br>
 X The name and path of the configuration file,<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X by default.<br>
 X .TP<br>
 X .BR \-d &quot;, &quot; \--debug-level<br>
 X@@ -84,7 +84,7 @@<br>
 X This is the same operation as the<br>
 X driftfile driftfile<br>
 X configuration specification in the<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X file.<br>
 X .TP<br>
 X .BR \-g &quot;, &quot; \--panicgate<br>
 END-of-patches/patch-zd<br>
 echo x - patches/patch-ze<br>
 sed &#39;s/^X//&#39; &gt;patches/patch-ze &lt;&lt; &#39;END-of-patches/patc=
 h-ze&#39;<br>
 X--- ntpd/ntpdsim-opts.texi =A0 =A0 2009-12-08 22:13:15.000000000 +0900<br>
 X+++ ntp-4.2.4p8.new/ntpd/ntpdsim-opts.texi =A0 =A0 2012-11-02 18:32:<a hre=
 f=3D"tel:07.000000000" value=3D"+817000000000">07.000000000</a> +0900<br>
 X@@ -216,7 +216,7 @@<br>
 X<br>
 X This is the ``configuration file name&#39;&#39; option.<br>
 X The name and path of the configuration file,<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X by default.<br>
 X<br>
 X @node ntpdsim phasenoise<br>
 X@@ -270,7 +270,7 @@<br>
 X This is the same operation as the<br>
 X driftfile driftfile<br>
 X configuration specification in the<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X file.<br>
 X<br>
 X @node ntpdsim panicgate<br>
 X<br>
 END-of-patches/patch-ze<br>
 echo x - patches/patch-zf<br>
 sed &#39;s/^X//&#39; &gt;patches/patch-zf &lt;&lt; &#39;END-of-patches/patc=
 h-zf&#39;<br>
 X--- ntpd/ntpdsim.1 =A0 =A0 2009-12-08 22:13:14.000000000 +0900<br>
 X+++ ntp-4.2.4p8.new/ntpd/ntpdsim.1 =A0 =A0 2012-11-02 18:32:16.000000000 +=
 0900<br>
 X@@ -64,7 +64,7 @@<br>
 X configuration file name.<br>
 X .sp<br>
 X The name and path of the configuration file,<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X by default.<br>
 X .TP<br>
 X .BR \-C &quot; \fIstring\fP, &quot; \--phasenoise &quot;=3D&quot; \fIstri=
 ng\fP<br>
 X@@ -94,7 +94,7 @@<br>
 X This is the same operation as the<br>
 X driftfile driftfile<br>
 X configuration specification in the<br>
 X-/etc/ntp.conf<br>
 X+@PKG_SYSCONFDIR@/ntp.conf<br>
 X file.<br>
 X .TP<br>
 X .BR \-g &quot;, &quot; \--panicgate<br>
 END-of-patches/patch-zf<br>
 exit</div><br>-- <br><span style=3D"border-collapse:separate;color:rgb(0,0,=
 0);font-family:&#39;MS PGothic&#39;;font-size:11px;font-style:normal;font-v=
 ariant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;t=
 ext-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><sp=
 an style=3D"font-size:13px;line-height:16px;text-align:left"><span class=3D=
 "st">Network Science (and Service) Research Group<br>
 <a href=3D"http://www.nsrg.fml.org/";>http://www.nsrg.fml.org/</a><br></span=
 >Ishizaki Showta <br><a href=3D"mailto:zakinko%snowrabbit.org@localhost"; 
 >target=3D"_b=
 lank">zakinko%snowrabbit.org@localhost</a> <br></span></span><br>
 
 --f46d04339cdeecdb5004cd8057bb--
 


Home | Main Index | Thread Index | Old Index