From 8233cf0683bb3b224aafe9ae69513aa28ae2d12a Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 24 Jul 2006 15:27:30 +0000 Subject: [PATCH] port hdparm to buildroot-ng git-svn-id: svn://svn.openwrt.org/openwrt/packages@4260 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/hdparm/Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 utils/hdparm/Makefile diff --git a/utils/hdparm/Makefile b/utils/hdparm/Makefile new file mode 100644 index 000000000..34e0f03ac --- /dev/null +++ b/utils/hdparm/Makefile @@ -0,0 +1,49 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=hdparm +PKG_VERSION:=6.6 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/hdparm +PKG_MD5SUM:=ecea69f775396e4ab6112dcf9066239f +PKG_CAT:=zcat + +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/hdparm + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Hard disk drive configuration utilitity + DESCRIPTION:=Hard disk drive configuration utilitity.\\\ + Tune hard disk parameters for high performance.\\\ + Get/set hard disk parameters for Linux IDE drives.\\\ + Primary use is for enabling irq-unmasking and IDE multiplemode. + URL:=http://sourceforge.net/projects/hdparm/ +endef + +define Build/Configure +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC=$(TARGET_CC) +endef + +define Package/hdparm/install + install -d -m0755 $(1)/usr/sbin + install -m0755 $(PKG_BUILD_DIR)/hdparm $(1)/usr/sbin +endef + +$(eval $(call BuildPackage,hdparm))