forked from pool/multipath-tools
344 lines
12 KiB
RPMSpec
344 lines
12 KiB
RPMSpec
#
|
|
# spec file for package multipath-tools (Version 0.4.7)
|
|
#
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
Name: multipath-tools
|
|
BuildRequires: device-mapper-devel readline-devel
|
|
URL: http://christophe.varoqui.free.fr/
|
|
License: BSD License and BSD-like, GNU General Public License (GPL)
|
|
Group: System/Base
|
|
Requires: device-mapper kpartx
|
|
%if %suse_version > 800
|
|
PreReq: %insserv_prereq
|
|
%endif
|
|
Autoreqprov: on
|
|
Version: 0.4.7
|
|
Release: 50
|
|
Summary: Tools to Manage Multipathed Devices with the device-mapper
|
|
Source: multipath-tools-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Patch0: %{name}-git-update.patch
|
|
Patch1: %{name}-local-fixes
|
|
Patch10: %{name}-suse-update
|
|
|
|
%description
|
|
This package provides the tools to manage multipathed devices by
|
|
instructing the device-mapper multipath module what to do. The tools
|
|
are:
|
|
|
|
- multipath: scans the system for multipathed devices, assembles
|
|
them, and updates the device-mapper's maps
|
|
|
|
- multipathd: waits for maps events then execs multipath
|
|
|
|
- devmap-name: provides a meaningful device name to udev for devmaps
|
|
|
|
- kpartx: maps linear devmaps to device partitions, which makes
|
|
multipath maps partionable
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Christophe Varoqui <christophe.varoqui@free.fr>
|
|
|
|
%package -n kpartx
|
|
Summary: Manages partition tables on device-mapper devices
|
|
Group: System/Base
|
|
|
|
%description -n kpartx
|
|
The kpartx program maps linear devmaps to device partitions, which
|
|
makes multipath maps partionable.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Christophe Varoqui <christophe.varoqui@free.fr>
|
|
|
|
%prep
|
|
%setup -n multipath-tools-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch10 -p1
|
|
|
|
%build
|
|
make OPTFLAGS="$RPM_OPT_FLAGS" BUILD=glibc
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
install -m 744 multipath/multipath.init.suse $RPM_BUILD_ROOT/etc/init.d/boot.multipath
|
|
install -m 744 multipathd/multipathd.init.suse $RPM_BUILD_ROOT/etc/init.d/multipathd
|
|
mkdir -p $RPM_BUILD_ROOT/var/cache/multipath/
|
|
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != / ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
|
|
%post
|
|
#%{insserv /etc/init.d/multipathd}
|
|
#%{fillup_and_insserv boot.multipath}
|
|
|
|
%postun
|
|
%{insserv_cleanup}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHOR COPYING README ChangeLog
|
|
%doc multipath.conf*
|
|
%dir /etc/udev
|
|
%dir /etc/udev/rules.d
|
|
%config /etc/init.d/multipathd
|
|
%config /etc/init.d/boot.multipath
|
|
%config /etc/udev/rules.d/71-multipath.rules
|
|
/sbin/devmap_name
|
|
/sbin/multipath
|
|
/sbin/multipathd
|
|
/sbin/mpath_prio_netapp
|
|
/sbin/mpath_prio_balance_units
|
|
/sbin/mpath_prio_random
|
|
/sbin/mpath_prio_alua
|
|
/sbin/mpath_prio_emc
|
|
/sbin/mpath_prio_tpc
|
|
/sbin/mpath_prio_hds_modular
|
|
/sbin/mpath_prio_hp_sw
|
|
%attr (0700, root, root) /var/cache/multipath
|
|
%{_mandir}/man8/devmap_name.8*
|
|
%{_mandir}/man8/multipath.8*
|
|
%{_mandir}/man5/multipath.conf.5*
|
|
%{_mandir}/man8/multipathd.8*
|
|
%{_mandir}/man8/mpath_prio_alua.8*
|
|
|
|
%files -n kpartx
|
|
%defattr(-,root,root)
|
|
%dir /etc/udev
|
|
%dir /etc/udev/rules.d
|
|
%config /etc/udev/rules.d/70-kpartx.rules
|
|
/sbin/kpartx
|
|
/sbin/kpartx_id
|
|
%{_mandir}/man8/kpartx.8*
|
|
|
|
%changelog
|
|
* Mon May 21 2007 - hare@suse.de
|
|
- Rework udev handling
|
|
- Split off kpartx package
|
|
* Mon May 14 2007 - hare@suse.de
|
|
- Merge in latest fixes from upstream
|
|
- Add all SuSE specific files to git repository.
|
|
* Fri May 11 2007 - hare@suse.de
|
|
- Include latest changes from upstream
|
|
- Remove libsysfs (242766)
|
|
- Handle extended partitions for kpartx
|
|
* Mon Dec 04 2006 - dmueller@suse.de
|
|
- don't build as root
|
|
* Fri Nov 17 2006 - hare@suse.de
|
|
- integrate upstream fixes
|
|
- update udev rule for YaST2 dmraid support (217807])
|
|
* Mon Nov 06 2006 - hare@suse.de
|
|
- Really fixup udev rule (216167).
|
|
* Fri Oct 20 2006 - ro@suse.de
|
|
- make it build
|
|
* Mon Sep 25 2006 - hare@suse.de
|
|
- update to latest fixes from git tree
|
|
- remove fixes integrated in upstream
|
|
- fixup udev rule (#203688)
|
|
* Thu Sep 14 2006 - ro@suse.de
|
|
- use device-mapper-devel in BuildRequires
|
|
* Thu Aug 31 2006 - hare@suse.de
|
|
- include latest fixes from git tree
|
|
- update kpartx_id and udev rules to work
|
|
with dmraid.
|
|
- Fix return value for multipath -l
|
|
* Thu Aug 17 2006 - ro@suse.de
|
|
- workaround problem in git-patch
|
|
normal patch can't do a "rename", so copy file first
|
|
* Tue Jul 11 2006 - hare@suse.de
|
|
- Update to official version 0.4.7
|
|
- Refactor git update to apply to 0.4.7
|
|
* Wed Jun 28 2006 - hare@suse.de
|
|
- Remove blacklisting of dasd device node,
|
|
use product_blacklist instead (#188688)
|
|
* Mon Jun 12 2006 - hare@suse.de
|
|
- Add 72-multipath-compat.rules to create 'by-name'
|
|
symlink again for compability (#183663)
|
|
* Fri Jun 02 2006 - hare@suse.de
|
|
- Merge in fixed from upstream
|
|
- Set device-mapper name correctly (#181127)
|
|
* Thu Jun 01 2006 - hare@suse.de
|
|
- Merge in fixes from upstream
|
|
- Fixup aliasing handling
|
|
- Fix string length in pp_alua
|
|
- Use correct regexp patterns for hwtable (#177842)
|
|
- Fixup 71-multipath.rules to work correctly with the
|
|
updated device-mapper online/offline events (#176516 - LTC23961)
|
|
- Add kpartx_id for the updated 71-multipath.rules
|
|
* Mon May 22 2006 - schwab@suse.de
|
|
- Don't strip binaries.
|
|
* Tue May 02 2006 - hare@suse.de
|
|
- Merge in fixes from upstream
|
|
- Merged local patches
|
|
- Added hds_modular prioritizer
|
|
- Remove merged patches
|
|
- Allow for setting of maximum number of open files (#149979)
|
|
- Implement 'stop' for init scripts
|
|
* Mon Apr 10 2006 - hare@suse.de
|
|
- Lowering priority for pp_tpc
|
|
- Split off DS6000 to fixup priority handler (#161347)
|
|
* Wed Apr 05 2006 - hare@suse.de
|
|
- Disable debug messages in pp_tpc.
|
|
* Wed Mar 29 2006 - hare@suse.de
|
|
- Explicitely create partitions at boot time (#159927)
|
|
* Thu Mar 23 2006 - hare@suse.de
|
|
- Add hwtable entry for IBM 3526.
|
|
* Tue Mar 14 2006 - hare@suse.de
|
|
- Fix another typo in mpath_id.
|
|
* Tue Mar 14 2006 - hare@suse.de
|
|
- Fix typo in mpath_id.
|
|
* Mon Mar 13 2006 - hare@suse.de
|
|
- Fix autobuild warnings.
|
|
- Include some minor fixed from upstream.
|
|
* Thu Mar 09 2006 - hare@suse.de
|
|
- Add mpath_id program to call kpartx only on multipathed
|
|
devices (#149995 - LTC21557).
|
|
- Include latest fixes from upstream.
|
|
* Wed Feb 08 2006 - hare@suse.de
|
|
- Add device blacklisting (#85778)
|
|
- Further manpage installation fixes (#146179, #147053, #147911)
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Thu Jan 19 2006 - hare@suse.de
|
|
- Fix manpage installation.
|
|
* Tue Jan 17 2006 - hare@suse.de
|
|
- Include latest git fixes
|
|
- Remove old patches which are now upstream
|
|
- Add new hwtable entry for shark (#142176)
|
|
* Fri Dec 16 2005 - hare@suse.de
|
|
- Fix dependencies for /etc/init.d/boot.multipath
|
|
- Fix kpartx rules to generate proper partition names.
|
|
* Wed Dec 07 2005 - hare@suse.de
|
|
- Update to multipath-tools-0.4.6
|
|
- Include latest git fixes
|
|
- Port patches from SLES9 SP3
|
|
* Mon Oct 31 2005 - dmueller@suse.de
|
|
- don't build as root
|
|
* Mon Sep 05 2005 - matz@suse.de
|
|
- Fix broken usage of self-defined syscall [#114933].
|
|
* Fri Aug 26 2005 - hare@suse.de
|
|
- Fix kpartx DASD partition support
|
|
* Thu Aug 04 2005 - hare@suse.de
|
|
- Add 'directio' path checker
|
|
- Add support for S/390 DASD (PAV enablement).
|
|
- Update to package from SLES9
|
|
* Thu Jun 23 2005 - lmb@suse.de
|
|
- LUs with a WWN containing "fd" were blacklisted (#93562).
|
|
* Thu Jun 16 2005 - lmb@suse.de
|
|
- Remove stray newline character from /dev/disk/by-name/ entries
|
|
(#85798, #86763)
|
|
- Clear /dev/disk/by-name/ on boot. (#85978)
|
|
- scsi_id now handles EMC Symmetrix; remove work-around for #86760.
|
|
* Wed Jun 15 2005 - meissner@suse.de
|
|
- use RPM_OPT_FLAGS.
|
|
* Mon Jun 13 2005 - ro@suse.de
|
|
- neededforbuild: udev -> sysfsutils
|
|
* Tue Jun 07 2005 - lmb@suse.de
|
|
- Import fixes from upstream.
|
|
- Hardware table updates for IBM ESS and EMC CX (#81688).
|
|
- Reinstate paths correctly after failure/restore cycle (#85781,
|
|
[#86444]).
|
|
- Create map names again and fix segfault in devmap_name (#85798).
|
|
* Tue May 24 2005 - hare@suse.de
|
|
- Fix segmentation fault with EMC Symmetrix (#85614).
|
|
- Update EMC Symmetrix entry in hwtable.
|
|
* Mon May 23 2005 - hare@suse.de
|
|
- Add hwtable entry for IBM DS6000. (#63903)
|
|
- Do a rescan for devices if multipath command line option is set.
|
|
* Fri May 20 2005 - hare@suse.de
|
|
- Fix devmap_name to use mapname and return proper status (#84748).
|
|
* Thu May 12 2005 - lmb@suse.de
|
|
- Don't complain about default prio callout command (#81695).
|
|
- Reflect recent changes in boot.multipath as well as multipathd init
|
|
scripts.
|
|
- Actually fail paths when they are detected to be failed by multipathd
|
|
(#81679).
|
|
- killproc/startproc/checkproc can't be used with multipathd because of
|
|
the way the daemon switches to its own namespace (#80443).
|
|
* Mon May 09 2005 - hare@suse.de
|
|
- Use proper path checker for SGI TPC arrays.
|
|
- Update hwtable entries for SGI TP9400 and SGI TP9500.
|
|
- Write correct PID file (#80443).
|
|
* Mon Apr 25 2005 - lmb@suse.de
|
|
- Update to 0.4.4: pp_alua now licensed as GPL (#78628).
|
|
- multipath-tools-oom-adj.patch: oom_adj to a valid value.
|
|
* Thu Apr 21 2005 - lmb@suse.de
|
|
- Update to 0.4.4-pre18 which fixes the multipathd to initialize
|
|
correctly in the absence of a configuration file (79239).
|
|
* Wed Apr 20 2005 - lmb@suse.de
|
|
- Put multipath cache back into /dev because /var might not be mounted.
|
|
- Correct hwtable entry SGI TP9400, TP9500 and IBM 3542.
|
|
* Wed Apr 20 2005 - lmb@suse.de
|
|
- Update to 0.4.4-pre16
|
|
- Build against device-mapper.1.01.xx correctly.
|
|
* Tue Apr 19 2005 - lmb@suse.de
|
|
- Build w/o device-mapper update again.
|
|
* Mon Apr 18 2005 - lmb@suse.de
|
|
- Update to 0.4.4-pre14
|
|
- Build versus device-mapper-1.01.01 to prevent deadlocks in
|
|
kernel-space.
|
|
- Fix devmap_name to work with udev.
|
|
- Fix startup of multipathd w/o configuration file present.
|
|
* Fri Apr 15 2005 - lmb@suse.de
|
|
- Add path priority checker for EMC CLARiiON and make necessary
|
|
adjustments so that it gets called by default (#62491).
|
|
- Set the default udev dir to '/dev'
|
|
* Fri Apr 15 2005 - hare@suse.de
|
|
- Fix to allocate default strings (#78056)
|
|
- Fix default entry for TPC9500.
|
|
* Wed Apr 13 2005 - hare@suse.de
|
|
- Added pp_alua path priority checker.
|
|
- Update to multipath-tools-0.4.4-pre12.
|
|
* Mon Apr 11 2005 - hare@suse.de
|
|
- Update to multipath-tools-0.4.4-pre10.
|
|
* Fri Apr 08 2005 - hare@suse.de
|
|
- Update multipath to handle only true multipath devices (#62491).
|
|
- Update kpartx to use the device mapper target name if available.
|
|
- Add boot.multipath script for early set up of multipath targets.
|
|
* Thu Mar 31 2005 - hare@suse.de
|
|
- Update devmap_name to select targets by table type (#62493).
|
|
* Tue Jan 25 2005 - lmb@suse.de
|
|
- Update to 0.4.2 and fix some bugs + add support for the extended DM
|
|
multipath kernel module. (#47491)
|
|
* Thu Nov 11 2004 - hare@suse.de
|
|
- Fix bugs to make it work on S/390 (#47491).
|
|
* Fri Nov 05 2004 - hare@suse.de
|
|
- Update to version 0.3.6 (#47491).
|
|
- Fix multipath init script
|
|
- Install configuration file example.
|
|
- Install multipathd in /sbin instead of /usr/bin.
|
|
* Tue Jul 20 2004 - fehr@suse.de
|
|
- updated README mp-tools-issues.pdf (see #40640)
|
|
* Wed Jun 09 2004 - fehr@suse.de
|
|
- added pdf with README to package (see #40640)
|
|
* Thu Jun 03 2004 - fehr@suse.de
|
|
- updated to version 0.2.1
|
|
- removed patches zero-currpath.patch and rm-newline-in-name.patch
|
|
already contained in 0.2.1
|
|
* Thu Jun 03 2004 - fehr@suse.de
|
|
- added patch zero-currpath.patch (see bugzilla #40640)
|
|
* Wed May 26 2004 - uli@suse.de
|
|
- fixed to build on s390x
|
|
* Wed May 26 2004 - fehr@suse.de
|
|
- added patch rm-newline-in-name.patch (see bugzilla #40640)
|
|
* Tue May 25 2004 - fehr@suse.de
|
|
- created initial version of a SuSE package from version 0.2.0 of
|
|
multipath tools
|