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