News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Vmware

From FrugalWiki

Jump to: navigation, search
FrugalBuild:
# Last Modified: Sat, 07 May 2005 16:17:52  0200
# Compiling Time: ~2 minutes
# Contributor: VMiklos <mamajom@axelero.hu>

pkgname=vmware
pkgver=5.0.0_13124
anyver=90
pkgrel=1
pkgdesc="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
url="http://www.vmware.com/download/workstation.html"
depends=('x' 'perl' 'pciutils')
install=$pkgname.install
source=(http://download3.vmware.com/software/wkst/VMware-workstation-`echo $pkgver|sed 's/_/-/'`.tar.gz \
        http://ftp.cvut.cz/vmware/vmware-any-any-update$anyver.tar.gz \
        locations)
md5sums=('91821fc2649749911f0e2d0ca37b3eb8' 'b8f6498f5275dc8ef3ea2d2e17061ede' \
         'd16e8c2bf15d97eb8c9920d4c289f729')

build()
{
        Fcd vmware-distrib
        mv -f ../vmware-any-any-update$anyver/*.tar lib/modules/source/
        chmod 755 lib/bin/vmware bin/vmnet-bridge lib/bin/vmware-vmx \
                lib/bin-debug/vmware-vmx

        Fmkdir /usr/lib/vmware/bin
        cp -a bin/* $Fdestdir/usr/lib/vmware/bin
        Fmkdir /usr/lib/vmware/lib
        cp -dr lib/* $Fdestdir/usr/lib/vmware/lib
        # delete precompiled modules
        rm -rf $Fdestdir/usr/lib/vmware/lib/modules/binary
        chmod u s $Fdestdir/usr/lib/vmware/bin/vmware-ping
        chmod u s $Fdestdir/usr/lib/vmware/lib/bin/vmware-vmx
        Fdocrel doc/open_source_licenses.txt
        Fdocrel doc/EULA
        Fmkdir /usr/lib/vmware/doc
        Fln /usr/share/doc/$pkgname-$pkgver/EULA /usr/lib/vmware/doc/
        Ffilerel man/man1/vmware.1.gz /usr/man/man/vmware.1.gz
        Fexerel etc/installer.sh /etc/vmware/installer.sh
        Fexerel installer/services.sh /etc/rc.d/rc.vmware
        Fln rc.vmware /etc/rc.d/vmware
        Fln /usr/lib/vmware/bin/vmware /usr/bin/vmware
        chown -R root:root $Fdestdir
        Ffile /etc/vmware/locations
        Frm /etc/vmware/not_configured
        # generate /etc/vmware/locations
        cd $Fdestdir
        for i in `find usr/lib/vmware etc/vmware` ; do
                if [ -d $i ] ; then
                        echo "directory $i" >> etc/vmware/locations
                else
                        echo -n "file $i" >> etc/vmware/locations
                        if [ "$i" == "etc/vmware/locations" ] ; then
                                echo "" >> etc/vmware/locations
                        else
                                echo -n " " >> etc/vmware/locations
                                find $i -printf %T@ >> etc/vmware/locations
                                echo "" >> etc/vmware/locations
                        fi
                fi
        done
}

# vim: ft=sh

locations:

answer BINDIR /usr/lib/vmware/bin
answer LIBDIR /usr/lib/vmware/lib
answer MANDIR /usr/lib/vmware/man
answer DOCDIR /usr/lib/vmware/doc
answer RUN_CONFIGURATOR no
answer INITDIR /etc/rc.d
answer INITSCRIPTSDIR /etc/rc.d

vmware.install:

post_install()
{
        echo -n "updating /etc/vmware/locations... "
        for i in etc/vmware/._cfg????_locations ; do
                if [ -f $i ] ; then
                        cat $i >> etc/vmware/locations
                        rm $i
                fi
        done
        echo "done."
        cat << EOF
You need to run /usr/lib/vmware/bin/vmware-config.pl to complete the install.
For VMware Add-Ons just visit http://www.vmware.com/download/downloadaddons.html
After configuring, type 'vmware' to launch
Also note that when you reboot you should run:
        service vmware start
before trying to run vmware.  Or you could just add
it to the default run level:
        service vmware add
EOF
}

pre_remove()
{
        cat << EOF

To remove all traces of vmware you will need to remove the files
in /etc/vmware/, /lib/modules/*/misc/vm*, and .vmware/ in each users
home directory. Don't forget to rmmod the vm* modules, either.
EOF
}

op=$1
shift

$op $*

# vim: ft=sh
Personal tools
Namespaces
Variants
Actions