Репозитории ALT
Группа :: Мониторинг
Пакет: smartmontools
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and 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
…
Полный changelog можно просмотреть здесь
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
…
Полный changelog можно просмотреть здесь