From 2e878658a02ca4651673cad2f41a57f27557d6dc Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Fri, 20 Feb 2009 23:13:39 +0000 Subject: * 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 --- rules/openntpd.make | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'rules/openntpd.make') 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) -- cgit v1.2.3