From 30d713a81b6847b0d3f120dbbd08ad291d723e67 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 15 May 2007 11:25:41 +0000 Subject: [PATCH] - bump version --- package/mdadm/mdadm.mk | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/package/mdadm/mdadm.mk b/package/mdadm/mdadm.mk index da883358a2..b081b7a4ab 100644 --- a/package/mdadm/mdadm.mk +++ b/package/mdadm/mdadm.mk @@ -4,18 +4,32 @@ # ############################################################# MDADM_VERSION:=2.6.1 -MDADM_SOURCE:=mdadm-$(MDADM_VERSION).tar.bz2 -MDADM_CAT:=$(BZCAT) -MDADM_SITE:=http://www.kernel.org/pub/linux/utils/raid/mdadm +MDADM_SOURCE:=mdadm_$(MDADM_VERSION).orig.tar.gz +MDADM_PATCH:=mdadm_$(MDADM_VERSION)-1~exp.5.diff.gz +MDADM_CAT:=$(ZCAT) +MDADM_SITE:=http://ftp.debian.org/debian/pool/main/m/mdadm MDADM_DIR:=$(BUILD_DIR)/mdadm-$(MDADM_VERSION) MDADM_BINARY:=mdadm MDADM_TARGET_BINARY:=sbin/mdadm -$(DL_DIR)/$(MDADM_SOURCE): +ifneq ($(MDADM_PATCH),) +MDADM_PATCH_FILE:=$(DL_DIR)/$(MDADM_PATCH) +$(MDADM_PATCH_FILE): + $(WGET) -P $(DL_DIR) $(MDADM_SITE)/$(MDADM_PATCH) +endif + +$(DL_DIR)/$(MDADM_SOURCE): $(MDADM_PATCH_FILE) $(WGET) -P $(DL_DIR) $(MDADM_SITE)/$(MDADM_SOURCE) + touch -c $@ $(MDADM_DIR)/.unpacked: $(DL_DIR)/$(MDADM_SOURCE) $(MDADM_CAT) $(DL_DIR)/$(MDADM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - +ifneq ($(MDADM_PATCH),) + (cd $(MDADM_DIR) && $(MDADM_CAT) $(MDADM_PATCH_FILE) | patch -p1) + if [ -d $(MDADM_DIR)/debian/patches ]; then \ + toolchain/patch-kernel.sh $(MDADM_DIR) $(MDADM_DIR)/debian/patches \*patch ; \ + fi +endif toolchain/patch-kernel.sh $(MDADM_DIR) package/mdadm mdadm-$(MDADM_VERSION)\*.patch touch $@ -- 2.30.2