summaryrefslogtreecommitdiffstats
path: root/rules/dnsmasq.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2009-02-20 23:13:39 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2009-02-20 23:13:39 +0000
commit2e878658a02ca4651673cad2f41a57f27557d6dc (patch)
treefd1c10f972e4e7f79775a2b3c52fe907869e6032 /rules/dnsmasq.make
parentbe1d99320d214120a306d659e3eacac4411b5ad3 (diff)
downloadptxdist-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/dnsmasq.make')
-rw-r--r--rules/dnsmasq.make37
1 files changed, 5 insertions, 32 deletions
diff --git a/rules/dnsmasq.make b/rules/dnsmasq.make
index 9da723ab8..82db2afb9 100644
--- a/rules/dnsmasq.make
+++ b/rules/dnsmasq.make
@@ -123,41 +123,14 @@ $(STATEDIR)/dnsmasq.targetinstall: $(dnsmasq_targetinstall_deps_default)
$(DNSMASQ_DIR)/src/dnsmasq, \
/sbin/dnsmasq)
-ifdef PTXCONF_DNSMASQ_STARTUP_TYPE_STANDALONE
-# provide everything for standalone mode
-ifdef PTXCONF_ROOTFS_ETC_INITD_DNSMASQ_DEFAULT
-# install the generic one
- @$(call install_copy, dnsmasq, 0, 0, 0755, \
- $(PTXDIST_TOPDIR)/generic/etc/init.d/dnsmasq, \
- /etc/init.d/dnsmasq, n)
-endif
-
-ifdef PTXCONF_ROOTFS_ETC_INITD_DNSMASQ_USER
-# install users one
- @$(call install_copy, dnsmasq, 0, 0, 0755, \
- ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/dnsmasq, \
- /etc/init.d/dnsmasq, n)
-endif
-#
-# FIXME: Is this packet the right location for the link?
-#
-ifneq ($(PTXCONF_ROOTFS_ETC_INITD_DNSMASQ_LINK),"")
- @$(call install_copy, dnsmasq, 0, 0, 0755, /etc/rc.d)
- @$(call install_link, dnsmasq, ../init.d/dnsmasq, \
- /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_DNSMASQ_LINK))
+ifdef PTXCONF_INITMETHOD_BBINIT
+ifdef PTXCONF_DNSMASQ_STARTSCRIPT
+ @$(call install_alternative, dnsmasq, 0, 0, 0755, /etc/init.d/dnsmasq, n)
endif
endif
-ifdef PTXCONF_DNSMASQ_ETC_DEFAULT
- @$(call install_copy, dnsmasq, 0, 0, 0644, \
- $(DNSMASQ_DIR)/dnsmasq.conf.example, \
- /etc/dnsmasq.conf,n)
-endif
-ifdef PTXCONF_DNSMASQ_ETC_USER
- @$(call install_copy, dnsmasq, 0, 0, 0644, \
- ${PTXDIST_WORKSPACE}/projectroot/etc/dnsmasq.conf, \
- /etc/dnsmasq.conf,n)
-endif
+ # FIXME: take from $(DNSMASQ_DIR)/dnsmasq.conf.example
+ @$(call install_alternative, dnsmasq, 0, 0, 0644, /etc/dnsmasq.conf, n)
@$(call install_finish, dnsmasq)