View previous topic :: View next topic |
Author |
Message |
jhardin n00b
Joined: 12 Oct 2005 Posts: 59
|
Posted: Tue Nov 29, 2016 9:09 pm Post subject: ntpsec? |
|
|
Is anybody working on an official ntpsec package?
https://www.ntpsec.org/ |
|
Back to top |
|
|
depontius Advocate
Joined: 05 May 2004 Posts: 3509
|
Posted: Thu Dec 01, 2016 12:34 pm Post subject: |
|
|
Interest seconded. Of course the other answer might be that it's time to learn how to do my own ebuilds - beyond the minor patching and stuff that I've done already. _________________ .sigs waste space and bandwidth |
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
Posted: Mon Dec 19, 2016 3:52 am Post subject: ntpsec ebuild |
|
|
Not that I am aware of. I have a fan ebuild (9999) which I have been working on
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Tue Dec 20, 2016 2:30 am Post subject: |
|
|
Some quick review comments about try #3:- For ntpviz, are those dependencies needed at build time? Currently, the ebuild insists on them at build time and at runtime, but the ebuild neither uses anything from those packages nor tells upstream's waf script whether to enable them. Thus, they appear to me to be runtime-only. If upstream uses them any time they are found (an automagic dependency, which is discouraged), then you should either patch upstream not to do that or depend on them unconditionally.
- What is the point of local group_127?
- You can use use_enable as a shorthand for your use ... && echo --enable-.... See man 5 ebuild for usage instructions.
- You specify a mandir, but then use a mv in src_install as if upstream ignored your specified mandir. Is this a remnant from an earlier attempt or does upstream not fully respect the supplied mandir?
|
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
Posted: Wed Dec 21, 2016 11:02 pm Post subject: |
|
|
1. gnuplot and libration-ttf? are need at run time not compile time.
2. group_127 is a remnant from an attempt to include each refclock seperately using a loop.
3. use_enable does not work because waf choked on the --without responses.
4. current waf does not support mandir correctly if I remember correctly.
weird thing also seem to happen if using python 3.{3,4} |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Thu Dec 22, 2016 2:32 am Post subject: |
|
|
If a package is only needed at runtime, it should be in RDEPEND and not in DEPEND. Users could theoretically build ntpviz on a system that lacks those supporting packages, then install it on a system which has them. This is particularly common among people who use a central build host that serves multiple machines.
As for 3 and 4: ah, the joys of a barely functional upstream build system. |
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
Posted: Thu Dec 22, 2016 3:57 am Post subject: |
|
|
try four : add systemd service, sample configs, CDEPEND and ntpdate script |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Thu Dec 22, 2016 9:57 am Post subject: |
|
|
jamesb192 wrote: | try four : add systemd service, sample configs, CDEPEND and ntpdate script |
jamesb192,
Could you provide it on GitHub? So people could cooperate online and when it's finished you could start the pull request. |
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
Posted: Thu Dec 22, 2016 6:02 pm Post subject: |
|
|
github link
Last edited by jamesb192 on Thu Jan 11, 2018 8:46 pm; edited 1 time in total |
|
Back to top |
|
|
NTU Apprentice
Joined: 17 Jul 2015 Posts: 187
|
Posted: Fri Dec 30, 2016 9:42 am Post subject: |
|
|
OpenNTPD is pretty secure too, just throwing that out there, it's from the OpenBSD guys, the pros |
|
Back to top |
|
|
jhardin n00b
Joined: 12 Oct 2005 Posts: 59
|
Posted: Mon Jan 09, 2017 6:12 am Post subject: |
|
|
jamesb192 wrote: | 1. gnuplot and libration-ttf? are need at run time not compile time. |
...A system service daemon needs a graphing package and a font? I hope that can be disabled via USE options... |
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
Posted: Tue Jan 10, 2017 2:45 am Post subject: |
|
|
they are requirements of ntpviz a monitoring tool not part of the time daemon but included in the package. |
|
Back to top |
|
|
jhardin n00b
Joined: 12 Oct 2005 Posts: 59
|
Posted: Tue Jan 10, 2017 3:07 am Post subject: |
|
|
jamesb192 wrote: | they are requirements of ntpviz a monitoring tool not part of the time daemon but included in the package. |
...and looking at the ebuild I see the use flag for that. Great!
jamesb192 wrote: | ... add systemd service, ... |
May I respectfully request that you not assume the environment is systemd-based? There are sites using openrc who may want to install ntpsec.
Thanks! |
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
Posted: Sat Jan 21, 2017 8:44 pm Post subject: |
|
|
openrc script included |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
Posted: Sun Jan 22, 2017 2:44 pm Post subject: |
|
|
done. but I should probably consider rewriting both. |
|
Back to top |
|
|
jonys n00b
Joined: 13 Dec 2016 Posts: 9
|
Posted: Sun Jan 22, 2017 3:12 pm Post subject: |
|
|
Thank you, jamesb192! It's nice to have this package. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
|
Back to top |
|
|
jamesb192 n00b
Joined: 17 Dec 2016 Posts: 8
|
|
Back to top |
|
|
|