aboutsummaryrefslogtreecommitdiff
blob: 64fba83150ca1f5517c4031d4f59a8c1fd77e945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

SLOT="0"
LICENSE="|| ( GPL-2 BSD-2 )"

KEYWORDS="~x86 ~amd64"

DESCRIPTION="OpenIB diagnostic programs and scripts needed to diagnose an IB subnet."

HOMEPAGE="http://www.openfabrics.org/"
SRC_URI="http://www.openfabrics.org/downloads/management/infiniband-diags-${PV}.tar.gz"
S="${WORKDIR}/infiniband-diags-${PV}"

IUSE=""

RDEPEND="sys-cluster/libibcommon
	sys-cluster/libibumad
	sys-cluster/libibmad
	sys-cluster/openib-osm"
DEPEND="${RDEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/diags-perfquery.patch"
}

src_compile() {
	econf || die "could not configure"
	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "install failed"
}