2006-04-22 12:19:27 +00:00
|
|
|
Name: cachefilesd
|
2006-08-07 13:47:33 +00:00
|
|
|
Version: 0.4
|
2006-08-08 21:43:24 +00:00
|
|
|
Release: 3%{?dist}
|
2006-04-22 12:19:27 +00:00
|
|
|
Summary: CacheFiles userspace management daemon
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: GPL
|
2006-08-07 13:47:33 +00:00
|
|
|
URL: http://people.redhat.com/~dhowells/fscache/
|
|
|
|
Source0: http://people.redhat.com/dhowells/fscache/cachefilesd-0.4.tar.bz2
|
2006-08-02 01:58:30 +00:00
|
|
|
|
2006-07-28 16:37:41 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
2006-07-28 19:33:01 +00:00
|
|
|
BuildRequires: automake, autoconf
|
2006-08-08 21:44:29 +00:00
|
|
|
Requires(post): /sbin/chkconfig, /sbin/service
|
|
|
|
Requires(preun): /sbin/chkconfig, /sbin/service
|
2006-04-22 12:19:27 +00:00
|
|
|
|
2006-08-08 21:43:24 +00:00
|
|
|
Patch1: cachefilesd-0.4-initscript.patch
|
|
|
|
|
2006-04-22 12:19:27 +00:00
|
|
|
%description
|
|
|
|
The cachefilesd daemon manages the caching files and directory that are
|
|
|
|
that are used by network filesystems such a AFS and NFS to
|
|
|
|
do persistent caching to the local disk.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
2006-08-08 21:43:24 +00:00
|
|
|
%patch1 -p1
|
|
|
|
|
2006-04-22 12:19:27 +00:00
|
|
|
%build
|
|
|
|
%ifarch s390 s390x
|
|
|
|
PIE="-fPIE"
|
|
|
|
%else
|
|
|
|
PIE="-fpie"
|
|
|
|
%endif
|
|
|
|
export PIE
|
|
|
|
CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
|
|
|
|
|
|
|
|
make all
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
|
|
|
|
make DESTDIR=%{buildroot} install
|
2006-07-28 16:37:41 +00:00
|
|
|
|
2006-08-07 13:47:33 +00:00
|
|
|
install -m 644 cachefilesd.conf %{buildroot}%{_sysconfdir}
|
|
|
|
install -m 755 cachefilesd.initd %{buildroot}%{_sysconfdir}/rc.d/init.d/cachefilesd
|
2006-04-22 12:19:27 +00:00
|
|
|
|
|
|
|
%clean
|
2006-08-02 01:58:30 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-04-22 12:19:27 +00:00
|
|
|
|
|
|
|
%post
|
2006-07-28 18:17:18 +00:00
|
|
|
/sbin/chkconfig --add %{name}
|
2006-04-22 12:19:27 +00:00
|
|
|
|
2006-07-28 16:37:41 +00:00
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
2006-08-08 21:43:24 +00:00
|
|
|
/sbin/service cachefilesd stop
|
2006-07-28 18:17:18 +00:00
|
|
|
/sbin/chkconfig --del %{name}
|
2006-07-28 16:37:41 +00:00
|
|
|
fi
|
2006-04-22 12:19:27 +00:00
|
|
|
|
2006-08-08 21:43:24 +00:00
|
|
|
%postun
|
|
|
|
if [ "$1" -ge 1 ]; then
|
|
|
|
/sbin/service cachefilesd condrestart > /dev/null
|
|
|
|
fi
|
|
|
|
|
2006-04-22 12:19:27 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2006-08-07 13:47:33 +00:00
|
|
|
%doc README
|
2006-04-22 12:19:27 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/cachefilesd.conf
|
2006-08-07 13:47:33 +00:00
|
|
|
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/cachefilesd
|
|
|
|
/sbin/*
|
2006-04-22 12:19:27 +00:00
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
%changelog
|
2006-08-08 21:43:24 +00:00
|
|
|
* Tue Aug 8 2006 Steve Dickson <steved@redhat.com> 0.4-3
|
|
|
|
- Updated init.d script to look for cachefilesd in /sbin
|
|
|
|
- Added postun and preun rules so cachefilesd is stopped
|
|
|
|
and started when the rpm is updated or removed.
|
|
|
|
|
2006-08-07 22:05:37 +00:00
|
|
|
* Tue Aug 7 2006 Jesse Keating <jkeating@redhat.com> 0.4-2
|
|
|
|
- require /sbin/chkconfig not /usr/bin/chkconfig
|
|
|
|
|
2006-08-07 13:47:33 +00:00
|
|
|
* Tue Aug 1 2006 David Howells <dhowells@redhat.com> 0.4-1
|
|
|
|
- Discard use of autotools
|
|
|
|
|
2006-08-01 17:43:47 +00:00
|
|
|
* Tue Aug 1 2006 Steve Dickson <steved@redhat.com> 0.3-3
|
|
|
|
- Added URL to source file
|
|
|
|
|
2006-07-28 16:37:41 +00:00
|
|
|
* Fri Jul 28 2006 Steve Dickson <steved@redhat.com> 0.3-2
|
|
|
|
- Added post and preun rules
|
2006-07-28 18:39:56 +00:00
|
|
|
- Changed init.d script to up right before portmapper.
|
2006-07-28 16:37:41 +00:00
|
|
|
|
2006-06-09 14:48:27 +00:00
|
|
|
* Fri Jun 9 2006 Steve Dickson <steved@redhat.com> 0.3-1
|
|
|
|
- Incorporated David Howells manual page updates
|
|
|
|
|
2006-06-08 17:11:51 +00:00
|
|
|
* Thu Jun 8 2006 Steve Dickson <steved@redhat.com> 0.2-1
|
|
|
|
- Made the daemon 64-bit application.
|
|
|
|
- Changed the syslog logging to log the daemon's PID
|
|
|
|
- Changed OS error logging to log errno number as well the string
|
|
|
|
|
2006-04-22 12:19:27 +00:00
|
|
|
* Sat Apr 22 2006 Steve Dickson <steved@redhat.com> 0.1-1
|
|
|
|
- Initial commit
|
|
|
|
|