2 # Copyright (C) 2006-2012 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
9 include $(INCLUDE_DIR
)/uclibc
++.mk
11 PKG_NAME
:=smartmontools
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/smartmontools
17 PKG_MD5SUM
:=2ea0c62206e110192a97b59291b17f54
18 PKG_MAINTAINER
:=Maxim Storchak
<m.storchak@gmail.com
>
20 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/smartmontools
/Default
29 DEPENDS
:=$(CXX_DEPENDS
)
30 TITLE
:=S.M.A.R.T Monitoring
31 URL
:=http
://smartmontools.sourceforge.net
/
34 define Package
/smartmontools
35 $(call Package
/smartmontools
/Default
)
39 define Package
/smartmontools
/description
40 smartmontools contains utility programs
(smartctl
) to
41 control
/monitor storage systems using the Self-Monitoring
, Analysis
42 and Reporting Technology System
(S.M.A.R.T.
) built into most modern
43 ATA and SCSI disks. It is derived from smartsuite.
47 $(call Package
/smartmontools
/Default
)
51 define Package
/smartd
/description
52 smartmontools contains utility programs
(smartd
) to
53 control
/monitor storage systems using the Self-Monitoring
, Analysis
54 and Reporting Technology System
(S.M.A.R.T.
) built into most modern
55 ATA and SCSI disks. It is derived from smartsuite.
61 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
62 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
63 LDFLAGS
="$$$$LDFLAGS" \
64 LIBS
="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S) -lc" \
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 BUILD_INFO
='"(localbuild)"' \
72 define Package
/smartmontools
/install
73 $(INSTALL_DIR
) $(1)/usr
/sbin
74 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartctl
$(1)/usr
/sbin
/
77 define Package
/smartd
/install
78 $(INSTALL_DIR
) $(1)/usr
/sbin
79 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartd
$(1)/usr
/sbin
/
80 $(INSTALL_DIR
) $(1)/etc
81 $(INSTALL_DATA
) .
/files
/smartd.conf
$(1)/etc
/
82 $(INSTALL_DIR
) $(1)/etc
/init.d
83 $(INSTALL_BIN
) .
/files
/smartd.init
$(1)/etc
/init.d
/smartd
86 define Package
/smartd
/conffiles
90 $(eval
$(call BuildPackage
,smartmontools
))
91 $(eval
$(call BuildPackage
,smartd
))