* [gentoo-commits] dev/bircoph:master commit in: sys-infiniband/opensm/files/, sys-infiniband/opensm/, profiles/
@ 2014-12-27 0:36 Andrew Savchenko
0 siblings, 0 replies; only message in thread
From: Andrew Savchenko @ 2014-12-27 0:36 UTC (permalink / raw
To: gentoo-commits
commit: cf0b06220f52b808038d5b6e971138849f76c0e8
Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
AuthorDate: Sat Dec 27 00:36:16 2014 +0000
Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
CommitDate: Sat Dec 27 00:36:16 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=dev/bircoph.git;a=commit;h=cf0b0622
opensm: fix bug 531980
Remove rpm calls and spec file generation
---
profiles/categories | 1 +
sys-infiniband/opensm/ChangeLog | 32 ++++++++++++++
sys-infiniband/opensm/Manifest | 6 +++
.../opensm/files/opensm-3.3.17-norpm.patch | 32 ++++++++++++++
sys-infiniband/opensm/files/opensm.init.d | 24 ++++++++++
sys-infiniband/opensm/metadata.xml | 10 +++++
sys-infiniband/opensm/opensm-3.3.17.ebuild | 51 ++++++++++++++++++++++
7 files changed, 156 insertions(+)
diff --git a/profiles/categories b/profiles/categories
index 625a525..8b938e5 100644
--- a/profiles/categories
+++ b/profiles/categories
@@ -29,6 +29,7 @@ sys-apps
sys-boot
sys-cluster
sys-devel
+sys-infiniband
sys-kernel
sys-libs
x11-misc
diff --git a/sys-infiniband/opensm/ChangeLog b/sys-infiniband/opensm/ChangeLog
new file mode 100644
index 0000000..902d66f
--- /dev/null
+++ b/sys-infiniband/opensm/ChangeLog
@@ -0,0 +1,32 @@
+# ChangeLog for sys-infiniband/opensm
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/opensm/ChangeLog,v 1.6 2014/04/16 08:22:28 alexxy Exp $
+
+*opensm-3.3.17 (16 Apr 2014)
+
+ 16 Apr 2014; Alexey Shvetsov <alexxy@gentoo.org> +opensm-3.3.17.ebuild,
+ -opensm-3.3.13.ebuild:
+ Update ofed stack to 3.12-rc1
+
+ 13 Oct 2012; Alexey Shvetsov <alexxy@gentoo.org> opensm-3.3.15.ebuild:
+ [sys-infiniband] Update OFED
+
+*opensm-3.3.15 (12 Oct 2012)
+
+ 12 Oct 2012; Alexey Shvetsov <alexxy@gentoo.org> +opensm-3.3.15.ebuild:
+ [sys-infiniband] OFED 3.5 rc2 update
+
+*opensm-3.3.13 (18 Apr 2012)
+
+ 18 Apr 2012; Alexey Shvetsov <alexxy@gentoo.org> +opensm-3.3.13.ebuild,
+ -opensm-3.3.9.ebuild, files/opensm.init.d:
+ [sys-infiniband/opensm] Version bump to OFED 1.5.4.1
+
+ 02 Jul 2011; Alexey Shvetsov <alexxy@gentoo.org> opensm-3.3.9.ebuild:
+ Add ~amd64-linux keywrod
+
+*opensm-3.3.9 (30 Jun 2011)
+
+ 30 Jun 2011; Alexey Shvetsov <alexxy@gentoo.org> +opensm-3.3.9.ebuild,
+ +files/opensm.init.d, +metadata.xml:
+ Initial import to tree
diff --git a/sys-infiniband/opensm/Manifest b/sys-infiniband/opensm/Manifest
new file mode 100644
index 0000000..5b14ce0
--- /dev/null
+++ b/sys-infiniband/opensm/Manifest
@@ -0,0 +1,6 @@
+AUX opensm-3.3.17-norpm.patch 1613 SHA256 f9e73bfd04442f94228028ecbf0f65b49724dea82f9840a196c7790a1b4f0739 SHA512 6728f0463765f95dce6c04cb0c12460050914b56146105c31f5ed4a69de9351c704f02421073843024a01d733eaecd042549eb6b69bb50556b353c2dbc11819f WHIRLPOOL 3d6c3f3b70114474160af0406759a66529f786713568b73f65b86d6c2e8341dce3ef192681f0d14aa5c92838ecd94e3ded66df00d92df523af56a406e987ffb9
+AUX opensm.init.d 632 SHA256 6250dec944d6636e294b84a90332bf4f1ab1122cd5c9b1037b3d2327a81168da SHA512 1b4a43897d7b87142e7aa24ec619706b96ca3f76f92b411262b31c63f8aaa3340db0cade7547e9a5ca9307fe017ad1f12f4aae927aa54de2e6facd1a53c40e7a WHIRLPOOL cf9c2634ca0332bd3131e910fba30921f2dc83680a627d101f82098f969f5574a03d5cd213f5d76c546283cedc435a21e8d4747d9b48c46a24b83f66b105ae48
+DIST OFED-3.12-rc1.tgz 22055476 SHA256 14ca8a2b0d68e3ee9a37f475fa9eecd9a5ffd6055135f9d4d9db8319843a94dc SHA512 9f834d6982ab7e8ab47a8b5c958ab2e4c238ef983e47798e7f06655f69672ea1e996297939b381f26ed8c39552f6e62156173d5ddd2f0a7b6cad6aecdd973944 WHIRLPOOL 5a64b1d952890ea0e72e0ca93654a0fabc8f871475b05fcbe3b214ddfe4836f6b92d4fbc9e0f0d79acfe69d8c8d219b2c467c23654021e23eaf85ae6825ea4a9
+EBUILD opensm-3.3.17.ebuild 1287 SHA256 1da06375ab726e43d49c55fdd65c48eb2c8e5a48f62b5e828216c5922011e71d SHA512 84030d521d0c8835d7509ffb96292ddc454f3092b8669406b44055caf8bbd58b25367cba4faa753bb673f4e02dff17e218b2eec17bf03fdf02c2e9faa0577269 WHIRLPOOL 931c9f8dbf261f31bdd212d8db00bfb1f6f78424aa51c4c6ec08abb64504f33a30677ce5787dec2efb01eedcd95458bff93ce1faf098b9f8d73bc8478ba40981
+MISC ChangeLog 1097 SHA256 62d8b88b45d8cb342df55b1d3eeb2aba3778d04212187b0900986c447aeb8e5e SHA512 ef77004542345c050eff1184e1079c6d331c0631bd431e773a45aa623e6aa689984d9d128092ce693db6f4078f0a43846ae0261f354e978d0be17b4ca6580bab WHIRLPOOL a38e37afaefbdb57a0be2a8b9eaa355a6deed70d932955a9aeeca22f927988a06e41329ceef5b7c425eec1620a0377ed349c907d1d12ed5afb744b850f918233
+MISC metadata.xml 421 SHA256 78b506cf13aff9269660e6e54f6c27e82e8359c52746036c43841feb140907f8 SHA512 fbcf1c5eb846f4a8c6e1b9e0335c0b2e8f497792045690302e8424c254be8537c30e857aeba02c4a5eefba6c03890dae43f16d39b743c0628999f5c0b888766e WHIRLPOOL 4b6ab3e687f5aa20c7b9f3b3608835dbad6d0771df2a1c51b70805e1cec38eb868e89bc8795fe63883a2f2393ed1e023931533dfdc99333a8dab1ca1d3da5d97
diff --git a/sys-infiniband/opensm/files/opensm-3.3.17-norpm.patch b/sys-infiniband/opensm/files/opensm-3.3.17-norpm.patch
new file mode 100644
index 0000000..1300d92
--- /dev/null
+++ b/sys-infiniband/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-infiniband/opensm/files/opensm.init.d b/sys-infiniband/opensm/files/opensm.init.d
new file mode 100644
index 0000000..a01cdd0
--- /dev/null
+++ b/sys-infiniband/opensm/files/opensm.init.d
@@ -0,0 +1,24 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/opensm/files/opensm.init.d,v 1.2 2012/04/18 16:45:30 alexxy Exp $
+
+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 -- $OPTIONS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping OpenSM Infiniband Subnet Manager"
+ start-stop-daemon --stop --exec $prog
+ eend $?
+}
+
diff --git a/sys-infiniband/opensm/metadata.xml b/sys-infiniband/opensm/metadata.xml
new file mode 100644
index 0000000..82f7df3
--- /dev/null
+++ b/sys-infiniband/opensm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cluster</herd>
+ <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>
+</pkgmetadata>
diff --git a/sys-infiniband/opensm/opensm-3.3.17.ebuild b/sys-infiniband/opensm/opensm-3.3.17.ebuild
new file mode 100644
index 0000000..f6ca4db
--- /dev/null
+++ b/sys-infiniband/opensm/opensm-3.3.17.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/opensm/opensm-3.3.17.ebuild,v 1.1 2014/04/16 08:22:28 alexxy Exp $
+
+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=""
+
+DEPEND="
+ sys-infiniband/libibmad:${SLOT}
+ sys-infiniband/libibumad:${SLOT}"
+RDEPEND="$DEPEND
+ net-misc/iputils"
+block_other_ofed_versions
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-norpm.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-perf-mgr \
+ --enable-default-event-plugin \
+ --with-osmv="openib"
+}
+
+src_install() {
+ default
+ newconfd "${S}/scripts/opensm.sysconfig" 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"
+}
+
+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\`"
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-27 0:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-27 0:36 [gentoo-commits] dev/bircoph:master commit in: sys-infiniband/opensm/files/, sys-infiniband/opensm/, profiles/ Andrew Savchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox