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.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=smartmontools
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/smartmontools
17 PKG_MD5SUM
:=4ab3668b7d1362ce923f64a211e0e568
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/smartmontools
28 TITLE
:=S.M.A.R.T Monitoring Tool
30 smartmontools contains utility programs
(smartctl
, smartd
) to
\\\
31 control
/monitor storage systems using the Self-Monitoring
, Analysis
\\\
32 and Reporting Technology System
(S.M.A.R.T.
) built into most modern
\\\
33 ATA and SCSI disks. It is derived from smartsuite.
34 URL
:=http
://smartmontools.sourceforge.net
/
39 define Build
/Configure
40 (cd
$(PKG_BUILD_DIR
); .
/autogen.sh
);
41 $(call Build
/Configure
/Default
,, \
42 ac_libc_have_working_snprintf
=yes \
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 define Package
/smartmontools
/install
52 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartctl
$(1)/usr
/sbin
/
54 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartd
$(1)/usr
/sbin
/
55 $(INSTALL_DIR
) $(1)/etc
56 $(INSTALL_DATA
) .
/files
/smartd.conf
$(1)/etc
57 $(INSTALL_DIR
) $(1)/etc
/init.d
58 $(INSTALL_BIN
) .
/files
/smartd.init
$(1)/etc
/init.d
/smartd
61 $(eval
$(call BuildPackage
,smartmontools
))
63 $(eval
$(call RequireCommand
,automake-1.9
, \
64 $(PKG_NAME
) requires automake
1.9 or compatible. \