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