922a7d1af5e9f7e7c2d702f267734b414fb93807
[openwrt/svn-archive/archive.git] / utils / hd-idle / Makefile
1 #
2 # Copyright (C) 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:=hd-idle
11 PKG_REV:=20081006
12 PKG_VERSION:=$(PKG_REV)
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
17 PKG_MD5SUM:=4902893f901cc0bfcccef3d30d2e5d5b
18
19 # CVS disabled. The package must not be a moving target by itself
20 #PKG_SOURCE_URL:=:pserver:anonymous@hd-idle.cvs.sourceforge.net:/cvsroot/hd-idle
21 #PKG_SOURCE_PROTO:=cvs
22 #PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(REV)
23 #PKG_SOURCE_VERSION:=$(PKG_REV)
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/hd-idle
28 SECTION:=utils
29 CATEGORY:=Utilities
30 TITLE:=Another idle-daemon for attached hard drives
31 SUBMENU:=disc
32 URL:=http://hd-idle.sourceforge.net/
33 endef
34
35 define Build/Compile
36 $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
37 endef
38
39 define Package/hd-idle/install
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
42 $(INSTALL_DIR) $(1)/etc/config
43 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
46 endef
47
48 $(eval $(call BuildPackage,hd-idle))