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
12 PKG_VERSION
:=$(PKG_REV
)
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=049d6e6fc703a7e0474bdd9c24e6de77
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/hd-idle
24 TITLE
:=Another idle-daemon for attached hard drives
26 URL
:=http
://hd-idle.sourceforge.net
/
30 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_BUILD_DIR
)/$(PKG_NAME
).c
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
)
42 $(eval
$(call BuildPackage
,hd-idle
))