1 |
commit: 9fff7e7bd17fb3b933a3845e69099c70e037d142 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 27 20:55:53 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 27 20:57:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fff7e7b |
7 |
|
8 |
sys-fs/multipath-tools: rev bump |
9 |
|
10 |
- Fix pkgconfig file install location |
11 |
|
12 |
- Set run dir to /run |
13 |
|
14 |
- Update multipathd runscript |
15 |
|
16 |
- Require >=libudev-232 for sys/sysmacros.h. |
17 |
|
18 |
Closes: https://bugs.gentoo.org/685314 |
19 |
Closes: https://bugs.gentoo.org/698422 |
20 |
Package-Manager: Portage-2.3.80, Repoman-2.3.19 |
21 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
22 |
|
23 |
sys-fs/multipath-tools/files/multipathd-r1.rc | 12 +++ |
24 |
.../multipath-tools-0.8.3-r1.ebuild | 91 ++++++++++++++++++++++ |
25 |
2 files changed, 103 insertions(+) |
26 |
|
27 |
diff --git a/sys-fs/multipath-tools/files/multipathd-r1.rc b/sys-fs/multipath-tools/files/multipathd-r1.rc |
28 |
new file mode 100644 |
29 |
index 00000000000..59de1e6f71a |
30 |
--- /dev/null |
31 |
+++ b/sys-fs/multipath-tools/files/multipathd-r1.rc |
32 |
@@ -0,0 +1,12 @@ |
33 |
+#!/sbin/openrc-run |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+command="/sbin/multipathd" |
38 |
+pidfile="/run/multipathd.pid" |
39 |
+start_stop_daemon_args="--wait 1000" |
40 |
+ |
41 |
+depend() { |
42 |
+ need localmount |
43 |
+ after modules |
44 |
+} |
45 |
|
46 |
diff --git a/sys-fs/multipath-tools/multipath-tools-0.8.3-r1.ebuild b/sys-fs/multipath-tools/multipath-tools-0.8.3-r1.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..ac5a16737ab |
49 |
--- /dev/null |
50 |
+++ b/sys-fs/multipath-tools/multipath-tools-0.8.3-r1.ebuild |
51 |
@@ -0,0 +1,91 @@ |
52 |
+# Copyright 1999-2019 Gentoo Authors |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI="7" |
56 |
+ |
57 |
+inherit linux-info systemd toolchain-funcs udev vcs-snapshot toolchain-funcs |
58 |
+ |
59 |
+DESCRIPTION="Device mapper target autoconfig" |
60 |
+HOMEPAGE="http://christophe.varoqui.free.fr/" |
61 |
+SRC_URI="https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=${PV};sf=tgz -> ${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="GPL-2" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" |
66 |
+IUSE="systemd rbd" |
67 |
+ |
68 |
+BDEPEND="virtual/pkgconfig" |
69 |
+ |
70 |
+RDEPEND=" |
71 |
+ dev-libs/json-c:= |
72 |
+ dev-libs/libaio |
73 |
+ dev-libs/userspace-rcu:= |
74 |
+ >=sys-fs/lvm2-2.02.45 |
75 |
+ >=virtual/libudev-232-r3 |
76 |
+ sys-libs/readline:0= |
77 |
+ rbd? ( sys-cluster/ceph ) |
78 |
+ systemd? ( sys-apps/systemd ) |
79 |
+" |
80 |
+ |
81 |
+DEPEND="${RDEPEND}" |
82 |
+ |
83 |
+CONFIG_CHECK="~DM_MULTIPATH" |
84 |
+ |
85 |
+RESTRICT="test" |
86 |
+ |
87 |
+PATCHES=( |
88 |
+ "${FILESDIR}"/${PN}-0.7.5-respect-flags.patch |
89 |
+ "${FILESDIR}"/${PN}-0.8.3-no-gziped-docs.patch |
90 |
+) |
91 |
+ |
92 |
+get_systemd_pv() { |
93 |
+ use systemd && \ |
94 |
+ $(tc-getPKG_CONFIG) --modversion systemd |
95 |
+} |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ default |
99 |
+ |
100 |
+ # The upstream lacks any way to configure the build at present |
101 |
+ # and ceph is a huge dependency, so we're using sed to make it |
102 |
+ # optional until the upstream has a proper configure system |
103 |
+ if ! use rbd ; then |
104 |
+ sed \ |
105 |
+ -e "s/libcheckrbd.so/# libcheckrbd.so/" \ |
106 |
+ -e "s/-lrados//" \ |
107 |
+ -i libmultipath/checkers/Makefile \ |
108 |
+ || die |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+src_compile() { |
113 |
+ # LIBDM_API_FLUSH involves grepping files in /usr/include, |
114 |
+ # so force the test to go the way we want #411337. |
115 |
+ emake \ |
116 |
+ CC="$(tc-getCC)" \ |
117 |
+ LIBDM_API_FLUSH=1 SYSTEMD="$(get_systemd_pv)" |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ dodir /sbin /usr/share/man/man{5,8} |
122 |
+ emake \ |
123 |
+ DESTDIR="${D}" \ |
124 |
+ RUN=run \ |
125 |
+ SYSTEMD=$(get_systemd_pv) \ |
126 |
+ unitdir="$(systemd_get_systemunitdir)" \ |
127 |
+ libudevdir='${prefix}'/"$(get_udevdir)" \ |
128 |
+ pkgconfdir='${prefix}'/usr/'${LIB}'/pkgconfig \ |
129 |
+ install |
130 |
+ |
131 |
+ newinitd "${FILESDIR}"/multipathd-r1.rc multipathd |
132 |
+ newinitd "${FILESDIR}"/multipath.rc multipath |
133 |
+ |
134 |
+ einstalldocs |
135 |
+} |
136 |
+ |
137 |
+pkg_postinst() { |
138 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
139 |
+ elog "If you need multipath on your system, you must" |
140 |
+ elog "add 'multipath' into your boot runlevel!" |
141 |
+ fi |
142 |
+} |