SPECS: multipath-tools.spec - add kpartx udev files fix - restart ...

glen glen at pld-linux.org
Fri Oct 26 14:04:29 CEST 2007


Author: glen                         Date: Fri Oct 26 12:04:29 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add kpartx udev files fix
- restart multipathd normal way (i see no reason why not)

---- Files affected:
SPECS:
   multipath-tools.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: SPECS/multipath-tools.spec
diff -u SPECS/multipath-tools.spec:1.35 SPECS/multipath-tools.spec:1.36
--- SPECS/multipath-tools.spec:1.35	Thu Oct 25 18:57:25 2007
+++ SPECS/multipath-tools.spec	Fri Oct 26 14:04:23 2007
@@ -6,13 +6,14 @@
 Summary(pl.UTF-8):	Implementacja wielotrasowego dostępu do zasobów przy użyciu device-mappera
 Name:		multipath-tools
 Version:	0.4.8
-Release:	0.6
+Release:	0.7
 License:	GPL v2
 Group:		Base
 Source0:	http://christophe.varoqui.free.fr/multipath-tools/%{name}-%{version}.tar.bz2
 # Source0-md5:	3563b863b408d07c46929b6e8c2c248c
 URL:		http://christophe.varoqui.free.fr/
 Patch0:		%{name}-llh.patch
+Patch1:		%{name}-kpartx-udev.patch
 # was not used - is OPTIONS+="last_rule" stille needed?
 #Patch1:	%{name}-udev.patch
 Source1:	multipathd.init
@@ -62,6 +63,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 mv kpartx/README README.kpartx
 %{__sed} -i -e 's,/lib/libdevmapper.so,/%{_lib}/libdevmapper.so,' libmultipath/Makefile
 
@@ -97,16 +99,9 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-if [ -f /etc/rc.d/init.d/multipathd ] && dmsetup table | grep -q multipath; then
-	service multipathd stop
-fi
-
 %post
 /sbin/chkconfig --add multipathd
-if dmsetup table | grep -q multipath; then
-	service multipathd start
-fi
+%service multipathd restart
 
 %preun
 if [ "$1" = "0" ]; then
@@ -148,6 +143,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2007/10/26 12:04:23  glen
+- add kpartx udev files fix
+- restart multipathd normal way (i see no reason why not)
+
 Revision 1.35  2007/10/25 16:57:25  glen
 - require libaio in /%{_lib}
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/multipath-tools.spec?r1=1.35&r2=1.36&f=u



More information about the pld-cvs-commit mailing list