2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=smartmontools
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/smartmontools
16 PKG_MD5SUM
:=a282846532ecbd6b4a28072373b3a70b
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/smartmontools
24 TITLE
:=S.M.A.R.T Monitoring Tool
25 URL
:=http
://smartmontools.sourceforge.net
/
28 define Package
/smartmontools
/description
29 smartmontools contains utility programs
(smartctl
, smartd
) to
30 control
/monitor storage systems using the Self-Monitoring
, Analysis
31 and Reporting Technology System
(S.M.A.R.T.
) built into most modern
32 ATA and SCSI disks. It is derived from smartsuite.
37 define Build
/Configure
38 (cd
$(PKG_BUILD_DIR
); .
/autogen.sh
);
39 $(call Build
/Configure
/Default
,, \
40 ac_libc_have_working_snprintf
=yes \
41 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
42 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
43 LDFLAGS
="$$$$LDFLAGS" \
44 LIBS
="-nodefaultlibs -luClibc++ -lm -lgcc" \
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 define Package
/smartmontools
/install
54 $(INSTALL_DIR
) $(1)/usr
/sbin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartctl
$(1)/usr
/sbin
/
56 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartd
$(1)/usr
/sbin
/
57 $(INSTALL_DIR
) $(1)/etc
58 $(INSTALL_DATA
) .
/files
/smartd.conf
$(1)/etc
59 $(INSTALL_DIR
) $(1)/etc
/init.d
60 $(INSTALL_BIN
) .
/files
/smartd.init
$(1)/etc
/init.d
/smartd
63 $(eval
$(call BuildPackage
,smartmontools
))