aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-01-21 22:02:25 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2009-01-21 22:02:56 +0300
commit4477059246bc811e61144c1b44fba5b2386a208c (patch)
treed2f8689daa44590cf99d1e2916cdb22f52bb9a58 /eclass/openib.eclass
parentadd experimental ebuild for dapl-2.0.15 (diff)
downloadsci-4477059246bc811e61144c1b44fba5b2386a208c.tar.gz
sci-4477059246bc811e61144c1b44fba5b2386a208c.tar.bz2
sci-4477059246bc811e61144c1b44fba5b2386a208c.zip
add p.mask entry
Diffstat (limited to 'eclass/openib.eclass')
-rw-r--r--eclass/openib.eclass14
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass
index 714874c24..5c4d036b5 100644
--- a/eclass/openib.eclass
+++ b/eclass/openib.eclass
@@ -7,25 +7,33 @@
# Purpose: Simplify working with OFED packages
#
+EXPORT_FUNCTIONS src_unpack
+
HOMEPAGE="http://www.openfabrics.org/"
LICENSE="|| ( GPL-2 BSD-2 )"
SLOT="0"
inherit rpm eutils
+# @ECLASS-VARIABLE: OFED_VER
+# @DESCRIPTION:
+# Defines OFED version eg 1.4 or 1.4.0.1
+
+# @ECLASS-VARIABLE: OFED_SUFFIX
+# @DESCRIPTION:
+# Defines OFED package suffix eg -1.ofed1.4
+
case ${OFED_VER} in
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"
+ rpm_unpack "OFED-${OFED_VER}/SRPMS/${P}-${OFED_SUFFIX}.rpm"
unpack ./${P}.tar.gz
}