SPECS: rlocate.spec - added init script (temporary from redhat)
paszczus
paszczus at pld-linux.org
Mon Aug 22 16:50:34 CEST 2005
Author: paszczus Date: Mon Aug 22 14:50:34 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added init script (temporary from redhat)
---- Files affected:
SPECS:
rlocate.spec (1.27 -> 1.28)
---- Diffs:
================================================================
Index: SPECS/rlocate.spec
diff -u SPECS/rlocate.spec:1.27 SPECS/rlocate.spec:1.28
--- SPECS/rlocate.spec:1.27 Mon Aug 22 16:43:26 2005
+++ SPECS/rlocate.spec Mon Aug 22 16:50:29 2005
@@ -35,10 +35,11 @@
%endif
BuildRequires: libtool
BuildRequires: perl-base
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.228
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires(postun): /usr/sbin/groupdel
+Requires(post,preun): /sbin/chkconfig
Requires: crondaemon
Provides: group(rlocate)
Conflicts: slocate
@@ -159,6 +160,8 @@
%install
rm -rf $RPM_BUILD_ROOT
+install contrib/rlocate.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+
%if %{with userspace}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -197,6 +200,16 @@
%groupremove rlocate
fi
+%post init
+/sbin/chkconfig --add %{name}
+%service %{name} restart
+
+%preun init
+if [ "$1" = "0" ]; then
+ %service -q %{name} stop
+ /sbin/chkconfig --del %{name}
+fi
+
%if %{with kernel}
%files -n kernel-misc-%{name}
%defattr(644,root,root,755)
@@ -211,6 +224,9 @@
%endif
%endif
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+
%if %{with userspace}
%files
%defattr(644,root,root,755)
@@ -239,6 +255,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.28 2005/08/22 14:50:29 paszczus
+- added init script (temporary from redhat)
+
Revision 1.27 2005/08/22 14:43:26 paszczus
- updated to 0.3.2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/rlocate.spec?r1=1.27&r2=1.28&f=u
More information about the pld-cvs-commit
mailing list