aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-01-22 01:29:07 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2009-01-22 01:29:07 +0300
commit3730520859350cbdc14ee7e7fede81dad05417ef (patch)
tree683d2900f0a3727232ae6874818989dd7d78be7e /eclass/openib.eclass
parentupdate ebuild (diff)
downloadsci-3730520859350cbdc14ee7e7fede81dad05417ef.tar.gz
sci-3730520859350cbdc14ee7e7fede81dad05417ef.tar.bz2
sci-3730520859350cbdc14ee7e7fede81dad05417ef.zip
updaet eclass
Diffstat (limited to 'eclass/openib.eclass')
-rw-r--r--eclass/openib.eclass15
1 files changed, 13 insertions, 2 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass
index 98e16ef12..5201d3661 100644
--- a/eclass/openib.eclass
+++ b/eclass/openib.eclass
@@ -29,6 +29,15 @@ case ${OFED_VER} in
;;
esac
+case ${PN} in
+ openib-osm)
+ MY_PN="opensm"
+ ;;
+ openib-diags)
+ MY_PN="infiniband-diags"
+ ;;
+esac
+
case ${PV} in
*p*)
MY_PV="${PV/p/}"
@@ -38,11 +47,13 @@ case ${PV} in
;;
esac
+S="${WORKDIR}/${MY_PN}-${MY_PV}"
+
# @FUNCTION: openib_src_unpack
# @DESCRIPTION:
# This function will unpack OFED packages
openib_src_unpack() {
unpack ${A}
- rpm_unpack "OFED-${OFED_VER}/SRPMS/${PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
- unpack ./${PN}-${MY_PV}.tar.gz
+ rpm_unpack "OFED-${OFED_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
+ unpack ./${MY_PN}-${MY_PV}.tar.gz
}