Author: aredridel Date: Tue Oct 17 00:50:22 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - add initscripts
---- Files affected: SPECS: ocfs2-tools.spec (1.3 -> 1.4) ---- Diffs: ================================================================ Index: SPECS/ocfs2-tools.spec diff -u SPECS/ocfs2-tools.spec:1.3 SPECS/ocfs2-tools.spec:1.4 --- SPECS/ocfs2-tools.spec:1.3 Tue Jun 20 21:11:13 2006 +++ SPECS/ocfs2-tools.spec Tue Oct 17 02:50:15 2006 @@ -8,6 +8,8 @@ Group: Applications/System Source0: http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.2/%{name}-%{version}.tar.gz # Source0-md5: 62c24ae0f3016eb5c15f0dfc90fe956a +Source1: ocfs2.init +Source2: o2cb.init URL: http://oss.oracle.com/projects/ocfs2-tools/ BuildRequires: e2fsprogs-devel BuildRequires: glib2-devel @@ -49,21 +51,41 @@ %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc/rc.d/init.d %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ocfs2 +install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb + %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} %py_comp $RPM_BUILD_ROOT%{py_sitedir} %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post +/sbin/ldconfig +/sbin/chkconfig --add o2cb +/sbin/chkconfig --add %{name} +%service o2cb restart +%service %{name} restart + +%preun +if [ "$1" = "0" ]; then + %service -q %{name} stop + %service -q o2cb stop + /sbin/chkconfig --del %{name} + /sbin/chkconfig --del o2cb +fi + %files %defattr(644,root,root,755) +%attr(754,root,root) /etc/rc.d/init.d/o2cb +%attr(754,root,root) /etc/rc.d/init.d/ocfs2 %attr(755,root,root) /sbin/* %{_mandir}/man8/* @@ -80,6 +102,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.4 2006/10/17 00:50:15 aredridel +- add initscripts + Revision 1.3 2006/06/20 19:11:13 arekm - up to 1.2.1 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/ocfs2-tools.spec?r1=1.3&r2=1.4&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
