2008-10-02 16:58:26 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=hd-idle
|
2008-10-06 17:04:38 +00:00
|
|
|
PKG_REV:=20081006
|
2008-10-02 16:58:26 +00:00
|
|
|
PKG_VERSION:=$(PKG_REV)
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2008-10-06 17:04:38 +00:00
|
|
|
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
|
|
|
|
PKG_MD5SUM:=4902893f901cc0bfcccef3d30d2e5d5b
|
2008-10-02 16:58:26 +00:00
|
|
|
|
2008-10-06 17:04:38 +00:00
|
|
|
# CVS disabled. The package must not be a moving target by itself
|
|
|
|
#PKG_SOURCE_URL:=:pserver:anonymous@hd-idle.cvs.sourceforge.net:/cvsroot/hd-idle
|
|
|
|
#PKG_SOURCE_PROTO:=cvs
|
|
|
|
#PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(REV)
|
|
|
|
#PKG_SOURCE_VERSION:=$(PKG_REV)
|
2008-10-02 16:58:26 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/hd-idle
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Another idle-daemon for attached hard drives
|
|
|
|
SUBMENU:=disc
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://hd-idle.sourceforge.net/
|
2008-10-02 16:58:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2008-10-06 17:04:38 +00:00
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
|
2008-10-02 16:58:26 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/hd-idle/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,hd-idle))
|