Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntpsec?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jhardin
n00b
n00b


Joined: 12 Oct 2005
Posts: 39

PostPosted: Tue Nov 29, 2016 9:09 pm    Post subject: ntpsec? Reply with quote

Is anybody working on an official ntpsec package?

https://www.ntpsec.org/
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3376

PostPosted: Thu Dec 01, 2016 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Mon Dec 19, 2016 3:52 am    Post subject: ntpsec ebuild Reply with quote

Not that I am aware of. I have a fan ebuild (9999) which I have been working on
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13509

PostPosted: Tue Dec 20, 2016 2:30 am    Post subject: Reply with quote

Some quick review comments about try #3:
  1. 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.
  2. What is the point of local group_127?
  3. You can use use_enable as a shorthand for your use ... && echo --enable-.... See man 5 ebuild for usage instructions.
  4. 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
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Wed Dec 21, 2016 11:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13509

PostPosted: Thu Dec 22, 2016 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Thu Dec 22, 2016 3:57 am    Post subject: Reply with quote

try four : add systemd service, sample configs, CDEPEND and ntpdate script
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Thu Dec 22, 2016 9:57 am    Post subject: Reply with quote

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
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Thu Dec 22, 2016 6:02 pm    Post subject: Reply with quote

github link

Last edited by jamesb192 on Thu Jan 11, 2018 8:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
NTU
Apprentice
Apprentice


Joined: 17 Jul 2015
Posts: 163

PostPosted: Fri Dec 30, 2016 9:42 am    Post subject: Reply with quote

OpenNTPD is pretty secure too, just throwing that out there, it's from the OpenBSD guys, the pros ;)
Back to top
View user's profile Send private message
jhardin
n00b
n00b


Joined: 12 Oct 2005
Posts: 39

PostPosted: Mon Jan 09, 2017 6:12 am    Post subject: Reply with quote

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
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Tue Jan 10, 2017 2:45 am    Post subject: Reply with quote

they are requirements of ntpviz a monitoring tool not part of the time daemon but included in the package.
Back to top
View user's profile Send private message
jhardin
n00b
n00b


Joined: 12 Oct 2005
Posts: 39

PostPosted: Tue Jan 10, 2017 3:07 am    Post subject: Reply with quote

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
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Sat Jan 21, 2017 8:44 pm    Post subject: Reply with quote

openrc script included
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Sun Jan 22, 2017 11:15 am    Post subject: Reply with quote

metadata/layout.conf and profiles/repo_name would be nice, see https://wiki.gentoo.org/wiki/Repository_format.
That way, people could add it to their /etc/portage/repos.conf.
Back to top
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Sun Jan 22, 2017 2:44 pm    Post subject: Reply with quote

done. but I should probably consider rewriting both.
Back to top
View user's profile Send private message
jonys
n00b
n00b


Joined: 13 Dec 2016
Posts: 4

PostPosted: Sun Jan 22, 2017 3:12 pm    Post subject: Reply with quote

Thank you, jamesb192! It's nice to have this package.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Thu Jan 26, 2017 12:00 pm    Post subject: Reply with quote

Added it to the listing in https://wiki.gentoo.org/wiki/Network_Time_Protocol.
Back to top
View user's profile Send private message
jamesb192
n00b
n00b


Joined: 17 Dec 2016
Posts: 8

PostPosted: Thu Jan 11, 2018 8:49 pm    Post subject: Reply with quote

Update the ebuild and moved the repository. If someone could shift the link at https://wiki.gentoo.org/wiki/Network_Time_Protocol that would be great.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum