aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-01-22 00:40:40 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2009-01-22 00:40:40 +0300
commitdcdeae9cd8d2df5892297364e9cc4f903caae6bd (patch)
tree51f96959daa467ebb8cc0788a0da2495dcaf2035
parentAdd new libibcm-1.0.4 (diff)
downloadsci-dcdeae9cd8d2df5892297364e9cc4f903caae6bd.tar.gz
sci-dcdeae9cd8d2df5892297364e9cc4f903caae6bd.tar.bz2
sci-dcdeae9cd8d2df5892297364e9cc4f903caae6bd.zip
update eclass
-rw-r--r--eclass/openib.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/openib.eclass b/eclass/openib.eclass
index 3726625bc..98e16ef12 100644
--- a/eclass/openib.eclass
+++ b/eclass/openib.eclass
@@ -29,11 +29,20 @@ case ${OFED_VER} in
;;
esac
+case ${PV} in
+ *p*)
+ MY_PV="${PV/p/}"
+ ;;
+ *)
+ MY_PV="${PV}"
+ ;;
+esac
+
# @FUNCTION: openib_src_unpack
# @DESCRIPTION:
# This function will unpack OFED packages
openib_src_unpack() {
unpack ${A}
- rpm_unpack "OFED-${OFED_VER}/SRPMS/${P}-${OFED_SUFFIX}.src.rpm"
- unpack ./${P}.tar.gz
+ rpm_unpack "OFED-${OFED_VER}/SRPMS/${PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
+ unpack ./${PN}-${MY_PV}.tar.gz
}