Move to version 0.10.3
- Move to native systemd management [RH BZ 754811]. - Downgrade all the culling messages to debug level [RH BZ 660347]. - Fix the initscript to have the appropriate parseable description and exit codes. - Fix the Requires line on selinux-policy-base to be >=, not =.
This commit is contained in:
parent
860690f1f8
commit
f9067bfb8d
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ cachefilesd-0.7.tar.bz2
|
|||||||
cachefilesd-0.9.tar.bz2
|
cachefilesd-0.9.tar.bz2
|
||||||
cachefilesd-0.10.tar.bz2
|
cachefilesd-0.10.tar.bz2
|
||||||
cachefilesd-0.10.1.tar.bz2
|
cachefilesd-0.10.1.tar.bz2
|
||||||
|
/cachefilesd-0.10.3.tar.bz2
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
# % define buildid .local
|
||||||
|
|
||||||
Name: cachefilesd
|
Name: cachefilesd
|
||||||
Version: 0.10.1
|
Version: 0.10.3
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}%{?buildid}
|
||||||
Summary: CacheFiles userspace management daemon
|
Summary: CacheFiles userspace management daemon
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -8,9 +10,9 @@ URL: http://people.redhat.com/~dhowells/fscache/
|
|||||||
Source0: http://people.redhat.com/dhowells/fscache/cachefilesd-%{version}.tar.bz2
|
Source0: http://people.redhat.com/dhowells/fscache/cachefilesd-%{version}.tar.bz2
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: automake, autoconf
|
Requires(post): systemd-units
|
||||||
Requires(post): /sbin/chkconfig, /sbin/service
|
Requires(preun): systemd-units
|
||||||
Requires(preun): /sbin/chkconfig, /sbin/service
|
Requires(postun): systemd-units
|
||||||
Requires: selinux-policy-base >= 3.7.19-5
|
Requires: selinux-policy-base >= 3.7.19-5
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -35,7 +37,7 @@ make all
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}/sbin
|
mkdir -p %{buildroot}/sbin
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
|
mkdir -p %{buildroot}%{_unitdir}
|
||||||
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
|
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
|
||||||
mkdir -p %{buildroot}/usr/share/doc/%{name}-%{version}
|
mkdir -p %{buildroot}/usr/share/doc/%{name}-%{version}
|
||||||
mkdir -p %{buildroot}/usr/share/doc/%{name}-selinux-%{version}
|
mkdir -p %{buildroot}/usr/share/doc/%{name}-selinux-%{version}
|
||||||
@ -43,29 +45,30 @@ mkdir -p %{buildroot}%{_localstatedir}/cache/fscache
|
|||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
install -m 644 cachefilesd.conf %{buildroot}%{_sysconfdir}
|
install -m 644 cachefilesd.conf %{buildroot}%{_sysconfdir}
|
||||||
install -m 755 cachefilesd.initd %{buildroot}%{_sysconfdir}/rc.d/init.d/cachefilesd
|
install -m 644 cachefilesd.service %{buildroot}%{_unitdir}/cachefilesd.service
|
||||||
install -m 644 selinux/move-cache.txt %{buildroot}/usr/share/doc/%{name}-%{version}/
|
install -m 644 selinux/move-cache.txt %{buildroot}/usr/share/doc/%{name}-%{version}/
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/chkconfig --add %{name}
|
if [ $1 -eq 1 ] ; then
|
||||||
|
# Initial installation
|
||||||
if [ "$1" -ge 1 ]; then
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
/sbin/service cachefilesd condrestart > /dev/null
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
/sbin/service cachefilesd stop
|
# Package removal, not upgrade
|
||||||
/sbin/chkconfig --del %{name}
|
/bin/systemctl --no-reload disable cachefilesd.service > /dev/null 2>&1 || :
|
||||||
|
/bin/systemctl stop cachefilesd.service > /dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ]; then
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
# Fix up non-standard directory context
|
if [ $1 -ge 1 ] ; then
|
||||||
/sbin/restorecon -R %{_localstatedir}/cache/fscache || :
|
# Package upgrade, not uninstall
|
||||||
|
/bin/systemctl try-restart cachefilesd.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -77,19 +80,25 @@ fi
|
|||||||
%doc selinux/*.if
|
%doc selinux/*.if
|
||||||
%doc selinux/*.te
|
%doc selinux/*.te
|
||||||
%config(noreplace) %{_sysconfdir}/cachefilesd.conf
|
%config(noreplace) %{_sysconfdir}/cachefilesd.conf
|
||||||
%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/cachefilesd
|
|
||||||
/sbin/*
|
/sbin/*
|
||||||
|
%{_unitdir}/*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
%{_localstatedir}/cache/fscache
|
%{_localstatedir}/cache/fscache
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-3
|
* Tue Nov 22 2011 David Howells <dhowells@redhat.com> 0.10.3-1
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Move to native systemd management [RH BZ 754811].
|
||||||
|
|
||||||
* Wed Apr 28 2010 Steve Dickson <steved@redhat.com>
|
* Fri Jul 15 2011 David Howells <dhowells@redhat.com> 0.10.2-1
|
||||||
- SELinux: Fix the RPM Requires dependency on selinux-policy-base
|
- Downgrade all the culling messages to debug level [RH BZ 660347].
|
||||||
|
|
||||||
* Fri Apr 23 2010 David Howells <dhowells@redhat.com>
|
* Fri Jun 18 2010 David Howells <dhowells@redhat.com>
|
||||||
|
- Fix the initscript to have the appropriate parseable description and exit codes.
|
||||||
|
|
||||||
|
* Wed Apr 28 2010 David Howells <dhowells@redhat.com>
|
||||||
|
- Fix the Requires line on selinux-policy-base to be >=, not =.
|
||||||
|
|
||||||
|
* Fri Apr 23 2010 David Howells <dhowells@redhat.com> 0.10.1-1
|
||||||
- The SELinux policies for cachefilesd now live in the selinux-policy RPM, so
|
- The SELinux policies for cachefilesd now live in the selinux-policy RPM, so
|
||||||
the cachefilesd-selinux RPM is now redundant.
|
the cachefilesd-selinux RPM is now redundant.
|
||||||
- Move the default cache dir to /var/cache/fscache.
|
- Move the default cache dir to /var/cache/fscache.
|
||||||
@ -97,7 +106,7 @@ fi
|
|||||||
labels are correct.
|
labels are correct.
|
||||||
- Fix a wildchar that should be a literal dot in the SELinux policy.
|
- Fix a wildchar that should be a literal dot in the SELinux policy.
|
||||||
|
|
||||||
* Thu Feb 25 2010 David Howells <dhowells@redhat.com>
|
* Thu Feb 25 2010 David Howells <dhowells@redhat.com> 0.10-1
|
||||||
- Fix the SELinux policies for cachefilesd.
|
- Fix the SELinux policies for cachefilesd.
|
||||||
- Compress the installed policy files.
|
- Compress the installed policy files.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user