diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-fabric/opensm |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-fabric/opensm')
-rw-r--r-- | sys-fabric/opensm/Manifest | 10 | ||||
-rw-r--r-- | sys-fabric/opensm/files/opensm-3.3.17-norpm.patch | 32 | ||||
-rw-r--r-- | sys-fabric/opensm/files/opensm-3.3.17-sldd.patch | 20 | ||||
-rw-r--r-- | sys-fabric/opensm/files/opensm.conf.d | 3 | ||||
-rw-r--r-- | sys-fabric/opensm/files/opensm.init.d | 23 | ||||
-rw-r--r-- | sys-fabric/opensm/files/sldd.conf.d | 21 | ||||
-rw-r--r-- | sys-fabric/opensm/files/sldd.init.d | 25 | ||||
-rw-r--r-- | sys-fabric/opensm/metadata.xml | 16 | ||||
-rw-r--r-- | sys-fabric/opensm/opensm-3.3.17-r1.ebuild | 60 |
9 files changed, 210 insertions, 0 deletions
diff --git a/sys-fabric/opensm/Manifest b/sys-fabric/opensm/Manifest new file mode 100644 index 000000000000..742b58d10312 --- /dev/null +++ b/sys-fabric/opensm/Manifest @@ -0,0 +1,10 @@ +AUX opensm-3.3.17-norpm.patch 1613 SHA256 f9e73bfd04442f94228028ecbf0f65b49724dea82f9840a196c7790a1b4f0739 SHA512 6728f0463765f95dce6c04cb0c12460050914b56146105c31f5ed4a69de9351c704f02421073843024a01d733eaecd042549eb6b69bb50556b353c2dbc11819f WHIRLPOOL 3d6c3f3b70114474160af0406759a66529f786713568b73f65b86d6c2e8341dce3ef192681f0d14aa5c92838ecd94e3ded66df00d92df523af56a406e987ffb9 +AUX opensm-3.3.17-sldd.patch 541 SHA256 ba2b81c50fe655303b81d065e2aa8ac8688bc7ef2ef363ff7bd936cfbb79e8f5 SHA512 9125578de137f99cb7efbeb9d6f28a415fb0ec4fa8bd25332ea9844470db126e8b5d04bc67f659bc1bd656049311f766fb1d384110de642f8f6f0269e205f602 WHIRLPOOL bafacd91502b308e0fc24653f15524978371c88bb538ceb6882d66f91295b0ca505392352491b32a35c99d2736dd4e85f9fafea3b4c18fb85d4484898a95e9eb +AUX opensm.conf.d 75 SHA256 9b0999f647f78651ac759a1c6fc9e2648bb5fdb2f4290e32eec6f971b8591b5a SHA512 19f03452eff5134a594a95eeef9397d7b2bf17ce8da9123f7f85a4bc924bc6762db119cbdbf5bd7f91f618acbf08d7e3e4097424bce5d4ba1f5789ec94cd2be2 WHIRLPOOL 86ad8d24aa24c1f974451835aa56d4c60415e6b28f95690f250ba948f52ac06327ce852d2e52e0f8324172169950bdc76df421e3de76a951e01f1490108766a2 +AUX opensm.init.d 521 SHA256 9dd341eeb98814a0951f0f279f246835e25a993dcdc378c5b2851a02fd5dad00 SHA512 c1bb83718455ff0da2fab32946d29015a8af9dbf15bc9c5e9ff197faf7a54d0650008d292371001f7a1b12b50dcb5a78f4c043334a2bef80391be8e08b03e85a WHIRLPOOL 4254a8bcf317c1748fc517090180bd7ca5e041c19aebc35903777057822b1bd8a3bd1798b8b89d8c51e22178e45f4c403f3950cb5d8eec694767e4b72747e37e +AUX sldd.conf.d 459 SHA256 c032c53111700a70c52145073bacef96be08ac3fb170ceeecdfdb1209cc9b9ab SHA512 d68dd5839db3f193a05f47aaa77d281134a370385c7235b59ac079d9dbc65fbe3292beb82f60a49239d1a308ac384bc7fd71ce5d2ecf5c9b29a182280cf18a35 WHIRLPOOL e776552768070b21d38005714d0605c0fbe2cd014a81db82497e15abd7e93f9311dd59e9df2ecb92ea4d8152144737932db41073aab0303df8aad25c2c4077ca +AUX sldd.init.d 612 SHA256 baff76bd510867b2fff17ae0a99d8de1c9c641c2bbbe02566d2d98769a1adbf4 SHA512 e939ddd800e9f077aff28e30b1e1a7ffa07b1fe779cb212f34e789b4f2bb421da34fcf5b5c186971ebea9b419e2307bfa02296350451938a48646b3bcac1a882 WHIRLPOOL 95b7f21aa888070304ba15d043efaf04cbb1761582b6ef7f46928592e03dab8abeb8919ca148ffdea80ed0ec096668cfb22fa08c8e5b5852535a7b79f922ed67 +DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9 +EBUILD opensm-3.3.17-r1.ebuild 1368 SHA256 522611ab0a22b5235ceb6b8dcdeaf413f6d6e5dba18b38a9e574a4baa9422038 SHA512 6481509199255b49e7ddbc1cd7947774c564f18eb8cb5df800e02a5148759074dcfe82d3450b817935b43c900edff335faf84c32c831b3d51445a06410a49180 WHIRLPOOL df3358221a7e3835dee21c66e8a065847c1f580faeea985c7b82df26ecccdee3836ed2176fc8417c1266993e1247d23877df19521a1764b03653cf6b0313a228 +MISC ChangeLog 705 SHA256 6c840ef09a46c80caa89ade1243c29904a467d0207749d59a1753da1ef92e8ff SHA512 4293ba113c452c9daf89a139bf7016d947cf879332307291c35d3c82edcb16d4773d37e2a67f779990c198e0a9d77a162550025d530f05256654f16b34b084c7 WHIRLPOOL 15f10999e594aaaf02ebe899f56cbd5afa42f7db03a34f3b72e9f849d6d5ed8ca37a97e96da0ade2aa1152df08fe60df6219282b0e287c1803498c2a3ec0d513 +MISC metadata.xml 579 SHA256 540abf935aa98bad160766edee58cd3cafa41bc8da26ef64d82eba9db49ef237 SHA512 b795ddb33400618477f6deec90e0e45207c85b8d5c2170cb9d2e01745144903dd998a1c01280f2e127ca3d2c7efb2ccc081a783d4c7af5d90a3196241b373803 WHIRLPOOL bbba1637a943ec516e5cf2bdc6a58ae184e6c2e076f94280f11e9e066c498b2c7f6a1ba31783a04acf26b4648c0c281c931e968aa09594f3b9e492da9e6e1053 diff --git a/sys-fabric/opensm/files/opensm-3.3.17-norpm.patch b/sys-fabric/opensm/files/opensm-3.3.17-norpm.patch new file mode 100644 index 000000000000..1300d923eb7d --- /dev/null +++ b/sys-fabric/opensm/files/opensm-3.3.17-norpm.patch @@ -0,0 +1,32 @@ +--- opensm-3.3.17/configure.in.orig 2014-01-30 23:13:35.000000000 +0400 ++++ opensm-3.3.17/configure.in 2014-12-27 02:48:11.264876067 +0300 +@@ -17,11 +17,7 @@ + [name of the RDMA service: "rdma" when using /etc/init.d/rdma to start RDMA services; "openibd" when using /etc/init.d/openibd to start RDMA services [default=${default_rdma_service}]])) + AC_SUBST(RDMA_SERVICE, ${with_rdma_service:-${default_rdma_service}}) + +-if { rpm -q sles-release || rpm -q openSUSE-release; } >/dev/null 2>&1; then +- default_stop="0 1 4 6" +-else +- default_stop="0 1 6" +-fi ++default_stop="0 1 6" + + default_start="null" + +@@ -282,4 +278,4 @@ + AC_CONFIG_FILES([man/opensm.8 man/torus-2QoS.8 man/torus-2QoS.conf.5 scripts/opensm.init scripts/redhat-opensm.init scripts/sldd.sh]) + + dnl Create the following Makefiles +-AC_OUTPUT([include/opensm/osm_version.h Makefile include/Makefile complib/Makefile libvendor/Makefile opensm/Makefile osmeventplugin/Makefile osmtest/Makefile opensm.spec]) ++AC_OUTPUT([include/opensm/osm_version.h Makefile include/Makefile complib/Makefile libvendor/Makefile opensm/Makefile osmeventplugin/Makefile osmtest/Makefile]) +--- opensm-3.3.17/Makefile.am.orig 2013-02-07 11:46:28.000000000 +0400 ++++ opensm-3.3.17/Makefile.am 2014-12-27 02:48:45.133654187 +0300 +@@ -19,7 +19,7 @@ + doc/partition-config.txt doc/opensm-sriov.txt \ + doc/opensm_release_notes-3.3.txt + +-EXTRA_DIST = autogen.sh opensm.spec $(various_scripts) $(man_MANS) $(docs) ++EXTRA_DIST = autogen.sh $(various_scripts) $(man_MANS) $(docs) + + dist-hook: $(EXTRA_DIST) + if [ -x $(top_srcdir)/gen_chlog.sh ] ; then \ diff --git a/sys-fabric/opensm/files/opensm-3.3.17-sldd.patch b/sys-fabric/opensm/files/opensm-3.3.17-sldd.patch new file mode 100644 index 000000000000..d7eb3ec24b9b --- /dev/null +++ b/sys-fabric/opensm/files/opensm-3.3.17-sldd.patch @@ -0,0 +1,20 @@ +--- opensm-3.3.17/scripts/sldd.sh.in.orig 2013-02-07 11:46:29.000000000 +0400 ++++ opensm-3.3.17/scripts/sldd.sh.in 2014-12-27 04:47:24.488636743 +0300 +@@ -42,7 +42,7 @@ + prefix=@prefix@ + exec_prefix=@exec_prefix@ + +-CONFIG=@sysconfdir@/sysconfig/opensm ++CONFIG=@sysconfdir@/conf.d/sldd + if [ -f $CONFIG ]; then + . $CONFIG + fi +@@ -57,7 +57,7 @@ + + RCP=${RCP:-/usr/bin/scp} + RSH=${RSH:-/usr/bin/ssh} +-IFCONFIG=${IFCONFIG:-'/sbin/ifconfig -a'} ++IFCONFIG=${IFCONFIG:-'/bin/ifconfig -a'} + + declare -i SLDD_DEBUG + RESCAN_TIME=${RESCAN_TIME:-60} diff --git a/sys-fabric/opensm/files/opensm.conf.d b/sys-fabric/opensm/files/opensm.conf.d new file mode 100644 index 000000000000..4f0cd49a4bc5 --- /dev/null +++ b/sys-fabric/opensm/files/opensm.conf.d @@ -0,0 +1,3 @@ +# Provide OpenSM options here. +# See man opensm for details +OSM_OPTIONS="" diff --git a/sys-fabric/opensm/files/opensm.init.d b/sys-fabric/opensm/files/opensm.init.d new file mode 100644 index 000000000000..fe2bef134bbe --- /dev/null +++ b/sys-fabric/opensm/files/opensm.init.d @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need openib + 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/files/sldd.conf.d b/sys-fabric/opensm/files/sldd.conf.d new file mode 100644 index 000000000000..ee0e88750310 --- /dev/null +++ b/sys-fabric/opensm/files/sldd.conf.d @@ -0,0 +1,21 @@ +# Tho following variables will used for sldd.sh +# +# You must setup this for sldd to work +OSM_HOSTS="" + +### Optional variables (defaults are commented out) + +# Debug level +#SLDD_DEBUG="0" + +# OpenSM cache files +#CACHE_FILE="/var/cache/opensm/guid2lid:/var/cache/opensm/guid2mkey:/var/cache/opensm/neighbors" + +# System calls +#PING="ping -w 1 -c 1" +#RCP="/usr/bin/scp" +#SSH="/usr/bin/ssh" +#IFCONFIG="/bin/ifconfig -a" + +# Delay between hosts scan +#RESCAN_TIME="60" diff --git a/sys-fabric/opensm/files/sldd.init.d b/sys-fabric/opensm/files/sldd.init.d new file mode 100644 index 000000000000..fce2995d2c38 --- /dev/null +++ b/sys-fabric/opensm/files/sldd.init.d @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need opensm + after net # ip net seems to be needed to perform management. +} + +prog=/usr/sbin/sldd.sh +pidfile=/var/run/sldd.pid + +start() { + ebegin "Starting Semi-static LID OpenSM Distribution Manager" + start-stop-daemon --start --background --pidfile "${pidfile}" \ + --make-pidfile --wait 500 --exec $prog + eend $? +} + +stop() { + ebegin "Stopping OpenSM Infiniband Subnet Manager" + start-stop-daemon --stop --pidfile "${pidfile}" + eend $? +} + diff --git a/sys-fabric/opensm/metadata.xml b/sys-fabric/opensm/metadata.xml new file mode 100644 index 000000000000..e2e73452a40a --- /dev/null +++ b/sys-fabric/opensm/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cluster@gentoo.org</email> + <name>Gentoo Cluster Project</name> + </maintainer> + <longdescription> +OpenSM provides an implementation for an InfiniBand Subnet Manager and +Administrator. Such a software entity is required to run for in order to +initialize the InfiniBand hardware (at least one per each InfiniBand subnet). +</longdescription> +<use> + <flag name="tools">Install ssld extra tool</flag> +</use> +</pkgmetadata> diff --git a/sys-fabric/opensm/opensm-3.3.17-r1.ebuild b/sys-fabric/opensm/opensm-3.3.17-r1.ebuild new file mode 100644 index 000000000000..6c66e3edf0e5 --- /dev/null +++ b/sys-fabric/opensm/opensm-3.3.17-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +OFED_VER="3.12" +OFED_RC="1" +OFED_RC_VER="1" +OFED_SUFFIX="1" + +inherit autotools eutils openib + +DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="tools" + +DEPEND=" + sys-fabric/libibmad:${SLOT} + sys-fabric/libibumad:${SLOT}" +RDEPEND="$DEPEND + tools? ( + net-misc/iputils + net-misc/openssh + )" +block_other_ofed_versions + +src_prepare() { + epatch "${FILESDIR}/${P}-norpm.patch" + epatch "${FILESDIR}/${P}-sldd.patch" + 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" opensm + insinto /etc/logrotate.d + newins "${S}/scripts/opensm.logrotate" opensm + # we dont nee 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\`" +} |