You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=hd-idle
  9. PKG_VERSION:=1.04
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Lim Guo Wei <limguowei@gmail.com>
  12. PKG_LICENSE:=GPL-2.0
  13. PKG_LICENSE_FILES:=
  14. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
  15. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  16. PKG_MD5SUM:=41e52e669fc59fa82ee0c2bcce1336d3
  17. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/hd-idle
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=Another idle-daemon for attached hard drives
  23. SUBMENU:=disc
  24. URL:=http://hd-idle.sourceforge.net/
  25. endef
  26. define Package/hd-idle/description
  27. hd-idle is a utility program for spinning-down external disks after a period of idle time.
  28. endef
  29. define Build/Compile
  30. $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
  31. endef
  32. define Package/hd-idle/conffiles
  33. /etc/config/hd-idle
  34. endef
  35. define Package/hd-idle/install
  36. $(INSTALL_DIR) $(1)/usr/bin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  40. $(INSTALL_DIR) $(1)/etc/init.d
  41. $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  42. endef
  43. $(eval $(call BuildPackage,hd-idle))