Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fabric/opensm/
Date: Sat, 15 Jan 2022 23:34:17
Message-Id: 1642289642.a822d01fbb93072086d6548b181c36ca9636f374.soap@gentoo
1 commit: a822d01fbb93072086d6548b181c36ca9636f374
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 15 23:34:02 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 15 23:34:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a822d01f
7
8 sys-fabric/opensm: add 3.3.24
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 sys-fabric/opensm/Manifest | 1 +
13 sys-fabric/opensm/opensm-3.3.24.ebuild | 62 ++++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/sys-fabric/opensm/Manifest b/sys-fabric/opensm/Manifest
17 index 2e1884a41089..db504d42dedd 100644
18 --- a/sys-fabric/opensm/Manifest
19 +++ b/sys-fabric/opensm/Manifest
20 @@ -1,2 +1,3 @@
21 DIST OFED-3.12-rc1.tgz 22055476 BLAKE2B 49e6411721392f418369a292513709f396fbb0f17001687aa15b5c0acdc91013cc67354e5978df56452178af7fbbd338a7ff408592ff9126a3045b9bb27375fe SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944
22 DIST opensm-3.3.23.tar.gz 1357906 BLAKE2B 7f085dc1e0a1f284baf1410661aa247ef7e48cdaa696c38ef8a38d5a214e03966b54fb75c035103ac0d6ab9e0a37500d5fad51b0b52c7f5edffb3c3ddfa86eb4 SHA512 249143fcf2cac0504923992d46dfbd6821aad3da55ecc12c92b273b4e59196f88d9d1802d9f58ae6f1ace49958e0222424aea9b48e5aba519e5a5736fc51c3fe
23 +DIST opensm-3.3.24.tar.gz 1359599 BLAKE2B 0498ea95e83f47d2a60696bbec7242ecd5f538fa3bcdeb083a5473c3f0fd660382cd661b8bce0ac152f64bf7bcd934ca8007e7a9f528b7bd15c25af963780b85 SHA512 292449b1282008589ce6cf6a649bb64afabf359d23a8fa4afa38217801256a6a5f06912c9e463c0fdac30039aff9eceb212e8560bf05c7253c4e73080e16072e
24
25 diff --git a/sys-fabric/opensm/opensm-3.3.24.ebuild b/sys-fabric/opensm/opensm-3.3.24.ebuild
26 new file mode 100644
27 index 000000000000..b80d8348a508
28 --- /dev/null
29 +++ b/sys-fabric/opensm/opensm-3.3.24.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit autotools
37 +
38 +DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
39 +HOMEPAGE="https://github.com/linux-rdma/opensm/"
40 +SRC_URI="https://github.com/linux-rdma/opensm/releases/download/${PV}/${P}.tar.gz"
41 +
42 +LICENSE="|| ( GPL-2 BSD-2 )"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86 ~amd64-linux"
45 +IUSE="tools"
46 +
47 +DEPEND="sys-cluster/rdma-core"
48 +RDEPEND="${DEPEND}
49 + tools? (
50 + net-misc/iputils
51 + net-misc/openssh
52 + )"
53 +
54 +PATCHES=( "${FILESDIR}"/${PN}-3.3.17-sldd.patch )
55 +
56 +src_prepare() {
57 + default
58 + eautoreconf
59 +}
60 +
61 +src_configure() {
62 + econf \
63 + --enable-perf-mgr \
64 + --enable-default-event-plugin \
65 + --with-osmv="openib"
66 +}
67 +
68 +src_install() {
69 + default
70 +
71 + newconfd "${FILESDIR}"/opensm.conf.d opensm
72 + newinitd "${FILESDIR}"/opensm.init.d.2 opensm
73 +
74 + insinto /etc/logrotate.d
75 + newins scripts/opensm.logrotate opensm
76 + # we dont need this int script
77 + rm "${ED}"/etc/init.d/opensmd || die "Dropping of upstream initscript failed"
78 +
79 + if use tools; then
80 + dosbin scripts/sldd.sh
81 + newconfd "${FILESDIR}"/sldd.conf.d sldd
82 + newinitd "${FILESDIR}"/sldd.init.d sldd
83 + fi
84 +
85 + find "${ED}" -name '*.la' -delete || die
86 +}
87 +
88 +pkg_postinst() {
89 + einfo "To automatically configure the infiniband subnet manager on boot,"
90 + einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:"
91 + einfo "\`rc-update add opensm default\`"
92 +}