diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-05-19 07:44:40 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-05-19 07:44:40 +0200 |
commit | e9839c4df0ffa4bed9c1e7764b1d682be5eecf2e (patch) | |
tree | b959b113bafdaf4ea3a3af5c1491d3617cb45b13 | |
parent | sci-biology/consed-20-r1: improve message on die() (diff) | |
download | sci-e9839c4df0ffa4bed9c1e7764b1d682be5eecf2e.tar.gz sci-e9839c4df0ffa4bed9c1e7764b1d682be5eecf2e.tar.bz2 sci-e9839c4df0ffa4bed9c1e7764b1d682be5eecf2e.zip |
fix intel-sdp.eclass for prefix
-rw-r--r-- | eclass/intel-sdp.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass index 0234520ab..be74bd114 100644 --- a/eclass/intel-sdp.eclass +++ b/eclass/intel-sdp.eclass @@ -52,7 +52,7 @@ RDEPEND="" DEPEND=">=app-arch/rpm2targz-9.0.0.3g" INTEL_SDP_YEAR=${INTEL_DPV%_update*} INTEL_SDP_DIR="opt/intel/${INTEL_SUBDIR}-${INTEL_SDP_YEAR:-${INTEL_PV1}}.${INTEL_PV3}.${INTEL_PV4}" -INTEL_SDP_EDIR="${EROOT#/}/${INTEL_SDP_DIR}" +INTEL_SDP_EDIR="${EROOT%/}/${INTEL_SDP_DIR}" S="${WORKDIR}" @@ -132,15 +132,16 @@ intel-sdp_src_install() { find opt -name \*sh -type f -exec sed -i \ -e "s:<.*DIR>:${INTEL_SDP_EDIR}:g" \ '{}' \; + mkdir -p "${ED:-${D}}"/ || die mv opt "${ED:-${D}}"/ || die "moving files failed" } intel-sdp_pkg_postinst() { # add product registry to intel "database" local l r - INTEL_SDP_DB="${EROOT#/}"/opt/intel/intel-sdp-products.db + INTEL_SDP_DB="${EROOT%/}"/opt/intel/intel-sdp-products.db for r in ${INTEL_RPMS}; do - l="$(ls -1 ${EROOT#/}/opt/intel/.${r}_*.log | head -n 1)" + l="$(ls -1 ${EROOT%/}/opt/intel/.${r}_*.log | head -n 1)" echo >> ${INTEL_SDP_DB} \ "<:${r%-${INTEL_PV4}*}-${INTEL_PV4}:${r}:${INTEL_SDP_EDIR}:${l}:>" done |