Gentoo Archives: gentoo-commits

From: "Vadim Kuznetsov (vadimk)" <vadimk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/vmware-server: vmware-server-2.0.2.203138.ebuild ChangeLog vmware-server-2.0.1.156745-r2.ebuild vmware-server-2.0.1.156745.ebuild vmware-server-2.0.1.156745-r1.ebuild
Date: Thu, 29 Oct 2009 13:24:16
Message-Id: E1N3Uz8-0006ID-Fm@stork.gentoo.org
1 vadimk 09/10/29 13:24:14
2
3 Modified: ChangeLog
4 Added: vmware-server-2.0.2.203138.ebuild
5 Removed: vmware-server-2.0.1.156745-r2.ebuild
6 vmware-server-2.0.1.156745.ebuild
7 vmware-server-2.0.1.156745-r1.ebuild
8 Log:
9 version bump. bug 290702
10 (Portage version: 2.2_rc46/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.60 app-emulation/vmware-server/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/ChangeLog?rev=1.60&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/ChangeLog?rev=1.60&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/ChangeLog?r1=1.59&r2=1.60
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v
22 retrieving revision 1.59
23 retrieving revision 1.60
24 diff -u -r1.59 -r1.60
25 --- ChangeLog 22 Sep 2009 17:58:50 -0000 1.59
26 +++ ChangeLog 29 Oct 2009 13:24:13 -0000 1.60
27 @@ -1,6 +1,22 @@
28 # ChangeLog for app-emulation/vmware-server
29 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v 1.59 2009/09/22 17:58:50 vadimk Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v 1.60 2009/10/29 13:24:13 vadimk Exp $
32 +
33 +*vmware-server-2.0.2.203138 (29 Oct 2009)
34 +
35 + 29 Oct 2009; Vadim Kuznetsov vadimk@g.o
36 + +files/2.0.2.203138/000_all_initd-location.patch,
37 + +files/2.0.2.203138/001_all_fix-permissions.patch,
38 + +files/2.0.2.203138/002_all_pagebreak-detection-fix.patch,
39 + +files/2.0.2.203138/004_all_do-not-build-modules.patch,
40 + +files/2.0.2.203138/007_all_use-modprobe-over-insmod.patch,
41 + +files/2.0.2.203138/009_all_init.d-modules-warning.patch,
42 + +files/2.0.2.203138/011_all_legit-modules-only.patch,
43 + -vmware-server-2.0.1.156745.ebuild, -vmware-server-2.0.1.156745-r1.ebuild,
44 + +vmware-server-2.0.2.203138.ebuild,
45 + +files/2.0.2.203138/012_all_rc-config.patch,
46 + -vmware-server-2.0.1.156745-r2.ebuild:
47 + version bump. Bug 290702
48
49 *vmware-server-2.0.1.156745-r3 (22 Sep 2009)
50
51
52
53
54 1.1 app-emulation/vmware-server/vmware-server-2.0.2.203138.ebuild
55
56 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/vmware-server-2.0.2.203138.ebuild?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/vmware-server/vmware-server-2.0.2.203138.ebuild?rev=1.1&content-type=text/plain
58
59 Index: vmware-server-2.0.2.203138.ebuild
60 ===================================================================
61 # Copyright 1999-2009 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 # $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/vmware-server-2.0.2.203138.ebuild,v 1.1 2009/10/29 13:24:13 vadimk Exp $
64
65 # Unlike many other binary packages the user doesn't need to agree to a licence
66 # to download VMWare. The agreeing to a licence is part of the configure step
67 # which the user must run manually.
68
69 EAPI="2"
70
71 inherit eutils pam pax-utils versionator
72
73 MY_PV=$(replace_version_separator 3 '-' )
74 MY_PN="VMware-server-${MY_PV}"
75
76 DESCRIPTION="VMware Server for Linux"
77 HOMEPAGE="http://www.vmware.com/"
78 DOWNLOAD_URL="http://downloads.vmware.com/d/info/datacenter_downloads/vmware_server/2_0"
79 SRC_URI=" x86? ( mirror://vmware/software/vmserver/${MY_PN}.i386.tar.gz )
80 amd64? ( mirror://vmware/software/vmserver/${MY_PN}.x86_64.tar.gz ) "
81
82 LICENSE="vmware"
83 IUSE=""
84 SLOT="0"
85 KEYWORDS="-* ~x86 ~amd64"
86 RESTRICT="fetch strip"
87
88 CDEPEND="
89 >=dev-lang/perl-5
90 >=sys-libs/glibc-2.3.5
91 sys-apps/pciutils"
92 DEPEND="${CDEPEND}
93 sys-apps/findutils
94 x11-misc/shared-mime-info
95 virtual/os-headers"
96 # vmware-server should not use virtual/libc as this is a
97 # precompiled binary package thats linked to glibc.
98 RDEPEND="${CDEPEND}
99 ~app-emulation/vmware-modules-1.0.0.24
100 dev-libs/glib
101 dev-libs/libxml2
102 sys-apps/hal
103 sys-fs/fuse
104 sys-libs/zlib
105 virtual/pam
106 x11-libs/libICE
107 x11-libs/libSM
108 x11-libs/libX11
109 x11-libs/libXau
110 x11-libs/libXdmcp
111 x11-libs/libXext
112 x11-libs/libXft
113 x11-libs/libXt
114 x11-libs/libXtst
115 x11-misc/xdg-utils
116 !<sys-apps/dbus-0.62
117 !app-emulation/vmware-player
118 !app-emulation/vmware-workstation
119 "
120
121 PDEPEND="app-emulation/vmware-vix"
122
123 S=${WORKDIR}/vmware-server-distrib
124
125 pkg_setup() {
126 if use x86; then
127 MY_P="${MY_PN}.i386"
128 elif use amd64; then
129 MY_P="${MY_PN}.x86_64"
130 fi
131 }
132
133 pkg_nofetch() {
134 if use x86; then
135 MY_P="${MY_PN}.i386"
136 elif use amd64; then
137 MY_P="${MY_PN}.x86_64"
138 fi
139
140 einfo "Please download the ${MY_P}.bundle from"
141 einfo "${DOWNLOAD_URL}"
142 einfo "and place it in ${DISTDIR}"
143 }
144
145 src_prepare() {
146 VMWARE_GROUP=${VMWARE_GROUP:-vmware}
147 VMWARE_INSTALL_DIR=/opt/${PN//-//}
148
149 shortname="wgs"
150 product="vmware"
151 config_program="vmware-config.pl"
152 config_dir="/etc/vmware"
153 product_name="VMware Server 2"
154
155 enewgroup ${VMWARE_GROUP}
156
157 # Remove PAX MPROTECT flag from all applicable files in /bin, /sbin for
158 # the vmware package only (since modules, tools and console should not
159 # need to generate code on the fly in memory).
160 pax-mark -m $(list-paxables "${S}"/{bin{,-debug},sbin}/{vmware-serverd,vmware-vmx})
161
162 EPATCH_SOURCE="${FILESDIR}"/${PV} EPATCH_SUFFIX="patch" epatch
163
164 # Proper lsmod
165 sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/installer/services.sh || die "sed"
166 sed -i -e "s:/sbin/lsmod:/bin/lsmod:" "${S}"/lib/net-services.sh || die "sed"
167
168 # Set the name
169 sed -i -e "s:%LONGNAME%:${product_name}:" "${S}"/installer/services.sh || die "sed"
170 sed -i -e "s:%SHORTNAME%:${shortname}:" "${S}"/installer/services.sh || die "sed"
171
172 # We won't want any perl scripts from VMware once we've finally got all
173 # of the configuration done, but for now, they're necessary.
174 #rm -f *.pl bin/*.pl
175 rm -f *.pl
176 rm -f etc/installer.sh
177
178 # Since with Gentoo we compile everthing it doesn't make sense to keep
179 # the precompiled modules arround. Saves about 4 megs of disk space too.
180 rm -rf "${S}"/lib/modules/binary
181 # We also don't need to keep the icons around, or do we?
182 #rm -rf ${S}/lib/share/icons
183
184 rm -rf "${S}"/etc/pam.d/
185 sed -i -e "s:configure_wgs_pam_d():#&:" "${S}"/bin/vmware-config.pl || die "sed pam_d"
186 }
187
188 src_install() {
189 # We loop through our directories and copy everything to our system.
190 for x in bin lib sbin
191 do
192 if [[ -e "${S}/${x}" ]]
193 then
194 dodir "${VMWARE_INSTALL_DIR}"/${x}
195 cp -pPR "${S}"/${x}/* "${D}""${VMWARE_INSTALL_DIR}"/${x} \
196 || die "copying ${x}"
197 fi
198 done
199
200 # Bug 282213
201 mv "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0 \
202 "${D}"/"${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0.old
203 dosym /usr/lib/libpng12.so.0 "${VMWARE_INSTALL_DIR}"/lib/lib/libpng12.so.0/libpng12.so.0
204
205 # If we have an /etc directory, we copy it.
206 if [[ -e "${S}/etc" ]]
207 then
208 dodir "${config_dir}"
209 cp -pPR "${S}"/etc/* "${D}""${config_dir}"
210 fowners root:${VMWARE_GROUP} "${config_dir}"
211 fperms 770 "${config_dir}"
212 fi
213
214 # If we have any helper files, we install them. First, we check for an
215 # init script.
216 if [[ -e "${FILESDIR}/${PN}.rc" ]]
217 then
218 newinitd "${FILESDIR}"/${PN}.rc ${product} || die "newinitd"
219 fi
220 # Then we check for an environment file.
221 if [[ -e "${FILESDIR}/90${PN}" ]]
222 then
223 doenvd "${FILESDIR}"/90${PN} || die "doenvd"
224 fi
225 # Last, we check for any mime files.
226 if [[ -e "${FILESDIR}/${PN}.xml" ]]
227 then
228 insinto /usr/share/mime/packages
229 doins "${FILESDIR}"/${PN}.xml || die "mimetypes"
230 fi
231
232 # Blame bug #91191 for this one.
233 if [[ -e doc/EULA ]]
234 then
235 insinto "${VMWARE_INSTALL_DIR}"/doc
236 doins doc/EULA || die "copying EULA"
237 fi
238
239 # Do we have vmware-ping/vmware-vmx? If so, make them setuid.
240 for p in /bin/vmware-ping /lib/bin/vmware-vmx /lib/bin-debug/vmware-vmx /lib/bin/vmware-vmx-debug /sbin/vmware-authd;
241 do
242 if [ -x "${D}${VMWARE_INSTALL_DIR}${p}" ]
243 then
244 fowners root:${VMWARE_GROUP} "${VMWARE_INSTALL_DIR}"${p}
245 fperms 4750 "${VMWARE_INSTALL_DIR}"${p}
246 fi
247 done
248
249 # This removed the user/group warnings
250 # But also broke vmware-server with FEATURES="userpriv" since it removes
251 # the set-UID bit
252 #chown -R root:${VMWARE_GROUP} ${D} || die
253
254 # We like desktop icons.
255 # TODO: Fix up the icon creation, across the board.
256 #make_desktop_entry ${PN} "${product_name}" ${PN}.png
257
258 # Now, we copy in our services.sh file
259 exeinto "${config_dir}"/init.d
260 newexe installer/services.sh ${product} || die "services.sh"
261
262 newinitd "${FILESDIR}/vmware-server-2.rc" vmware
263
264 # startup symlinks
265 dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-autostart
266 dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-core
267 dosym ${config_dir}/init.d/${product} ${config_dir}/init.d/vmware-mgmt
268
269 # pam
270 pamd_mimic_system vmware-authd auth account
271
272 # Man pages and docs
273 dodoc doc/*
274 doman man/man1/*
275
276 # VMware authorization service
277 insinto ${config_dir}/hostd
278 doins "${FILESDIR}/authorization.xml"
279
280 # Finally, we run the "Questions"
281 einfo "Adding answers to ${config_dir}/locations"
282 locations="${D}${config_dir}/locations"
283 echo "answer BINDIR ${VMWARE_INSTALL_DIR}/bin" >> ${locations}
284 echo "answer LIBDIR ${VMWARE_INSTALL_DIR}/lib" >> ${locations}
285 echo "answer MANDIR ${VMWARE_INSTALL_DIR}/man" >> ${locations}
286 echo "answer DOCDIR ${VMWARE_INSTALL_DIR}/doc" >> ${locations}
287 echo "answer SBINDIR ${VMWARE_INSTALL_DIR}/sbin" >> ${locations}
288 echo "answer RUN_CONFIGURATOR no" >> ${locations}
289 echo "answer INITDIR ${config_dir}/init.d" >> ${locations}
290 echo "answer INITSCRIPTSDIR ${config_dir}/init.d" >> ${locations}
291 echo "answer VMCI_CONFED yes" >> ${locations}
292 echo "answer VSOCK_CONFED yes" >> ${locations}
293 }
294
295 pkg_config() {
296 einfo "Running ${VMWARE_INSTALL_DIR}/bin/vmware-config.pl"
297 "${VMWARE_INSTALL_DIR}/bin/vmware-config.pl"
298 }
299
300 pkg_preinst() {
301 # This must be done after the install to get the mtimes on each file
302 # right.
303
304 #Note: it's a bit weird to use ${D} in a preinst script but it should work
305 #(drobbins, 1 Feb 2002)
306
307 einfo "Generating ${config_dir}/locations file."
308 d=`echo ${D} | wc -c`
309 for x in `find ${D}${VMWARE_INSTALL_DIR} ${D}${config_dir}` ; do
310 x="`echo ${x} | cut -c ${d}-`"
311 if [ -d "${D}/${x}" ] ; then
312 echo "directory ${x}" >> "${D}${config_dir}"/locations
313 else
314 echo -n "file ${x}" >> "${D}${config_dir}"/locations
315 if [ "${x}" == "${config_dir}/locations" ] ; then
316 echo "" >> "${D}${config_dir}"/locations
317 elif [ "${x}" == "${config_dir}/not_configured" ] ; then
318 echo "" >> "${D}${config_dir}"/locations
319 else
320 echo -n " " >> "${D}${config_dir}"/locations
321 find "${D}${x}" -printf %T@ >> "${D}${config_dir}"/locations
322 echo "" >> "${D}${config_dir}"/locations
323 fi
324 fi
325 done
326 }
327
328 pkg_postinst() {
329 update-mime-database /usr/share/mime
330 [[ -d "${config_dir}" ]] && chown -R root:${VMWARE_GROUP} ${config_dir}
331
332 # This is to fix the problem where the not_configured file doesn't get
333 # removed when the configuration is run. This doesn't remove the file
334 # It just tells the vmware-config.pl script it can delete it.
335 einfo "Updating ${config_dir}/locations"
336 for x in "${config_dir}"/._cfg????_locations ; do
337 if [ -f $x ] ; then
338 cat $x >> "${config_dir}"/locations
339 rm $x
340 fi
341 done
342
343 ewarn "Use "
344 ewarn " emerge vmware-server --config"
345 ewarn "to configure your installation of ${product_name}."
346
347 ewarn "In order to run ${product_name}, you have to"
348 ewarn "be in the '${VMWARE_GROUP}' group."
349
350 #ewarn "By default xinetd only allows connections from localhost"
351 #ewarn "To allow external users access to vmware-server you must edit"
352 #ewarn " /etc/xinetd.d/vmware-authd"
353 #ewarn "and specify a new 'only_from' line"
354
355 ewarn "VMWare Server also has issues when running on a JFS filesystem. For more"
356 ewarn "information see http://bugs.gentoo.org/show_bug.cgi?id=122500#c94"
357 }
358
359 pkg_prerm() {
360 einfo "Stopping ${product_name} for safe unmerge"
361 /etc/init.d/vmware stop
362 }
363
364 pkg_postrm() {
365 if ! has_version app-emulation/${PN}; then
366 elog "To remove all traces of ${product} you will need to remove the files"
367 elog "in ${config_dir} and /etc/init.d/${product}."
368 elog "If the vmware-modules package is installed, you may no longer need it."
369 fi
370 }