diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-11-22 17:16:14 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-11-22 17:16:14 +0000 |
commit | f4a8421ba3ca726a8edc37056bdfade13f709523 (patch) | |
tree | 6b3a6c1b51b0ae131fe95b1f2c8adb334f2e0b7c /eclass | |
parent | Add metadata.xml (diff) | |
download | gentoo-2-f4a8421ba3ca726a8edc37056bdfade13f709523.tar.gz gentoo-2-f4a8421ba3ca726a8edc37056bdfade13f709523.tar.bz2 gentoo-2-f4a8421ba3ca726a8edc37056bdfade13f709523.zip |
Moved CD check to src_unpack, made sure we only unpack the openssl libs if they're in SRC_URI, and make sure we only remove the openssl libs if the new ones are present.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/vmware-mod.eclass | 3 | ||||
-rw-r--r-- | eclass/vmware.eclass | 43 |
2 files changed, 29 insertions, 17 deletions
diff --git a/eclass/vmware-mod.eclass b/eclass/vmware-mod.eclass index 12b33742d633..c82d2ebc90c0 100644 --- a/eclass/vmware-mod.eclass +++ b/eclass/vmware-mod.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vmware-mod.eclass,v 1.5 2006/10/17 09:15:07 ikelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vmware-mod.eclass,v 1.6 2006/11/22 17:16:14 wolf31o2 Exp $ # Ensure vmware comes before linux-mod since we want linux-mod's pkg_preinst and @@ -72,6 +72,7 @@ vmware-mod_src_unpack() { # rm getversion.pl EPATCH_SUFFIX="patch" epatch "${FILESDIR}"/patches + [[ -d "${FILESDIR}"/patches/${mod} ]] && epatch "${FILESDIR}"/patches/${mod} convert_to_m "${S}"/${mod}-only/Makefile done } diff --git a/eclass/vmware.eclass b/eclass/vmware.eclass index 9a3b3d7b8142..a1668e5f58b2 100644 --- a/eclass/vmware.eclass +++ b/eclass/vmware.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vmware.eclass,v 1.15 2006/10/14 20:27:21 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vmware.eclass,v 1.16 2006/11/22 17:16:14 wolf31o2 Exp $ # This eclass is for all vmware-* ebuilds in the tree and should contain all # of the common components across the multiple packages. @@ -90,11 +90,13 @@ vmware_determine_product() { vmware_pkg_setup() { vmware_determine_product + # We create a group for VMware users due to bugs #104480 and #106170 + enewgroup "${VMWARE_GROUP}" +} + +vmware_src_unpack() { + vmware_determine_product case "${product}" in - vmware|vmware-console) - # We create a group for VMware users due to bugs #104480 and #106170 - enewgroup "${VMWARE_GROUP}" - ;; vmware-tools) # We grab our tarball from "CD" einfo "You will need ${TARBALL} from the VMware installation." @@ -102,13 +104,15 @@ vmware_pkg_setup() { cdrom_get_cds ${TARBALL} ;; esac -} - -vmware_src_unpack() { # If there is anything to unpack, at all, then we should be using MY_P. if [[ -n "${MY_P}" ]] then - unpack "${MY_P}".tar.gz + if [[ -e "${CDROM_ROOT}"/${MY_P}.tar.gz ]] + then + tar xzf "${CDROM_ROOT}"/${MY_P}.tar.gz + else + unpack "${MY_P}".tar.gz + fi if [[ -n "${ANY_ANY}" ]] then @@ -151,11 +155,18 @@ vmware_src_unpack() { epatch "${FILESDIR}"/${patch} done fi - # Unpack our new libs. - [ -f "${DISTDIR}"/vmware-libssl.so.0.9.7l.tar.bz2 ] && \ - unpack vmware-libssl.so.0.9.7l.tar.bz2 - [ -f "${DISTDIR}"/vmware-libcrypto.so.0.9.7l.tar.bz2 ] && \ - unpack vmware-libcrypto.so.0.9.7l.tar.bz2 + # Unpack our new libs + for a in ${A} + do + case ${a} in + vmware-libssl.so.0.9.7l.tar.bz2) + unpack vmware-libssl.so.0.9.7l.tar.bz2 + ;; + /vmware-libcrypto.so.0.9.7l.tar.bz2) + unpack vmware-libcrypto.so.0.9.7l.tar.bz2 + ;; + esac + done fi } @@ -195,14 +206,14 @@ vmware_src_install() { cd "${S}" # We remove the shipped libssl for bug #148682 - if [ -d "${S}"/lib/lib/libssl.so.0.9.7 ] + if [ -d "${S}"/libssl.so.0.9.7 ] then rm -rf "${S}"/lib/lib/libssl.so.0.9.7 # Now, we move in our own cp -pPR "${S}"/libssl.so.0.9.7 "${S}"/lib/lib fi # We remove the shipped libcrypto for bug #148682 - if [ -d "${S}"/lib/lib/libcrypto.so.0.9.7 ] + if [ -d "${S}"/libcrypto.so.0.9.7 ] then rm -rf "${S}"/lib/lib/libcrypto.so.0.9.7 # Now, we move in our own |