summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-24 09:00:39 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-24 09:00:39 +0000
commit6bdc45b455f944420c2a7f8ed8d403f921d7cf3f (patch)
tree938efc271065f7a14198a28da8acc3bbe225c72e
parentf1f4918f09e78388e997de1d164402441c340c25 (diff)
- bump version. Cleanup while at it
-rw-r--r--package/hdparm/hdparm.mk26
1 files changed, 14 insertions, 12 deletions
diff --git a/package/hdparm/hdparm.mk b/package/hdparm/hdparm.mk
index 91d2ee5cb..343ae1dc3 100644
--- a/package/hdparm/hdparm.mk
+++ b/package/hdparm/hdparm.mk
@@ -3,9 +3,9 @@
# hdparm
#
#############################################################
-HDPARM_VERSION:=7.6
+HDPARM_VERSION:=7.7
HDPARM_SOURCE:=hdparm-$(HDPARM_VERSION).tar.gz
-HDPARM_SITE:=http://www.ibiblio.org/pub/Linux/system/hardware/
+HDPARM_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/hdparm
HDPARM_CAT:=$(ZCAT)
HDPARM_DIR:=$(BUILD_DIR)/hdparm-$(HDPARM_VERSION)
HDPARM_BINARY:=hdparm
@@ -16,27 +16,29 @@ $(DL_DIR)/$(HDPARM_SOURCE):
hdparm-source: $(DL_DIR)/$(HDPARM_SOURCE)
-hdparm-unpacked: $(HDPARM_DIR)/.unpacked
$(HDPARM_DIR)/.unpacked: $(DL_DIR)/$(HDPARM_SOURCE)
$(HDPARM_CAT) $(DL_DIR)/$(HDPARM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(HDPARM_DIR) package/hdparm hdparm.patch
- touch $(HDPARM_DIR)/.unpacked
+ toolchain/patch-kernel.sh $(HDPARM_DIR) package/hdparm \*.patch
+ touch $@
-$(HDPARM_DIR)/.configured: $(HDPARM_DIR)/.unpacked
- touch $(HDPARM_DIR)/.configured
-
-$(HDPARM_DIR)/$(HDPARM_BINARY): $(HDPARM_DIR)/.configured
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(HDPARM_DIR)
+$(HDPARM_DIR)/$(HDPARM_BINARY): $(HDPARM_DIR)/.unpacked
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(HDPARM_DIR) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)"
$(TARGET_DIR)/$(HDPARM_TARGET_BINARY): $(HDPARM_DIR)/$(HDPARM_BINARY)
rm -f $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
- cp -a $(HDPARM_DIR)/$(HDPARM_BINARY) $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
+ $(INSTALL) -D -m 0755 $(HDPARM_DIR)/$(HDPARM_BINARY) $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
+ifeq ($(BR2_HAVE_MANPAGES),y)
+ $(INSTALL) -D $(HDPARM_DIR)/hdparm.8 $(TARGET_DIR)/usr/share/man/man8/hdparm.8
+endif
+ $(STRIP) $(STRIP_STRIP_ALL) $@
hdparm: uclibc $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
hdparm-clean:
- rm -f $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
-$(MAKE) -C $(HDPARM_DIR) clean
+ rm -f $(TARGET_DIR)/$(HDPARM_TARGET_BINARY)
hdparm-dirclean:
rm -rf $(HDPARM_DIR)