[package] smartmontools: split daemon into its own package
Based on a patch by Eugene San. git-svn-id: svn://svn.openwrt.org/openwrt/packages@28326 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
24589611e1
commit
27f9257a8e
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006-2010 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -17,19 +17,37 @@ PKG_MD5SUM:=0f0be0239914ad87830a4fff594bda5b
|
|||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/smartmontools
|
define Package/smartmontools/Default
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
DEPENDS:=+uclibcxx
|
DEPENDS:=+uclibcxx
|
||||||
TITLE:=S.M.A.R.T Monitoring Tool
|
TITLE:=S.M.A.R.T Monitoring
|
||||||
URL:=http://smartmontools.sourceforge.net/
|
URL:=http://smartmontools.sourceforge.net/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/smartmontools
|
||||||
|
$(call Package/smartmontools/Default)
|
||||||
|
TITLE+= Tool
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/smartmontools/description
|
define Package/smartmontools/description
|
||||||
smartmontools contains utility programs (smartctl, smartd) to
|
smartmontools contains utility programs (smartctl) to
|
||||||
control/monitor storage systems using the Self-Monitoring, Analysis
|
control/monitor storage systems using the Self-Monitoring, Analysis
|
||||||
and Reporting Technology System (S.M.A.R.T.) built into most modern
|
and Reporting Technology System (S.M.A.R.T.) built into most modern
|
||||||
ATA and SCSI disks. It is derived from smartsuite.
|
ATA and SCSI disks. It is derived from smartsuite.
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/smartd
|
||||||
|
$(call Package/smartmontools/Default)
|
||||||
|
DEPENDS+= +rsync
|
||||||
|
TITLE+= Daemon
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/smartd/description
|
||||||
|
smartmontools contains utility programs (smartd) to
|
||||||
|
control/monitor storage systems using the Self-Monitoring, Analysis
|
||||||
|
and Reporting Technology System (S.M.A.R.T.) built into most modern
|
||||||
|
ATA and SCSI disks. It is derived from smartsuite.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# uses GNU configure
|
# uses GNU configure
|
||||||
@ -49,17 +67,22 @@ endef
|
|||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
LD="$(TARGET_CXX)"
|
LD="$(TARGET_CXX)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/smartmontools/install
|
define Package/smartmontools/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smartctl $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smartctl $(1)/usr/sbin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/smartd/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smartd $(1)/usr/sbin/
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smartd $(1)/usr/sbin/
|
||||||
$(INSTALL_DIR) $(1)/etc
|
$(INSTALL_DIR) $(1)/etc
|
||||||
$(INSTALL_DATA) ./files/smartd.conf $(1)/etc
|
$(INSTALL_DATA) ./files/smartd.conf $(1)/etc/
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/smartd.init $(1)/etc/init.d/smartd
|
$(INSTALL_BIN) ./files/smartd.init $(1)/etc/init.d/smartd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,smartmontools))
|
$(eval $(call BuildPackage,smartmontools))
|
||||||
|
$(eval $(call BuildPackage,smartd))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user