diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-02-20 23:13:39 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-02-20 23:13:39 +0000 |
commit | 2e878658a02ca4651673cad2f41a57f27557d6dc (patch) | |
tree | fd1c10f972e4e7f79775a2b3c52fe907869e6032 /rules/openntpd.make | |
parent | be1d99320d214120a306d659e3eacac4411b5ad3 (diff) | |
download | ptxdist-2e878658a02ca4651673cad2f41a57f27557d6dc.tar.gz ptxdist-2e878658a02ca4651673cad2f41a57f27557d6dc.tar.xz |
* init: introduce infrastructure for multiple init methods
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@9802 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/openntpd.make')
-rw-r--r-- | rules/openntpd.make | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/rules/openntpd.make b/rules/openntpd.make index b43c4950a..be3e89d54 100644 --- a/rules/openntpd.make +++ b/rules/openntpd.make @@ -81,23 +81,20 @@ $(STATEDIR)/openntpd.targetinstall: @$(call install_copy, openntpd, 0, 0, 0755, $(OPENNTPD_DIR)/ntpd, /usr/sbin/ntpd) -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 + # + # config + # + + @$(call install_alternative, openntpd, 0, 0, 0644, /etc/ntpd.conf, n) -ifdef PTXCONF_OPENNTPD_INITD_SCRIPT - @$(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) + # + # busybox init + # + +ifdef PTXCONF_INITMETHOD_BBINIT +ifdef PTXCONF_OPENNTPD_STARTSCRIPT + @$(call install_alternative, openntpd, 0, 0, 0644, /etc/init.d/ntp, n) +endif endif @$(call install_finish, openntpd) |