Added post and preun rules

This commit is contained in:
Steve Dickson 2006-07-28 16:37:41 +00:00
parent 7041612c9f
commit 47ada2868f

View File

@ -1,10 +1,10 @@
Name: cachefilesd
Version: 0.3
Release: 1
Release: 2%{?dist}
Summary: CacheFiles userspace management daemon
Group: System Environment/Daemons
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
Source0: cachefilesd-0.3.tar.bz2
%description
@ -43,14 +43,19 @@ mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
make DESTDIR=%{buildroot} install
install -m 644 etc/cachefilesd.conf %{buildroot}%{_sysconfdir}
install -m 755 etc/cachefilesd.initd %{buildroot}%{_sysconfdir}/rc.d/init.d/cachefilesd
%clean
%post
/sbin/chkconfig --add ${name}
%postun
%preun
if [ $1 -eq 0 ]; then
/sbin/chkconfig --del ${name}
fi
%files
@ -62,6 +67,9 @@ install -m 755 etc/cachefilesd.initd %{buildroot}%{_sysconfdir}/rc.d/init.d/cach
%{_mandir}/*/*
%changelog
* Fri Jul 28 2006 Steve Dickson <steved@redhat.com> 0.3-2
- Added post and preun rules
* Fri Jun 9 2006 Steve Dickson <steved@redhat.com> 0.3-1
- Incorporated David Howells manual page updates