1 |
commit: f25b8d6968d3235a831aadb2ab4cc47209a0442d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 23 08:09:40 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 23 08:10:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f25b8d69 |
7 |
|
8 |
sys-fs/multipath-tools: Bump to version 0.8.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.64, Repoman-2.3.12 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-fs/multipath-tools/Manifest | 1 + |
14 |
.../multipath-tools/multipath-tools-0.8.1.ebuild | 94 ++++++++++++++++++++++ |
15 |
2 files changed, 95 insertions(+) |
16 |
|
17 |
diff --git a/sys-fs/multipath-tools/Manifest b/sys-fs/multipath-tools/Manifest |
18 |
index 89382fcf9fd..4e8a400621d 100644 |
19 |
--- a/sys-fs/multipath-tools/Manifest |
20 |
+++ b/sys-fs/multipath-tools/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST multipath-tools-0.6.4.tar.gz 285448 BLAKE2B 1b63c4e712e682965c595ed988a6590e181abd4d37779b72b52f4e415d4caba33df518a1ea1e3b460d15b5a78f4db5a75c1066439eb40c503023007c1f70752a SHA512 ec35c6c26c3b233ebece7136ea99dd4c0dff2927e7b543e7091219dc7065fe87e609a1eda9ab6d08399d44fe882d70c8dbe6be9ab175d154c5dd2d12ee1d86ea |
23 |
DIST multipath-tools-0.7.9.tar.gz 419377 BLAKE2B 29003b7ce2d673eb59d869e2165028654361ca31f49b8e810d90611db249a5183492959d3aef778b870df7c1d283004bda88f3cc6f760569247f1ccc61617379 SHA512 6b237f148c239938b9f46a1a8118fc070372d5f2cfe2021c26ad9ca15d37e8866390168b6a4f13adcc5538001354247e072559a0add33ce1fe8245ae64ed0a3c |
24 |
DIST multipath-tools-0.8.0.tar.gz 447076 BLAKE2B 10a93a2654decd2377414188013d2141e34288fe119fa7c54047d95b825ef9ae64b20de1067d3f37a904b58be587997842f7a62088701fe1c1e6a078283b56e4 SHA512 8b6081109e535d0e392233bcedda930bc6d4b529ebe23bc45b276026311bc997e3cf8b39c1a86e4962c464faa69512202c0f6fb3d1f06c6445f8141853ad1bc4 |
25 |
+DIST multipath-tools-0.8.1.tar.gz 447883 BLAKE2B c840ede03fd15763cd947a71596bf3a2e5935433d956208225f4fd6ed55074e2d9709f8b0e6c059a58d44b6649f52b3564d6651ea1af6186138357ba37f86b14 SHA512 1f87f974aace746ecac8af6ae330de16affe49cc89a5660b28be3b1c4a69f822da01042432176e64b5de6ad3a6568044954fdce8e3aa31e85611a595a4939947 |
26 |
|
27 |
diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.1.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..956caa89e08 |
30 |
--- /dev/null |
31 |
+++ b/sys-fs/multipath-tools/multipath-tools-0.8.1.ebuild |
32 |
@@ -0,0 +1,94 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+ |
38 |
+inherit linux-info systemd toolchain-funcs udev vcs-snapshot toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Device mapper target autoconfig" |
41 |
+HOMEPAGE="http://christophe.varoqui.free.fr/" |
42 |
+SRC_URI="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${PV};sf=tgz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" |
47 |
+IUSE="systemd rbd" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-libs/json-c:= |
51 |
+ dev-libs/libaio |
52 |
+ dev-libs/userspace-rcu:= |
53 |
+ >=sys-fs/lvm2-2.02.45 |
54 |
+ >=virtual/udev-171 |
55 |
+ sys-libs/readline:0= |
56 |
+ rbd? ( sys-cluster/ceph ) |
57 |
+ systemd? ( sys-apps/systemd ) |
58 |
+" |
59 |
+DEPEND=" |
60 |
+ ${RDEPEND} |
61 |
+ virtual/pkgconfig |
62 |
+" |
63 |
+ |
64 |
+CONFIG_CHECK="~DM_MULTIPATH" |
65 |
+ |
66 |
+RESTRICT="test" |
67 |
+ |
68 |
+PATCHES=( "${FILESDIR}"/${PN}-0.7.5-respect-flags.patch ) |
69 |
+ |
70 |
+get_systemd_pv() { |
71 |
+ use systemd && \ |
72 |
+ $(tc-getPKG_CONFIG) --modversion systemd |
73 |
+} |
74 |
+ |
75 |
+pkg_pretend() { |
76 |
+ linux-info_pkg_setup |
77 |
+} |
78 |
+ |
79 |
+pkg_setup() { |
80 |
+ linux-info_pkg_setup |
81 |
+} |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ default |
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 proper configure system |
89 |
+ if ! use rbd ; then |
90 |
+ sed \ |
91 |
+ -e "s/libcheckrbd.so/# libcheckrbd.so/" \ |
92 |
+ -e "s/-lrados//" \ |
93 |
+ -i libmultipath/checkers/Makefile \ |
94 |
+ || die |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+src_compile() { |
99 |
+ # LIBDM_API_FLUSH involves grepping files in /usr/include, |
100 |
+ # so force the test to go the way we want #411337. |
101 |
+ emake \ |
102 |
+ CC="$(tc-getCC)" \ |
103 |
+ LIBDM_API_FLUSH=1 SYSTEMD="$(get_systemd_pv)" |
104 |
+} |
105 |
+ |
106 |
+src_install() { |
107 |
+ dodir /sbin /usr/share/man/man{5,8} |
108 |
+ emake \ |
109 |
+ DESTDIR="${D}" \ |
110 |
+ SYSTEMD=$(get_systemd_pv) \ |
111 |
+ unitdir="$(systemd_get_systemunitdir)" \ |
112 |
+ libudevdir='${prefix}'/"$(get_udevdir)" \ |
113 |
+ install |
114 |
+ |
115 |
+ newinitd "${FILESDIR}"/rc-multipathd multipathd |
116 |
+ newinitd "${FILESDIR}"/multipath.rc multipath |
117 |
+ |
118 |
+ einstalldocs |
119 |
+} |
120 |
+ |
121 |
+pkg_postinst() { |
122 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
123 |
+ elog "If you need multipath on your system, you must" |
124 |
+ elog "add 'multipath' into your boot runlevel!" |
125 |
+ fi |
126 |
+} |