From 47ada2868f459781aa138a8e71df86fb47182dde Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Fri, 28 Jul 2006 16:37:41 +0000 Subject: [PATCH] Added post and preun rules --- cachefilesd.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/cachefilesd.spec b/cachefilesd.spec index 1cad2bf..5ef10e2 100644 --- a/cachefilesd.spec +++ b/cachefilesd.spec @@ -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 0.3-2 +- Added post and preun rules + * Fri Jun 9 2006 Steve Dickson 0.3-1 - Incorporated David Howells manual page updates