diff options
author | Mike Auty <ikelos@gentoo.org> | 2006-07-31 20:23:50 +0000 |
---|---|---|
committer | Mike Auty <ikelos@gentoo.org> | 2006-07-31 20:23:50 +0000 |
commit | fb49dc368b72cedc9ad83557b409515563c4b2c9 (patch) | |
tree | cc982e06e641e5a3d1bf03aa8492e32505c08b6f /app-emulation/vmware-server/files | |
parent | Mask vmware-server and vmware-server-console on no-multilib amd64. (diff) | |
download | gentoo-2-fb49dc368b72cedc9ad83557b409515563c4b2c9.tar.gz gentoo-2-fb49dc368b72cedc9ad83557b409515563c4b2c9.tar.bz2 gentoo-2-fb49dc368b72cedc9ad83557b409515563c4b2c9.zip |
Initial commit of vmware-server.
(Portage version: 2.1.1_pre4)
Diffstat (limited to 'app-emulation/vmware-server/files')
13 files changed, 319 insertions, 0 deletions
diff --git a/app-emulation/vmware-server/files/90vmware-server b/app-emulation/vmware-server/files/90vmware-server new file mode 100644 index 000000000000..dd0d5969113a --- /dev/null +++ b/app-emulation/vmware-server/files/90vmware-server @@ -0,0 +1,3 @@ +PATH=/opt/vmware/server/bin +ROOTPATH=/opt/vmware/server/bin +MANPATH=/opt/vmware/server/man diff --git a/app-emulation/vmware-server/files/digest-vmware-server-1.0.0.28343 b/app-emulation/vmware-server/files/digest-vmware-server-1.0.0.28343 new file mode 100644 index 000000000000..ac65a23b5f75 --- /dev/null +++ b/app-emulation/vmware-server/files/digest-vmware-server-1.0.0.28343 @@ -0,0 +1,9 @@ +MD5 a25b4beb53785c05ef3b3077d87f6e2b VMware-server-1.0.0-28343.tar.gz 105298140 +RMD160 ac3ba270717a18216c405d967f8535803ca68e3d VMware-server-1.0.0-28343.tar.gz 105298140 +SHA256 c6583d04c083d54bdf74bc94705e0603c5d918df9756918d2053438d49c5641a VMware-server-1.0.0-28343.tar.gz 105298140 +MD5 b3ce457f5b9ae8b606fd70f56084877d vmware-any-any-update101.tar.gz 296409 +RMD160 d8994b91492257d8b8e08480ab27fc307fc34095 vmware-any-any-update101.tar.gz 296409 +SHA256 b12e3a70117ef26a85c8e01a23ea7d21b62bbc86998368114f9f7932390d2037 vmware-any-any-update101.tar.gz 296409 +MD5 e494568dd025080cc80e7ad801f0b743 vmware-server-perl-fixed-rpath-libs.tar.bz2 73834 +RMD160 7f64627b5b945e8d7dabe39c165a4b66b71fb4d3 vmware-server-perl-fixed-rpath-libs.tar.bz2 73834 +SHA256 c42299dd033187c67b45b739da66583fbd94cdcba745200b89a25ac96cd9364b vmware-server-perl-fixed-rpath-libs.tar.bz2 73834 diff --git a/app-emulation/vmware-server/files/general/001_all_no-desktop-icon.patch b/app-emulation/vmware-server/files/general/001_all_no-desktop-icon.patch new file mode 100644 index 000000000000..1d864f7e0dd7 --- /dev/null +++ b/app-emulation/vmware-server/files/general/001_all_no-desktop-icon.patch @@ -0,0 +1,31 @@ +--- vmware-distrib/bin/vmware-config.pl.ori 2005-11-09 01:45:08.000000000 +0000 ++++ vmware-distrib/bin/vmware-config.pl 2005-11-09 01:48:21.000000000 +0000 +@@ -8433,7 +8433,7 @@ + error('Please shut down any running VMs and run this script again.' . + "\n\n"); + } else { +- if (system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware') ++ if (system(shell_string('/etc/init.d' . '/vmware') + . ' stop')) { + error('Unable to stop services for ' . vmware_product_name() . + "\n\n"); +@@ -8463,8 +8463,8 @@ + } + if (vmware_product() ne 'server') { + configure_gtk2(); +- createMimePackageFile(); +- configureDesktopFiles(); ++# createMimePackageFile(); ++# configureDesktopFiles(); + configure_mon(); + configure_pp(); + configure_net(); +@@ -8532,7 +8532,7 @@ + db_save(); + # Then start VMware's services + if (!$gOption{'skipstopstart'}) { +- system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware') . ' start'); ++ system(shell_string('/etc/init.d' . '/vmware') . ' start'); + print "\n"; + } + diff --git a/app-emulation/vmware-server/files/general/002_all_allow-write-access-to-config.patch b/app-emulation/vmware-server/files/general/002_all_allow-write-access-to-config.patch new file mode 100644 index 000000000000..e646b7b2da5c --- /dev/null +++ b/app-emulation/vmware-server/files/general/002_all_allow-write-access-to-config.patch @@ -0,0 +1,15 @@ +diff -urN vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl +--- vmware-distrib.orig/bin/vmware-config.pl 2005-12-16 00:51:03.000000000 -0500 ++++ vmware-distrib/bin/vmware-config.pl 2005-12-21 14:34:03.000000000 -0500 +@@ -7327,7 +7327,10 @@ + error('Unable to write configuration file "' . $name . '".' . "\n\n"); + } + db_add_file($name, 0x1); +- safe_chmod(0644, $name); ++ safe_chmod(0664, $name); ++ my $gid = (getgrnam('vmware'))[2]; ++ my $uid = (stat($name))[4]; ++ safe_chown($uid,$gid,$name); + + # Append the promotional configuration if it exists + $promoconfig = $libdir . '/configurator/PROMOCONFIG'; diff --git a/app-emulation/vmware-server/files/general/004_all_do-not-build-modules.patch b/app-emulation/vmware-server/files/general/004_all_do-not-build-modules.patch new file mode 100644 index 000000000000..cec3b3ee4c1d --- /dev/null +++ b/app-emulation/vmware-server/files/general/004_all_do-not-build-modules.patch @@ -0,0 +1,17 @@ +diff -uNr vmware-server-distrib.orig/bin/vmware-config.pl vmware-server-distrib/bin/vmware-config.pl +--- vmware-server-distrib.orig/bin/vmware-config.pl 2006-02-18 18:12:26.000000000 +0000 ++++ vmware-server-distrib/bin/vmware-config.pl 2006-02-18 18:14:17.000000000 +0000 +@@ -8571,10 +8571,10 @@ + configure_gtk2(); + # createMimePackageFile(); + # configureDesktopFiles(); +- configure_mon(); +- configure_pp(); ++# configure_mon(); ++# configure_pp(); + configure_net(); +- build_vmnet(); ++# build_vmnet(); + } + + # Create the directory for the UNIX domain sockets diff --git a/app-emulation/vmware-server/files/general/005_all_do-not-overwrite-authd-file.patch b/app-emulation/vmware-server/files/general/005_all_do-not-overwrite-authd-file.patch new file mode 100644 index 000000000000..0c45caddacd2 --- /dev/null +++ b/app-emulation/vmware-server/files/general/005_all_do-not-overwrite-authd-file.patch @@ -0,0 +1,44 @@ +--- vmware-server-distrib/bin/vmware-config.pl 2006-03-17 21:13:22.000000000 +0100 ++++ vmware-server-distrib/bin/vmware-config.pl 2006-03-17 22:37:00.000000000 +0100 +@@ -6278,10 +6278,30 @@ + my $authd_conf_file = "$conf_dir/vmware-authd"; + my $authd = db_get_answer('SBINDIR') . "/vmware-authd"; + ++ # Never overwrite an existing conf file unless it has the exact modification ++ # date as in the database in which case we can be pretty sure that it is the ++ # one that we wrote and it should be safe to assume that we can overwrite it. ++ if( -f $authd_conf_file ) { ++ my @statbuf = stat( $authd_conf_file ); ++ if( ! defined( $statbuf[9] ) ) { ++ error( ++ 'Unable to get the last modification timestamp of file "' ++ . $authd_conf_file . "\".\n\n" ++ ); ++ } ++ if( ++ ! db_file_in( $authd_conf_file ) ++ || db_file_ts( $authd_conf_file ) != $statbuf[9] ++ ) { ++ if (get_answer('The file "' . $authd_conf_file . '" already exists and seems to have' ++ . ' been modified manually. Overwrite?', 'yesno', 'no') eq 'no') ++ { return; } ++ } ++ } ++ + # Create the new vmware-authd file +- # XXX This file should be registered with the installer's database. --hpreg + if (not open(CONF, '>' . $authd_conf_file)) { +- query('Unable to create the "' . $authd_conf_file . '"file. ' ++ query('Unable to create the "' . $authd_conf_file . '" file. ' + . 'Consequently, this program cannot add a "' . $authd . '" entry ' + . 'in the file. You will have to do it by hand before running ' + . vmware_product_name() . '.' . "\n\n" . 'Hit enter to continue.', +@@ -6304,6 +6324,8 @@ + END + close CONF; + ++ db_add_file( $authd_conf_file, 0x1 ); ++ + # Make sure the IP service is registered, as RH 9.0's xinetd is picky about + # that (was bug 26864). --hpreg + if (check_port_not_registered($port) == 1) { diff --git a/app-emulation/vmware-server/files/general/006_all_xinetd-sendsig-if-possible.patch b/app-emulation/vmware-server/files/general/006_all_xinetd-sendsig-if-possible.patch new file mode 100644 index 000000000000..89c4e16f767c --- /dev/null +++ b/app-emulation/vmware-server/files/general/006_all_xinetd-sendsig-if-possible.patch @@ -0,0 +1,28 @@ +--- vmware-server-distrib/bin/vmware-config.pl 2006-03-20 20:04:45.000000000 +0000 ++++ vmware-server-distrib/bin/vmware-config.pl 2006-03-20 20:08:01.000000000 +0000 +@@ -6255,17 +6255,17 @@ + #Restart xinetd + sub restart_xinetd { + my $xinetd_restart = db_get_answer('INITSCRIPTSDIR') . '/xinetd'; ++ if (!system(shell_string($gHelper{'killall'}) . ' -USR2 xinetd')) { ++ return; ++ } + if (-e $xinetd_restart) { +- if (!system(shell_string($xinetd_restart) . ' restart')) { +- return; ++ if (system(shell_string($xinetd_restart) . ' restart')) { ++ query('Unable to make the Internet super-server (xinetd) re-read its ' ++ . 'configuration file. Please restart xinetd by hand:' . "\n" ++ . ' killall -v -USR2 xinetd' . "\n\n" ++ . 'Hit enter to continue.', '', 0); + } + } +- if (system(shell_string($gHelper{'killall'}) . ' -USR2 xinetd')) { +- query('Unable to make the Internet super-server (xinetd) re-read its ' +- . 'configuration file. Please restart xinetd by hand:' . "\n" +- . ' killall -v -USR2 xinetd' . "\n\n" +- . 'Hit enter to continue.', '', 0); +- } + } + + # Update the Internet super-server's configuration file, and make the diff --git a/app-emulation/vmware-server/files/general/007_all_use-modprobe-over-insmod.patch b/app-emulation/vmware-server/files/general/007_all_use-modprobe-over-insmod.patch new file mode 100644 index 000000000000..c29a87e8f226 --- /dev/null +++ b/app-emulation/vmware-server/files/general/007_all_use-modprobe-over-insmod.patch @@ -0,0 +1,12 @@ +diff -uNr vmware-server-distrib/installer/services.sh vmware-server-distrib.new/installer/services.sh +--- vmware-server-distrib/installer/services.sh 2006-02-05 00:21:25.000000000 +0000 ++++ vmware-server-distrib.new/installer/services.sh 2006-02-20 23:48:07.000000000 +0000 +@@ -538,7 +538,7 @@ + } + + vmware_load_module() { +- /sbin/insmod -s -f "/lib/modules/`uname -r`/misc/$1.o" || exit 1 ++ /sbin/modprobe -s -f "$1" || exit 1 + exit 0 + } + diff --git a/app-emulation/vmware-server/files/general/008_all_dhcpd-conf-location.patch b/app-emulation/vmware-server/files/general/008_all_dhcpd-conf-location.patch new file mode 100644 index 000000000000..575ab85cb87c --- /dev/null +++ b/app-emulation/vmware-server/files/general/008_all_dhcpd-conf-location.patch @@ -0,0 +1,13 @@ +--- vmware-distrib/bin/vmware-config.pl.ori 2005-11-09 01:45:08.000000000 +0000 ++++ vmware-distrib/bin/vmware-config.pl 2005-11-09 01:48:21.000000000 +0000 +@@ -5448,8 +5448,8 @@ + my $network; + my $netmask; + +- if (-r '/etc/dhcpd.conf') { +- $conf = '/etc/dhcpd.conf'; ++ if (-r '/etc/dhcp/dhcpd.conf') { ++ $conf = '/etc/dhcp/dhcpd.conf'; + } else { + return; + } diff --git a/app-emulation/vmware-server/files/general/009_all_init.d-modules-warning.patch b/app-emulation/vmware-server/files/general/009_all_init.d-modules-warning.patch new file mode 100644 index 000000000000..4eab043af8dc --- /dev/null +++ b/app-emulation/vmware-server/files/general/009_all_init.d-modules-warning.patch @@ -0,0 +1,19 @@ +diff -uNr vmware-server-distrib.orig/installer/services.sh vmware-server-distrib/installer/services.sh +--- vmware-server-distrib.orig/installer/services.sh 2006-07-01 03:14:16.000000000 +0000 ++++ vmware-server-distrib/installer/services.sh 2006-07-14 11:59:28.000000000 +0000 +@@ -606,8 +606,13 @@ + start) + if [ -e "$vmware_etc_dir"/not_configured ]; then + echo "`vmware_product_name`"' is installed, but it has not been (correctly) configured' +- echo 'for the running kernel. To (re-)configure it, invoke the' +- echo 'following command: '"$vmdb_answer_BINDIR"'/vmware-config.pl.' ++ echo 'for the running kernel.' ++ echo ++ echo 'Please ensure that the modules have been compiled for this kernel:' ++ echo ' emerge --oneshot vmware-modules' ++ echo ++ echo 'Also ensure '"`vmware_product_name`"' has been configured:' ++ echo ' '"$vmdb_answer_BINDIR"'/vmware-config.pl' + echo + + exit 1 diff --git a/app-emulation/vmware-server/files/vmware-authd b/app-emulation/vmware-server/files/vmware-authd new file mode 100644 index 000000000000..fce8f64a7810 --- /dev/null +++ b/app-emulation/vmware-server/files/vmware-authd @@ -0,0 +1,6 @@ +#%PAM-1.0 +auth sufficient pam_unix.so shadow nullok +auth required pam_unix_auth.so shadow nullok +account required pam_listfile.so item=group sense=allow file=/etc/vmware/vmwaregroup onerr=fail +account sufficient pam_unix.so +account required pam_unix_acct.so diff --git a/app-emulation/vmware-server/files/vmware-server.rc b/app-emulation/vmware-server/files/vmware-server.rc new file mode 100644 index 000000000000..238d75989087 --- /dev/null +++ b/app-emulation/vmware-server/files/vmware-server.rc @@ -0,0 +1,74 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server.rc,v 1.1 2006/07/31 20:23:50 ikelos Exp $ + +depend() { + need localmount xinetd + use logger net + after samba +} + +vmware-prettify() { + # Yea, the code is ugly but the output is pretty + state=$1 + waserror=0 + msgtype=0 + while read line + do + [ "$line" == "" ] && continue + if [ "$msgtype" -le "0" ] + then + if [ "$msgtype" == "-1" ] + then + ewarn $line + continue + fi + if [ "${line/*:*/}" == "" ] + then + einfon $line + echo + eend 0 + msgtype=1 + else + ewarn $line + msgtype=-1 + waserror=1 + fi + continue + fi + + # Strip out anything after the <esc> code + message=`echo $line | sed -e "s/^\(.*\).*$/\1/"` + einfon " $message" + echo + + echo $line | grep done > /dev/null + status=$? + eend $status + + if [ "$status" != "0" ] + then + logger -p local0.err -t vmware-${state} "$line" + waserror=$status + fi + done + if [ "$msgtype" == "-1" ] + then + eend 1 "VMware is not properly configured! See above." + fi + return $waserror +} + +start() { + test -x /etc/vmware/init.d/vmware || \ + eend 1 "vmware init script not found. Aborting" || return 1 + + /etc/vmware/init.d/vmware start | vmware-prettify start + return $? +} + +stop() { + /etc/vmware/init.d/vmware stop | vmware-prettify stop + return $? +} diff --git a/app-emulation/vmware-server/files/vmware-server.xml b/app-emulation/vmware-server/files/vmware-server.xml new file mode 100644 index 000000000000..8d5e2eff56b6 --- /dev/null +++ b/app-emulation/vmware-server/files/vmware-server.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> + <mime-type type="application/x-vmware-vm"> + <comment xml:lang="en">VMware virtual machine</comment> + <magic priority="50"> + <match type="string" value='config.version = "' offset="0:4096"/> + </magic> + <glob pattern="*.vmx"/> + </mime-type> + + <mime-type type="application/x-vmware-vmdisk"> + <comment xml:lang="en">VMware virtual disk</comment> + <magic priority="50"> + <match type="string" value="# Disk DescriptorFile" offset="0"/> + <match type="string" value="KDMV" offset="0"/> + </magic> + <glob pattern="*.vmdk"/> + </mime-type> + + <mime-type type="application/x-vmware-team"> + <comment xml:lang="en">VMware team</comment> + <magic priority="50"> + <match type="string" value='<Foundry version="1">' offset="0"> + <match type="string" value="<VMTeam>" offset="23:24"/> + </match> + </magic> + <glob pattern="*.vmtm"/> + </mime-type> + + <mime-type type="application/x-vmware-snapshot"> + <comment xml:lang="en">VMware virtual machine snapshot</comment> + <magic priority="50"> + <match type="string" value="\\0xD0\\0xBE\\0xD0\\0xBE" offset="0"/> + </magic> + <glob pattern="*.vmsn"/> + </mime-type> + + <mime-type type="application/x-vmware-vmfoundry"> + <comment xml:lang="en">VMware virtual machine foundry</comment> + <magic priority="50"> + <match type="string" value='<Foundry version="1">' offset="0"> + <match type="string" value="<VM>" offset="23:24"/> + </match> + </magic> + <glob pattern="*.vmxf"/> + </mime-type> +</mime-info> |