packages must not be moving targets that reference HEAD of a foreign svn. move hd...
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=hd-idle
12 PKG_REV:=20081006
13 PKG_VERSION:=$(PKG_REV)
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
18 PKG_MD5SUM:=4902893f901cc0bfcccef3d30d2e5d5b
19
20 # CVS disabled. The package must not be a moving target by itself
21 #PKG_SOURCE_URL:=:pserver:anonymous@hd-idle.cvs.sourceforge.net:/cvsroot/hd-idle
22 #PKG_SOURCE_PROTO:=cvs
23 #PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(REV)
24 #PKG_SOURCE_VERSION:=$(PKG_REV)
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/hd-idle
29 SECTION:=utils
30 CATEGORY:=Utilities
31 TITLE:=Another idle-daemon for attached hard drives
32 SUBMENU:=disc
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))