1 |
commit: be40870874711d398762b80ed81c2f3dd7242c58 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 1 15:42:35 2021 +0000 |
4 |
Commit: 罗百科 <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 1 15:43:00 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be408708 |
7 |
|
8 |
sys-fabric/opensm: Bump |
9 |
|
10 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
11 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
12 |
|
13 |
sys-fabric/opensm/Manifest | 1 + |
14 |
sys-fabric/opensm/opensm-3.3.23.ebuild | 58 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/sys-fabric/opensm/Manifest b/sys-fabric/opensm/Manifest |
18 |
index b3649eecb82..2e1884a4108 100644 |
19 |
--- a/sys-fabric/opensm/Manifest |
20 |
+++ b/sys-fabric/opensm/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST OFED-3.12-rc1.tgz 22055476 BLAKE2B 49e6411721392f418369a292513709f396fbb0f17001687aa15b5c0acdc91013cc67354e5978df56452178af7fbbd338a7ff408592ff9126a3045b9bb27375fe SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 |
23 |
+DIST opensm-3.3.23.tar.gz 1357906 BLAKE2B 7f085dc1e0a1f284baf1410661aa247ef7e48cdaa696c38ef8a38d5a214e03966b54fb75c035103ac0d6ab9e0a37500d5fad51b0b52c7f5edffb3c3ddfa86eb4 SHA512 249143fcf2cac0504923992d46dfbd6821aad3da55ecc12c92b273b4e59196f88d9d1802d9f58ae6f1ace49958e0222424aea9b48e5aba519e5a5736fc51c3fe |
24 |
|
25 |
diff --git a/sys-fabric/opensm/opensm-3.3.23.ebuild b/sys-fabric/opensm/opensm-3.3.23.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..ffcf8f39bf1 |
28 |
--- /dev/null |
29 |
+++ b/sys-fabric/opensm/opensm-3.3.23.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+inherit autotools eutils |
37 |
+ |
38 |
+HOMEPAGE="https://github.com/linux-rdma/opensm/" |
39 |
+DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB" |
40 |
+ |
41 |
+SRC_URI="https://github.com/linux-rdma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux" |
43 |
+IUSE="tools" |
44 |
+SLOT="0" |
45 |
+LICENSE="|| ( GPL-2 BSD-2 )" |
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 |
+ newconfd "${FILESDIR}/opensm.conf.d" opensm |
71 |
+ newinitd "${FILESDIR}/opensm.init.d" opensm |
72 |
+ insinto /etc/logrotate.d |
73 |
+ newins "${S}/scripts/opensm.logrotate" opensm |
74 |
+ # we dont need this int script |
75 |
+ rm "${ED}/etc/init.d/opensmd" || die "Dropping of upstream initscript failed" |
76 |
+ |
77 |
+ if use tools; then |
78 |
+ dosbin scripts/sldd.sh |
79 |
+ newconfd "${FILESDIR}/sldd.conf.d" sldd |
80 |
+ newinitd "${FILESDIR}/sldd.init.d" sldd |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+pkg_postinst() { |
85 |
+ einfo "To automatically configure the infiniband subnet manager on boot," |
86 |
+ einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:" |
87 |
+ einfo "\`rc-update add opensm default\`" |
88 |
+} |