Comment 28 for bug 33351

Revision history for this message
In , Kurt Roeckx (kurt-roeckx) wrote : Re: ntp-simple must be configured before ntp-server.

Hi,

Current svn looks like:
Package: ntp-server
Depends: ntp-simple (>> 1:4.2.0a+stable-6) | ntp-refclock (>> 1:4.2.0a+stable-6), ntp

Package: ntp-refclock
Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
Recommends: ntp-server (= ${Source-Version})

Package: ntp-simple
Depends: ${shlibs:Depends}, ${misc:Depends}, adduser
Recommends: ntp-server (= ${Source-Version})

And this seems to be about what the bug suggest, but I'm not sure
this really is what we want.

I think we want ntp-server to:
Recommends: ntp-simple | ntp-refclock

And ntp-refclock and ntp-simple to:
Depends: ntp-server

ntp-server does not create the user, but it's useless without an
ntp-simple or ntp-refclock. Nothing in ntp-server itself
_should_ be needing the init.d script, it just provides it. It's
like a "-common" package.

ntp-server provides things like the init.d script, the ntp.conf
file, and those are needed by ntp-simple and ntp-refclock. So it
makes more sense to have those depend on ntp-server.

The bug seems to suggest that this won't work, and I don't know
why exactly yet. Setting up ntp-server before ntp-simple works
without problems here. So, I'll need to take a closer look.

Kurt