Group :: Monitoramento
RPM: smartmontools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: smartmontools
Version: 5.38
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>
# http://download.sourceforge.net/smartmontools/smartmontools-%version.tar.gz
Source0: smartmontools-%version.tar
Source1: smartd.init
Source2: smartd.sysconfig
Patch1: smartmontools-5.38-alt-cciss-warnings.patch
Patch6: smartmontools-5.38-rh-cloexec.patch
Requires(post): %post_service
Requires(preun): %preun_service
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 -q
%patch1 -p1
%patch6 -p1
fgrep -lZ /usr/local/bin/mail *.in |
xargs -r0 sed -i 's,/usr/local/bin/mail,/bin/mail,g' --
%build
%configure
%make_build
%install
%makeinstall
# remove upstream init scripts
rm -r %buildroot/etc/rc.d
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
%define docdir %_docdir/%name-%version
bzip2 -9 %buildroot%docdir/CHANGELOG
rm %buildroot%docdir/{COPYING,INSTALL}
%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
%docdir
%changelog
…
Todas as alterações você pod ver aqui
Version: 5.38
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>
# http://download.sourceforge.net/smartmontools/smartmontools-%version.tar.gz
Source0: smartmontools-%version.tar
Source1: smartd.init
Source2: smartd.sysconfig
Patch1: smartmontools-5.38-alt-cciss-warnings.patch
Patch6: smartmontools-5.38-rh-cloexec.patch
Requires(post): %post_service
Requires(preun): %preun_service
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 -q
%patch1 -p1
%patch6 -p1
fgrep -lZ /usr/local/bin/mail *.in |
xargs -r0 sed -i 's,/usr/local/bin/mail,/bin/mail,g' --
%build
%configure
%make_build
%install
%makeinstall
# remove upstream init scripts
rm -r %buildroot/etc/rc.d
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
%define docdir %_docdir/%name-%version
bzip2 -9 %buildroot%docdir/CHANGELOG
rm %buildroot%docdir/{COPYING,INSTALL}
%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
%docdir
%changelog
…
Todas as alterações você pod ver aqui