d8f9df422ca59a5f59a3d16e2ae9b559c06a5562
[packages.git] / utils / hdparm / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=hdparm
12 PKG_VERSION:=6.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/hdparm
17 PKG_MD5SUM:=ecea69f775396e4ab6112dcf9066239f
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/hdparm
25   SECTION:=utils
26   CATEGORY:=Utilities
27   TITLE:=Hard disk drive configuration utilitity
28   URL:=http://sourceforge.net/projects/hdparm/
29 endef
30
31 define Package/hdparm/description
32         Tune hard disk parameters for high performance.
33         Get/set hard disk parameters for Linux IDE drives.
34         Primary use is for enabling irq-unmasking and IDE multiplemode.
35 endef
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
41         $(call Build/Compile/Default, \
42                 CFLAGS="$(EXTRA_CFLAGS)" \
43                 LDFLAGS="$(EXTRA_LDFLAGS)" \
44         )
45 endef
46
47 define Package/hdparm/install
48         $(INSTALL_DIR) $(1)/usr/sbin
49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/hdparm $(1)/usr/sbin
50 endef
51
52 $(eval $(call BuildPackage,hdparm))