# -*-makefile-*- # $Id$ # # Copyright (C) 2003 by wschmitt@envicomp.de # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_RSYNC) += rsync # # Paths and names # RSYNC_VERSION = 2.6.6 RSYNC = rsync-$(RSYNC_VERSION) RSYNC_SUFFIX = tar.gz RSYNC_URL = http://samba.anu.edu.au/ftp/rsync/$(RSYNC).$(RSYNC_SUFFIX) RSYNC_SOURCE = $(SRCDIR)/$(RSYNC).$(RSYNC_SUFFIX) RSYNC_DIR = $(BUILDDIR)/$(RSYNC) -include $(call package_depfile) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- rsync_get: $(STATEDIR)/rsync.get rsync_get_deps = $(RSYNC_SOURCE) $(STATEDIR)/rsync.get: $(rsync_get_deps) @$(call targetinfo, $@) @$(call touch, $@) $(RSYNC_SOURCE): @$(call targetinfo, $@) @$(call get, $(RSYNC_URL)) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- rsync_extract: $(STATEDIR)/rsync.extract rsync_extract_deps = $(STATEDIR)/rsync.get $(STATEDIR)/rsync.extract: $(rsync_extract_deps) @$(call targetinfo, $@) @$(call clean, $(RSYNC_DIR)) @$(call extract, $(RSYNC_SOURCE)) @$(call patchin, $(RSYNC)) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- rsync_prepare: $(STATEDIR)/rsync.prepare # # dependencies # rsync_prepare_deps = \ $(STATEDIR)/rsync.extract \ $(STATEDIR)/virtual-xchain.install RSYNC_PATH = PATH=$(CROSS_PATH) RSYNC_ENV = rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes $(CROSS_ENV) # # autoconf # RSYNC_AUTOCONF = $(CROSS_AUTOCONF_USR) RSYNC_AUTOCONF += --target=$(PTXCONF_GNU_TARGET) RSYNC_AUTOCONF += --with-included-popt $(STATEDIR)/rsync.prepare: $(rsync_prepare_deps) @$(call targetinfo, $@) @$(call clean, $(RSYNC_BUILDDIR)) cd $(RSYNC_DIR) && \ $(RSYNC_PATH) $(RSYNC_ENV) \ ./configure $(RSYNC_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- rsync_compile: $(STATEDIR)/rsync.compile rsync_compile_deps = $(STATEDIR)/rsync.prepare $(STATEDIR)/rsync.compile: $(rsync_compile_deps) @$(call targetinfo, $@) $(RSYNC_PATH) make -C $(RSYNC_DIR) @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- rsync_install: $(STATEDIR)/rsync.install $(STATEDIR)/rsync.install: $(STATEDIR)/rsync.compile @$(call targetinfo, $@) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- rsync_targetinstall: $(STATEDIR)/rsync.targetinstall rsync_targetinstall_deps = $(STATEDIR)/rsync.compile $(STATEDIR)/rsync.targetinstall: $(rsync_targetinstall_deps) @$(call targetinfo, $@) @$(call install_init,default) @$(call install_fixup,PACKAGE,rsync) @$(call install_fixup,PRIORITY,optional) @$(call install_fixup,VERSION,$(RSYNC_VERSION)) @$(call install_fixup,SECTION,base) @$(call install_fixup,AUTHOR,"Robert Schwebel ") @$(call install_fixup,DEPENDS,) @$(call install_fixup,DESCRIPTION,missing) @$(call install_copy, 0, 0, 0755, $(RSYNC_DIR)/rsync, /usr/bin/rsync) @$(call install_finish) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- rsync_clean: rm -rf $(STATEDIR)/rsync.* rm -rf $(IMAGEDIR)/rsync_* rm -rf $(RSYNC_DIR) # vim: syntax=make