Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/multipath-tools/
Date: Wed, 02 Aug 2017 06:35:18
Message-Id: 1501655710.804a6c3487b13dc779ba0aa32f75b7937d16f6b1.polynomial-c@gentoo
1 commit: 804a6c3487b13dc779ba0aa32f75b7937d16f6b1
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 2 06:18:19 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 2 06:35:10 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=804a6c34
7
8 sys-fs/multipath-tools: Bump to version 0.7.1
9
10 This also fixes bug #624884
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.3
13 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
14
15 sys-fs/multipath-tools/Manifest | 1 +
16 .../multipath-tools/multipath-tools-0.7.1.ebuild | 89 ++++++++++++++++++++++
17 2 files changed, 90 insertions(+)
18
19 diff --git a/sys-fs/multipath-tools/Manifest b/sys-fs/multipath-tools/Manifest
20 index 551033c2bc7..9eb429c8456 100644
21 --- a/sys-fs/multipath-tools/Manifest
22 +++ b/sys-fs/multipath-tools/Manifest
23 @@ -1,3 +1,4 @@
24 DIST multipath-tools-0.5.0.tar.bz2 184024 SHA256 f13cf1eb84e94e83b2019e68f7965526903c13e94246db43965d181668a0a6f9 SHA512 dfad21c45d0f69e39041d30d203a582c8ee8329bf390c51cde10155b3de379e7ad8fead2ac4beb268a924fd7e7dc8e1cf538ea3c70d41479fd8786fa30ba22a9 WHIRLPOOL bc8a365d66d1c5f584de04304125949926d4a1576cba4a00acca0f1333eb13d83318da36d9d88c5dc92691a331d427ad6b99eb1f2983fbc387303dbfdbae11ff
25 DIST multipath-tools-0.6.2.tar.gz 242413 SHA256 f5cec5d92d56ec99220fccc1e70b9d10bc8ff5039c809ebcc201ce34d7ee3095 SHA512 8a04302002bf778299495e4be2d4302c19350d8ec218da23c5f781233efa6d0b39208a676b0d770771d7f09d62fa2b1ce32c03f60662691f74afb111e918b639 WHIRLPOOL f040273bd188c30f2f3b87e21a403b5f5d3ce2f0918382890cc0750b803bf05f70ed6bf46a83c5b68137835bc9bcf6cbca14f6462cfbef660667118b59eafc7d
26 DIST multipath-tools-0.6.4.tar.gz 285448 SHA256 1e2747883320f7db854201e5bfb97216e7518468f03503985382ce2c69e5558b SHA512 ec35c6c26c3b233ebece7136ea99dd4c0dff2927e7b543e7091219dc7065fe87e609a1eda9ab6d08399d44fe882d70c8dbe6be9ab175d154c5dd2d12ee1d86ea WHIRLPOOL 6138ba1cbb814bbf53e7a5113f50325d7a7d7088ff2b0f83f1e574f0644241e368cc6b5223eca039b414a0a459a52413d396ea214ff3eaa57f0681e8322b2d9d
27 +DIST multipath-tools-0.7.1.tar.gz 329008 SHA256 d788aaf3ea862b44b5aa07eaa0e5696061f972a1a46d0f469c4a4f4c477c1970 SHA512 81ceb3887250a691b94cb49b7141ace4fc1f69d7f8381e517560dfc7c51ee4c5a1f4f4e40a0b368cf5f7381697fa746b856cbade8990c1608cbcd77248946a82 WHIRLPOOL 2bcc7cc2f425ca3f3f634807cafb7817b54b83d82987a09c9dd530dca1375175a7d52f1854bdd6d5f37c3b1fcf7bc34d67fc2dcae5809dfae968b313c8c86cba
28
29 diff --git a/sys-fs/multipath-tools/multipath-tools-0.7.1.ebuild b/sys-fs/multipath-tools/multipath-tools-0.7.1.ebuild
30 new file mode 100644
31 index 00000000000..3c1f4dbdfca
32 --- /dev/null
33 +++ b/sys-fs/multipath-tools/multipath-tools-0.7.1.ebuild
34 @@ -0,0 +1,89 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit linux-info systemd toolchain-funcs udev vcs-snapshot toolchain-funcs
41 +
42 +DESCRIPTION="Device mapper target autoconfig"
43 +HOMEPAGE="http://christophe.varoqui.free.fr/"
44 +SRC_URI="http://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${PV};sf=tgz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
49 +IUSE="systemd rbd"
50 +
51 +RDEPEND=">=sys-fs/lvm2-2.02.45
52 + >=virtual/udev-171
53 + dev-libs/libaio
54 + dev-libs/userspace-rcu
55 + sys-libs/readline:0=
56 + rbd? ( sys-cluster/ceph )
57 + systemd? ( sys-apps/systemd )"
58 +DEPEND="${RDEPEND}
59 + virtual/pkgconfig"
60 +
61 +CONFIG_CHECK="~DM_MULTIPATH"
62 +
63 +get_systemd_pv() {
64 + use systemd && \
65 + $(tc-getPKG_CONFIG) --modversion systemd
66 +}
67 +
68 +pkg_pretend() {
69 + linux-info_pkg_setup
70 +}
71 +
72 +pkg_setup() {
73 + linux-info_pkg_setup
74 +}
75 +
76 +src_prepare() {
77 + default
78 +
79 + # Fix for bug #624884
80 + if grep -qF DM_TABLE_STATE kpartx/kpartx.rules ; then
81 + sed '/DM_TABLE_STATE/d' -i kpartx/kpartx.rules || die
82 + else
83 + elog "DM_TABLE_STATE sed hack is no longer necessary."
84 + fi
85 +
86 + # The upstream lacks any way to configure the build at present
87 + # and ceph is a huge dependency, so we're using sed to make it
88 + # optional until the upstream has a proer configure system
89 + if ! use rbd ; then
90 + sed -i -e "s/libcheckrbd.so/# libcheckrbd.so/" libmultipath/checkers/Makefile
91 + sed -i -e "s/-lrados//" libmultipath/checkers/Makefile
92 + fi
93 +}
94 +
95 +src_compile() {
96 + # LIBDM_API_FLUSH involves grepping files in /usr/include,
97 + # so force the test to go the way we want #411337.
98 + emake \
99 + CC="$(tc-getCC)" \
100 + LIBDM_API_FLUSH=1 SYSTEMD="$(get_systemd_pv)"
101 +}
102 +
103 +src_install() {
104 + dodir /sbin /usr/share/man/man{5,8}
105 + emake \
106 + DESTDIR="${D}" \
107 + SYSTEMD=$(get_systemd_pv) \
108 + unitdir="$(systemd_get_systemunitdir)" \
109 + libudevdir='${prefix}'/"$(get_udevdir)" \
110 + install
111 +
112 + newinitd "${FILESDIR}"/rc-multipathd multipathd
113 + newinitd "${FILESDIR}"/multipath.rc multipath
114 +
115 + einstalldocs
116 +}
117 +
118 +pkg_postinst() {
119 + if [[ -z ${REPLACING_VERSIONS} ]]; then
120 + elog "If you need multipath on your system, you must"
121 + elog "add 'multipath' into your boot runlevel!"
122 + fi
123 +}