]> git.pld-linux.org Git - packages/cachefilesd.git/blame_incremental - cachefilesd.spec
2.6.30 is first pld tag
[packages/cachefilesd.git] / cachefilesd.spec
... / ...
CommitLineData
1Summary: CacheFiles user-space management daemon
2Name: cachefilesd
3Version: 0.10.5
4Release: 2
5License: GPL v2
6Group: Daemons
7Source0: http://people.redhat.com/dhowells/fscache/%{name}-%{version}.tar.bz2
8# Source0-md5: 9e85dd0ace346ff47e188ded8c05ab3b
9Source1: %{name}.init
10Patch0: %{name}-cpueating.patch
11URL: http://people.redhat.com/~dhowells/fscache/
12Requires(post,preun): /sbin/chkconfig
13Requires(post,preun,postun): systemd-units >= 38
14Requires: rc-scripts
15Requires: systemd-units >= 38
16Requires: uname(release) >= 2.6.30
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20The cachefilesd daemon manages the caching files and directory that
21are that are used by network file systems such a AFS and NFS to do
22persistent caching to the local disk.
23
24%prep
25%setup -q
26%patch0 -p1
27
28%build
29%{__make} all \
30 CC="%{__cc}" \
31 CFLAGS="%{rpmcppflags} %{rpmcflags}"
32
33%install
34rm -rf $RPM_BUILD_ROOT
35install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man{5,8},%{systemdunitdir},/etc/rc.d/init.d,%{_localstatedir}/cache/fscache}
36
37%{__make} install \
38 INSTALL="install -p" \
39 DESTDIR=$RPM_BUILD_ROOT
40
41install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cachefilesd
42cp -p cachefilesd.service $RPM_BUILD_ROOT%{systemdunitdir}
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%post
48/sbin/chkconfig --add cachefilesd
49%service cachefilesd restart "cachefilesd daemon"
50%systemd_post cachefilesd.service
51
52%preun
53if [ "$1" = "0" ]; then
54 /sbin/chkconfig --del cachefilesd
55 %service cachefilesd stop
56fi
57%systemd_preun cachefilesd.service
58
59%postun
60%systemd_reload
61
62%files
63%defattr(644,root,root,755)
64%doc README howto.txt selinux/move-cache.txt
65%doc selinux/*.fc selinux/*.if selinux/*.te
66%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cachefilesd.conf
67%attr(755,root,root) /sbin/cachefilesd
68%{_mandir}/man5/cachefilesd.conf.5*
69%{_mandir}/man8/cachefilesd.8*
70%attr(754,root,root) /etc/rc.d/init.d/cachefilesd
71%{systemdunitdir}/cachefilesd.service
72%dir %{_localstatedir}/cache/fscache
This page took 0.077713 seconds and 5 git commands to generate.