Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37747586
en ru br
Репозитории ALT

Группа :: Мониторинг
Пакет: logwatch-smartarray

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

pax_global_header00006660000000000000000000000064115507223400014511gustar00rootroot0000000000000052 comment=82e9fbb038fd58ef15ab11f28e4c833afbb4c824
logwatch-smartarray-0.1/000075500000000000000000000000001155072234000153425ustar00rootroot00000000000000logwatch-smartarray-0.1/.gear/000075500000000000000000000000001155072234000163365ustar00rootroot00000000000000logwatch-smartarray-0.1/.gear/rules000064400000000000000000000000351155072234000174110ustar00rootroot00000000000000tar: . name=@name@-@version@
logwatch-smartarray-0.1/logwatch-smartarray.spec000064400000000000000000000017721155072234000222200ustar00rootroot00000000000000# -*- coding: latin-1; mode: rpm-spec -*-

Name: logwatch-smartarray
Version: 0.1
Release: alt1

Summary: Logwatch addon to show SmartArray status in output
License: GPLv3
Group: Monitoring
Url: http://git.altlinux.org/people/evg/packages/logwatch-smartarray.git
Source: %name-%version.tar
Requires: logwatch, cciss_vol_status
BuildArch: noarch

Packager: Evgenii Terechkov <evg@altlinux.org>

%description
Logwatch addon to show SmartArray status in output

Just install it and you will have cciss_vol_status output in your
everyday digest.

%prep
%setup
%build
%install
install -pD -m644 zz-smartarray.conf %buildroot%_sysconfdir/logwatch/conf/services/zz-smartarray.conf
install -pD -m755 zz-smartarray %buildroot%_sysconfdir/logwatch/scripts/services/zz-smartarray

%files
%config(noreplace) %_sysconfdir/logwatch/conf/services/zz-smartarray.conf
%_sysconfdir/logwatch/scripts/services/zz-smartarray

%changelog
* Tue Apr 12 2011 Terechkov Evgenii <evg@altlinux.org> 0.1-alt1
- Initial build for ALT Linux Sisypus
logwatch-smartarray-0.1/zz-smartarray000075500000000000000000000007111155072234000201150ustar00rootroot00000000000000# Named 'zz-smartarray' so that it will be the last to execute...

my $env = ( $ENV{'REAL_LANG'} ? "LANG=".$ENV{'REAL_LANG'}." " : "" ).
( $ENV{'REAL_LC_ALL'} ? "LC_ALL=".$ENV{'REAL_LC_ALL'}." " : "" );

if (($ENV{'PRINTING'} eq "y" ) && (-x "/usr/bin/cciss_vol_status")) {
#print "\n\n------------------ Fortune --------------------\n\n";
system("$env /usr/bin/cciss_vol_status /dev/sg* /dev/cciss/c*d0 2>/dev/null");
print "\n";
}
logwatch-smartarray-0.1/zz-smartarray.conf000064400000000000000000000000561155072234000210400ustar00rootroot00000000000000Title = "HP SmartArray status"
LogFile = NONE
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin