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