2004-10-09 22:07:08 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# rsync
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
RSYNC_VERSION:=2.6.9
|
|
|
|
RSYNC_SOURCE:=rsync-$(RSYNC_VERSION).tar.gz
|
2008-03-10 17:17:26 +01:00
|
|
|
RSYNC_SITE:=http://rsync.samba.org/ftp/rsync/src
|
2007-07-11 16:06:06 +02:00
|
|
|
RSYNC_DIR:=$(BUILD_DIR)/rsync-$(RSYNC_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
RSYNC_CAT:=$(ZCAT)
|
2004-10-09 22:07:08 +02:00
|
|
|
RSYNC_BINARY:=rsync
|
|
|
|
RSYNC_TARGET_BINARY:=usr/bin/rsync
|
|
|
|
|
|
|
|
$(DL_DIR)/$(RSYNC_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(RSYNC_SITE)/$(RSYNC_SOURCE)
|
|
|
|
|
2007-01-03 14:44:01 +01:00
|
|
|
rsync-source: $(DL_DIR)/$(RSYNC_SOURCE)
|
|
|
|
|
2004-10-09 22:07:08 +02:00
|
|
|
$(RSYNC_DIR)/.unpacked: $(DL_DIR)/$(RSYNC_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(RSYNC_CAT) $(DL_DIR)/$(RSYNC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(RSYNC_DIR) package/rsync/ rsync\*.patch
|
2008-02-12 01:35:03 +01:00
|
|
|
$(CONFIG_UPDATE) $(RSYNC_DIR)
|
2008-03-06 19:22:48 +01:00
|
|
|
touch $@
|
2004-10-09 22:07:08 +02:00
|
|
|
|
|
|
|
$(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked
|
|
|
|
(cd $(RSYNC_DIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2004-10-09 22:07:08 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-included-popt \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2008-03-06 19:22:48 +01:00
|
|
|
touch $@
|
2004-10-09 22:07:08 +02:00
|
|
|
|
|
|
|
$(RSYNC_DIR)/$(RSYNC_BINARY): $(RSYNC_DIR)/.configured
|
2007-07-09 10:30:38 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(RSYNC_DIR)
|
2004-10-09 22:07:08 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(RSYNC_TARGET_BINARY): $(RSYNC_DIR)/$(RSYNC_BINARY)
|
|
|
|
install -D $(RSYNC_DIR)/$(RSYNC_BINARY) $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
|
|
|
|
|
|
|
|
rsync: uclibc $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
|
|
|
|
|
|
|
|
rsync-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(RSYNC_DIR) clean
|
|
|
|
|
|
|
|
rsync-dirclean:
|
|
|
|
rm -rf $(RSYNC_DIR)
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_RSYNC)),y)
|
|
|
|
TARGETS+=rsync
|
|
|
|
endif
|