[package] update hd-idle to 1.01 (#8152)
[openwrt/svn-archive/archive.git] / utils / hd-idle / Makefile
1 #
2 # Copyright (C) 2008-2010 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:=hd-idle
11 PKG_REV:=1.01
12 PKG_VERSION:=$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=bfb7db4d4372d3954b7cd96a11956741
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/hd-idle
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Another idle-daemon for attached hard drives
25 SUBMENU:=disc
26 URL:=http://hd-idle.sourceforge.net/
27 endef
28
29 define Build/Compile
30 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
31 endef
32
33 define Package/hd-idle/install
34 $(INSTALL_DIR) $(1)/usr/bin
35 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
36 $(INSTALL_DIR) $(1)/etc/config
37 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
38 $(INSTALL_DIR) $(1)/etc/init.d
39 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
40 endef
41
42 $(eval $(call BuildPackage,hd-idle))