summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-04-20 19:43:21 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-04-20 19:43:21 +0000
commitb7b4f9e4e74a7cd09bcebfec452be7eba4ce3c1e (patch)
treedf3a49a92446073ec42cb844e3f3b50c532732e8 /sys-fs/multipath-tools
parentAdded x86 (diff)
downloadgentoo-2-b7b4f9e4e74a7cd09bcebfec452be7eba4ce3c1e.tar.gz
gentoo-2-b7b4f9e4e74a7cd09bcebfec452be7eba4ce3c1e.tar.bz2
gentoo-2-b7b4f9e4e74a7cd09bcebfec452be7eba4ce3c1e.zip
drop old, specially the ones still requiring obsolete sys-fs/sysfsutils
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/multipath-tools')
-rw-r--r--sys-fs/multipath-tools/ChangeLog11
-rw-r--r--sys-fs/multipath-tools/files/init.d-multipath29
-rw-r--r--sys-fs/multipath-tools/files/multipath-tools-0.4.7-build.patch163
-rw-r--r--sys-fs/multipath-tools/files/multipath-tools-0.4.7-udev-rules.patch44
-rw-r--r--sys-fs/multipath-tools/multipath-tools-0.4.8.ebuild74
-rw-r--r--sys-fs/multipath-tools/multipath-tools-0.4.9-r1.ebuild77
-rw-r--r--sys-fs/multipath-tools/multipath-tools-0.4.9-r2.ebuild70
7 files changed, 9 insertions, 459 deletions
diff --git a/sys-fs/multipath-tools/ChangeLog b/sys-fs/multipath-tools/ChangeLog
index 56a108c6447a..a7d2d6291c36 100644
--- a/sys-fs/multipath-tools/ChangeLog
+++ b/sys-fs/multipath-tools/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-fs/multipath-tools
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/ChangeLog,v 1.38 2011/11/30 04:30:50 vapier Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/ChangeLog,v 1.39 2012/04/20 19:43:21 ssuominen Exp $
+
+ 20 Apr 2012; Samuli Suominen <ssuominen@gentoo.org>
+ -files/multipath-tools-0.4.7-build.patch,
+ -files/multipath-tools-0.4.7-udev-rules.patch, -multipath-tools-0.4.8.ebuild,
+ -multipath-tools-0.4.9-r1.ebuild, -multipath-tools-0.4.9-r2.ebuild,
+ -files/init.d-multipath:
+ old
*multipath-tools-0.4.9-r3 (30 Nov 2011)
diff --git a/sys-fs/multipath-tools/files/init.d-multipath b/sys-fs/multipath-tools/files/init.d-multipath
deleted file mode 100644
index 68e5a2e7a98d..000000000000
--- a/sys-fs/multipath-tools/files/init.d-multipath
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/files/init.d-multipath,v 1.1 2008/06/20 23:57:19 robbat2 Exp $
-
-depend() {
- if [ -e /lib/librc.so ]; then
- # on baselayout-1 this causes
- # dependency-cycles with checkroot (before *)
- before checkfs fsck multipathd lvm
- after modules
- fi
-}
-
-start() {
- if [ ! -e /lib/librc.so ]; then
- eerror "The $SVCNAME init-script is written for baselayout-2!"
- eerror "Please do not use it with baselayout-1!".
- return 1
- fi
-
- start_addon multipath
-}
-
-stop() {
- stop_addon multipath
-}
-
-# vim:ts=4
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.4.7-build.patch b/sys-fs/multipath-tools/files/multipath-tools-0.4.7-build.patch
deleted file mode 100644
index 423c8624aefa..000000000000
--- a/sys-fs/multipath-tools/files/multipath-tools-0.4.7-build.patch
+++ /dev/null
@@ -1,163 +0,0 @@
- - respect CFLAGS
- - respect LDFLAGS
- - dont strip
- - dont compress manpages
-
---- multipath-tools-0.4.7/devmap_name/Makefile
-+++ multipath-tools-0.4.7/devmap_name/Makefile
-@@ -12,3 +12,3 @@
- else
-- LDFLAGS = -ldevmapper
-+ LDFLAGS += -ldevmapper
- endif
-@@ -24,3 +24,2 @@
- $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
-- $(GZIP) $(EXEC).8 > $(EXEC).8.gz
-
-@@ -28,3 +27,2 @@
- $(CC) -static -o $(EXEC) $(OBJS)
-- $(GZIP) $(EXEC).8 > $(EXEC).8.gz
-
-@@ -32,5 +30,5 @@
- install -d $(DESTDIR)$(bindir)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)/
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
---- multipath-tools-0.4.7/kpartx/Makefile
-+++ multipath-tools-0.4.7/kpartx/Makefile
-@@ -15,3 +15,3 @@
- else
-- LDFLAGS = -ldevmapper
-+ LDFLAGS += -ldevmapper
- OBJS = bsd.o dos.o kpartx.o solaris.o unixware.o dasd.o \
-@@ -29,3 +29,2 @@
- $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
-- $(GZIP) $(EXEC).8 > $(EXEC).8.gz
-
-@@ -33,3 +32,2 @@
- $(CC) -static -o $(EXEC) $(CRT0) $(OBJS) $(KLIBC) $(LIBGCC)
-- $(GZIP) $(EXEC).8 > $(EXEC).8.gz
-
-@@ -40,5 +38,5 @@
- install -d $(DESTDIR)$(bindir)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
---- multipath-tools-0.4.7/libmultipath/Makefile
-+++ multipath-tools-0.4.7/libmultipath/Makefile
-@@ -8,3 +8,3 @@
-
--CFLAGS = -I$(checkersdir)
-+CFLAGS += -I$(checkersdir)
-
---- multipath-tools-0.4.7/Makefile.inc
-+++ multipath-tools-0.4.7/Makefile.inc
-@@ -35,4 +35,4 @@
-
--OPTFLAGS = -pipe -g -Wall -Wunused -Wstrict-prototypes
--CFLAGS = $(OPTFLAGS)
-+OPTFLAGS = -Wall -Wunused -Wstrict-prototypes
-+CFLAGS += $(OPTFLAGS)
-
---- multipath-tools-0.4.7/multipath/Makefile
-+++ multipath-tools-0.4.7/multipath/Makefile
-@@ -27,3 +27,2 @@
- $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
-- $(GZIP) $(EXEC).8 > $(EXEC).8.gz
-
-@@ -31,3 +30,2 @@
- $(CC) -static -o $(EXEC) $(CRT0) $(OBJS) $(KLIBC) $(LIBGCC)
-- $(GZIP) $(EXEC).8 > $(EXEC).8.gz
-
-@@ -41,10 +39,10 @@
- install -d $(DESTDIR)$(bindir)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)/
- install -d $(DESTDIR)/etc/udev/rules.d
-- install -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/
-+ install -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/40-multipath.rules
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
- uninstall:
-- rm $(DESTDIR)/etc/udev/rules.d/multipath.rules
-+ rm $(DESTDIR)/etc/udev/rules.d/40-multipath.rules
- rm $(DESTDIR)$(bindir)/$(EXEC)
---- multipath-tools-0.4.7/multipathd/Makefile
-+++ multipath-tools-0.4.7/multipathd/Makefile
-@@ -9,3 +9,3 @@
- CFLAGS += -DDAEMON -I$(multipathdir) -I$(checkersdir)
--LDFLAGS = -lpthread -ldevmapper -lsysfs -lreadline -lncurses
-+LDFLAGS += -lpthread -ldevmapper -lsysfs -lreadline -lncurses
-
-@@ -37,3 +37,2 @@
- $(CC) $(OBJS) -o $(EXEC) $(LDFLAGS)
-- $(GZIP) $(EXEC).8 > $(EXEC).8.gz
-
-@@ -47,6 +46,6 @@
- install -d $(DESTDIR)$(bindir)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)
- install -d $(DESTDIR)$(rcdir)
- install -d $(DESTDIR)$(mandir)
-- install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
-+ install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
---- multipath-tools-0.4.7/path_priority/pp_alua/Makefile
-+++ multipath-tools-0.4.7/path_priority/pp_alua/Makefile
-@@ -37,5 +37,5 @@
-
--install: $(BUILD) $(EXEC).8.gz
-- $(INSTALL) -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-- $(INSTALL) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)/$(EXEC).8.gz
-+install: $(BUILD) $(EXEC).8
-+ $(INSTALL) -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-+ $(INSTALL) -m 644 $(EXEC).8 $(DESTDIR)$(mandir)/$(EXEC).8
-
---- multipath-tools-0.4.7/path_priority/pp_balance_units/Makefile
-+++ multipath-tools-0.4.7/path_priority/pp_balance_units/Makefile
-@@ -15,3 +15,3 @@
- CFLAGS += -I$(multipathdir) -DDEBUG=$(DEBUG)
-- LDFLAGS = -ldevmapper
-+ LDFLAGS += -ldevmapper
- OBJS = pp_balance_units.o $(MULTIPATHLIB)-$(BUILD).a
-@@ -37,3 +37,3 @@
- install -d $(DESTDIR)$(bindir)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)/
-
---- multipath-tools-0.4.7/path_priority/pp_emc/Makefile
-+++ multipath-tools-0.4.7/path_priority/pp_emc/Makefile
-@@ -16,3 +16,3 @@
- install: $(EXEC)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
---- multipath-tools-0.4.7/path_priority/pp_netapp/Makefile
-+++ multipath-tools-0.4.7/path_priority/pp_netapp/Makefile
-@@ -16,3 +16,3 @@
- install: $(EXEC)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
---- multipath-tools-0.4.7/path_priority/pp_random/Makefile
-+++ multipath-tools-0.4.7/path_priority/pp_random/Makefile
-@@ -16,3 +16,3 @@
- install: $(EXEC)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
---- multipath-tools-0.4.7/path_priority/pp_tpc/Makefile
-+++ multipath-tools-0.4.7/path_priority/pp_tpc/Makefile
-@@ -16,3 +16,3 @@
- install: $(EXEC)
-- install -s -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-+ install -m 755 $(EXEC) $(DESTDIR)$(bindir)/$(EXEC)
-
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.4.7-udev-rules.patch b/sys-fs/multipath-tools/files/multipath-tools-0.4.7-udev-rules.patch
deleted file mode 100644
index 6bd6300ccb93..000000000000
--- a/sys-fs/multipath-tools/files/multipath-tools-0.4.7-udev-rules.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-diff -ru multipath-tools-0.4.7-orig/multipath/Makefile multipath-tools-0.4.7/multipath/Makefile
---- multipath-tools-0.4.7-orig/multipath/Makefile 2007-08-22 16:19:00.877039944 +0200
-+++ multipath-tools-0.4.7/multipath/Makefile 2007-08-22 16:20:00.382334855 +0200
-@@ -39,12 +39,12 @@
- install -d $(DESTDIR)$(bindir)
- install -m 755 $(EXEC) $(DESTDIR)$(bindir)/
- install -d $(DESTDIR)/etc/udev/rules.d
-- install -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/40-multipath.rules
-+ install -m 644 multipath.rules $(DESTDIR)/etc/udev/rules.d/65-multipath.rules
- install -d $(DESTDIR)$(mandir)
- install -m 644 $(EXEC).8 $(DESTDIR)$(mandir)
-
- uninstall:
-- rm $(DESTDIR)/etc/udev/rules.d/40-multipath.rules
-+ rm $(DESTDIR)/etc/udev/rules.d/64-multipath.rules
- rm $(DESTDIR)$(bindir)/$(EXEC)
- rm $(DESTDIR)$(mandir)/$(EXEC).8.gz
-
-diff -ru multipath-tools-0.4.7-orig/multipath/multipath.rules multipath-tools-0.4.7/multipath/multipath.rules
---- multipath-tools-0.4.7-orig/multipath/multipath.rules 2007-08-22 16:19:22.878997659 +0200
-+++ multipath-tools-0.4.7/multipath/multipath.rules 2007-08-22 16:21:02.887896761 +0200
-@@ -1,18 +1,13 @@
-+# do not edit this file, it will be overwritten on update
- #
- # multipath and multipath partitions nodes are created in /dev/mapper/
- # this file should be installed in /etc/udev/rules.d
- #
--# !! udev must not discard DM events !!
--# !! check the other installed rules !!
--#
-
--# lookup the devmap name
--#ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
--# PROGRAM="/sbin/devmap_name %M %m"
--ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
-- PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c -o name info"
-+# DM_NAME is set in 64-device-mapper.rules
-
- # take care of devmap partitioning
- ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
-- RUN+="/sbin/kpartx -a /dev/mapper/%c"
-+ ENV{DM_NAME}=="?*", \
-+ RUN+="/sbin/kpartx -a /dev/mapper/$env{DM_NAME}"
-
diff --git a/sys-fs/multipath-tools/multipath-tools-0.4.8.ebuild b/sys-fs/multipath-tools/multipath-tools-0.4.8.ebuild
deleted file mode 100644
index d4b42d93cf88..000000000000
--- a/sys-fs/multipath-tools/multipath-tools-0.4.8.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/multipath-tools-0.4.8.ebuild,v 1.9 2011/08/06 08:12:30 ssuominen Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Device mapper target autoconfig"
-HOMEPAGE="http://christophe.varoqui.free.fr/"
-SRC_URI="http://christophe.varoqui.free.fr/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc ppc64 x86 ~arm"
-IUSE=""
-
-RDEPEND="|| (
- >=sys-fs/lvm2-2.02.45
- >=sys-fs/device-mapper-1.00.19-r1
- )
- sys-fs/udev
- dev-libs/libaio"
-DEPEND="${RDEPEND}"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-0.4.8-build.patch
- # Merged together
- #epatch "${FILESDIR}"/${PN}-0.4.7-udev-rules.patch
-}
-
-src_compile() {
- emake -j1 CC="$(tc-getCC)" || die "emake failed"
-}
-
-src_install() {
- dodir /sbin /usr/share/man/man8
- make DESTDIR="${D}" install || die "install failed"
-
- insinto /etc
- newins "${S}"/multipath.conf.annotated multipath.conf
- fperms 644 /etc/udev/rules.d/65-multipath.rules
- fperms 644 /etc/udev/rules.d/66-kpartx.rules
- # This is the monitoring daemon
- newinitd "${FILESDIR}"/rc-multipathd multipathd
- # This is the init script that fires the multipath addon for baselayout2
- newinitd "${FILESDIR}"/init.d-multipath multipath
- # Handle early-boot startup as well as shutdown of multipath devices
- insinto /lib/rcscripts/addons
- doins "${FILESDIR}"/multipath-start.sh
- doins "${FILESDIR}"/multipath-stop.sh
-
- dodoc multipath.conf.*
- dodoc AUTHOR ChangeLog FAQ README TODO
- docinto kpartx; dodoc kpartx/ChangeLog kpartx/README
-}
-
-pkg_preinst() {
- # The dev.d script was previously wrong and is now removed (the udev rules
- # file does the job instead), but it won't be removed from live systems due
- # to cfgprotect.
- # This should help out a little...
- if [[ -e ${ROOT}/etc/dev.d/block/multipath.dev ]] ; then
- mkdir -p "${D}"/etc/dev.d/block
- echo "# Please delete this file. It is obsoleted by /etc/udev/rules.d/65-multipath.rules" \
- > "${D}"/etc/dev.d/block/multipath.dev
- fi
-}
-pkg_postinst() {
- elog "If you need multipath on your system, you should ensure that a"
- elog "'multipath' entry is present in your RC_VOLUME_ORDER variable!"
- elog "If you use baselayout2, you must add 'multipath' into"
- elog "your boot runlevel!"
-}
diff --git a/sys-fs/multipath-tools/multipath-tools-0.4.9-r1.ebuild b/sys-fs/multipath-tools/multipath-tools-0.4.9-r1.ebuild
deleted file mode 100644
index 487170921bac..000000000000
--- a/sys-fs/multipath-tools/multipath-tools-0.4.9-r1.ebuild
+++ /dev/null
@@ -1,77 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/multipath-tools-0.4.9-r1.ebuild,v 1.2 2011/08/06 08:12:30 ssuominen Exp $
-
-EAPI=2
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Device mapper target autoconfig"
-HOMEPAGE="http://christophe.varoqui.free.fr/"
-SRC_URI="http://christophe.varoqui.free.fr/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
-IUSE=""
-
-RDEPEND="|| (
- >=sys-fs/lvm2-2.02.45
- >=sys-fs/device-mapper-1.00.19-r1
- )
- >=sys-fs/udev-124
- dev-libs/libaio"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.4.9-build.patch
- epatch "${FILESDIR}"/${PN}-0.4.9-buffer-overflows.patch
- # kpartx fails on extended partitions
- epatch "${FILESDIR}"/${PN}-0.4.8-kparted-ext-partitions.patch
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" || die "emake failed"
-}
-
-src_install() {
- dodir /sbin /usr/share/man/man8
- emake DESTDIR="${D}" install || die "emake install failed"
-
- insinto /etc
- newins "${S}"/multipath.conf.annotated multipath.conf
- fperms 644 /etc/udev/rules.d/65-multipath.rules
- fperms 644 /etc/udev/rules.d/66-kpartx.rules
- # This is the monitoring daemon
- newinitd "${FILESDIR}"/rc-multipathd multipathd
- # This is the init script that fires the multipath addon for baselayout2
- newinitd "${FILESDIR}"/init.d-multipath-0.4.8-r1 multipath
- # Handle early-boot startup as well as shutdown of multipath devices
- insinto /lib/rcscripts/addons
- doins "${FILESDIR}"/multipath-start.sh
- doins "${FILESDIR}"/multipath-stop.sh
-
- dodoc multipath.conf.*
- dodoc AUTHOR ChangeLog FAQ README TODO
- docinto kpartx; dodoc kpartx/ChangeLog kpartx/README
-}
-
-pkg_preinst() {
- # The dev.d script was previously wrong and is now removed (the udev rules
- # file does the job instead), but it won't be removed from live systems due
- # to cfgprotect.
- # This should help out a little...
- if [[ -e ${ROOT}/etc/dev.d/block/multipath.dev ]] ; then
- mkdir -p "${D}"/etc/dev.d/block
- echo "# Please delete this file. It is obsoleted by /etc/udev/rules.d/65-multipath.rules" \
- > "${D}"/etc/dev.d/block/multipath.dev
- fi
-}
-
-pkg_postinst() {
- elog "If you need multipath on your system, you should ensure that a"
- elog "'multipath' entry is present in your RC_VOLUME_ORDER variable!"
- elog "If you use baselayout2, you must add 'multipath' into"
- elog "your boot runlevel!"
-}
diff --git a/sys-fs/multipath-tools/multipath-tools-0.4.9-r2.ebuild b/sys-fs/multipath-tools/multipath-tools-0.4.9-r2.ebuild
deleted file mode 100644
index 0142df1e790d..000000000000
--- a/sys-fs/multipath-tools/multipath-tools-0.4.9-r2.ebuild
+++ /dev/null
@@ -1,70 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/multipath-tools-0.4.9-r2.ebuild,v 1.2 2011/08/06 08:12:30 ssuominen Exp $
-
-EAPI="2"
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Device mapper target autoconfig"
-HOMEPAGE="http://christophe.varoqui.free.fr/"
-SRC_URI="http://christophe.varoqui.free.fr/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
-IUSE=""
-
-RDEPEND="|| (
- >=sys-fs/lvm2-2.02.45
- >=sys-fs/device-mapper-1.00.19-r1
- )
- >=sys-fs/udev-124
- dev-libs/libaio
- !<sys-apps/baselayout-2"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}"
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-0.4.9-build.patch
- epatch "${FILESDIR}"/${PN}-0.4.9-buffer-overflows.patch
- epatch "${FILESDIR}"/${PN}-0.4.8-kparted-ext-partitions.patch
-}
-
-src_compile() {
- emake CC="$(tc-getCC)" || die
-}
-
-src_install() {
- dodir /sbin /usr/share/man/man8
- emake DESTDIR="${D}" install || die
-
- insinto /etc
- newins "${S}"/multipath.conf.annotated multipath.conf
- fperms 644 /etc/udev/rules.d/65-multipath.rules
- fperms 644 /etc/udev/rules.d/66-kpartx.rules
- newinitd "${FILESDIR}"/rc-multipathd multipathd || die
- newinitd "${FILESDIR}"/multipath.rc multipath || die
-
- dodoc multipath.conf.* AUTHOR ChangeLog FAQ README TODO
- docinto kpartx
- dodoc kpartx/ChangeLog kpartx/README
-}
-
-pkg_preinst() {
- # The dev.d script was previously wrong and is now removed (the udev rules
- # file does the job instead), but it won't be removed from live systems due
- # to cfgprotect.
- # This should help out a little...
- if [[ -e ${ROOT}/etc/dev.d/block/multipath.dev ]] ; then
- mkdir -p "${D}"/etc/dev.d/block
- echo "# Please delete this file. It is obsoleted by /etc/udev/rules.d/65-multipath.rules" \
- > "${D}"/etc/dev.d/block/multipath.dev
- fi
-}
-
-pkg_postinst() {
- elog "If you need multipath on your system, you must"
- elog "add 'multipath' into your boot runlevel!"
-}