summaryrefslogtreecommitdiffstats
path: root/rules/rsync.make
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2006-10-22 20:23:38 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2006-10-22 20:23:38 +0000
commit59d1a4c62c48491bf238b01bf3a847e1db14797d (patch)
treef6401a58b6bb1fcbaea33508f2c30e0d7a151954 /rules/rsync.make
parent73cfd207cb2ae63ebfe155bf6ff62c3600789aa5 (diff)
downloadptxdist-59d1a4c62c48491bf238b01bf3a847e1db14797d.tar.gz
ptxdist-59d1a4c62c48491bf238b01bf3a847e1db14797d.tar.xz
extending to make it more usefull
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6210 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/rsync.make')
-rw-r--r--rules/rsync.make75
1 files changed, 70 insertions, 5 deletions
diff --git a/rules/rsync.make b/rules/rsync.make
index 0d93fe3f5..2e2b9dbb3 100644
--- a/rules/rsync.make
+++ b/rules/rsync.make
@@ -64,10 +64,27 @@ RSYNC_ENV = rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes $(CROSS_ENV)
#
# autoconf
#
-RSYNC_AUTOCONF := $(CROSS_AUTOCONF_USR) \
+RSYNC_AUTOCONF = $(CROSS_AUTOCONF_USR) \
--target=$(PTXCONF_GNU_TARGET) \
- --with-included-popt
-
+ --with-included-popt \
+ --disable-debug \
+ --disable-locale
+
+ifdef PTXCONF_RSYNC_LARGE_FILE
+RSYNC_AUTOCONF += --enable-largefile
+else
+RSYNC_AUTOCONF += --disable-largefile
+endif
+
+ifdef PTXCONF_RSYNC_IPV6
+RSYNC_AUTOCONF += --enable-ipv6
+else
+RSYNC_AUTOCONF += --disable-ipv6
+endif
+
+ifneq ($(call remove_quotes,$(PTXCONF_RSYNC_CONFIG_FILE)),)
+RSYNC_AUTOCONF += --with-rsyncd-conf=$(PTXCONF_RSYNC_CONFIG_FILE)
+endif
$(STATEDIR)/rsync.prepare: $(rsync_prepare_deps_default)
@$(call targetinfo, $@)
@@ -115,9 +132,57 @@ $(STATEDIR)/rsync.targetinstall: $(rsync_targetinstall_deps_default)
@$(call install_fixup, rsync,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup, rsync,DEPENDS,)
@$(call install_fixup, rsync,DESCRIPTION,missing)
-
+
@$(call install_copy, rsync, 0, 0, 0755, $(RSYNC_DIR)/rsync, /usr/bin/rsync)
-
+
+ifdef PTXCONF_RSYNC_CONFIG_FILE_DEFAULT
+ifneq ($(call remove_quotes,$(PTXCONF_RSYNC_CONFIG_FILE)),)
+ @$(call install_copy, rsync, 0, 0, 0644, \
+ $(PTXDIST_TOPDIR)/projects-example/generic/etc/rsyncd.conf, \
+ $(PTXCONF_RSYNC_CONFIG_FILE) )
+else
+# use default
+ @$(call install_copy, rsync, 0, 0, 0644, \
+ $(PTXDIST_TOPDIR)/projects-example/generic/etc/rsyncd.conf, \
+ /etc/rsyncd.conf)
+endif
+endif
+
+ifdef PTXCONF_RSYNC_CONFIG_FILE_USER
+ifneq ($(call remove_quotes,$(PTXCONF_RSYNC_CONFIG_FILE_PATH)),)
+ifneq ($(call remove_quotes,$(PTXCONF_RSYNC_CONFIG_FILE)),)
+ @$(call install_copy, rsync, 0, 0, 0644, \
+ $(PTXCONF_RSYNC_CONFIG_FILE_PATH), \
+ $(PTXCONF_RSYNC_CONFIG_FILE) )
+else
+# use as default
+ @$(call install_copy, rsync, 0, 0, 0644, \
+ $(PTXCONF_RSYNC_CONFIG_FILE_PATH), \
+ /etc/rsyncd.conf)
+endif
+else
+# error when user file is selected but no path given!
+ERROR-MISSING PATH!
+endif
+
+ifneq ($(call remove_quotes,$(PTXCONF_RSYNC_AUTH_FILE_PATH)),)
+ifneq ($(call remove_quotes,$(PTXCONF_RSYNC_AUTH_FILE)),)
+ @$(call install_copy, rsync, 0, 0, 0600, \
+ $(PTXCONF_RSYNC_AUTH_FILE_PATH), \
+ $(PTXCONF_RSYNC_AUTH_FILE) )
+else
+# use as default
+ @$(call install_copy, rsync, 0, 0, 0600, \
+ $(PTXCONF_RSYNC_AUTH_FILE_PATH), \
+ /etc/rsyncd.secrets)
+endif
+else
+# error when user file is selected but no path given!
+ERROR-MISSING PATH!
+endif
+
+endif
+
@$(call install_finish, rsync)
@$(call touch, $@)