PKG_NAME:=smartmontools
PKG_VERSION:=7.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/smartmontools
define Package/smartmontools/Default
SECTION:=utils
CATEGORY:=Utilities
- DEPENDS:=$(CXX_DEPENDS)
TITLE:=S.M.A.R.T Monitoring
- URL:=http://smartmontools.sourceforge.net/
+ URL:=https://www.smartmontools.org/
endef
define Package/smartmontools
$(call Package/smartmontools/Default)
+ DEPENDS:=$(CXX_DEPENDS)
TITLE+= Tool
endef
define Package/smartd
$(call Package/smartmontools/Default)
+ DEPENDS:=$(CXX_DEPENDS)
TITLE+= Daemon
endef
ATA and SCSI disks. It is derived from smartsuite.
endef
+define Package/smartmontools-drivedb
+ $(call Package/smartmontools/Default)
+ TITLE+= Drive database
+ PKGARCH=all
+endef
+
+define Package/smartmontools-drivedb/description
+ Database of known drives and USB bridges for smartctl and smartd.
+endef
+
ifeq ($(CONFIG_USE_UCLIBCXX),y)
TARGET_LDFLAGS +=-nodefaultlibs
else
define Package/smartmontools/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/smartctl $(1)/usr/sbin/
- $(INSTALL_DIR) $(1)/usr/share
- $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/smartmontools/drivedb.h $(1)/usr/share/smartmontools
endef
define Package/smartd/install
$(INSTALL_BIN) ./files/smartd.init $(1)/etc/init.d/smartd
endef
+define Package/smartmontools-drivedb/install
+ $(INSTALL_DIR) $(1)/usr/share/smartmontools/
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/smartmontools/drivedb.h $(1)/usr/share/smartmontools/
+endef
+
define Package/smartd/conffiles
/etc/smartd.conf
endef
$(eval $(call BuildPackage,smartmontools))
$(eval $(call BuildPackage,smartd))
+$(eval $(call BuildPackage,smartmontools-drivedb))