1 |
robbat2 09/10/30 06:50:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: multipath-tools-0.4.8-r1.ebuild |
5 |
Log: |
6 |
Upstream is a slacker and has not made a release in 2+ years despite being active in Git. Fixes bug #235836: udev scsi_id lost the -s option a long time ago. Bug #245615: remove the 1TiB limit on kpartx. |
7 |
(Portage version: 2.2_rc46/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.27 sys-fs/multipath-tools/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/multipath-tools/ChangeLog?rev=1.27&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/multipath-tools/ChangeLog?rev=1.27&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/multipath-tools/ChangeLog?r1=1.26&r2=1.27 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/ChangeLog,v |
19 |
retrieving revision 1.26 |
20 |
retrieving revision 1.27 |
21 |
diff -p -w -b -B -u -u -r1.26 -r1.27 |
22 |
--- ChangeLog 19 Sep 2009 04:47:49 -0000 1.26 |
23 |
+++ ChangeLog 30 Oct 2009 06:50:12 -0000 1.27 |
24 |
@@ -1,6 +1,16 @@ |
25 |
# ChangeLog for sys-fs/multipath-tools |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/ChangeLog,v 1.26 2009/09/19 04:47:49 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/ChangeLog,v 1.27 2009/10/30 06:50:12 robbat2 Exp $ |
29 |
+ |
30 |
+*multipath-tools-0.4.8-r1 (30 Oct 2009) |
31 |
+ |
32 |
+ 30 Oct 2009; Robin H. Johnson <robbat2@g.o> |
33 |
+ +files/init.d-multipath-0.4.8-r1, +multipath-tools-0.4.8-r1.ebuild, |
34 |
+ +files/multipath-tools-0.4.8-r1-kpartx.patch, |
35 |
+ +files/multipath-tools-0.4.8-udev-scsi_id-changes.patch: |
36 |
+ Upstream is a slacker and has not made a release in 2+ years despite being |
37 |
+ active in Git. Fixes bug #235836: udev scsi_id lost the -s option a long |
38 |
+ time ago. Bug #245615: remove the 1TiB limit on kpartx. |
39 |
|
40 |
19 Sep 2009; Robin H. Johnson <robbat2@g.o> |
41 |
multipath-tools-0.4.8.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: multipath-tools-0.4.8-r1.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2009 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/multipath-tools/multipath-tools-0.4.8-r1.ebuild,v 1.1 2009/10/30 06:50:12 robbat2 Exp $ |
55 |
|
56 |
EAPI=2 |
57 |
inherit eutils toolchain-funcs |
58 |
|
59 |
DESCRIPTION="Device mapper target autoconfig" |
60 |
HOMEPAGE="http://christophe.varoqui.free.fr/" |
61 |
SRC_URI="http://christophe.varoqui.free.fr/${PN}/${P}.tar.bz2" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
66 |
IUSE="" |
67 |
|
68 |
RDEPEND="|| ( |
69 |
>=sys-fs/lvm2-2.02.45 |
70 |
>=sys-fs/device-mapper-1.00.19-r1 |
71 |
) |
72 |
>=sys-fs/udev-124 |
73 |
sys-fs/sysfsutils |
74 |
dev-libs/libaio" |
75 |
DEPEND="${RDEPEND}" |
76 |
|
77 |
src_prepare() { |
78 |
epatch "${FILESDIR}"/${PN}-0.4.8-build.patch |
79 |
epatch "${FILESDIR}"/${PN}-0.4.8-udev-scsi_id-changes.patch |
80 |
# Patch per upstream tree for 1GiB limit of kpartx |
81 |
epatch "${FILESDIR}"/${PN}-0.4.8-r1-kpartx.patch |
82 |
} |
83 |
|
84 |
src_compile() { |
85 |
# The -j1 is NOT a joke. The 0.4.8-era upstream code rebuilds several object |
86 |
# files with different compiler defines. The upstream git, as yet unreleased |
87 |
# moves to proper automake, but it's a large jump and is not being |
88 |
# backported to 0.4.8. |
89 |
emake -j1 CC="$(tc-getCC)" || die "emake failed" |
90 |
} |
91 |
|
92 |
src_install() { |
93 |
dodir /sbin /usr/share/man/man8 |
94 |
make DESTDIR="${D}" install || die "install failed" |
95 |
|
96 |
insinto /etc |
97 |
newins "${S}"/multipath.conf.annotated multipath.conf |
98 |
fperms 644 /etc/udev/rules.d/65-multipath.rules |
99 |
fperms 644 /etc/udev/rules.d/66-kpartx.rules |
100 |
# This is the monitoring daemon |
101 |
newinitd "${FILESDIR}"/rc-multipathd multipathd |
102 |
# This is the init script that fires the multipath addon for baselayout2 |
103 |
newinitd "${FILESDIR}"/init.d-multipath-0.4.8-r1 multipath |
104 |
# Handle early-boot startup as well as shutdown of multipath devices |
105 |
insinto /lib/rcscripts/addons |
106 |
doins "${FILESDIR}"/multipath-start.sh |
107 |
doins "${FILESDIR}"/multipath-stop.sh |
108 |
|
109 |
dodoc multipath.conf.* |
110 |
dodoc AUTHOR ChangeLog FAQ README TODO |
111 |
docinto kpartx; dodoc kpartx/ChangeLog kpartx/README |
112 |
} |
113 |
|
114 |
pkg_preinst() { |
115 |
# The dev.d script was previously wrong and is now removed (the udev rules |
116 |
# file does the job instead), but it won't be removed from live systems due |
117 |
# to cfgprotect. |
118 |
# This should help out a little... |
119 |
if [[ -e ${ROOT}/etc/dev.d/block/multipath.dev ]] ; then |
120 |
mkdir -p "${D}"/etc/dev.d/block |
121 |
echo "# Please delete this file. It is obsoleted by /etc/udev/rules.d/65-multipath.rules" \ |
122 |
> "${D}"/etc/dev.d/block/multipath.dev |
123 |
fi |
124 |
} |
125 |
pkg_postinst() { |
126 |
elog "If you need multipath on your system, you should ensure that a" |
127 |
elog "'multipath' entry is present in your RC_VOLUME_ORDER variable!" |
128 |
elog "If you use baselayout2, you must add 'multipath' into" |
129 |
elog "your boot runlevel!" |
130 |
} |