1 Summary: Daemon that sends idle disks to sleep
2 Summary(pl.UTF-8): Demon usypiający bezczynne dyski
8 Source0: http://dl.sourceforge.net/noflushd/%{name}_%{version}.orig.tar.gz
9 # Source0-md5: a1712430588650bb8f99c5b5f2ce2511
10 # init script based on file distributed with sources
12 Source2: %{name}.sysconfig
13 URL: http://noflushd.sourceforge.net/
14 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires(post,preun): /sbin/chkconfig
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _sbindir /sbin
22 noflushd is a simple daemon that monitors disk activity and spins down
23 disks whose idle time exceeds a certain timeout. It requires a kernel
24 thread named kupdate which is present in Linux kernel version 2.2.11
25 and later or pdflush for 2.6 kernels. For earlier kernels, bdflush
26 version 1.6 provides equal functionality.
28 %description -l pl.UTF-8
29 noflushd jest prostym demonem monitorującym aktywność dysków i
30 zatrzymującym te dyski, których czas bezczynności przekroczył
31 określony limit. Wymaga wątku jądra o nazwie kupdate, występującego
32 od wersji 2.2.11, lub pdflush dla jąder 2.6. Dla wcześniejszych
33 jąder program bdflush w wersji 1.6 zapewnia tą samą funkcjonalność.
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
47 DESTDIR=$RPM_BUILD_ROOT
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
50 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
53 rm -rf $RPM_BUILD_ROOT
56 /sbin/chkconfig --add noflushd
57 %service noflushd restart
60 if [ "$1" = "0" ]; then
61 %service noflushd stop
62 /sbin/chkconfig --del %{name}
66 %defattr(644,root,root,755)
67 %doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
68 %attr(755,root,root) %{_sbindir}/noflushd
69 %attr(754,root,root) /etc/rc.d/init.d/noflushd
70 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
71 %{_mandir}/man8/noflushd.8*