Changeset 28326


Ignore:
Timestamp:
2011-09-30T14:49:03+02:00 (5 years ago)
Author:
florian
Message:

[package] smartmontools: split daemon into its own package

Based on a patch by Eugene San.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/utils/smartmontools/Makefile

    r23584 r28326  
    1 #  
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     1# 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1818include $(INCLUDE_DIR)/package.mk 
    1919 
    20 define Package/smartmontools 
     20define Package/smartmontools/Default 
    2121  SECTION:=utils 
    2222  CATEGORY:=Utilities 
    2323  DEPENDS:=+uclibcxx 
    24   TITLE:=S.M.A.R.T Monitoring Tool 
     24  TITLE:=S.M.A.R.T Monitoring 
    2525  URL:=http://smartmontools.sourceforge.net/ 
    2626endef 
    2727 
     28define Package/smartmontools 
     29  $(call Package/smartmontools/Default) 
     30  TITLE+= Tool 
     31endef 
     32 
    2833define Package/smartmontools/description 
    29         smartmontools contains utility programs (smartctl, smartd) to 
    30         control/monitor storage systems using the Self-Monitoring, Analysis 
    31         and Reporting Technology System (S.M.A.R.T.) built into most modern 
    32         ATA and SCSI disks. It is derived from smartsuite. 
     34  smartmontools contains utility programs (smartctl) to 
     35  control/monitor storage systems using the Self-Monitoring, Analysis 
     36  and Reporting Technology System (S.M.A.R.T.) built into most modern 
     37  ATA and SCSI disks. It is derived from smartsuite. 
     38endef 
     39 
     40define Package/smartd 
     41  $(call Package/smartmontools/Default) 
     42  DEPENDS+= +rsync 
     43  TITLE+= Daemon 
     44endef 
     45 
     46define Package/smartd/description 
     47  smartmontools contains utility programs (smartd) to 
     48  control/monitor storage systems using the Self-Monitoring, Analysis 
     49  and Reporting Technology System (S.M.A.R.T.) built into most modern 
     50  ATA and SCSI disks. It is derived from smartsuite. 
    3351endef 
    3452 
     
    5068define Build/Compile 
    5169        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    52                 LD="$(TARGET_CXX)"  
     70                LD="$(TARGET_CXX)" 
    5371endef 
    5472 
     
    5674        $(INSTALL_DIR) $(1)/usr/sbin 
    5775        $(INSTALL_BIN) $(PKG_BUILD_DIR)/smartctl $(1)/usr/sbin/ 
     76endef 
     77 
     78define Package/smartd/install 
     79        $(INSTALL_DIR) $(1)/usr/sbin 
    5880        $(INSTALL_BIN) $(PKG_BUILD_DIR)/smartd $(1)/usr/sbin/ 
    5981        $(INSTALL_DIR) $(1)/etc 
    60         $(INSTALL_DATA) ./files/smartd.conf $(1)/etc 
     82        $(INSTALL_DATA) ./files/smartd.conf $(1)/etc/ 
    6183        $(INSTALL_DIR) $(1)/etc/init.d 
    6284        $(INSTALL_BIN) ./files/smartd.init $(1)/etc/init.d/smartd 
     
    6486 
    6587$(eval $(call BuildPackage,smartmontools)) 
     88$(eval $(call BuildPackage,smartd)) 
Note: See TracChangeset for help on using the changeset viewer.