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

(-)/usr/portage/app-emulation/vmware-workstation/vmware-workstation-4.5.1.7568.ebuild (-7 / +24 lines)
Lines 41-51 Link Here
41
src_unpack() {
41
src_unpack() {
42
	check_KV
42
	check_KV
43
	unpack ${NP}.tar.gz
43
	unpack ${NP}.tar.gz
44
45
	for module in vmmon vmnet
46
	do
47
		einfo "Patching ${module} for KOUTPUT support..."
48
		tar -C "${WORKDIR}" -x -f "${S}/lib/modules/source/${module}.tar" || die
49
		cd "${WORKDIR}/${module}-only"
50
		epatch "${FILESDIR}/${module}-${PV}-koutput.patch"
51
		chmod +w ${S}/lib/modules/source/${module}.tar
52
		tar -C "${WORKDIR}" -c ${module}-only > "${S}/lib/modules/source/${module}.tar" || die
53
	done
54
55
	einfo "Patching vmware-config.pl for KOUTPUT support..."
56
	cd "${S}/bin"
57
	epatch "${FILESDIR}/vmware-config-${PV}-koutput.patch"
44
}
58
}
45
59
46
src_install() {
60
src_install() {
47
	dodir /opt/vmware/bin
61
	dodir /opt/vmware/bin
48
	cp -a bin/* ${D}/opt/vmware/bin/
62
	cp -a bin/* ${D}/opt/vmware/bin/
63
	sed -ie 's,exec,unset $(locale | awk -F= '\''{print $1}'\'')\nexec,' ${D}/opt/vmware/bin/vmware || die
49
	# vmware and vmware-ping needs to be suid root.
64
	# vmware and vmware-ping needs to be suid root.
50
	chmod u+s ${D}/opt/vmware/bin/vmware || die
65
	chmod u+s ${D}/opt/vmware/bin/vmware || die
51
	chmod u+s ${D}/opt/vmware/bin/vmware-ping || die
66
	chmod u+s ${D}/opt/vmware/bin/vmware-ping || die
Lines 113-118 Link Here
113
	echo "answer RUN_CONFIGURATOR no" >> ${locations}
128
	echo "answer RUN_CONFIGURATOR no" >> ${locations}
114
	echo "answer INITDIR /etc/vmware/init.d" >> ${locations}
129
	echo "answer INITDIR /etc/vmware/init.d" >> ${locations}
115
	echo "answer INITSCRIPTSDIR /etc/vmware/init.d" >> ${locations}
130
	echo "answer INITSCRIPTSDIR /etc/vmware/init.d" >> ${locations}
131
	echo "answer HEADER_DIR /usr/src/linux/include" >> ${locations}
116
}
132
}
117
133
118
pkg_preinst() {
134
pkg_preinst() {
Lines 127-148 Link Here
127
	#(drobbins, 1 Feb 2002)
143
	#(drobbins, 1 Feb 2002)
128
144
129
	einfo "Generating /etc/vmware/locations file."
145
	einfo "Generating /etc/vmware/locations file."
146
	locations="${D}/etc/vmware/locations"
130
	d=`echo ${D} | wc -c`
147
	d=`echo ${D} | wc -c`
131
	for x in `find ${D}/opt/vmware ${D}/etc/vmware` ; do
148
	for x in `find ${D}/opt/vmware ${D}/etc/vmware` ; do
132
		x="`echo ${x} | cut -c ${d}-`"
149
		x="`echo ${x} | cut -c ${d}-`"
133
		if [ -d ${D}/${x} ] ; then
150
		if [ -d ${D}/${x} ] ; then
134
			echo "directory ${x}" >> ${D}/etc/vmware/locations
151
			echo "directory ${x}" >> ${locations}
135
		else
152
		else
136
			echo -n "file ${x}" >> ${D}/etc/vmware/locations
153
			echo -n "file ${x}" >> ${locations}
137
			if [ "${x}" == "/etc/vmware/locations" ] ; then
154
			if [ "${x}" == "/etc/vmware/locations" ] ; then
138
				echo "" >> ${D}/etc/vmware/locations
155
				echo "" >> ${locations}
139
			elif [ "${x}" == "/etc/vmware/not_configured" ] ; then
156
			elif [ "${x}" == "/etc/vmware/not_configured" ] ; then
140
				echo "" >> ${D}/etc/vmware/locations
157
				echo "" >> ${locations}
141
			else
158
			else
142
				echo -n " " >> ${D}/etc/vmware/locations
159
				echo -n " " >> ${locations}
143
				#perl -e "@a = stat('${D}${x}'); print \$a[9]" >> ${D}/etc/vmware/locations
160
				#perl -e "@a = stat('${D}${x}'); print \$a[9]" >> ${D}/etc/vmware/locations
144
				find ${D}${x} -printf %T@ >> ${D}/etc/vmware/locations
161
				find ${D}${x} -printf %T@ >> ${locations}
145
				echo "" >> ${D}/etc/vmware/locations
162
				echo "" >> ${locations}
146
			fi
163
			fi
147
		fi
164
		fi
148
	done
165
	done

Return to bug 32737