remove PKG_CAT from packages
[packages.git] / utils / smartmontools / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=smartmontools
12 PKG_VERSION:=5.37
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/smartmontools
17 PKG_MD5SUM:=4ab3668b7d1362ce923f64a211e0e568
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/smartmontools
24   SECTION:=utils
25   CATEGORY:=Utilities
26   DEPENDS:=+libstdcpp
27   TITLE:=S.M.A.R.T Monitoring Tool
28   URL:=http://smartmontools.sourceforge.net/
29 endef
30
31 define Package/smartmontools/description
32         smartmontools contains utility programs (smartctl, smartd) to 
33         control/monitor storage systems using the Self-Monitoring, Analysis 
34         and Reporting Technology System (S.M.A.R.T.) built into most modern 
35         ATA and SCSI disks. It is derived from smartsuite.
36 endef
37
38 # uses GNU configure
39
40 define Build/Configure  
41         (cd $(PKG_BUILD_DIR); ./autogen.sh );
42         $(call Build/Configure/Default,, \
43         ac_libc_have_working_snprintf=yes \
44         )
45 endef
46
47 define Build/Compile
48         $(MAKE) -C $(PKG_BUILD_DIR) \
49                 CC="$(TARGET_CC)"
50 endef
51
52 define Package/smartmontools/install
53         $(INSTALL_DIR) $(1)/usr/sbin
54         $(INSTALL_BIN) $(PKG_BUILD_DIR)/smartctl $(1)/usr/sbin/
55         $(INSTALL_BIN) $(PKG_BUILD_DIR)/smartd $(1)/usr/sbin/
56         $(INSTALL_DIR) $(1)/etc
57         $(INSTALL_DATA) ./files/smartd.conf $(1)/etc
58         $(INSTALL_DIR) $(1)/etc/init.d
59         $(INSTALL_BIN) ./files/smartd.init $(1)/etc/init.d/smartd
60 endef
61
62 $(eval $(call BuildPackage,smartmontools))
63
64 $(eval $(call RequireCommand,automake-1.9, \
65         $(PKG_NAME) requires automake 1.9 or compatible. \
66 ))