1 Summary: CacheFiles user-space management daemon
7 URL: http://people.redhat.com/~dhowells/fscache/
8 Source0: http://people.redhat.com/dhowells/fscache/%{name}-%{version}.tar.bz2
9 # Source0-md5: 9e85dd0ace346ff47e188ded8c05ab3b
10 Patch0: %{name}-cpueating.patch
11 Requires(post,preun): /sbin/chkconfig
12 Requires(post,preun,postun): systemd-units >= 38
13 Requires: systemd-units >= 38
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 The cachefilesd daemon manages the caching files and directory that
18 are that are used by network file systems such a AFS and NFS to do
19 persistent caching to the local disk.
26 %{__make} CFLAGS="%{rpmcppflags} %{rpmcflags}" \
30 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT/sbin
33 install -d $RPM_BUILD_ROOT%{systemdunitdir}
34 install -d $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
35 install -d $RPM_BUILD_ROOT%{_localstatedir}/cache/fscache
37 %{__make} DESTDIR=$RPM_BUILD_ROOT install
39 install cachefilesd.conf $RPM_BUILD_ROOT%{_sysconfdir}
40 install cachefilesd.service $RPM_BUILD_ROOT%{systemdunitdir}/cachefilesd.service
43 rm -rf $RPM_BUILD_ROOT
46 #/sbin/chkconfig --add cachefilesd
47 %service cachefilesd restart "cachefilesd daemon"
48 %systemd_post cachefilesd.service
51 if [ "$1" = "0" ]; then
52 %service cachefilesd stop
53 #/sbin/chkconfig --del cachefilesd
55 %systemd_preun cachefilesd.service
61 %defattr(644,root,root,755)
62 %doc README howto.txt selinux/move-cache.txt
63 %doc selinux/*.fc selinux/*.if selinux/*.te
64 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachefilesd.conf
65 %attr(755,root,root) /sbin/cachefilesd
66 %{systemdunitdir}/cachefilesd.service
67 %{_mandir}/man5/cachefilesd.conf.5*
68 %{_mandir}/man8/cachefilesd.8*
69 %dir %{_localstatedir}/cache/fscache