]> git.pld-linux.org Git - packages/cachefilesd.git/blame - cachefilesd.spec
2.6.30 is first pld tag
[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
465ee9c1
AM
7Source0: http://people.redhat.com/dhowells/fscache/%{name}-%{version}.tar.bz2
8# Source0-md5: 9e85dd0ace346ff47e188ded8c05ab3b
46473e89 9Source1: %{name}.init
72332ee5 10Patch0: %{name}-cpueating.patch
b5d93083 11URL: http://people.redhat.com/~dhowells/fscache/
465ee9c1
AM
12Requires(post,preun): /sbin/chkconfig
13Requires(post,preun,postun): systemd-units >= 38
46473e89 14Requires: rc-scripts
465ee9c1 15Requires: systemd-units >= 38
76c643aa 16Requires: uname(release) >= 2.6.30
465ee9c1
AM
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
72332ee5 26%patch0 -p1
465ee9c1
AM
27
28%build
5101a695
ER
29%{__make} all \
30 CC="%{__cc}" \
31 CFLAGS="%{rpmcppflags} %{rpmcflags}"
465ee9c1
AM
32
33%install
34rm -rf $RPM_BUILD_ROOT
46473e89 35install -d $RPM_BUILD_ROOT{/sbin,%{_mandir}/man{5,8},%{systemdunitdir},/etc/rc.d/init.d,%{_localstatedir}/cache/fscache}
465ee9c1 36
5101a695
ER
37%{__make} install \
38 INSTALL="install -p" \
39 DESTDIR=$RPM_BUILD_ROOT
465ee9c1 40
46473e89 41install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cachefilesd
5101a695 42cp -p cachefilesd.service $RPM_BUILD_ROOT%{systemdunitdir}
465ee9c1
AM
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%post
46473e89 48/sbin/chkconfig --add cachefilesd
465ee9c1
AM
49%service cachefilesd restart "cachefilesd daemon"
50%systemd_post cachefilesd.service
51
52%preun
53if [ "$1" = "0" ]; then
46473e89 54 /sbin/chkconfig --del cachefilesd
465ee9c1 55 %service cachefilesd stop
465ee9c1
AM
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
3115abd4 67%attr(755,root,root) /sbin/cachefilesd
465ee9c1
AM
68%{_mandir}/man5/cachefilesd.conf.5*
69%{_mandir}/man8/cachefilesd.8*
46473e89 70%attr(754,root,root) /etc/rc.d/init.d/cachefilesd
5101a695 71%{systemdunitdir}/cachefilesd.service
465ee9c1 72%dir %{_localstatedir}/cache/fscache
This page took 0.094042 seconds and 4 git commands to generate.