/[gentoo-x86]/eclass/openib.eclass
Gentoo

Diff of /eclass/openib.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.10 Revision 1.11
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/openib.eclass,v 1.10 2014/04/16 07:31:00 alexxy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/openib.eclass,v 1.11 2014/04/16 10:09:29 alexxy Exp $
4 4
5# @ECLASS: openib.eclass 5# @ECLASS: openib.eclass
6# @AUTHOR: 6# @AUTHOR:
7# Original Author: Alexey Shvetsov <alexxy@gentoo.org> 7# Original Author: Alexey Shvetsov <alexxy@gentoo.org>
8# @BLURB: Simplify working with OFED packages 8# @BLURB: Simplify working with OFED packages
113# @DESCRIPTION: 113# @DESCRIPTION:
114# This function will unpack OFED packages 114# This function will unpack OFED packages
115openib_src_unpack() { 115openib_src_unpack() {
116 unpack ${A} 116 unpack ${A}
117 if [ -z ${OFED_RC} ]; then 117 if [ -z ${OFED_RC} ]; then
118 case ${PN} in
119 ofed)
120 rpm_unpack "./OFED-${OFED_VER}/SRPMS/${MY_PN}-${OFED_VER}-${OFED_SUFFIX}.src.rpm"
121 ;;
122 *)
118 rpm_unpack "./OFED-${OFED_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm" 123 rpm_unpack "./OFED-${OFED_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
124 ;;
125 esac
119 else 126 else
127 case ${PN} in
128 ofed)
129 rpm_unpack "./OFED-${OFED_VER}-rc${OFED_RC_VER}/SRPMS/${MY_PN}-${OFED_VER}-${OFED_SUFFIX}.src.rpm"
130 ;;
131 *)
120 rpm_unpack "./OFED-${OFED_VER}-rc${OFED_RC_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm" 132 rpm_unpack "./OFED-${OFED_VER}-rc${OFED_RC_VER}/SRPMS/${MY_PN}-${MY_PV}-${OFED_SUFFIX}.src.rpm"
133 ;;
134 esac
121 fi 135 fi
122 if [ -z ${OFED_SNAPSHOT} ]; then 136 if [ -z ${OFED_SNAPSHOT} ]; then
137 case ${PN} in
138 ofed)
139 unpack ./${MY_PN}-${OFED_VER}.${EXT}
140 ;;
141 *)
123 unpack ./${MY_PN}-${MY_PV}.${EXT} 142 unpack ./${MY_PN}-${MY_PV}.${EXT}
143 ;;
144 esac
124 else 145 else
146 case ${PN} in
147 ofed)
148 unpack ./${MY_PN}-${OFED_VER}-${OFED_SUFFIX}.${EXT}
149 ;;
150 *)
125 unpack ./${MY_PN}-${MY_PV}-${OFED_SUFFIX}.${EXT} 151 unpack ./${MY_PN}-${MY_PV}-${OFED_SUFFIX}.${EXT}
152 ;;
153 esac
126 fi 154 fi
127} 155}

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20