Difference between pages "Package:Ntp" and "Template:Subarch"

(Difference between pages)
m
 
 
Line 1: Line 1:
{{Ebuild
+
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
|Summary=Network Time Protocol suite/programs
+
{{DISPLAYTITLE:Download - {{{title}}}}}
|CatPkg=net-misc/ntp
+
|
|Homepage=http://www.ntp.org/
+
{{DISPLAYTITLE:Download - {{{subarch}}}}}
}}
+
}}'''This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].'''
  
=== Installation ===
+
{{{Description|}}}
{{console|body=
+
{{#seo:
###i## emerge net-misc/ntp
+
|title={{#if:{{{title|}}}|Download - {{{title}}}|Download - {{{subarch}}}}}
 +
|keywords=funtoo,linux,build,subarch,{{{subarch}}},{{{title}}}
 +
|description=This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].
 
}}
 
}}
 
+
{{#set:CPU Family={{{CPU Family|}}}|subarch={{{subarch|}}}|CHOST={{{CHOST|}}}|CFLAGS={{{CFLAGS|}}}|USE={{{USE|}}}|CPU Features={{{CPU Features|}}}|Description={{{Description|}}}|title={{{title|}}}}}
=== Configuration ===
+
=== Optimizations ===
==== Client ====
+
__NOTOC__
The ntp-client command immediately synchronizes your clock, and has separate ntp sync settings from the daemon:
+
{{TableStart}}
 
+
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
{{file|name=/etc/conf.d/ntp-client|lang=|desc=setting ntp-client upstream servers|body=
+
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
NTPCLIENT_OPTS="-s -b -u \
+
<tr><td>USE (see [[CPU_FLAGS]] for more info)</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
0.pool.ntp.org 1.pool.ntp.org \
+
{{TableEnd}}{{#vardefine:subarch|{{{subarch|}}}}}{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='{{{subarch|}}}']/@builds}}{{#vardefine:builds|{{#external_value:builds}}}}
2.pool.ntp.org 3.pool.ntp.org"
+
=== Download ===
}}
+
{{#if:{{#var:builds}}|This section lists the Funtoo Linux builds currently available for download for '''{{{subarch}}}'''.  A full list of Funtoo Linux builds can be found on the [[Subarches]] page.
 
+
{{table|1=
==== Server ====
+
<tr><th class="active">Build</th><th class="active">Variant</th><th class="active">Latest Build</th><th class="active">Download</th><th class="active">Browse Mirror</th></tr>{{#arraymaptemplate:{{#var:builds}}|DisplayBuilds|,|}}}}|No downloadable stage builds are currently available for this sub-architecture.}}
The ntpd server is also an ntp-client of upstream servers.  Ntpd continuously, and gradually synchronizes the local clock.
+
{{Important|Do you want a particular build of Funtoo Linux but do not see it here? Let us know what you need, and we will likely add it for you. [https://bugs.funtoo.org Create a bug report] requesting the build you need. To see what options there are, see our [[Corei7|Intel Core i7]] subarch page, which has a lot of builds listed.}}
 
+
[[Category:Subarches]]
{{file|name=/etc/ntp.conf|lang=|desc=setting ntpd upstream servers|body=
+
__NOEDITSECTION__
# Pools for Gentoo users
+
=== Detailed Description ===
server 0.pool.ntp.org
+
</includeonly>
server 1.pool.ntp.org
+
server 2.pool.ntp.org
+
server 3.pool.ntp.org
+
}}
+
 
+
=== Runtime ===
+
{{console|body=
+
###i## rc-update add ntpd
+
###i## rc-update add ntp-client
+
###i## rc
+
}}
+
 
+
==== Hardware Clock ====
+
To write your NTP sync time to the hardware at shutdown, and read hw clock at start.
+
 
+
{{console|body=
+
###i## echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
+
###i## echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
+
###i## rc-service hwclock restart
+
###i## rc-update add hwclock boot
+
}}
+
 
+
=== External Resources ===
+
http://keetweej.vanheusden.com/query_ntp.php
+
 
+
{{EbuildFooter}}
+

Latest revision as of 00:03, March 29, 2015