Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57869 - net-misc/openntpd ebuild doesn't install init scripts (name confusion)
Summary: net-misc/openntpd ebuild doesn't install init scripts (name confusion)
Status: RESOLVED FIXED
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: 2004-07-21 09:15 UTC by antoine marmignon
Modified: 2004-07-23 22:32 UTC (History)
1 user (show)

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


Attachments
Quick ebuild patch to fix the conf file paths (openntpdconf.patch,431 bytes, patch)
2004-07-21 09:34 UTC, Jay Settle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description antoine marmignon 2004-07-21 09:15:50 UTC
From the openntpd ebuild:
------------------------------
	exeinto /etc/init.d
	newexe ${FILESDIR}/openntpd.rc openntpd
	insinto /etc/conf.d
	newins ${FILESDIR}/openntpd.conf.d openntpd
------------------------------

But if you ls -la /usr/portage/net-misc/openntpd/files/
------------------------------
-rw-r--r--  1 root root  70 jui 21 01:44 digest-openntpd-20040719p
drwxr-xr-x  2 root root 152 jui 21 02:05 ./
drwxr-xr-x  3 root root 176 jui 21 02:05 ../
-rw-r--r--  1 root root 239 jui 21 01:44 ntpd.conf.d
-rwxr-xr-x  1 root root 911 jui 21 01:44 ntpd.rc*
------------------------------

In addition, could someone explain me how to write an init script using openntpd that would sync the machine only at boot and not run the beast as a daemon... ?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jay Settle 2004-07-21 09:34:34 UTC
Created attachment 35889 [details, diff]
Quick ebuild patch to fix the conf file paths

Simple patch removes the open from the rc files so they get installed
correctly.  The other option would be to rename the files in the portage tree
but I don't know that that matters.  

As to the above question, I don't know if openntpd has that functionallity. 
The man page is right out of OpenBSD and there it generally points to using
rdate to set your clock the way you describe.  

The one thing I find confusing is that the man page is ntpd and not openntpd. 
Aside from the name confusion, what happens when both net-misc/ntp and
net-misc/openntpd are emerged?	They both have a ntpd man page right?  I think
that could get very confusing.
Comment 2 Jon Radon 2004-07-21 10:11:52 UTC
AFAIK openntpd currently does not have facilities to sync just once at boot time.  I'd suggest you try something like rdate for that or use ntpdate from the vanilla ntpd package.
Comment 3 antoine marmignon 2004-07-21 10:26:32 UTC
Thanks, I know about rdate, I was just wondering if this new all-secure daemon had that functionality :)
Comment 4 SpanKY gentoo-dev 2004-07-21 12:58:53 UTC
hmm, i thought i renamed the files before i commited to cvs :/
Comment 5 SpanKY gentoo-dev 2004-07-23 22:32:57 UTC
fixed in cvs, sorry about that