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