#
include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/uclibc++.mk
PKG_NAME:=smartmontools
-PKG_VERSION:=7.0
-PKG_RELEASE:=3
+PKG_VERSION:=7.3
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/smartmontools
-PKG_HASH:=e5e1ac2786bc87fdbd6f92d0ee751b799fbb3e1a09c0a6a379f9eb64b3e8f61c
+PKG_HASH:=a544f8808d0c58cfb0e7424ca1841cb858a974922b035d505d4e4c248be3a22b
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
PKG_LICENSE:=GPL-2.0-or-later
PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
+PKG_BUILD_FLAGS:=lto
include $(INCLUDE_DIR)/package.mk
define Package/smartmontools
$(call Package/smartmontools/Default)
- DEPENDS:=$(CXX_DEPENDS)
+ DEPENDS:=+libstdcpp
TITLE+= Tool
endef
define Package/smartd
$(call Package/smartmontools/Default)
- DEPENDS:=$(CXX_DEPENDS)
+ DEPENDS:=+libstdcpp
TITLE+= Daemon
endef
Database of known drives and USB bridges for smartctl and smartd.
endef
-ifeq ($(CONFIG_USE_UCLIBCXX),y)
-TARGET_LDFLAGS +=-nodefaultlibs
-else
-CONFIGURE_VARS += with_cxx11_regex=yes
-endif
-TARGET_LDFLAGS += -flto
+define Package/smartd-mail
+ $(call Package/smartmontools/Default)
+ TITLE+= Email notifications
+ PKGARCH=all
+ DEPENDS+= +smartd +nail +msmtp-mta
+endef
+
+define Package/smartd-mail/description
+ A script for mailing about SMART issues
+endef
-TARGET_CXXFLAGS +=-fno-rtti -flto
+TARGET_CXXFLAGS +=-fno-rtti
MAKE_FLAGS +=BUILD_INFO='"(localbuild)"'
CONFIGURE_ARGS += \
#lower file size vs. CONFIGURE_ARGS
CONFIGURE_VARS += \
+ with_cxx11_regex=yes \
with_smartdplugindir=no \
with_systemdenvfile=no \
with_systemdsystemunitdir=no \
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/smartmontools/drivedb.h $(1)/usr/share/smartmontools/
endef
+define Package/smartd-mail/install
+ $(INSTALL_DIR) $(1)/etc
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/smartd_warning.sh $(1)/etc
+endef
+
define Package/smartd/conffiles
/etc/smartd.conf
endef
$(eval $(call BuildPackage,smartmontools))
$(eval $(call BuildPackage,smartd))
$(eval $(call BuildPackage,smartmontools-drivedb))
+$(eval $(call BuildPackage,smartd-mail))