Sisyphus repositório
Última atualização: 12 julho 2020 | SRPMs: 17701 | Visitas: 18866517
en ru br
ALT Linux repositórios
S:7.1-alt2
5.0: 5.38-alt1
4.1: 5.38-alt1
4.0: 5.38-alt1
3.0: 5.32-alt1

Group :: Monitoramento
RPM: smartmontools

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: smartmontools
Version: 6.6
Release: alt1

Summary: Control and monitor storage systems using S.M.A.R.T.
License: GPLv2+
Group: Monitoring

Url: http://smartmontools.sourceforge.net

# http://download.sourceforge.net/smartmontools/smartmontools-%version.tar.gz

Source0: smartmontools-%version.tar
Source1: smartd.init
Source2: smartd.sysconfig

Patch1: smartmontools-alt-conf.patch
Patch2: smartmontools-alt-service.patch

Obsoletes: smartctl
Obsoletes: smartd
Obsoletes: ucsc-smartsuite
Obsoletes: smartsuite

# Automatically added by buildreq on Thu Mar 13 2008

BuildRequires: gcc-c++

%description
This package contains two utility programs (smartctl and smartd) to
control and monitor storage systems using the Self-Monitoring, Analysis
and Reporting Technology System (S.M.A.R.T.) built into most modern
ATA and SCSI hard disks.  It is derived from the smartsuite package,
and includes support for ATA/ATAPI-5 disks.

%prep
%setup
%patch1 -p1
%patch2 -p1
fgrep -lZ /usr/local/bin/mail *.in |
xargs -r0 sed -i 's,/usr/local/bin/mail,/bin/mail,g' --
fgrep -lZ /usr/local/etc/sysconfig *.am *.in |
xargs -r0 sed -i 's,/usr/local/etc/sysconfig,/etc/sysconfig,g' --

%build
%define docdir %_docdir/%name-%version
%configure --docdir=%docdir \
--with-systemdsystemunitdir=%systemd_unitdir
%make_build \
BUILD_INFO='"(%distribution %version-%release)"'

%install
%makeinstall_std

chmod 600 %buildroot%_sysconfdir/smartd.conf

install -pD -m755 %_sourcedir/smartd.init \
%buildroot%_initdir/smartd
install -pD -m644 %_sourcedir/smartd.sysconfig \
%buildroot%_sysconfdir/sysconfig/smartd

rm %buildroot%docdir/{ChangeLog,COPYING,INSTALL}

%post
%post_service smartd

%preun
%preun_service smartd

%files
%_sbindir/smartd
%_sbindir/smartctl
%_initdir/smartd
%systemd_unitdir/smartd.service
%_man8dir/smartctl.*
%_man8dir/smartd.*
%_man5dir/smartd.conf.*
%config(noreplace) %_sysconfdir/smartd.conf
%config(noreplace) %_sysconfdir/sysconfig/smartd
%config(noreplace) %_sysconfdir/smartd_warning.sh
%exclude %_sbindir/update-smart-drivedb
%exclude %_datadir/%name
%docdir

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009