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