Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37403397
en ru br
ALT Linux repositórios
S:7.2-alt1
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: 5.32
Release: alt1

Summary: Control and monitor storage systems using S.M.A.R.T.
License: GPL
Group: Monitoring
Url: http://smartmontools.sourceforge.net/
Packager: Sergey Vlasov <vsu at altlinux.ru>

Source0: http://download.sourceforge.net/%name/%name-%version.tar.bz2
Source1: smartd.init
Source2: smartd.sysconfig
Source3: smartd.init.m22

Patch1: smartmontools-5.32-deb-3.patch

Requires(post): %post_service
Requires(preun): %preun_service

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

# initscript backward compatibility

%def_without m22

%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 or ATA/ATAPI-5 disks. It should run on any modern
Linux system.

%prep
%setup -q
%patch1 -p1
%__subst 's,/usr/share/doc/smartmontools[^/]*/,%_docdir/%name-%version/,' smartd.conf.5.in

%build
%configure
%make_build
bzip2 -9fk CHANGELOG

%install
%makeinstall

chmod 600 %buildroot%_sysconfdir/smartd.conf
# remove the supplied init script
%__rm -rf %buildroot/etc/rc.d

%__install -pD -m644 %SOURCE2 %buildroot%_sysconfdir/sysconfig/smartd

%if_with m22
%__install -pD -m755 %SOURCE3 %buildroot%_initdir/smartd
%else
%__install -pD -m755 %SOURCE1 %buildroot%_initdir/smartd
%endif

%post
%post_service smartd

%preun
%preun_service smartd

%files
%_sbindir/smartd
%_sbindir/smartctl
%_initdir/smartd
%_man8dir/smartctl.*
%_man8dir/smartd.*
%_man5dir/smartd.conf.*
%config(noreplace) %_sysconfdir/smartd.conf
%config(noreplace) %_sysconfdir/sysconfig/smartd
%doc AUTHORS CHANGELOG.bz2 README TODO WARNINGS smartd.conf examplescripts

%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