summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-05-15 11:25:41 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-05-15 11:25:41 +0000
commit30d713a81b6847b0d3f120dbbd08ad291d723e67 (patch)
tree3507c063f4bb84599e4ecbc289d6c5251c467229
parent014ad48f5f026e0b6cf60d54a6db1f35382693ac (diff)
- bump version
-rw-r--r--package/mdadm/mdadm.mk22
1 files changed, 18 insertions, 4 deletions
diff --git a/package/mdadm/mdadm.mk b/package/mdadm/mdadm.mk
index da883358a..b081b7a4a 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 $@