1 |
commit: 44f7577fa69164461cd3a07844fd0843d76f8c39 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 1 04:23:52 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 1 04:28:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44f7577f |
7 |
|
8 |
sys-fs/multipath-tools: add 0.8.8 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-fs/multipath-tools/Manifest | 2 + |
13 |
.../multipath-tools/multipath-tools-0.8.8.ebuild | 90 ++++++++++++++++++++++ |
14 |
2 files changed, 92 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/multipath-tools/Manifest b/sys-fs/multipath-tools/Manifest |
17 |
index 0a206de7b658..d2ac6728b539 100644 |
18 |
--- a/sys-fs/multipath-tools/Manifest |
19 |
+++ b/sys-fs/multipath-tools/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST multipath-tools-0.8.6.tar.gz 519405 BLAKE2B 5aed36550c76bbde0e874e37356b6c5a80a80b876b56dadb69ce09f0fb049a7097fd1c0aca5076f816848e2c2660f96680d7f16d56918a25299017b39f76f777 SHA512 82e5b7307e599ba6b059679c3987a442fb5be4885f0a27c260a99a07cb336b88d48e314b4ec951944e0200e4731522d8da043d98fa566857ecc6d100791c0e38 |
22 |
DIST multipath-tools-0.8.7.tar.gz 523535 BLAKE2B 3f59af86f5b9f9ea524bf0c36e4a4bc3e01f557f2e18486b5278fe10e3bcf10dbc7568768c0e95529885bcdca6bcf04021ad5261bd1e6a3aeae5eb95b9d54801 SHA512 c01aea837b13429d17688455b813947342ca1cabba19b22e13ce640c77e68335a6d410280a8298595e239131e6fcbb655fa6de5ff9857eac99aa175046a450cd |
23 |
+DIST multipath-tools-0.8.8-no-compress-man-pages.patch.bz2 2493 BLAKE2B 08d77d6524861a590e07e3e9eedb1039c9b15b589becd912f17f37f728a751c7566699540c025aa1f8a0b2e04db551b0093d066f6e340a15309794fdde197483 SHA512 662f32ba5437be2a3cfffc5a466dccb7923668eeef5f23112b31d6c1b43eca2917579729e975cfbe4cd60ecfaf547f534d304626ac19d165bb2f1a3ae4bb1cc6 |
24 |
+DIST multipath-tools-0.8.8.tar.gz 527412 BLAKE2B 15e24a04ff1c41c8562033ca22214c015ab4c4a9e9833323830b665793c1964b6fcb7b710761bf501f0e99d461d6e6c7dfe80851a0ded4d99693a1561490598f SHA512 f09932da93b6ab06f0f911b09c605ea931fb8cb8b5530ef9999d21a41056fb48e944fc245dfe20096b2746ce1c9ebb5b548e1182079a3b52659d33263a441969 |
25 |
|
26 |
diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.8.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.8.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..303eac62b7c9 |
29 |
--- /dev/null |
30 |
+++ b/sys-fs/multipath-tools/multipath-tools-0.8.8.ebuild |
31 |
@@ -0,0 +1,90 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+ |
37 |
+inherit linux-info systemd toolchain-funcs udev |
38 |
+ |
39 |
+DESCRIPTION="Device mapper target autoconfig" |
40 |
+HOMEPAGE="http://christophe.varoqui.free.fr/" |
41 |
+SRC_URI="https://github.com/opensvc/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-0.8.8-no-compress-man-pages.patch.bz2" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" |
47 |
+IUSE="systemd rbd test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-libs/json-c:= |
52 |
+ dev-libs/libaio |
53 |
+ dev-libs/userspace-rcu:= |
54 |
+ >=sys-fs/lvm2-2.02.45 |
55 |
+ >=virtual/libudev-232-r3 |
56 |
+ sys-libs/readline:0= |
57 |
+ rbd? ( sys-cluster/ceph ) |
58 |
+ systemd? ( sys-apps/systemd ) |
59 |
+" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ test? ( dev-util/cmocka )" |
62 |
+BDEPEND="virtual/pkgconfig" |
63 |
+ |
64 |
+CONFIG_CHECK="~DM_MULTIPATH" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}"/${PN}-0.8.7-respect-flags.patch |
68 |
+ "${WORKDIR}"/${PN}-0.8.8-no-compress-man-pages.patch |
69 |
+) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ |
74 |
+ # The upstream lacks any way to configure the build at present |
75 |
+ # and ceph is a huge dependency, so we're using sed to make it |
76 |
+ # optional until the upstream has a proper configure system |
77 |
+ if ! use rbd ; then |
78 |
+ sed \ |
79 |
+ -e "s/libcheckrbd.so/# libcheckrbd.so/" \ |
80 |
+ -e "s/-lrados//" \ |
81 |
+ -i libmultipath/checkers/Makefile \ |
82 |
+ || die |
83 |
+ fi |
84 |
+} |
85 |
+ |
86 |
+src_compile() { |
87 |
+ tc-export CC |
88 |
+ |
89 |
+ # LIBDM_API_FLUSH involves grepping files in /usr/include, |
90 |
+ # so force the test to go the way we want #411337. |
91 |
+ emake \ |
92 |
+ LIB="${EPREFIX}/$(get_libdir)" \ |
93 |
+ LIBDM_API_FLUSH=1 \ |
94 |
+ PKGCONFIG="$(tc-getPKG_CONFIG)" |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ dodir /sbin /usr/share/man/man{3,5,8} |
99 |
+ emake \ |
100 |
+ DESTDIR="${D}" \ |
101 |
+ LIB="${EPREFIX}/$(get_libdir)" \ |
102 |
+ RUN=run \ |
103 |
+ unitdir="$(systemd_get_systemunitdir)" \ |
104 |
+ libudevdir='${prefix}'/"$(get_udevdir)" \ |
105 |
+ pkgconfdir='${prefix}'/usr/'${LIB}'/pkgconfig \ |
106 |
+ install |
107 |
+ |
108 |
+ newinitd "${FILESDIR}"/multipathd-r1.rc multipathd |
109 |
+ newinitd "${FILESDIR}"/multipath.rc multipath |
110 |
+ |
111 |
+ einstalldocs |
112 |
+ |
113 |
+ find "${ED}" -type f -name "*.la" -delete || die |
114 |
+} |
115 |
+ |
116 |
+pkg_postinst() { |
117 |
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then |
118 |
+ elog "If you need multipath on your system, you must" |
119 |
+ elog "add 'multipath' into your boot runlevel!" |
120 |
+ fi |
121 |
+} |