Blame SPECS/cachefilesd.spec

9ef56b
# % define buildid .local
9ef56b
9ef56b
Name:		cachefilesd
9ef56b
Version:	0.10.10
9ef56b
Release:	12%{?dist}%{?buildid}
9ef56b
Summary:	CacheFiles user-space management daemon
9ef56b
License:	GPLv2+
9ef56b
URL:		http://people.redhat.com/~dhowells/fscache/
9ef56b
Source0:	http://people.redhat.com/dhowells/fscache/cachefilesd-%{version}.tar.bz2
9ef56b
9ef56b
BuildRequires:  gcc
9ef56b
BuildRequires: systemd-units
9ef56b
BuildRequires: make
9ef56b
Requires(post): systemd-units
9ef56b
Requires(preun): systemd-units
9ef56b
Requires(postun): systemd-units
9ef56b
Requires: selinux-policy-base >= 3.7.19-5
9ef56b
9ef56b
%define _hardened_build 1
9ef56b
9ef56b
%description
9ef56b
The cachefilesd daemon manages the caching files and directory that are that
9ef56b
are used by network file systems such a AFS and NFS to do persistent caching to
9ef56b
the local disk.
9ef56b
9ef56b
%global docdir %{_docdir}/cachefilesd
9ef56b
9ef56b
%prep
9ef56b
%setup -q
9ef56b
9ef56b
%build
9ef56b
make all \
9ef56b
	ETCDIR=%{_sysconfdir} \
9ef56b
	SBINDIR=%{_sbindir} \
9ef56b
	MANDIR=%{_mandir} \
9ef56b
	CFLAGS="-Wall -Werror $RPM_OPT_FLAGS $RPM_LD_FLAGS $ARCH_OPT_FLAGS"
9ef56b
9ef56b
%install
9ef56b
mkdir -p %{buildroot}%{_sbindir}
9ef56b
mkdir -p %{buildroot}%{_unitdir}
9ef56b
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
9ef56b
mkdir -p %{buildroot}%{_localstatedir}/cache/fscache
9ef56b
make DESTDIR=%{buildroot} install \
9ef56b
	ETCDIR=%{_sysconfdir} \
9ef56b
	SBINDIR=%{_sbindir} \
9ef56b
	MANDIR=%{_mandir} \
9ef56b
	CFLAGS="-Wall $RPM_OPT_FLAGS -Werror"
9ef56b
9ef56b
install -m 644 cachefilesd.conf %{buildroot}%{_sysconfdir}
9ef56b
install -m 644 cachefilesd.service %{buildroot}%{_unitdir}/cachefilesd.service
9ef56b
9ef56b
%post
9ef56b
%systemd_post cachefilesd.service
9ef56b
9ef56b
%preun
9ef56b
%systemd_preun cachefilesd.service
9ef56b
9ef56b
%postun
9ef56b
%systemd_postun_with_restart cachefilesd.service
9ef56b
9ef56b
%files
9ef56b
%doc README
9ef56b
%doc howto.txt
9ef56b
%doc selinux/move-cache.txt
9ef56b
%doc selinux/*.fc
9ef56b
%doc selinux/*.if
9ef56b
%doc selinux/*.te
9ef56b
%config(noreplace) %{_sysconfdir}/cachefilesd.conf
9ef56b
%{_sbindir}/*
9ef56b
%{_unitdir}/*
9ef56b
%{_mandir}/*/*
9ef56b
%{_localstatedir}/cache/fscache
9ef56b
9ef56b
%changelog
9ef56b
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.10-12
9ef56b
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
9ef56b
  Related: rhbz#1991688
