2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
16 PKG_MD5SUM
:=049d6e6fc703a7e0474bdd9c24e6de77
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/hd-idle
25 TITLE
:=Another idle-daemon for attached hard drives
27 URL
:=http
://hd-idle.sourceforge.net
/
31 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_BUILD_DIR
)/$(PKG_NAME
).c
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
)
43 $(eval
$(call BuildPackage
,hd-idle
))