Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 32737 | Differences between
and this patch

Collapse All | Expand All

(-)vmware-workstation-4.5.1.7568-r1.ebuild (-23 / +26 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
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/app-emulation/vmware-workstation/vmware-workstation-4.5.1.7568-r1.ebuild,v 1.1 2004/06/09 19:23:00 wolf31o2 Exp $
3
# $Header: $
4
4
5
# Unlike many other binary packages the user doesn't need to agree to a licence
5
# Unlike many other binary packages the user doesn't need to agree to a licence
6
# to download VMWare. The agreeing to a licence is part of the configure step
6
# to download VMWare. The agreeing to a licence is part of the configure step
Lines 9-16 Link Here
9
inherit eutils
9
inherit eutils
10
10
11
S=${WORKDIR}/vmware-distrib
11
S=${WORKDIR}/vmware-distrib
12
N26KernSupport="vmware-any-any-update69"
12
NP="VMware-workstation-4.5.2-8848"
13
NP="VMware-workstation-4.5.1-7568"
14
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
13
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
15
HOMEPAGE="http://www.vmware.com/products/desktop/ws_features.html"
14
HOMEPAGE="http://www.vmware.com/products/desktop/ws_features.html"
16
SRC_URI="http://vmware-svca.www.conxion.com/software/wkst/${NP}.tar.gz
15
SRC_URI="http://vmware-svca.www.conxion.com/software/wkst/${NP}.tar.gz
Lines 21-34 Link Here
21
	http://vmware-chil.www.conxion.com/software/wkst/${NP}.tar.gz
20
	http://vmware-chil.www.conxion.com/software/wkst/${NP}.tar.gz
22
	http://vmware-heva.www.conxion.com/software/wkst/${NP}.tar.gz
21
	http://vmware-heva.www.conxion.com/software/wkst/${NP}.tar.gz
23
	http://vmware.wespe.de/software/wkst/${NP}.tar.gz
22
	http://vmware.wespe.de/software/wkst/${NP}.tar.gz
24
	ftp://vmware.wespe.de/pub/software/wkst/${NP}.tar.gz
23
	ftp://vmware.wespe.de/pub/software/wkst/${NP}.tar.gz"
25
	http://ftp.cvut.cz/vmware/${N26KernSupport}.tar.gz
26
	http://knihovny.cvut.cz/ftp/pub/vmware/${N26KernSupport}.tar.gz"
27
24
28
LICENSE="vmware"
25
LICENSE="vmware"
29
IUSE=""
30
SLOT="0"
26
SLOT="0"
31
KEYWORDS="-* ~x86 -amd64"
27
KEYWORDS="-* x86 -amd64"
32
# VMWare is broken on amd64.  Please do not file any bugs on it, as we will
28
# VMWare is broken on amd64.  Please do not file any bugs on it, as we will
33
# mark them as WONTFIX until we get some proper vendor support for the amd64
29
# mark them as WONTFIX until we get some proper vendor support for the amd64
34
# platform.  Hopefully, this will be sooner than later.
30
# platform.  Hopefully, this will be sooner than later.
Lines 45-63 Link Here
45
src_unpack() {
41
src_unpack() {
46
	check_KV
42
	check_KV
47
	unpack ${NP}.tar.gz
43
	unpack ${NP}.tar.gz
48
	if [ "${KV:0:3}" == "2.6" ] || [ "${KV:0:3}" == "2.5" ]; then
44
	for mod in vmnet vmmon; do
49
		einfo "Adding 2.{5,6}.x kernel support"
45
		if [ -f "${FILESDIR}/${mod}-${PV}-koutput.patch" ]; then
50
		cd ${S}
46
			tar -C "${WORKDIR}" -x -f "${S}/lib/modules/source/${mod}.tar" || die
51
		unpack ${N26KernSupport}.tar.gz
47
			cd "${WORKDIR}/${mod}-only"
52
		mv -f ${N26KernSupport}/*.tar ${S}/lib/modules/source/
48
			epatch "${FILESDIR}/${mod}-${PV}-koutput.patch"
53
	else
49
			chmod u+w "${S}/lib/modules/source/${mod}.tar"
54
		einfo "Using 2.4.x kernel support"
50
			tar -C "${WORKDIR}" -c ${mod}-only > "${S}/lib/modules/source/${mod}.tar" || die
55
	fi
51
			chmod u-w "${S}/lib/modules/source/${mod}.tar"
52
		fi
53
	done
54
	cd "${S}/bin"
55
	epatch "${FILESDIR}/vmware-config-${PV}-koutput.patch"
56
}
56
}
57
57
58
src_install() {
58
src_install() {
59
	dodir /opt/vmware/bin
59
	dodir /opt/vmware/bin
60
	cp -a bin/* ${D}/opt/vmware/bin/
60
	cp -a bin/* ${D}/opt/vmware/bin/
61
	sed -ie 's,exec,unset $(locale | awk -F= '\''{print $1}'\'')\nexec,' ${D}/opt/vmware/bin/vmware || die
61
	# vmware and vmware-ping needs to be suid root.
62
	# vmware and vmware-ping needs to be suid root.
62
	chmod u+s ${D}/opt/vmware/bin/vmware || die
63
	chmod u+s ${D}/opt/vmware/bin/vmware || die
63
	chmod u+s ${D}/opt/vmware/bin/vmware-ping || die
64
	chmod u+s ${D}/opt/vmware/bin/vmware-ping || die
Lines 125-130 Link Here
125
	echo "answer RUN_CONFIGURATOR no" >> ${locations}
126
	echo "answer RUN_CONFIGURATOR no" >> ${locations}
126
	echo "answer INITDIR /etc/vmware/init.d" >> ${locations}
127
	echo "answer INITDIR /etc/vmware/init.d" >> ${locations}
127
	echo "answer INITSCRIPTSDIR /etc/vmware/init.d" >> ${locations}
128
	echo "answer INITSCRIPTSDIR /etc/vmware/init.d" >> ${locations}
129
	echo "answer HEADER_DIR /usr/src/linux/include" >> ${locations}
128
}
130
}
129
131
130
pkg_preinst() {
132
pkg_preinst() {
Lines 139-160 Link Here
139
	#(drobbins, 1 Feb 2002)
141
	#(drobbins, 1 Feb 2002)
140
142
141
	einfo "Generating /etc/vmware/locations file."
143
	einfo "Generating /etc/vmware/locations file."
144
	locations="${D}/etc/vmware/locations"
142
	d=`echo ${D} | wc -c`
145
	d=`echo ${D} | wc -c`
143
	for x in `find ${D}/opt/vmware ${D}/etc/vmware` ; do
146
	for x in `find ${D}/opt/vmware ${D}/etc/vmware` ; do
144
		x="`echo ${x} | cut -c ${d}-`"
147
		x="`echo ${x} | cut -c ${d}-`"
145
		if [ -d ${D}/${x} ] ; then
148
		if [ -d ${D}/${x} ] ; then
146
			echo "directory ${x}" >> ${D}/etc/vmware/locations
149
			echo "directory ${x}" >> ${locations}
147
		else
150
		else
148
			echo -n "file ${x}" >> ${D}/etc/vmware/locations
151
			echo -n "file ${x}" >> ${locations}
149
			if [ "${x}" == "/etc/vmware/locations" ] ; then
152
			if [ "${x}" == "/etc/vmware/locations" ] ; then
150
				echo "" >> ${D}/etc/vmware/locations
153
				echo "" >> ${locations}
151
			elif [ "${x}" == "/etc/vmware/not_configured" ] ; then
154
			elif [ "${x}" == "/etc/vmware/not_configured" ] ; then
152
				echo "" >> ${D}/etc/vmware/locations
155
				echo "" >> ${locations}
153
			else
156
			else
154
				echo -n " " >> ${D}/etc/vmware/locations
157
				echo -n " " >> ${locations}
155
				#perl -e "@a = stat('${D}${x}'); print \$a[9]" >> ${D}/etc/vmware/locations
158
				#perl -e "@a = stat('${D}${x}'); print \$a[9]" >> ${D}/etc/vmware/locations
156
				find ${D}${x} -printf %T@ >> ${D}/etc/vmware/locations
159
				find ${D}${x} -printf %T@ >> ${locations}
157
				echo "" >> ${D}/etc/vmware/locations
160
				echo "" >> ${locations}
158
			fi
161
			fi
159
		fi
162
		fi
160
	done
163
	done

Return to bug 32737