You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
62 lines
1.3 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
13 years ago
|
|
||
11 years ago
|
EAPI="5"
|
||
13 years ago
|
|
||
11 years ago
|
OFED_VER="3.12"
|
||
|
OFED_RC="1"
|
||
|
OFED_RC_VER="1"
|
||
13 years ago
|
OFED_SUFFIX="1"
|
||
|
|
||
10 years ago
|
inherit autotools eutils openib
|
||
13 years ago
|
|
||
|
DESCRIPTION="OpenSM - InfiniBand Subnet Manager and Administration for OpenIB"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux"
|
||
10 years ago
|
IUSE="tools"
|
||
13 years ago
|
|
||
|
DEPEND="
|
||
8 years ago
|
sys-fabric/libibmad:${SLOT}
|
||
|
sys-fabric/libibumad:${SLOT}"
|
||
13 years ago
|
RDEPEND="$DEPEND
|
||
10 years ago
|
tools? (
|
||
|
net-misc/iputils
|
||
|
net-misc/openssh
|
||
|
)"
|
||
13 years ago
|
block_other_ofed_versions
|
||
13 years ago
|
|
||
10 years ago
|
src_prepare() {
|
||
|
epatch "${FILESDIR}/${P}-norpm.patch"
|
||
|
epatch "${FILESDIR}/${P}-sldd.patch"
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
13 years ago
|
src_configure() {
|
||
|
econf \
|
||
|
--enable-perf-mgr \
|
||
|
--enable-default-event-plugin \
|
||
|
--with-osmv="openib"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
10 years ago
|
newconfd "${FILESDIR}/opensm.conf.d" opensm
|
||
13 years ago
|
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"
|
||
10 years ago
|
|
||
|
if use tools; then
|
||
|
dosbin scripts/sldd.sh
|
||
|
newconfd "${FILESDIR}/sldd.conf.d" sldd
|
||
|
newinitd "${FILESDIR}/sldd.init.d" sldd
|
||
|
fi
|
||
13 years ago
|
}
|
||
|
|
||
|
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\`"
|
||
|
}
|