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
:=0f0be0239914ad87830a4fff594bda5b
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/smartmontools
/Default
24 DEPENDS
:=$(CXX_DEPENDS
)
25 TITLE
:=S.M.A.R.T Monitoring
26 URL
:=http
://smartmontools.sourceforge.net
/
29 define Package
/smartmontools
30 $(call Package
/smartmontools
/Default
)
34 define Package
/smartmontools
/description
35 smartmontools contains utility programs
(smartctl
) to
36 control
/monitor storage systems using the Self-Monitoring
, Analysis
37 and Reporting Technology System
(S.M.A.R.T.
) built into most modern
38 ATA and SCSI disks. It is derived from smartsuite.
42 $(call Package
/smartmontools
/Default
)
47 define Package
/smartd
/description
48 smartmontools contains utility programs
(smartd
) to
49 control
/monitor storage systems using the Self-Monitoring
, Analysis
50 and Reporting Technology System
(S.M.A.R.T.
) built into most modern
51 ATA and SCSI disks. It is derived from smartsuite.
57 CXXFLAGS
="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
58 CPPFLAGS
="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
59 LDFLAGS
="$$$$LDFLAGS" \
60 LIBS
="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S) -lc" \
62 define Build
/Configure
63 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
66 $(call Build
/Configure
/Default
)
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 BUILD_INFO
='"(localbuild)"' \
75 define Package
/smartmontools
/install
76 $(INSTALL_DIR
) $(1)/usr
/sbin
77 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartctl
$(1)/usr
/sbin
/
80 define Package
/smartd
/install
81 $(INSTALL_DIR
) $(1)/usr
/sbin
82 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/smartd
$(1)/usr
/sbin
/
83 $(INSTALL_DIR
) $(1)/etc
84 $(INSTALL_DATA
) .
/files
/smartd.conf
$(1)/etc
/
85 $(INSTALL_DIR
) $(1)/etc
/init.d
86 $(INSTALL_BIN
) .
/files
/smartd.init
$(1)/etc
/init.d
/smartd
89 define Package
/smartd
/conffiles
93 $(eval
$(call BuildPackage
,smartmontools
))
94 $(eval
$(call BuildPackage
,smartd
))