diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-10-09 20:07:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-10-09 20:07:08 +0000 |
commit | fd913d55b99aafbe6c3e792cfa01ffcbf4b78f9a (patch) | |
tree | f706aa56ae853af742ded3d9e06ce89a2c084bcc /package/rsync/rsync.mk | |
parent | 8458eb944119973ede678fcc443981c2b7f62b49 (diff) | |
download | buildroot-novena-fd913d55b99aafbe6c3e792cfa01ffcbf4b78f9a.tar.gz buildroot-novena-fd913d55b99aafbe6c3e792cfa01ffcbf4b78f9a.zip |
rsync package
Diffstat (limited to 'package/rsync/rsync.mk')
-rw-r--r-- | package/rsync/rsync.mk | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/package/rsync/rsync.mk b/package/rsync/rsync.mk new file mode 100644 index 000000000..7befe4e9c --- /dev/null +++ b/package/rsync/rsync.mk @@ -0,0 +1,47 @@ +############################################################# +# +# rsync +# +############################################################# +RSYNC_VER:=2.6.3 +RSYNC_SOURCE:=rsync-$(RSYNC_VER).tar.gz +RSYNC_SITE:=http://rsync.samba.org/ftp/rsync/$(RSYNC_SOURCE) +RSYNC_DIR:=$(BUILD_DIR)/rsync-$(RSYNC_VER) +RSYNC_CAT:=zcat +RSYNC_BINARY:=rsync +RSYNC_TARGET_BINARY:=usr/bin/rsync + +$(DL_DIR)/$(RSYNC_SOURCE): + $(WGET) -P $(DL_DIR) $(RSYNC_SITE)/$(RSYNC_SOURCE) + +$(RSYNC_DIR)/.unpacked: $(DL_DIR)/$(RSYNC_SOURCE) + $(RSYNC_CAT) $(DL_DIR)/$(RSYNC_SOURCE) | tar -C $(BUILD_DIR) -x$(TAR_VERBOSITY)f - + touch $(RSYNC_DIR)/.unpacked + +$(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked + (cd $(RSYNC_DIR); rm -rf config.cache; \ + $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --with-included-popt \ + ); + touch $(RSYNC_DIR)/.configured + +$(RSYNC_DIR)/$(RSYNC_BINARY): $(RSYNC_DIR)/.configured + $(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(RSYNC_DIR) + +$(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) |