summaryrefslogtreecommitdiffstats
path: root/rules/ntpclient.in
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2006-12-03 13:11:27 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2006-12-03 13:11:27 +0000
commit7dd0fa6073993377398f66fa70698ab0cd8767b7 (patch)
tree33a9a34054c2b2d8945bc586ef5ebb1266cd4086 /rules/ntpclient.in
parent363b935e173863ed00b354b5eb912512ab4b4620 (diff)
downloadptxdist-7dd0fa6073993377398f66fa70698ab0cd8767b7.tar.gz
ptxdist-7dd0fa6073993377398f66fa70698ab0cd8767b7.tar.xz
adding startup script and link to ntpclient
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6426 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/ntpclient.in')
-rw-r--r--rules/ntpclient.in74
1 files changed, 71 insertions, 3 deletions
diff --git a/rules/ntpclient.in b/rules/ntpclient.in
index c4a287bce..5ddcd7e87 100644
--- a/rules/ntpclient.in
+++ b/rules/ntpclient.in
@@ -1,12 +1,13 @@
-config NTPCLIENT
+menuconfig NTPCLIENT
bool
- prompt "ntpclient"
+ prompt "ntpclient "
+ default n
help
ntpclient is a small and efficient client to the NTP protocol.
Description by Larry Doolittle:
ntpclient is an NTP (RFC-1305) client for unix-alike computers.
- Its functionality is a small subset of xntpd, but IMHO performs
+ Its functionality is a small subset of xntpd, but IMHO performs
better (or at least has the potential to function better) within
that limited scope. Since it is much smaller than xntpd, it is
also more relevant for embedded computers.
@@ -17,3 +18,70 @@ config NTPCLIENT
See http://doolittle.icarus.com/ntpclient/ for details.
+comment "build options ---"
+ depends on NTPCLIENT
+
+config NTPCLIENT_BUILD_NTPCLIENT
+ bool
+ prompt "ntpclient"
+ default y
+ depends on NTPCLIENT
+ help
+ Builds the ntpclient binary
+
+config NTPCLIENT_BUILD_ADJTIMEX
+ bool
+ depends on NTPCLIENT
+ depends on !BB_CONFIG_ADJTIMEX
+ prompt "adjtimex"
+ default y
+ help
+ Builds the adjtimex binary to control system time
+
+comment "Busybox' adjtimex is in use"
+ depends on NTPCLIENT
+ depends on BB_CONFIG_ADJTIMEX
+
+comment "runtime options ---"
+ depends on NTPCLIENT
+
+config NTPCLIENT_INSTALL_STARTSCRIPT
+ depends on NTPCLIENT
+ bool
+ prompt "Install start script"
+ default y
+ help
+ Enable this extry to let PTXdist install a startup script
+
+choice
+ prompt "Kind of startup script"
+ default ROOTFS_ETC_INITD_NTPCLIENT_DEFAULT
+ depends on NTPCLIENT
+ depends on NTPCLIENT_INSTALL_STARTSCRIPT
+
+ config ROOTFS_ETC_INITD_NTPCLIENT_DEFAULT
+ bool
+ prompt "Use generic"
+ help
+ Installs a generic /etc/init.d/ntpclient startup script.
+ See <ptxdist-install>/generic/etc/init.d/ntpclient
+
+ config ROOTFS_ETC_INITD_NTPCLIENT_USER
+ bool
+ prompt "User defined"
+ help
+ This uses a user defined ntclient startup script. PTXdist
+ uses files projectroot/etc/init.d/ntpclient in your local
+ project
+
+endchoice
+
+config NTPCLIENT_NTPSERVER_NAME
+ depends on NTPCLIENT
+ depends on NTPCLIENT_INSTALL_STARTSCRIPT
+ string
+ prompt "NTP server name"
+ default ""
+ help
+ This will replace the string @HOST@ in the startup script to the given name.
+ ntpclient will connect this host to read the current time.