diff options
author | Alexey Shvetsov <alexxy@gentoo.org> | 2011-06-30 22:04:54 +0000 |
---|---|---|
committer | Alexey Shvetsov <alexxy@gentoo.org> | 2011-06-30 22:04:54 +0000 |
commit | 539adee88430452b96059b0ec5482670d2ce52e9 (patch) | |
tree | b1809e770e4560f38c6b1e56d8dd6cff1dddc85a /sys-infiniband | |
parent | [sys-infiniband/openib-files] Initial import to tree (diff) | |
download | gentoo-2-539adee88430452b96059b0ec5482670d2ce52e9.tar.gz gentoo-2-539adee88430452b96059b0ec5482670d2ce52e9.tar.bz2 gentoo-2-539adee88430452b96059b0ec5482670d2ce52e9.zip |
[sys-infiniband/opensm] Initial import to tree
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'sys-infiniband')
-rw-r--r-- | sys-infiniband/opensm/ChangeLog | 10 | ||||
-rw-r--r-- | sys-infiniband/opensm/files/opensm.init.d | 28 | ||||
-rw-r--r-- | sys-infiniband/opensm/metadata.xml | 10 | ||||
-rw-r--r-- | sys-infiniband/opensm/opensm-3.3.9.ebuild | 44 |
4 files changed, 92 insertions, 0 deletions
diff --git a/sys-infiniband/opensm/ChangeLog b/sys-infiniband/opensm/ChangeLog new file mode 100644 index 000000000000..dee9f3117fff --- /dev/null +++ b/sys-infiniband/opensm/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-infiniband/opensm +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/opensm/ChangeLog,v 1.1 2011/06/30 22:04:54 alexxy Exp $ + +*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/files/opensm.init.d b/sys-infiniband/opensm/files/opensm.init.d new file mode 100644 index 000000000000..74598b7bc9e2 --- /dev/null +++ b/sys-infiniband/opensm/files/opensm.init.d @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2011 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.1 2011/06/30 22:04:54 alexxy Exp $ + +# Based on opensm script from openfabrics.org, +# Copyright (c) 2006 Mellanox Technologies. All rights reserved. +# 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 -- $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 000000000000..82f7df3d4706 --- /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.9.ebuild b/sys-infiniband/opensm/opensm-3.3.9.ebuild new file mode 100644 index 000000000000..6ce813b665ef --- /dev/null +++ b/sys-infiniband/opensm/opensm-3.3.9.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-infiniband/opensm/opensm-3.3.9.ebuild,v 1.1 2011/06/30 22:04:54 alexxy Exp $ + +EAPI="4" + +OFED_VER="1.5.3.1" +OFED_SUFFIX="1" + +inherit openib + +DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=" + >=sys-infiniband/libibmad-1.3.7 + >=sys-infiniband/libibumad-1.3.7" +RDEPEND="$DEPEND + sys-infiniband/openib-files + net-misc/iputils" + +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 "${D}/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\`" +} |