SPECS: multipath-tools.spec - chkconfig
glen
glen at pld-linux.org
Wed Oct 24 17:11:27 CEST 2007
Author: glen Date: Wed Oct 24 15:11:27 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- chkconfig
---- Files affected:
SPECS:
multipath-tools.spec (1.31 -> 1.32)
---- Diffs:
================================================================
Index: SPECS/multipath-tools.spec
diff -u SPECS/multipath-tools.spec:1.31 SPECS/multipath-tools.spec:1.32
--- SPECS/multipath-tools.spec:1.31 Tue Oct 23 18:37:54 2007
+++ SPECS/multipath-tools.spec Wed Oct 24 17:11:22 2007
@@ -6,7 +6,7 @@
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.2
+Release: 0.3
License: GPL v2
Group: Base
Source0: http://christophe.varoqui.free.fr/multipath-tools/%{name}-%{version}.tar.bz2
@@ -14,7 +14,7 @@
URL: http://christophe.varoqui.free.fr/
Patch0: %{name}-llh.patch
# was not used - is OPTIONS+="last_rule" stille needed?
-#Patch1: %{name}-udev.patch
+#Patch1: %{name}-udev.patch
Source1: multipathd.init
BuildRequires: device-mapper-devel >= 1.02.07
BuildRequires: libaio-devel
@@ -26,6 +26,8 @@
BuildRequires: device-mapper-initrd-devel
BuildRequires: klibc-static
%endif
+Requires(post,preun): /sbin/chkconfig
+Requires: rc-scripts
Conflicts: udev < 1:070-4.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -99,10 +101,17 @@
fi
%post
+/sbin/chkconfig --add q2ded
if dmsetup table | grep -q multipath; then
service multipathd start
fi
+%preun
+if [ "$1" = "0" ]; then
+ %service multipathd stop
+ /sbin/chkconfig --del q2ded
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHOR ChangeLog FAQ README* TODO
@@ -137,6 +146,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.32 2007/10/24 15:11:22 glen
+- chkconfig
+
Revision 1.31 2007/10/23 16:37:54 glen
- try initrd building
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/multipath-tools.spec?r1=1.31&r2=1.32&f=u
More information about the pld-cvs-commit
mailing list