Use urandom for dropbear keying
[gumsense-br.git] / package / rsync / rsync.mk
blob69d777017e5518efda979ce77db7dae918140a33
1 #############################################################
3 # rsync
5 #############################################################
6 RSYNC_VER:=2.6.6
7 RSYNC_SOURCE:=rsync-$(RSYNC_VER).tar.gz
8 RSYNC_SITE:=http://rsync.samba.org/ftp/rsync/
9 RSYNC_DIR:=$(BUILD_DIR)/rsync-$(RSYNC_VER)
10 RSYNC_CAT:=zcat
11 RSYNC_BINARY:=rsync
12 RSYNC_TARGET_BINARY:=usr/bin/rsync
14 $(DL_DIR)/$(RSYNC_SOURCE):
15 $(WGET) -P $(DL_DIR) $(RSYNC_SITE)/$(RSYNC_SOURCE)
17 $(RSYNC_DIR)/.unpacked: $(DL_DIR)/$(RSYNC_SOURCE)
18 $(RSYNC_CAT) $(DL_DIR)/$(RSYNC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
19 toolchain/patch-kernel.sh $(RSYNC_DIR) package/rsync/ rsync\*.patch
20 touch $(RSYNC_DIR)/.unpacked
22 $(RSYNC_DIR)/.configured: $(RSYNC_DIR)/.unpacked
23 (cd $(RSYNC_DIR); rm -rf config.cache; \
24 $(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD=$(HOSTCC) \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 ./configure \
27 --target=$(GNU_TARGET_NAME) \
28 --host=$(GNU_TARGET_NAME) \
29 --build=$(GNU_HOST_NAME) \
30 --prefix=/usr \
31 --with-included-popt \
33 touch $(RSYNC_DIR)/.configured
35 $(RSYNC_DIR)/$(RSYNC_BINARY): $(RSYNC_DIR)/.configured
36 $(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(RSYNC_DIR)
38 $(TARGET_DIR)/$(RSYNC_TARGET_BINARY): $(RSYNC_DIR)/$(RSYNC_BINARY)
39 install -D $(RSYNC_DIR)/$(RSYNC_BINARY) $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
41 rsync: uclibc $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
43 rsync-clean:
44 rm -f $(TARGET_DIR)/$(RSYNC_TARGET_BINARY)
45 -$(MAKE) -C $(RSYNC_DIR) clean
47 rsync-dirclean:
48 rm -rf $(RSYNC_DIR)
49 #############################################################
51 # Toplevel Makefile options
53 #############################################################
54 ifeq ($(strip $(BR2_PACKAGE_RSYNC)),y)
55 TARGETS+=rsync
56 endif