Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21184 - file /etc/conf.d/ntp.conf is not created
Summary: file /etc/conf.d/ntp.conf is not created
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-18 08:32 UTC by Baptiste Mille-Mathias
Modified: 2003-08-05 22:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Mille-Mathias 2003-05-18 08:32:13 UTC
The ebuild of ntp-4.1.1b-r5 doesn't create the file /etc/ntp.conf, so ntpupdate
can't work. To make it work I created a symlink on /etc/conf.d/ntpd
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2003-05-18 13:22:56 UTC
the info after emerging explicitly says there is an example ntp.conf in /usr/share/ntp that needs edited and added to /etc
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-07-14 15:26:47 UTC
No it doesn't.  There's no mention that the sample config file needs to
be copied to /etc:

    ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/"
    ewarn "Review /etc/ntp.conf to setup server info."
    ewarn "Review /etc/conf.d/ntpd to setup init.d info."

The information in pkg_postinst needs to be more explicit.
Comment 3 SpanKY gentoo-dev 2003-07-14 23:47:33 UTC
sorry i assumed that the user could kind of figure out what to do with the files: 
ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/" 
i mean yeah it doesnt say 'you can find an ntp.conf file in /usr/share/ntp.  please 
copy it to /etc' ... but you know ? 
Comment 4 SpanKY gentoo-dev 2003-07-14 23:50:31 UTC
i'd suggest having the ebuild do this: 
insinto /usr/share/ntp 
doins ${FILESDIR}/ntp.conf 
if [ ! -e /etc/ntp.conf ] ; then 
	insinto /etc 
	doins ${FILESDIR}/ntp.conf 
fi 
 
the reason i didnt have the ebuild always insinto /etc is that ntp.conf is heavily 
changed during runtime and whenever a new version was merged the 
differences were very stark ... i ended up with a lot of users not knowing what to 
do with the .conf file and then filing bugs because they're werent able to handle it 
:P 
Comment 5 SpanKY gentoo-dev 2003-08-05 22:47:31 UTC
actually i lied, i'm not going to add this to the ebuild

if you run ntpd w/out /etc/ntp.conf it says this:
                eerror "Please create /etc/ntp.conf"
                eerror "Sample conf: /usr/share/ntp/ntp.conf"

if the user cannot figure out what to do from that message then ... well i just dont know what to say ;)