]> git.pld-linux.org Git - packages/cachefilesd.git/blame - cachefilesd.spec
- rel 2; cpu eating fix
[packages/cachefilesd.git] / cachefilesd.spec
CommitLineData
465ee9c1
AM
1Summary: CacheFiles user-space management daemon
2Name: cachefilesd
3Version: 0.10.5
72332ee5 4Release: 2
465ee9c1
AM
5License: GPL v2
6Group: Daemons
7URL: http://people.redhat.com/~dhowells/fscache/
8Source0: http://people.redhat.com/dhowells/fscache/%{name}-%{version}.tar.bz2
9# Source0-md5: 9e85dd0ace346ff47e188ded8c05ab3b
72332ee5 10Patch0: %{name}-cpueating.patch
465ee9c1
AM
11Requires(post,preun): /sbin/chkconfig
12Requires(post,preun,postun): systemd-units >= 38
13Requires: systemd-units >= 38
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17The cachefilesd daemon manages the caching files and directory that
18are that are used by network file systems such a AFS and NFS to do
19persistent caching to the local disk.
20
21%prep
22%setup -q
72332ee5 23%patch0 -p1
465ee9c1
AM
24
25%build
26%{__make} CFLAGS="%{rpmcppflags} %{rpmcflags}" \
27 all
28
29%install
30rm -rf $RPM_BUILD_ROOT
31
32install -d $RPM_BUILD_ROOT/sbin
33install -d $RPM_BUILD_ROOT%{systemdunitdir}
34install -d $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
35install -d $RPM_BUILD_ROOT%{_localstatedir}/cache/fscache
36
37%{__make} DESTDIR=$RPM_BUILD_ROOT install
38
39install cachefilesd.conf $RPM_BUILD_ROOT%{_sysconfdir}
40install cachefilesd.service $RPM_BUILD_ROOT%{systemdunitdir}/cachefilesd.service
41
42%clean
43rm -rf $RPM_BUILD_ROOT
44
45%post
46#/sbin/chkconfig --add cachefilesd
47%service cachefilesd restart "cachefilesd daemon"
48%systemd_post cachefilesd.service
49
50%preun
51if [ "$1" = "0" ]; then
52 %service cachefilesd stop
53 #/sbin/chkconfig --del cachefilesd
54fi
55%systemd_preun cachefilesd.service
56
57%postun
58%systemd_reload
59
60%files
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
3115abd4 65%attr(755,root,root) /sbin/cachefilesd
465ee9c1
AM
66%{systemdunitdir}/cachefilesd.service
67%{_mandir}/man5/cachefilesd.conf.5*
68%{_mandir}/man8/cachefilesd.8*
69%dir %{_localstatedir}/cache/fscache
This page took 0.10039 seconds and 4 git commands to generate.