2 # Copyright (C) 2014 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_MAINTAINER
:=Lim Guo Wei
<limguowei@gmail.com
>
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
19 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
20 PKG_MD5SUM
:=41e52e669fc59fa82ee0c2bcce1336d3
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/hd-idle
29 TITLE
:=Another idle-daemon for attached hard drives
31 URL
:=http
://hd-idle.sourceforge.net
/
34 define Package
/hd-idle
/description
35 hd-idle is a utility program for spinning-down external disks after a period of idle time.
39 $(TARGET_CC
) $(TARGET_CFLAGS
) -o
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_BUILD_DIR
)/$(PKG_NAME
).c
42 define Package
/hd-idle
/conffiles
46 define Package
/hd-idle
/install
47 $(INSTALL_DIR
) $(1)/usr
/bin
48 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(1)/usr
/bin
/
49 $(INSTALL_DIR
) $(1)/etc
/config
50 $(INSTALL_DATA
) .
/files
/$(PKG_NAME
).config
$(1)/etc
/config
/$(PKG_NAME
)
51 $(INSTALL_DIR
) $(1)/etc
/init.d
52 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/$(PKG_NAME
)
55 $(eval
$(call BuildPackage
,hd-idle
))