summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-05-06 19:15:43 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-05-06 19:15:43 +0000
commitf82a8849b32f976354b70afdd230961e7bcf01f0 (patch)
tree6473de2a4d31695bc0941b9b2e6586a28c3e5621 /rules
parent0c0ff60b78d11a607c1766c30dcfc14898647c80 (diff)
downloadptxdist-f82a8849b32f976354b70afdd230961e7bcf01f0.tar.gz
ptxdist-f82a8849b32f976354b70afdd230961e7bcf01f0.tar.xz
* openntpd: Added option for start script to OpenNTPD. Patch by
Carsten Schlote. git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8128 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules')
-rw-r--r--rules/openntpd.in14
-rw-r--r--rules/openntpd.make17
2 files changed, 27 insertions, 4 deletions
diff --git a/rules/openntpd.in b/rules/openntpd.in
index bdc076ce4..4e53dd5a8 100644
--- a/rules/openntpd.in
+++ b/rules/openntpd.in
@@ -13,14 +13,14 @@ menuconfig OPENNTPD
server itself, redistributing the local clock.
See http://www.openntpd.org/ for details
+if OPENNTPD
+
comment "build options ---"
- depends on OPENNTPD
config OPENNTPD_ARC4RANDOM
bool
prompt "Use builtin arc4random rather than OpenSSL's"
default y
- depends on OPENNTPD
help
Enabled by default - if unsure, say YES
Say NO and install OpenSSL as alternative.
@@ -31,10 +31,18 @@ comment "install options ---"
config OPENNTPD_USERS_CONFIG
bool
prompt "install user defined /etc/ntpd.conf"
- depends on OPENNTPD
help
This uses a user defined ntpd.conf file. PTXdist will use the file
projectroot/etc/ntpd.conf in your local project.
A default ntpd.conf to generate your own one comes with the packet
itself.
+config OPENNTPD_INITD_SCRIPT
+ bool
+ prompt "install user defined init.d script"
+ help
+ This options installs a user defined init.d script. PTXdist will use
+ the file projectroot/etc/init.d/ntp in your local project.
+
+endif
+
diff --git a/rules/openntpd.make b/rules/openntpd.make
index 7d37ec5fd..1547bf2e3 100644
--- a/rules/openntpd.make
+++ b/rules/openntpd.make
@@ -118,7 +118,7 @@ $(STATEDIR)/openntpd.targetinstall: $(openntpd_targetinstall_deps_default)
@$(call install_fixup, openntpd,PRIORITY,optional)
@$(call install_fixup, openntpd,VERSION,$(OPENNTPD_VERSION))
@$(call install_fixup, openntpd,SECTION,base)
- @$(call install_fixup, openntpd,AUTHOR,"Bjoern Buerger <b.buerger\@pengutronix.de>")
+ @$(call install_fixup, openntpd,AUTHOR,"Carsten Schlote c.schlote\@konzeptpark.de>")
@$(call install_fixup, openntpd,DEPENDS,)
@$(call install_fixup, openntpd,DESCRIPTION,missing)
@@ -128,7 +128,22 @@ ifdef PTXCONF_OPENNTPD_USERS_CONFIG
@$(call install_copy, openntpd, 0, 0, 0644, \
${PTXDIST_WORKSPACE}/projectroot/etc/ntpd.conf, \
/etc/ntpd.conf, n)
+else
+ @$(call install_copy, openntpd, 0, 0, 0644, \
+ $(OPENNTPD_DIR)/ntpd.conf, \
+ /etc/ntpd.conf, n)
endif
+
+ifdef PTXCONF_OPENNTPD_INITD_SCRIPT
+ # -- Initscript
+ @$(call install_copy, openntpd, 0,0, 755, \
+ ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/ntp, \
+ /etc/init.d/ntp, n)
+ @$(call install_copy, openntpd, 0, 0, 0755, /etc/rc.d)
+ @$(call install_link, openntpd, ../init.d/ntp, \
+ /etc/rc.d/S19_ntp)
+endif
+
@$(call install_finish, openntpd)
@$(call touch, $@)