Blame SPECS/cachefilesd.spec

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