9ef56b
9ef56b
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.10.10-11
9ef56b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
9ef56b
9ef56b
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-10
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
9ef56b
9ef56b
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-9
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9ef56b
9ef56b
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-8
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9ef56b
9ef56b
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-7
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9ef56b
9ef56b
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-6
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9ef56b
9ef56b
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-5
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9ef56b
9ef56b
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-4
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9ef56b
9ef56b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-3
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9ef56b
9ef56b
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.10-2
9ef56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9ef56b
9ef56b
* Wed Mar 7 2017 David Howells <dhowells@redhat.com> 0.10.10-1
9ef56b
- Stop using readdir_r [RH BZ 1423289].
9ef56b
9ef56b
* Wed Feb 17 2016 David Howells <dhowells@redhat.com> 0.10.9-1
9ef56b
- Fix name of directory in Makefile-generated tarball.
9ef56b
9ef56b
* Wed Feb 17 2016 David Howells <dhowells@redhat.com> 0.10.8-1
9ef56b
- Use systemd interaction macros in specfile installation sections [RH BZ 850053].
9ef56b
- Fix the service file to use /usr/sbin/ rather than /sbin/.
9ef56b
- Turn on RELRO and PIE build hardening in RPM builds.
9ef56b
9ef56b
* Wed Feb 3 2016 David Howells <dhowells@redhat.com> 0.10.7-1
9ef56b
- Call setgroups() before calling setuid() (caught by rpmlint).
9ef56b
9ef56b
* Wed Feb 3 2016 David Howells <dhowells@redhat.com> 0.10.6-1
9ef56b
- Note the correct licence.
9ef56b
- Handle malformed kernel status correctly.
9ef56b
- Permit culling to be disabled on the command line with the -N flag.
9ef56b
- Suspend culling when cache space is short and cache objects are pinned.
9ef56b
9ef56b
* Tue Dec 6 2011 David Howells <dhowells@redhat.com> 0.10.5-1
9ef56b
- Fix systemd service data according to review comments [RH BZ 754811].
9ef56b
9ef56b
* Tue Dec 6 2011 Dan HorĂ¡k <dan[at]danny.cz>
9ef56b
- use Fedora CFLAGS in build (fixes build on s390)
9ef56b
9ef56b
* Wed Nov 30 2011 David Howells <dhowells@redhat.com> 0.10.4-1
9ef56b
- Fix packaging of systemd service file [RH BZ 754811].
9ef56b
- Fix rpmlint complaints.
9ef56b
9ef56b
* Tue Nov 22 2011 David Howells <dhowells@redhat.com> 0.10.3-1
9ef56b
- Move to native systemd management [RH BZ 754811].
9ef56b
9ef56b
* Fri Jul 15 2011 David Howells <dhowells@redhat.com> 0.10.2-1
9ef56b
- Downgrade all the culling messages to debug level [RH BZ 660347].
9ef56b
9ef56b
* Fri Jun 18 2010 David Howells <dhowells@redhat.com>
9ef56b
- Fix the initscript to have the appropriate parseable description and exit codes.
9ef56b
9ef56b
* Wed Apr 28 2010 David Howells <dhowells@redhat.com>
9ef56b
- Fix the Requires line on selinux-policy-base to be >=, not =.
9ef56b
9ef56b
* Fri Apr 23 2010 David Howells <dhowells@redhat.com> 0.10.1-1
9ef56b
- The SELinux policies for cachefilesd now live in the selinux-policy RPM, so
9ef56b
  the cachefilesd-selinux RPM is now redundant.
9ef56b
- Move the default cache dir to /var/cache/fscache.
9ef56b
- Make the initscript do a restorecon when starting the cache to make sure the
9ef56b
  labels are correct.
9ef56b
- Fix a wildchar that should be a literal dot in the SELinux policy.
9ef56b
9ef56b
* Thu Feb 25 2010 David Howells <dhowells@redhat.com> 0.10-1
9ef56b
- Fix the SELinux policies for cachefilesd.
9ef56b
- Compress the installed policy files.
9ef56b
9ef56b
* Tue Feb 23 2010 David Howells <dhowells@redhat.com>
9ef56b
- Must include sys/stat.h to use stat() and co. [RH BZ 565135].
9ef56b
- Remove tail comments from functions.
9ef56b
9ef56b
* Thu Aug 9 2007 David Howells <dhowells@redhat.com> 0.9-1
9ef56b
- The cachefiles module no longer accepts directory fds on cull and inuse
9ef56b
  commands, but rather uses current working directory.
