@ -9,17 +9,19 @@ include $(TOPDIR)/rules.mk
i n c l u d e $( INCLUDE_DIR ) / u c l i b c + + . m k
PKG_NAME := smartmontools
PKG_VERSION := 6.6
PKG_VERSION := 7.0
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := @SF/smartmontools
PKG_HASH := 51f43d0fb064fccaf823bbe68cf0d317d0895ff895aa353b3339a3b316a53054
PKG_HASH := e5e1ac2786bc87fdbd6f92d0ee751b799fbb3e1a09c0a6a379f9eb64b3e8f61c
PKG_MAINTAINER := Maxim Storchak <m.storchak@gmail.com>
PKG_LICENSE := GPL-2.0+
PKG_LICENSE_FILES := COPYING
PKG_FIXUP := autoreconf
PKG_BUILD_PARALLEL := 1
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -56,31 +58,38 @@ define Package/smartd/description
e n d e f
i f e q ( $( CONFIG_USE_UCLIBCXX ) , y )
UCXXCFLAGS:= -fno-builtin -fno-rtti -nostdinc++
UCXXCPPFLAGS:= -I$( STAGING_DIR) /usr/include/uClibc++
UCXXLIBS:= -nodefaultlibs -lc -luClibc++
TARGET_LDFLAGS += -nodefaultlibs
e l s e
CONFIGURE_VARS += with_cxx11_regex = yes
e n d i f
TARGET_LDFLAGS += -flto
TARGET_CXXFLAGS += -fno-rtti -flto
MAKE_FLAGS += BUILD_INFO = '"(localbuild)"'
CONFIGURE_ARGS += \
--disable-fast-lebe \
--without-gnupg \
--without-libcap-ng \
--without-libsystemd
#lower file size vs. CONFIGURE_ARGS
CONFIGURE_VARS += \
CXXFLAGS = " $$ $$ CXXFLAGS $( UCXXCFLAGS) " \
CPPFLAGS = " $$ $$ CPPFLAGS $( UCXXCPPFLAGS) -I $( LINUX_DIR) /include " \
LDFLAGS = " $$ $$ LDFLAGS " \
LIBS = " $( UCXXLIBS) -lm $( LIBGCC_S) -lc " \
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) \
BUILD_INFO = '"(localbuild)"' \
LD = " $( TARGET_CXX) "
e n d e f
with_smartdplugindir = no \
with_systemdenvfile = no \
with_systemdsystemunitdir = no \
with_update_smart_drivedb = no
d e f i n e P a c k a g e / s m a r t m o n t o o l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /smartctl $( 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
e n d e f
d e f i n e P a c k a g e / s m a r t d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_BUILD_DIR) /smartd $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin /smartd $( 1) /usr/sbin/
$( INSTALL_DIR) $( 1) /etc
$( INSTALL_DATA) ./files/smartd.conf $( 1) /etc/
$( INSTALL_DIR) $( 1) /etc/init.d