vmware-server: NEW port

This commit is contained in:
James Mills 2007-06-25 04:44:07 +10:00
parent 5b3199e4b2
commit 5cb87aa0bc
7 changed files with 3619 additions and 0 deletions

3539
vmware-server/.footprint Normal file

File diff suppressed because it is too large Load Diff

4
vmware-server/.md5sum Normal file
View File

@ -0,0 +1,4 @@
536a289e3a67cab7874fd5b12885cbf3 VMware-server-1.0.3-44356.tar.gz
82f402830d4ab4ba74d512a563849384 locations
6a0c8da95b4c25670c842939e5b92728 vmware-any-any-update110.tar.gz
e4499a43dddb30175b87d95a397a89cc vmware.rc

35
vmware-server/Pkgfile Normal file
View File

@ -0,0 +1,35 @@
# Description:
# URL:
# Maintainer:
# Packager:
# Depends on:
name=vmware-server
version=1.0.3-44356
release=1
source=(http://download3.vmware.com/software/vmserver/VMware-server-$version.tar.gz
locations vmware.rc
vmware-any-any-update110.tar.gz)
build() {
cd $name-distrib
mkdir -p $PKG/etc/{vmware/init.d,rc.d,pam.d}
mkdir -p $PKG/usr/{bin,sbin,lib/vmware,share/vmware/}
cp -r etc/* $PKG/etc/vmware/
sed -i -e "s/_TS_/`date +%s`/g" $SRC/locations
install -m 755 $SRC/vmware.rc $PKG/etc/rc.d/vmware
mkdir $PKG/etc/vmware/init.d/{rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d}
cp -a installer/services.sh $PKG/etc/vmware/init.d/vmware
cp $SRC/locations $PKG/etc/vmware/
cp -r bin $PKG/usr/
cp -r sbin $PKG/usr/
cp -r lib/* $PKG/usr/lib/vmware/
cp -r doc $PKG/usr/share/vmware/
chown -R root:root $PKG
}

13
vmware-server/locations Normal file
View File

@ -0,0 +1,13 @@
directory /etc/vmware
file /etc/vmware/locations
directory /etc/vmware/pam.d
file /etc/vmware/pam.d/vmware-authd _TS_
file /etc/vmware/signing-key.pub _TS_
file /etc/vmware/installer.sh _TS_
file /etc/vmware/not_configured _TS_
answer BINDIR /usr/bin
answer SBINDIR /usr/sbin
answer LIBDIR /usr/lib/vmware
answer INITDIR /etc/vmware/init.d
answer INITSCRIPTSDIR /etc/vmware/init.d
answer DOCDIR /usr/share/vmware/doc

5
vmware-server/post-install Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
cd $SRC/vmware-any-any-update110/
./runme.pl
chmod u+s /usr/lib/vmware/bin/vmware-vmx

Binary file not shown.

23
vmware-server/vmware.rc Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# /etc/rc.d/vmware: start/stop vmware services
#
case $1 in
start)
/etc/vmware/init.d/vmware start
;;
stop)
/etc/vmware/init.d/vmware stop
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# vim: syntax=sh