9ef56b
9ef56b
* Mon Jul 2 2007 David Howells <dhowells@redhat.com> 0.8-16
9ef56b
- Use stat64/fstatat64 to avoid EOVERFLOW errors from the kernel on large files.
9ef56b
9ef56b
* Tue Nov 14 2006 David Howells <dhowells@redhat.com> 0.8-15
9ef56b
- Made cachefilesd ask the kernel whether cullable objects are in use and omit
9ef56b
  them from the cull table if they are.
9ef56b
- Made the size of cachefilesd's culling tables configurable.
9ef56b
- Updated the manual pages.
9ef56b
9ef56b
* Mon Nov 13 2006 David Howells <dhowells@redhat.com> 0.8-14
9ef56b
- Documented SELinux interaction.
9ef56b
9ef56b
* Fri Nov 10 2006 David Howells <dhowells@redhat.com> 0.8-11
9ef56b
- Include SELinux policy for cachefilesd.
9ef56b
9ef56b
* Thu Oct 19 2006 Steve Dickson <steved@redhat.com> 0.7-3
9ef56b
- Fixed typo that was causing the howto.txt not to be installed.
9ef56b
9ef56b
* Tue Oct 17 2006 David Howells <dhowells@redhat.com> 0.8-1
9ef56b
- Use /dev/cachefiles if it present in preference to /proc/fs/cachefiles.
9ef56b
- Use poll rather than SIGURG on /dev/cachefilesd.
9ef56b
9ef56b
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 0.7-2
9ef56b
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
9ef56b
9ef56b
* Fri Sep 22 2006 Steve Dickson <steved@redhat.com> 0.7-1
9ef56b
- updated to 0.7 which adds the howto.txt
9ef56b
9ef56b
* Wed Aug 30 2006 Steve Dickson <steved@redhat.com> 0.6-1
9ef56b
- Fixed memory corruption problem
9ef56b
- Added the fcull/fstop/frun options
9ef56b
9ef56b
* Fri Aug 11 2006 Steve Dickson <steved@redhat.com> 0.5-1
9ef56b
- Upgraded to 0.5 which fixed initial scan problem when
9ef56b
  started on an empty cache (bz 202184)
9ef56b
9ef56b
* Tue Aug  8 2006 Steve Dickson <steved@redhat.com> 0.4-3
9ef56b
- Updated init.d script to look for cachefilesd in /sbin
9ef56b
- Added postun and preun rules so cachefilesd is stopped
9ef56b
  and started when the rpm is updated or removed.
9ef56b
9ef56b
* Tue Aug  8 2006 Jesse Keating <jkeating@redhat.com> 0.4-2
9ef56b
- require /sbin/chkconfig not /usr/bin/chkconfig
9ef56b
9ef56b
* Tue Aug  1 2006 David Howells <dhowells@redhat.com> 0.4-1
9ef56b
- Discard use of autotools
9ef56b
9ef56b
* Tue Aug  1 2006 Steve Dickson <steved@redhat.com> 0.3-3
9ef56b
- Added URL to source file
9ef56b
9ef56b
* Fri Jul 28 2006 Steve Dickson <steved@redhat.com> 0.3-2
9ef56b
- Added post and preun rules
9ef56b
- Changed init.d script to up right before portmapper.
9ef56b
9ef56b
* Fri Jun  9 2006 Steve Dickson <steved@redhat.com> 0.3-1
9ef56b
- Incorporated David Howells manual page updates
9ef56b
9ef56b
* Thu Jun  8 2006 Steve Dickson <steved@redhat.com> 0.2-1
9ef56b
- Made the daemon 64-bit application.
9ef56b
- Changed the syslog logging to log the daemon's PID
9ef56b
- Changed OS error logging to log errno number as well the string
9ef56b
9ef56b
* Sat Apr 22 2006 Steve Dickson <steved@redhat.com> 0.1-1
9ef56b
- Initial commit