lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1389B)


      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 
      8 include $(TOPDIR)/rules.mk
      9 
     10 PKG_NAME:=hd-idle
     11 PKG_VERSION:=1.04
     12 PKG_RELEASE:=2
     13 
     14 PKG_MAINTAINER:=Lim Guo Wei <limguowei@gmail.com>
     15 PKG_LICENSE:=GPL-2.0
     16 PKG_LICENSE_FILES:=
     17 
     18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
     19 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
     20 PKG_MD5SUM:=41e52e669fc59fa82ee0c2bcce1336d3
     21 
     22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
     23 
     24 include $(INCLUDE_DIR)/package.mk
     25 
     26 define Package/hd-idle
     27   SECTION:=utils
     28   CATEGORY:=Utilities
     29   TITLE:=Another idle-daemon for attached hard drives
     30   SUBMENU:=Disc
     31   URL:=http://hd-idle.sourceforge.net/
     32 endef
     33 
     34 define Package/hd-idle/description
     35        hd-idle is a utility program for spinning-down external disks after a period of idle time.
     36 endef
     37 
     38 define Build/Compile
     39 	$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_BUILD_DIR)/$(PKG_NAME).c
     40 endef
     41 
     42 define Package/hd-idle/conffiles
     43 /etc/config/hd-idle
     44 endef
     45 
     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)
     53 endef
     54 
     55 $(eval $(call BuildPackage,hd-idle))