]> git.pld-linux.org Git - SPECS.git/blob - noflushd.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / noflushd.spec
1 Summary:        Daemon that sends idle disks to sleep
2 Summary(pl.UTF-8):      Demon usypiający bezczynne dyski
3 Name:           noflushd
4 Version:        2.7.5
5 Release:        1
6 License:        GPL
7 Group:          Daemons
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
11 Source1:        %{name}.init
12 Source2:        %{name}.sysconfig
13 URL:            http://noflushd.sourceforge.net/
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires:       rc-scripts
16 Requires(post,preun):   /sbin/chkconfig
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _sbindir        /sbin
20
21 %description
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.
27
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ść.
34
35 %prep
36 %setup -q
37
38 %build
39 %configure
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
50 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post
56 /sbin/chkconfig --add noflushd
57 %service noflushd restart
58
59 %preun
60 if [ "$1" = "0" ]; then
61         %service noflushd stop
62         /sbin/chkconfig --del %{name}
63 fi
64
65 %files
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*
This page took 0.170164 seconds and 3 git commands to generate.