aboutsummaryrefslogtreecommitdiff
blob: f3c3292af65b145ba30315e1a96b232276dd2c7d (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

#
# Original Author: Alexey Shvetsov <alexxy@gentoo.org>
# Purpose:  Simplify working with OFED packages
#

HOMEPAGE="http://www.openfabrics.org/"
LICENSE="|| ( GPL-2 BSD-2 )"
SLOT="0"

inherit rpm eutils

case in ${OFED_VER}
	1.4*)
		SRC_URI="http://www.openfabrics.org/downloads/OFED/ofed-1.4/OFED-1.4.tgz"
		;;
esac

EXPORT_FUNCTIONS src_unpack

# @FUNCTION: openib_src_unpack
# @DESCRIPTION:
# This function will unpack OFED packages
openib_src_unpack() {
	unpack ${A}
	rpm_unpack "OFED-${OFED_VER}/SRPMS/${P}-${ofs}.rpm"
	unpack ./${P}.tar.gz
}