From d99093fb4bb5652015c06274d64083daa2439e4f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 3 Mar 2021 10:28:17 +0000 Subject: gentoo resync : 03.03.2021 --- sys-fabric/opensm/Manifest | 3 ++ sys-fabric/opensm/files/opensm.init.d.2 | 22 ++++++++++++ sys-fabric/opensm/opensm-3.3.23-r1.ebuild | 58 +++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 sys-fabric/opensm/files/opensm.init.d.2 create mode 100644 sys-fabric/opensm/opensm-3.3.23-r1.ebuild (limited to 'sys-fabric/opensm') diff --git a/sys-fabric/opensm/Manifest b/sys-fabric/opensm/Manifest index 99678c04aafa..8536a2563340 100644 --- a/sys-fabric/opensm/Manifest +++ b/sys-fabric/opensm/Manifest @@ -2,8 +2,11 @@ AUX opensm-3.3.17-norpm.patch 1613 BLAKE2B a995f6612435b16ed35130beb12bafcb25539 AUX opensm-3.3.17-sldd.patch 541 BLAKE2B ac5fe8d8773c05c53b67e0854f1deb9fa45e1397e268f79b64a4340ef01a68d94eff4f3b9c3148b2eb98bfa3732580cdcf5d349edeb25bee8f5d1f225d9f730b SHA512 9125578de137f99cb7efbeb9d6f28a415fb0ec4fa8bd25332ea9844470db126e8b5d04bc67f659bc1bd656049311f766fb1d384110de642f8f6f0269e205f602 AUX opensm.conf.d 75 BLAKE2B 35bae95379baed1c06293e8a2d2849310b1f441138d9e67c313b4bc2905b53943cc256aa967fd1744616f4fca2fabbca6a3760ec0dec3d79bae5430bfcf70ec5 SHA512 19f03452eff5134a594a95eeef9397d7b2bf17ce8da9123f7f85a4bc924bc6762db119cbdbf5bd7f91f618acbf08d7e3e4097424bce5d4ba1f5789ec94cd2be2 AUX opensm.init.d 521 BLAKE2B 965da36b4bcb1ec6535424639a7aee22e3400df854665a7733710119f1a92f97d4989549d9fbbb32beb55ad1d14d3d085efcb837a1f34b63276e20c9c4bbed3a SHA512 c1bb83718455ff0da2fab32946d29015a8af9dbf15bc9c5e9ff197faf7a54d0650008d292371001f7a1b12b50dcb5a78f4c043334a2bef80391be8e08b03e85a +AUX opensm.init.d.2 502 BLAKE2B 9e94abb51879c40a0467123596faf13aff21afa8b86c01dd26af3c11352da46a92394437e6edeab513b95f8bb3bdcd5c250be69e17da5fb2e08b7501556729e2 SHA512 deb3c84a06084d30fb735fdbc87f3352215ce2c7593f65333ca8b315e0e0217c3ba8b759d95f19cff260bdea22a05032b1613e72d48a63a843fa79a167d94ddc AUX sldd.conf.d 459 BLAKE2B 6a61a958a295812153ad254d38503c967d029375b9fcc40231ce5ef8bde0373eabe7a2ec955b01377fd333211a541e2d1835c610db06ad475373f040dcd82068 SHA512 d68dd5839db3f193a05f47aaa77d281134a370385c7235b59ac079d9dbc65fbe3292beb82f60a49239d1a308ac384bc7fd71ce5d2ecf5c9b29a182280cf18a35 AUX sldd.init.d 612 BLAKE2B 970ac3512d62e5dd849a7a4a897bc96d32fbed84f9b8806bcc0cc962b0e30cc69a0fc8ada2cea7ef03d7ffbe0f6a171f9eeaf0e914c7816da99474c340e35259 SHA512 e939ddd800e9f077aff28e30b1e1a7ffa07b1fe779cb212f34e789b4f2bb421da34fcf5b5c186971ebea9b419e2307bfa02296350451938a48646b3bcac1a882 DIST OFED-3.12-rc1.tgz 22055476 BLAKE2B 49e6411721392f418369a292513709f396fbb0f17001687aa15b5c0acdc91013cc67354e5978df56452178af7fbbd338a7ff408592ff9126a3045b9bb27375fe SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 +DIST opensm-3.3.23.tar.gz 1357906 BLAKE2B 7f085dc1e0a1f284baf1410661aa247ef7e48cdaa696c38ef8a38d5a214e03966b54fb75c035103ac0d6ab9e0a37500d5fad51b0b52c7f5edffb3c3ddfa86eb4 SHA512 249143fcf2cac0504923992d46dfbd6821aad3da55ecc12c92b273b4e59196f88d9d1802d9f58ae6f1ace49958e0222424aea9b48e5aba519e5a5736fc51c3fe EBUILD opensm-3.3.17-r1.ebuild 1367 BLAKE2B ff5739eacc3b04e7e5149ee1afd3722eedfedf22fe8e5cd531e7c16b0c061f65df4beb7620719b21faa0025479d50ff3af26b05562114b068f16768dc63f69ee SHA512 268ff24c075a0df8fcc346864bfa46ad57bb03104e08c9ecf758e392c1ee81b236d76631a0fd81af984021d25c445dc5953823064233a789c0a446263480ee29 +EBUILD opensm-3.3.23-r1.ebuild 1389 BLAKE2B 0e3a8515865535c9e2c0b02484c9c9b1edb9eb3f0fdaacca03448ec45631e1f789cf310176244de137ecba249a4558cf8614a890eedafb1504bf43984292dce6 SHA512 7f15a08be1c3e182894768d7c971471f5118672f4626be7d8dff7a4d71d9756aebb09b60f0e71263f04f5e4506c09a50b6017865c5a6c0f8006a5710baa5595e MISC metadata.xml 579 BLAKE2B 02d654e22523ce9662d2cee069e3a0e8bbc40054a781801d1d1b0db1e3d4022230108f0e49062493b9480762c58e41fffdb6df52b18297ed93ac5ea1a05b0cc3 SHA512 b795ddb33400618477f6deec90e0e45207c85b8d5c2170cb9d2e01745144903dd998a1c01280f2e127ca3d2c7efb2ccc081a783d4c7af5d90a3196241b373803 diff --git a/sys-fabric/opensm/files/opensm.init.d.2 b/sys-fabric/opensm/files/opensm.init.d.2 new file mode 100644 index 000000000000..238449cb3f40 --- /dev/null +++ b/sys-fabric/opensm/files/opensm.init.d.2 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + after net # ip net seems to be needed to perform management. +} + +prog=/usr/sbin/opensm + +start() { + ebegin "Starting OpenSM Infiniband Subnet Manager" + start-stop-daemon --start --background --exec $prog -- $OSM_OPTIONS + eend $? +} + +stop() { + ebegin "Stopping OpenSM Infiniband Subnet Manager" + start-stop-daemon --stop --exec $prog + eend $? +} + diff --git a/sys-fabric/opensm/opensm-3.3.23-r1.ebuild b/sys-fabric/opensm/opensm-3.3.23-r1.ebuild new file mode 100644 index 000000000000..12fc2994bc55 --- /dev/null +++ b/sys-fabric/opensm/opensm-3.3.23-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit autotools eutils + +HOMEPAGE="https://github.com/linux-rdma/opensm/" +DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB" + +SRC_URI="https://github.com/linux-rdma/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="tools" +SLOT="0" +LICENSE="|| ( GPL-2 BSD-2 )" + +DEPEND="sys-cluster/rdma-core" +RDEPEND="$DEPEND + tools? ( + net-misc/iputils + net-misc/openssh + )" + +PATCHES=( "${FILESDIR}/${PN}-3.3.17-sldd.patch" ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --enable-perf-mgr \ + --enable-default-event-plugin \ + --with-osmv="openib" +} + +src_install() { + default + newconfd "${FILESDIR}/opensm.conf.d" opensm + newinitd "${FILESDIR}/opensm.init.d.2" opensm + insinto /etc/logrotate.d + newins "${S}/scripts/opensm.logrotate" opensm + # we dont need this int script + rm "${ED}/etc/init.d/opensmd" || die "Dropping of upstream initscript failed" + + if use tools; then + dosbin scripts/sldd.sh + newconfd "${FILESDIR}/sldd.conf.d" sldd + newinitd "${FILESDIR}/sldd.init.d" sldd + fi +} + +pkg_postinst() { + einfo "To automatically configure the infiniband subnet manager on boot," + einfo "edit /etc/opensm.conf and add opensm to your start-up scripts:" + einfo "\`rc-update add opensm default\`" +} -- cgit v1.2.3