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/rsync3.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/rsync3.make')
-rw-r--r-- | rules/rsync3.make | 68 |
1 files changed, 9 insertions, 59 deletions
diff --git a/rules/rsync3.make b/rules/rsync3.make index 4d122ad73..9ff821f0d 100644 --- a/rules/rsync3.make +++ b/rules/rsync3.make @@ -72,7 +72,7 @@ endif $(STATEDIR)/rsync3.targetinstall: @$(call targetinfo) - @$(call install_init, rsync3) + @$(call install_init, rsync3) @$(call install_fixup, rsync3,PACKAGE,rsync3) @$(call install_fixup, rsync3,PRIORITY,optional) @$(call install_fixup, rsync3,VERSION,$(RSYNC3_VERSION)) @@ -85,68 +85,18 @@ $(STATEDIR)/rsync3.targetinstall: $(RSYNC3_DIR)/rsync, \ /usr/bin/rsync) -ifdef PTXCONF_RSYNC3_CONFIG_FILE_DEFAULT -ifneq ($(call remove_quotes,$(PTXCONF_RSYNC3_CONFIG_FILE)),) - @$(call install_copy, rsync3, 0, 0, 0644, \ - $(PTXDIST_TOPDIR)/generic/etc/rsyncd.conf, \ - $(PTXCONF_RSYNC3_CONFIG_FILE), n) -else -# use default - @$(call install_copy, rsync3, 0, 0, 0644, \ - $(PTXDIST_TOPDIR)/generic/etc/rsyncd.conf, \ - /etc/rsyncd.conf, n) -endif - @$(call install_copy, rsync3, 0, 0, 0644, \ - $(PTXDIST_TOPDIR)/generic/etc/rsyncd.secrets, \ - /etc/rsyncd.secrets, n) -endif + @$(call install_alternative, rsync3, 0, 0, 0644, /etc/rsyncd.conf, n) + @$(call install_alternative, rsync3, 0, 0, 0644, /etc/rsyncd.secrets, n) -ifdef PTXCONF_RSYNC3_CONFIG_FILE_USER -ifneq ($(call remove_quotes,$(PTXCONF_RSYNC3_CONFIG_FILE)),) - @$(call install_copy, rsync3, 0, 0, 0644, \ - $(PTXDIST_WORKSPACE)/projectroot/etc/rsyncd.conf, \ - $(PTXCONF_RSYNC3_CONFIG_FILE), n) -else -# use as default - @$(call install_copy, rsync3, 0, 0, 0644, \ - $(PTXDIST_WORKSPACE)/projectroot/etc/rsyncd.conf, \ - /etc/rsyncd.conf, n) -endif - @$(call install_copy, rsync3, 0, 0, 0644, \ - $(PTXDIST_WORKSPACE)/projectroot/etc/rsyncd.secrets, \ - /etc/rsyncd.secrets, n) -endif + # + # busybox init + # -ifdef PTXCONF_RSYNC3_STARTUP_TYPE_STANDALONE -# provide everything for standalone mode -ifdef PTXCONF_ROOTFS_ETC_INITD_RSYNC3_DEFAULT -# install generic one - @$(call install_copy, rsync3, 0, 0, 0755, \ - $(PTXDIST_TOPDIR)/generic/etc/init.d/rsyncd, \ - /etc/init.d/rsyncd, n) -endif -ifdef PTXCONF_ROOTFS_ETC_INITD_RSYNC3_USER -# install users one - @$(call install_copy, rsync3, 0, 0, 0755, \ - ${PTXDIST_WORKSPACE}/projectroot/etc/init.d/rsyncd, \ - /etc/init.d/rsyncd, n) -endif -# replace the @CONFIG@ with path and name of the configfile -ifneq ($(PTXCONF_RSYNC3_CONFIG_FILE),"") - @$(call install_replace, rsync3, /etc/init.d/rsyncd, \ - @CONFIG@, \ - "--config=$(PTXCONF_RSYNC3_CONFIG_FILE)" ) +ifdef PTXCONF_INITMETHOD_BBINIT +ifdef PTXCONF_RSYNC3_STARTSCRIPT + @$(call install_alternative, rsync3, 0, 0, 0755, /etc/init.d/rsyncd, n) endif -# -# FIXME: Is this packet the right location for the link? -# -ifneq ($(PTXCONF_ROOTFS_ETC_INITD_RSYNC3_LINK),) - @$(call install_copy, rsync3, 0, 0, 0755, /etc/rc.d) - @$(call install_link, rsync3, ../init.d/rsyncd, \ - /etc/rc.d/$(PTXCONF_ROOTFS_ETC_INITD_RSYNC3_LINK), n) endif -endif - @$(call install_finish, rsync3) @$(call touch) |