Re: [ptxdist] [PATCH 08/20] Add smartmontools (smartctl)

2010-05-29 Thread Remy Bohmer
Hi,

2010/5/28 Michael Olbrich m.olbr...@pengutronix.de:
 On Thu, May 27, 2010 at 09:58:37PM +0200, Remy Bohmer wrote:
 From: Bart vdr. Meulen bartvdrmeu...@gmail.com

 Adds the smartmontools package containing smartctl and smartd

All comments reworked and updated patch has been reposted. Thanks.

Kind regards,

Remy

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH 08/20] Add smartmontools (smartctl)

2010-05-28 Thread Michael Olbrich
On Thu, May 27, 2010 at 09:58:37PM +0200, Remy Bohmer wrote:
 From: Bart vdr. Meulen bartvdrmeu...@gmail.com
 
 Adds the smartmontools package containing smartctl and smartd
 
 Signed-off-by: Bart vdr. Meulen bartvdrmeu...@gmail.com
 ---
  rules/smartmontools.in   |   44 +++
  rules/smartmontools.make |   87 
 ++
  2 files changed, 131 insertions(+), 0 deletions(-)
  create mode 100644 rules/smartmontools.in
  create mode 100644 rules/smartmontools.make
 
 diff --git a/rules/smartmontools.in b/rules/smartmontools.in
 new file mode 100644
 index 000..0c22fbe
 --- /dev/null
 +++ b/rules/smartmontools.in
 @@ -0,0 +1,44 @@
 +## SECTION=shell_and_console
 +
 +config SMARTMONTOOLS
 + tristate
 + prompt smartmontools
 + help
 +   The smartmontools package contains two utility programs (smartctl and 
 smartd)
 +   to control and monitor storage systems using the Self-Monitoring, 
 Analysis
 +   and Reporting Technology System (SMART) built into most modern ATA 
 and SCSI
 +   harddisks. In many cases, these utilities will provide advanced 
 warning of
 +   disk degradation and failure.
 +if SMARTMONTOOLS
 +
 +config SMARTMONTOOLS_SMARTCTL
 + bool
 + default y
 + prompt install smartctl
 + help
 +   Control and Monitor Utility for SMART Disks
 +
 +config SMARTMONTOOLS_SMARTD
 + bool
 + default n
 + prompt install smartd
 + help
 +   SMART Disk Monitoring Daemon
 +
 +config SMARTMONTOOLS_SMARTD_CONFIG
 + bool
 + depends on SMARTMONTOOLS_SMARTD
 + default n
 + prompt install smartd.conf
 + help
 +   SMART Disk Monitoring Daemon Configuration File
 +
 +config SMARTMONTOOLS_SMARTD_INITD
 + bool
 + depends on SMARTMONTOOLS_SMARTD
 + default n
 + prompt install /etc/init.d/smartd
 + help
 +   SMART Disk Monitoring Daemon Configuration File
 +
 +endif
 diff --git a/rules/smartmontools.make b/rules/smartmontools.make
 new file mode 100644
 index 000..90cb751
 --- /dev/null
 +++ b/rules/smartmontools.make
 @@ -0,0 +1,87 @@
 +# -*-makefile-*-
 +#
 +# Copyright (C) 2010 by Bart vdr. Meulen bartvdrmeu...@gmail.com
 +#
 +# See CREDITS for details about who has contributed to this project.
 +#
 +# For further information about the PTXdist project and license conditions
 +# see the README file.
 +#
 +
 +#
 +# We provide this package
 +#
 +PACKAGES-$(PTXCONF_SMARTMONTOOLS) += smartmontools
 +
 +#
 +# Paths and names
 +#
 +SMARTMONTOOLS_VERSION:= 5.39
 +SMARTMONTOOLS:= smartmontools-$(SMARTMONTOOLS_VERSION)
 +SMARTMONTOOLS_SUFFIX := tar.gz
 +SMARTMONTOOLS_URL:= 
 http://downloads.sourceforge.net/smartmontools/smartmontools/$(SMARTMONTOOLS).$(SMARTMONTOOLS_SUFFIX)
 +SMARTMONTOOLS_SOURCE := $(SRCDIR)/$(SMARTMONTOOLS).$(SMARTMONTOOLS_SUFFIX)
 +SMARTMONTOOLS_DIR:= $(BUILDDIR)/$(SMARTMONTOOLS)
 +SMARTMONTOOLS_LICENSE:= GPLv2
 +
 +# 
 
 +# Get
 +# 
 
 +
 +$(SMARTMONTOOLS_SOURCE):
 + @$(call targetinfo)
 + @$(call get, SMARTMONTOOLS)
 +
 +# 
 
 +# Prepare
 +# 
 
 +
 +#SMARTMONTOOLS_CONF_ENV  := $(CROSS_ENV)
 +
 +#
 +# autoconf
 +#
 +SMARTMONTOOLS_CONF_TOOL  := autoconf
 +SMARTMONTOOLS_CONF_OPT   := $(CROSS_AUTOCONF_USR) \
 + --disable-sample \
 + --with-initscriptdir=/etc/init.d
 +
 +
 +# 
 
 +# Target-Install
 +# 
 
 +
 +$(STATEDIR)/smartmontools.targetinstall:
 + @$(call targetinfo)
 +
 + @$(call install_init,  smartmontools)
 + @$(call install_fixup, smartmontools,PACKAGE,smartmontools)
 + @$(call install_fixup, smartmontools,PRIORITY,optional)
 + @$(call install_fixup, smartmontools,VERSION,$(SMARTMONTOOLS_VERSION))
 + @$(call install_fixup, smartmontools,SECTION,base)
 + @$(call install_fixup, smartmontools,AUTHOR,Bart vdr. Meulen 
 bartvdrmeu...@gmail.com)
 + @$(call install_fixup, smartmontools,DEPENDS,)
 + @$(call install_fixup, smartmontools,DESCRIPTION,missing)
 +
 +ifdef PTXCONF_SMARTMONTOOLS_SMARTCTL
 + @$(call install_copy, smartmontools, 0, 0, 0755, -, /usr/sbin/smartctl)
 +endif
 +
 +ifdef PTXCONF_SMARTMONTOOLS_SMARTD
 + @$(call install_copy, smartmontools, 0, 0, 0755, -, /usr/sbin/smartd)
 +endif
 +
 +ifdef PTXCONF_SMARTMONTOOLS_SMARTD_CONFIG
 + @$(call install_alternative, smartmontools, 0, 0, 0644, 
 /etc/smartd.conf)
 +endif
 +
 +ifdef PTXCONF_SMARTMONTOOLS_SMARTD_INITD
 + @$(call install_copy, smartmontools, 0, 0, 0755,