|
|
6fb6a3 |
# % define buildid .local
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
Name: cachefilesd
|
|
|
6fb6a3 |
Version: 0.10.5
|
|
|
6fb6a3 |
Release: 4%{?dist}%{?buildid}
|
|
|
6fb6a3 |
Summary: CacheFiles user-space management daemon
|
|
|
6fb6a3 |
Group: System Environment/Daemons
|
|
|
6fb6a3 |
License: GPLv2
|
|
|
6fb6a3 |
URL: http://people.redhat.com/~dhowells/fscache/
|
|
|
6fb6a3 |
Source0: http://people.redhat.com/dhowells/fscache/cachefilesd-%{version}.tar.bz2
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
|
|
6fb6a3 |
BuildRequires: systemd-units
|
|
|
6fb6a3 |
Requires(post): systemd-units
|
|
|
6fb6a3 |
Requires(preun): systemd-units
|
|
|
6fb6a3 |
Requires(postun): systemd-units
|
|
|
6fb6a3 |
Requires: selinux-policy-base >= 3.7.19-5
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%description
|
|
|
6fb6a3 |
The cachefilesd daemon manages the caching files and directory that are that
|
|
|
6fb6a3 |
are used by network file systems such a AFS and NFS to do persistent caching to
|
|
|
6fb6a3 |
the local disk.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%prep
|
|
|
6fb6a3 |
%setup -q
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%build
|
|
|
6fb6a3 |
%ifarch s390 s390x
|
|
|
6fb6a3 |
PIE="-fPIE"
|
|
|
6fb6a3 |
%else
|
|
|
6fb6a3 |
PIE="-fpie"
|
|
|
6fb6a3 |
%endif
|
|
|
6fb6a3 |
export PIE
|
|
|
6fb6a3 |
CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
make all CFLAGS="$CFLAGS"
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%install
|
|
|
6fb6a3 |
rm -rf %{buildroot}
|
|
|
6fb6a3 |
mkdir -p %{buildroot}/sbin
|
|
|
6fb6a3 |
mkdir -p %{buildroot}%{_unitdir}
|
|
|
6fb6a3 |
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
|
|
|
6fb6a3 |
mkdir -p %{buildroot}/usr/share/doc/%{name}-%{version}
|
|
|
6fb6a3 |
mkdir -p %{buildroot}/usr/share/doc/%{name}-selinux-%{version}
|
|
|
6fb6a3 |
mkdir -p %{buildroot}%{_localstatedir}/cache/fscache
|
|
|
6fb6a3 |
make DESTDIR=%{buildroot} install
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
install -m 644 cachefilesd.conf %{buildroot}%{_sysconfdir}
|
|
|
6fb6a3 |
install -m 644 cachefilesd.service %{buildroot}%{_unitdir}/cachefilesd.service
|
|
|
6fb6a3 |
install -m 644 selinux/move-cache.txt %{buildroot}/usr/share/doc/%{name}-%{version}/
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%clean
|
|
|
6fb6a3 |
rm -rf $RPM_BUILD_ROOT
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%post
|
|
|
6fb6a3 |
if [ $1 -eq 1 ] ; then
|
|
|
6fb6a3 |
# Initial installation
|
|
|
6fb6a3 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
6fb6a3 |
fi
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%preun
|
|
|
6fb6a3 |
if [ $1 -eq 0 ] ; then
|
|
|
6fb6a3 |
# Package removal, not upgrade
|
|
|
6fb6a3 |
/bin/systemctl --no-reload disable cachefilesd.service > /dev/null 2>&1 || :
|
|
|
6fb6a3 |
/bin/systemctl stop cachefilesd.service > /dev/null 2>&1 || :
|
|
|
6fb6a3 |
fi
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%postun
|
|
|
6fb6a3 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
|
6fb6a3 |
if [ $1 -ge 1 ] ; then
|
|
|
6fb6a3 |
# Package upgrade, not uninstall
|
|
|
6fb6a3 |
/bin/systemctl try-restart cachefilesd.service >/dev/null 2>&1 || :
|
|
|
6fb6a3 |
fi
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%files
|
|
|
6fb6a3 |
%defattr(-,root,root)
|
|
|
6fb6a3 |
%doc README
|
|
|
6fb6a3 |
%doc howto.txt
|
|
|
6fb6a3 |
%doc selinux/move-cache.txt
|
|
|
6fb6a3 |
%doc selinux/*.fc
|
|
|
6fb6a3 |
%doc selinux/*.if
|
|
|
6fb6a3 |
%doc selinux/*.te
|
|
|
6fb6a3 |
%config(noreplace) %{_sysconfdir}/cachefilesd.conf
|
|
|
6fb6a3 |
/sbin/*
|
|
|
6fb6a3 |
%{_unitdir}/*
|
|
|
6fb6a3 |
%{_mandir}/*/*
|
|
|
6fb6a3 |
%{_localstatedir}/cache/fscache
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
%changelog
|
|
|
6fb6a3 |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-4
|
|
|
6fb6a3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-3
|
|
|
6fb6a3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.5-2
|
|
|
6fb6a3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Dec 6 2011 David Howells <dhowells@redhat.com> 0.10.5-1
|
|
|
6fb6a3 |
- Fix systemd service data according to review comments [RH BZ 754811].
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Dec 6 2011 Dan HorĂ¡k <dan[at]danny.cz>
|
|
|
6fb6a3 |
- use Fedora CFLAGS in build (fixes build on s390)
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Wed Nov 30 2011 David Howells <dhowells@redhat.com> 0.10.4-1
|
|
|
6fb6a3 |
- Fix packaging of systemd service file [RH BZ 754811].
|
|
|
6fb6a3 |
- Fix rpmlint complaints.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Nov 22 2011 David Howells <dhowells@redhat.com> 0.10.3-1
|
|
|
6fb6a3 |
- Move to native systemd management [RH BZ 754811].
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Jul 15 2011 David Howells <dhowells@redhat.com> 0.10.2-1
|
|
|
6fb6a3 |
- Downgrade all the culling messages to debug level [RH BZ 660347].
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Jun 18 2010 David Howells <dhowells@redhat.com>
|
|
|
6fb6a3 |
- Fix the initscript to have the appropriate parseable description and exit codes.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Wed Apr 28 2010 David Howells <dhowells@redhat.com>
|
|
|
6fb6a3 |
- Fix the Requires line on selinux-policy-base to be >=, not =.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Apr 23 2010 David Howells <dhowells@redhat.com> 0.10.1-1
|
|
|
6fb6a3 |
- The SELinux policies for cachefilesd now live in the selinux-policy RPM, so
|
|
|
6fb6a3 |
the cachefilesd-selinux RPM is now redundant.
|
|
|
6fb6a3 |
- Move the default cache dir to /var/cache/fscache.
|
|
|
6fb6a3 |
- Make the initscript do a restorecon when starting the cache to make sure the
|
|
|
6fb6a3 |
labels are correct.
|
|
|
6fb6a3 |
- Fix a wildchar that should be a literal dot in the SELinux policy.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Thu Feb 25 2010 David Howells <dhowells@redhat.com> 0.10-1
|
|
|
6fb6a3 |
- Fix the SELinux policies for cachefilesd.
|
|
|
6fb6a3 |
- Compress the installed policy files.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Feb 23 2010 David Howells <dhowells@redhat.com>
|
|
|
6fb6a3 |
- Must include sys/stat.h to use stat() and co. [RH BZ 565135].
|
|
|
6fb6a3 |
- Remove tail comments from functions.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Thu Aug 9 2007 David Howells <dhowells@redhat.com> 0.9-1
|
|
|
6fb6a3 |
- The cachefiles module no longer accepts directory fds on cull and inuse
|
|
|
6fb6a3 |
commands, but rather uses current working directory.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Mon Jul 2 2007 David Howells <dhowells@redhat.com> 0.8-16
|
|
|
6fb6a3 |
- Use stat64/fstatat64 to avoid EOVERFLOW errors from the kernel on large files.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Nov 15 2006 David Howells <dhowells@redhat.com> 0.8-15
|
|
|
6fb6a3 |
- Made cachefilesd ask the kernel whether cullable objects are in use and omit
|
|
|
6fb6a3 |
them from the cull table if they are.
|
|
|
6fb6a3 |
- Made the size of cachefilesd's culling tables configurable.
|
|
|
6fb6a3 |
- Updated the manual pages.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Mon Nov 14 2006 David Howells <dhowells@redhat.com> 0.8-14
|
|
|
6fb6a3 |
- Documented SELinux interaction.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Nov 10 2006 David Howells <dhowells@redhat.com> 0.8-11
|
|
|
6fb6a3 |
- Include SELinux policy for cachefilesd.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Thu Oct 19 2006 Steve Dickson <steved@redhat.com> 0.7-3
|
|
|
6fb6a3 |
- Fixed typo that was causing the howto.txt not to be installed.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Oct 17 2006 David Howells <dhowells@redhat.com> 0.8-1
|
|
|
6fb6a3 |
- Use /dev/cachefiles if it present in preference to /proc/fs/cachefiles.
|
|
|
6fb6a3 |
- Use poll rather than SIGURG on /dev/cachefilesd.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.7-2
|
|
|
6fb6a3 |
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Sep 22 2006 Steve Dickson <steved@redhat.com> 0.7-1
|
|
|
6fb6a3 |
- updated to 0.7 which adds the howto.txt
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Wed Aug 30 2006 Steve Dickson <steved@redhat.com> 0.6-1
|
|
|
6fb6a3 |
- Fixed memory corruption problem
|
|
|
6fb6a3 |
- Added the fcull/fstop/frun options
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Aug 11 2006 Steve Dickson <steved@redhat.com> 0.5-1
|
|
|
6fb6a3 |
- Upgraded to 0.5 which fixed initial scan problem when
|
|
|
6fb6a3 |
started on an empty cache (bz 202184)
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Aug 8 2006 Steve Dickson <steved@redhat.com> 0.4-3
|
|
|
6fb6a3 |
- Updated init.d script to look for cachefilesd in /sbin
|
|
|
6fb6a3 |
- Added postun and preun rules so cachefilesd is stopped
|
|
|
6fb6a3 |
and started when the rpm is updated or removed.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Aug 7 2006 Jesse Keating <jkeating@redhat.com> 0.4-2
|
|
|
6fb6a3 |
- require /sbin/chkconfig not /usr/bin/chkconfig
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Aug 1 2006 David Howells <dhowells@redhat.com> 0.4-1
|
|
|
6fb6a3 |
- Discard use of autotools
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Tue Aug 1 2006 Steve Dickson <steved@redhat.com> 0.3-3
|
|
|
6fb6a3 |
- Added URL to source file
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Jul 28 2006 Steve Dickson <steved@redhat.com> 0.3-2
|
|
|
6fb6a3 |
- Added post and preun rules
|
|
|
6fb6a3 |
- Changed init.d script to up right before portmapper.
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Fri Jun 9 2006 Steve Dickson <steved@redhat.com> 0.3-1
|
|
|
6fb6a3 |
- Incorporated David Howells manual page updates
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Thu Jun 8 2006 Steve Dickson <steved@redhat.com> 0.2-1
|
|
|
6fb6a3 |
- Made the daemon 64-bit application.
|
|
|
6fb6a3 |
- Changed the syslog logging to log the daemon's PID
|
|
|
6fb6a3 |
- Changed OS error logging to log errno number as well the string
|
|
|
6fb6a3 |
|
|
|
6fb6a3 |
* Sat Apr 22 2006 Steve Dickson <steved@redhat.com> 0.1-1
|
|
|
6fb6a3 |
- Initial commit
|