|
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/uclibc++.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=smartmontools |
|
|
PKG_NAME:=smartmontools |
|
|
PKG_VERSION:=7.1 |
|
|
PKG_VERSION:=7.1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_RELEASE:=2 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
PKG_SOURCE_URL:=@SF/smartmontools |
|
|
PKG_SOURCE_URL:=@SF/smartmontools |
|
@ -68,6 +68,17 @@ define Package/smartmontools-drivedb/description |
|
|
Database of known drives and USB bridges for smartctl and smartd. |
|
|
Database of known drives and USB bridges for smartctl and smartd. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_USE_UCLIBCXX),y) |
|
|
ifeq ($(CONFIG_USE_UCLIBCXX),y) |
|
|
TARGET_LDFLAGS +=-nodefaultlibs |
|
|
TARGET_LDFLAGS +=-nodefaultlibs |
|
|
else |
|
|
else |
|
@ -110,6 +121,11 @@ define Package/smartmontools-drivedb/install |
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/smartmontools/drivedb.h $(1)/usr/share/smartmontools/ |
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/smartmontools/drivedb.h $(1)/usr/share/smartmontools/ |
|
|
endef |
|
|
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 |
|
|
define Package/smartd/conffiles |
|
|
/etc/smartd.conf |
|
|
/etc/smartd.conf |
|
|
endef |
|
|
endef |
|
@ -117,3 +133,4 @@ endef |
|
|
$(eval $(call BuildPackage,smartmontools)) |
|
|
$(eval $(call BuildPackage,smartmontools)) |
|
|
$(eval $(call BuildPackage,smartd)) |
|
|
$(eval $(call BuildPackage,smartd)) |
|
|
$(eval $(call BuildPackage,smartmontools-drivedb)) |
|
|
$(eval $(call BuildPackage,smartmontools-drivedb)) |
|
|
|
|
|
$(eval $(call BuildPackage,smartd-mail)) |