packages/utils/smartmontools/Makefile
Jo-Philipp Wich 2e92e83d10 smartmontools: use generic autoreconf fixup
Instead of using the broken upstream autogen.sh, utilize then generic
autoreconf PKG_FIXUP.

This fixes the following configure error after the recent automake
update in trunk:

-- 8< --
You must have at least GNU Automake 1.7 (up to 1.14) installed
in order to bootstrap smartmontools from SVN. Download the
appropriate package for your distribution, or the source tarball
from ftp://ftp.gnu.org/gnu/automake/ .

Also note that support for new Automake series (anything newer
than 1.14) is only added after extensive tests. If you live in
the bleeding edge, you should know what you're doing, mainly how
to test it before the developers. Be patient.
make[2]: *** [.../.configured_] Error 1
-- >8 --

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-10 16:02:56 +01:00

90 lines
2.4 KiB
Makefile

#
# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/uclibc++.mk
PKG_NAME:=smartmontools
PKG_VERSION:=6.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/smartmontools
PKG_MD5SUM:=2ea0c62206e110192a97b59291b17f54
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
PKG_LICENSE:=GPL-2.0+
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/smartmontools/Default
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=$(CXX_DEPENDS)
TITLE:=S.M.A.R.T Monitoring
URL:=http://smartmontools.sourceforge.net/
endef
define Package/smartmontools
$(call Package/smartmontools/Default)
TITLE+= Tool
endef
define Package/smartmontools/description
smartmontools contains utility programs (smartctl) to
control/monitor storage systems using the Self-Monitoring, Analysis
and Reporting Technology System (S.M.A.R.T.) built into most modern
ATA and SCSI disks. It is derived from smartsuite.
endef
define Package/smartd
$(call Package/smartmontools/Default)
TITLE+= Daemon
endef
define Package/smartd/description
smartmontools contains utility programs (smartd) to
control/monitor storage systems using the Self-Monitoring, Analysis
and Reporting Technology System (S.M.A.R.T.) built into most modern
ATA and SCSI disks. It is derived from smartsuite.
endef
# uses GNU configure
CONFIGURE_VARS += \
CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++" \
CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
LDFLAGS="$$$$LDFLAGS" \
LIBS="-nodefaultlibs -lc -luClibc++ -lm $(LIBGCC_S) -lc" \
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
BUILD_INFO='"(localbuild)"' \
LD="$(TARGET_CXX)"
endef
define Package/smartmontools/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smartctl $(1)/usr/sbin/
endef
define Package/smartd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/smartd $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) ./files/smartd.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/smartd.init $(1)/etc/init.d/smartd
endef
define Package/smartd/conffiles
/etc/smartd.conf
endef
$(eval $(call BuildPackage,smartmontools))
$(eval $(call BuildPackage,smartd))