Пакет mdmpd: Specfile

Name: mdmpd
Version: 0.4
Release: alt1

Summary: A daemon for monitor MD multipath devices
License: GPL
Group: System/Configuration/Hardware

Source0: %name-%version.tgz
Source1: %name.init
Patch: %name-0.4-alt-gcc4warnings.patch

Summary(ru_RU.KOI8-R): \xed\xcf\xce\xc9\xd4\xcf\xd2 \xd7\xcf\xd3\xd3\xd4\xc1\xce\xcf\xd7\xcc\xc5\xce\xc9\xd1 RAID-\xd5\xd3\xd4\xd2\xcf\xca\xd3\xd4\xd7

%description
The Linux kernel portion of the md (Multiple Devices) multipath driver
used for software RAID does not try and find out if a path that has previously
failed might be working again. That's what this daemon does. 
Then it reads the current state of the md raid arrays, saves that state,
and then waits for the kernel to tell it something interesting has happened. 
It then wakes up, checks to see if any paths on a multipath device have failed,
and if they have then it starts to poll the failed path once every 15 seconds
until it starts working again. Once it starts working again, the daemon
will then add the path back into the multipath md device it was originally
part of as a new spare path.

%description -l ru_RU.KOI8-R
\xe4\xd2\xc1\xca\xd7\xc5\xd2 md-\xd5\xd3\xd4\xd2\xcf\xca\xd3\xd4\xd7, \xc9\xd3\xd0\xcf\xcc\xd8\xda\xd5\xc5\xcd\xd9\xca \xd7 \xec\xc9\xce\xd5\xcb\xd3\xc5 \xc4\xcc\xd1 \xd2\xc1\xc2\xcf\xd4\xd9 \xd3 \xc4\xc9\xd3\xcb\xcf\xd7\xd9\xcd\xc9 \xcd\xc1\xd3\xd3\xc9\xd7\xc1\xcd\xc9
(software RAID), \xd7 \xd3\xcc\xd5\xde\xc1\xc5 \xcf\xd4\xcb\xc1\xda\xc1 \xcf\xc4\xce\xcf\xc7\xcf \xc9\xda \xc4\xc9\xd3\xcb\xcf\xd7 \xce\xc5 \xd0\xd9\xd4\xc1\xc5\xd4\xd3\xd1 \xcf\xd0\xd2\xc5\xc4\xc5\xcc\xc9\xd4\xd8,
\xde\xd4\xcf \xc4\xc9\xd3\xcb \xd3\xce\xcf\xd7\xc1 \xd2\xc1\xc2\xcf\xd4\xcf\xd3\xd0\xcf\xd3\xcf\xc2\xc5\xce. \xe6\xcf\xce\xcf\xd7\xd9\xca \xcd\xcf\xce\xc9\xd4\xcf\xd2 %name \xcf\xd4\xd3\xcc\xc5\xd6\xc9\xd7\xc1\xc5\xd4 \xd4\xc1\xcb\xc9\xc5 \xd3\xc2\xcf\xc9
\xc9 \xcf\xd0\xd2\xc1\xdb\xc9\xd7\xc1\xc5\xd4 \xcf\xd4\xcb\xc1\xda\xc1\xd7\xdb\xc9\xca \xc4\xc9\xd3\xcb \xce\xc1 \xd4\xcf\xd4 \xd3\xcc\xd5\xde\xc1\xca, \xc5\xd3\xcc\xc9 \xce\xc5\xd0\xcf\xcc\xc1\xc4\xcb\xc1 \xc2\xd5\xc4\xc5\xd4 \xc9\xd3\xd0\xd2\xc1\xd7\xcc\xc5\xce\xc1.
\xef\xc2\xce\xc1\xd2\xd5\xd6\xc9\xd7 \xdc\xd4\xcf, %name \xd5\xcb\xc1\xda\xd9\xd7\xc1\xc5\xd4 \xd1\xc4\xd2\xd5 \xd3\xce\xcf\xd7\xc1 \xd7\xcb\xcc\xc0\xde\xc9\xd4\xd8 \xc4\xc9\xd3\xcb \xd7 \xd3\xcf\xd3\xd4\xc1\xd7 \xcd\xc1\xd3\xd3\xc9\xd7\xc1.

%prep
%setup -q -n %name
%patch -p1

%build
%make_build CCFLAGS="%optflags -I."

%install
%make_install install DESTDIR=%buildroot MANDIR=%_mandir BINDIR=%_sbindir
install -pD -m744 %SOURCE1 %buildroot%_initdir/%name

%post
%post_service %name

%preun
%preun_service %name

%files
%_sbindir/%{name}*
%_mandir/man?/%{name}*
%_initdir/%name

%changelog
* Fri May 19 2006 Ilya Evseev <evseev@altlinux.ru> 0.4-alt1
- updated to version 0.4, fixed gcc4.1 warnings

* Sun Mar 13 2005 Ilya Evseev <evseev@altlinux.ru> 0.3-alt2
- specfile: fixed russian encoding (declared KOI8-R, actually was CP1251)

* Mon Mar  7 2005 Ilya Evseev <evseev@altlinux.ru> 0.3-alt1
- Initial build for ALTLinux, sources are taken from mdadm-1.9.0-1mdk.src.rpm

## EOF ##