Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30433 - NTP defaults doesn't work
Summary: NTP defaults doesn't work
Status: RESOLVED DUPLICATE of bug 16162
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-05 14:51 UTC by Michiel de Bruijne
Modified: 2005-07-17 13:06 UTC (History)
0 users

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 Michiel de Bruijne 2003-10-05 14:51:08 UTC
The ebuild net-misc/ntp contains the following message: 
ewarn "You can find an example /etc/ntp.conf in /usr/share/ntp/" 
 
This file (example) contains the following lines: 
# you should not need to modify the following paths 
logfile         /var/log/ntpd.log 
driftfile       /var/lib/ntp/ntp.drift 
 
However after emerging ntp, /var/lib/ntp and /var/lib/ntp/ntp.drift doesn't exist, 
resulting in a lot of error notifications in the logfile: (can't open 
/var/lib/ntp/ntp.drift.TEMP: No such file or directory) 
 
To make this work out of the box (TM) the drift file needs to be available and the 
following user and/or group needs to have write permissions on the drift file 
and/or ntp-directory: 
enewgroup ntp 123 
enewuser ntp 123 /dev/null /bin/false ntp 

Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2003-10-05 20:40:02 UTC
this is actually a portage bug ...

the package does create /var/lib/ntp and changes the permissions to ntp.ntp
but portage turns around and removes them (while cleaning other packages)
...
the default drift file does not need to exist ahead of time, only the directory

ive updated the ebuild to work around the portage limitation

*** This bug has been marked as a duplicate of 16162 ***