e14a6af15c
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23753 3c298f89-4303-0410-b956-a3cf2f4a3e73
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2008-2010 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
|
|
PKG_REV:=1.01
|
|
PKG_VERSION:=$(PKG_REV)
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
|
|
PKG_MD5SUM:=bfb7db4d4372d3954b7cd96a11956741
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/hd-idle
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Another idle-daemon for attached hard drives
|
|
SUBMENU:=disc
|
|
URL:=http://hd-idle.sourceforge.net/
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
|
|
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))
|