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/ntp.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/ntp.make')
-rw-r--r-- | rules/ntp.make | 55 |
1 files changed, 33 insertions, 22 deletions
diff --git a/rules/ntp.make b/rules/ntp.make index 684f788cc..2f0b9129f 100644 --- a/rules/ntp.make +++ b/rules/ntp.make @@ -340,44 +340,55 @@ $(STATEDIR)/ntp.targetinstall: @$(call install_fixup, ntp,DEPENDS,) @$(call install_fixup, ntp,DESCRIPTION,missing) + # + # ntpdate + # + ifdef PTXCONF_NTP_NTPDATE @$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpdate/ntpdate, /usr/sbin/ntpdate) endif + # + # ntp server + # + ifdef PTXCONF_NTP_NTPD @$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpd/ntpd, /usr/sbin/ntpd) - @$(call install_copy, ntp, 0, 0, 0755, $(PTXDIST_TOPDIR)/generic/etc/init.d/ntp, /etc/init.d/ntp-server, n) - ifdef PTXCONF_NTP_NTPD_RCD_LINK - @$(call install_copy, ntp, 0, 0, 0755, /etc/rc.d) - @$(call install_link, ntp, ../init.d/ntp-server, \ - /etc/rc.d/S19_ntp-server) - endif - ifdef PTXCONF_NTP_NTPD_USR_CONF - @$(call install_copy, ntp, 0, 0, 0644, \ - ${PTXDIST_WORKSPACE}/projectroot/etc/ntp-server.conf, \ - /etc/ntp-server.conf, n) - endif + @$(call install_alternative, ntp, 0, 0, 0644, /etc/ntp-server.conf, n) + +ifdef PTXCONF_INITMETHOD_BBINIT +ifdef PTXCONF_NTP_NTPD_STARTSCRIPT + @$(call install_alternative, ntp, 0, 0, 0755, /etc/init.d/ntp, n) +endif +endif endif + # + # ntpdc + # + ifdef PTXCONF_NTP_NTPDC @$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpdc/ntpdc, /usr/sbin/ntpdc) - @$(call install_link, ntp, /etc/init.d/ntp-server, /etc/init.d/ntp-client, n) - ifdef PTXCONF_NTP_NTPDC_RCD_LINK - @$(call install_copy, ntp, 0, 0, 0755, /etc/rc.d) - @$(call install_link, ntp, ../init.d/ntp-client, \ - /etc/rc.d/S19_ntp-client) - endif - ifdef PTXCONF_NTP_NTPDC_USR_CONF - @$(call install_copy, ntp, 0, 0, 0644, \ - ${PTXDIST_WORKSPACE}/projectroot/etc/ntp-client.conf, \ - /etc/ntp-client.conf, n) - endif + @$(call install_alternative, ntp, 0, 0, 0644, /etc/ntp-client.conf, n) +ifdef PTXCONF_INITMETHOD_BBINIT +ifdef PTXCONF_NTP_NTPC_STARTSCRIPT + @$(call install_alternative, ntp, 0, 0, 0755, /etc/init.d/ntp-client, n) +endif +endif endif + # + # ntpq + # + ifdef PTXCONF_NTP_NTPQ @$(call install_copy, ntp, 0, 0, 0755, $(NTP_DIR)/ntpq/ntpq, /usr/sbin/ntpq) endif + # + # other files + # + @$(call install_copy, ntp, 0, 0, 0755, /var/log/ntpstats/) @$(call install_copy, ntp, 0, 0, 0755, /var/lib/ntp) |