Author: aredridel Date: Thu Apr 5 04:24:44 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - initial addition of initscripts
---- Files affected: SPECS: cman.spec (1.15 -> 1.16) ---- Diffs: ================================================================ Index: SPECS/cman.spec diff -u SPECS/cman.spec:1.15 SPECS/cman.spec:1.16 --- SPECS/cman.spec:1.15 Mon Apr 2 20:21:06 2007 +++ SPECS/cman.spec Thu Apr 5 06:24:39 2007 @@ -12,6 +12,8 @@ Group: Applications/System Source0: ftp://sources.redhat.com/pub/cluster/releases/cluster-%{version}.tar.gz # Source0-md5: 2ef3f4ba9d3c87b50adfc9b406171085 +Source1: %{name}.init +Source2: %{name}.sysconfig URL: http://sources.redhat.com/cluster/cman/ %{!?with_libonly:BuildRequires: ccs-devel} BuildRequires: openais-devel @@ -89,19 +91,34 @@ %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{/etc/sysconfig,/etc/rc.d/init.d} cd %{name} %{__make} %{?with_libonly:-C lib} install \ DESTDIR=$RPM_BUILD_ROOT +install %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} +install %SOURCE2 $RPM_BUILD_ROOT/etc/sysconfig/%{name} + %clean rm -rf $RPM_BUILD_ROOT -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +/sbin/chkconfig --add %{name} + %postun -p /sbin/ldconfig +%preun +if [ "$1" = "0" ]; then + %service -q %{name} stop + /sbin/chkconfig --del %{name} +fi + %files %defattr(644,root,root,755) +%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} +%attr(754,root,root) /etc/rc.d/init.d/%{name} %{!?with_libonly:%attr(755,root,root) %{_sbindir}/*} %attr(755,root,root) %{_libdir}/libcman.so.*.* %if %{without libonly} @@ -130,6 +147,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.16 2007/04/05 04:24:39 aredridel +- initial addition of initscripts + Revision 1.15 2007/04/02 18:21:06 zbyniu - package service_cman.lcrso ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/cman.spec?r1=1.15&r2=1.16&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
