diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-03-25 20:24:32 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-03-25 20:24:32 +0000 |
commit | 9225c521c3e097ac831e541c438eceb958bb610f (patch) | |
tree | 061ddf8e675cbc875e32c1f4eb7b7bae904f292b /emulators/vmware3/scripts | |
parent | Fix incomplete PLIST. (diff) |
- Clean up and minor fixes
- Make portlint satisfy
- Avoid creating files out of WRKDIR
- Remove the void directory "patch" (What ever was this?)
- Adjust whitespace
- Fix some ungrammatical wordings
- Modify COMMENT and DESCR
- Drop fakeprocfs support due to the import of Linux procfs to the base system
- Show MESSAGE after installation
- Change maintainer to the -emulation list because:
- Vladimir seems too busy or unreachable these days
- This port depends very much on Linux compatibility stuff
- Get it to check if the system has Linux procfs module and stop if not
PR: ports/16960 (add WWW to DESCR)
No response by: maintainer
Notes
Notes:
svn path=/head/; revision=27045
Diffstat (limited to 'emulators/vmware3/scripts')
-rw-r--r-- | emulators/vmware3/scripts/configure | 105 | ||||
-rw-r--r-- | emulators/vmware3/scripts/pre-install | 19 |
2 files changed, 112 insertions, 12 deletions
diff --git a/emulators/vmware3/scripts/configure b/emulators/vmware3/scripts/configure index cebd8aa37360..15ab00cbd9a7 100644 --- a/emulators/vmware3/scripts/configure +++ b/emulators/vmware3/scripts/configure @@ -1,5 +1,104 @@ #!/bin/sh -mkdir -p ${WRKDIRPREFIX}${CURDIR} -. `dirname $0`/configure.linproc -. `dirname $0`/configure.net +[ "_$VMNET_HOST_IP" = _ ] && VMNET_HOST_IP="192.168.254.1" +[ "_$VMNET_NETMASK" = _ ] && VMNET_NETMASK="255.255.255.0" + +host_ip=$VMNET_HOST_IP +netmask=$VMNET_NETMASK +title="VMware network options" + +get_network_settings() { + result=`/usr/bin/dialog --title "$title" --clear --inputbox \ +"\n"\ +"What will be the IP address of your host on your private network?:"\ + 10 40 $host_ip \ + 2>&1 >/dev/tty ` + + case $? in + 0) + if [ -z "$result" ]; then + return 1 + fi + host_ip=$result + ;; + 1) + return 1 + ;; + esac + + result=`/usr/bin/dialog --title "$title" --clear --inputbox \ +"\n"\ +"What will be the netmask of your private network?:"\ + 10 40 $netmask \ + 2>&1 >/dev/tty ` + + case $? in + 0) + if [ -z "$result" ]; then + return 1 + fi + netmask=$result + ;; + 1) + return 1 + ;; + esac + return 0; +} + +do_network() { + while true; do + get_network_settings + + /usr/bin/dialog --title "Confirmation" --clear --yesno \ +"\n"\ +"Are the following options correct?\n\n"\ +"IP address: $host_ip\n"\ +"Netmask: $netmask\n"\ + 10 40 + [ $? -eq 0 ] && return 0 + + /usr/bin/dialog --title "Confirmation" --clear --yesno \ +"\n"\ +"Do you want to edit network options again?\n"\ + 10 40 + [ $? -eq 0 ] && continue + + /usr/bin/dialog --title "Confirmation" --clear --yesno \ +"\n"\ +"Do you want to continue without networking?\n"\ + 10 50 + [ $? -eq 0 ] && return 1 + + host_ip=$VMNET_HOST_IP + netmask=$VMNET_NETMASK + + return 0; + done +} + +networking=0 +if [ _$BATCH = _ ]; then + do_network + + if [ $? -eq 0 ]; then + networking=1 + /usr/bin/dialog --title "$title" --infobox \ +"\n"\ +"The following options will be used.\n\n"\ +"IP address: $host_ip\n"\ +"Netmask: $netmask\n"\ + 10 40 + fi +else #BATCH + [ -f ${WRKDIR}/Makefile.inc.net ] && exit +fi #BATCH + +( +exec > ${WRKDIR}/Makefile.inc.net + +echo '#' `date` +echo VMNET_HOST_IP=$host_ip +echo VMNET_NETMASK=$netmask +[ $networking -ne 0 ] && echo VMNET_NETWORKING=1 +) diff --git a/emulators/vmware3/scripts/pre-install b/emulators/vmware3/scripts/pre-install index 7a97e40ba5b5..771445b0ac01 100644 --- a/emulators/vmware3/scripts/pre-install +++ b/emulators/vmware3/scripts/pre-install @@ -1,15 +1,16 @@ #!/bin/sh -echo Setup Linux compatible /dev directory + +echo Setup Linux compatible /dev directory linux_dev=${LINUX_DIR}/dev -if [ \! -d $linux_dev ]; then - echo Creating $linux_dev - mkdir $linux_dev - chown root:wheel $linux_dev - chmod 755 $linux_dev +if [ ! -d $linux_dev ]; then + echo Creating $linux_dev + mkdir $linux_dev + chown root:wheel $linux_dev + chmod 755 $linux_dev fi echo Creating $linux_dev/tty\? -for n in 0 1 2 3 4 5 6 7 8 9; do - ln -s /dev/ttyv$n $linux_dev/tty`expr 1 + $n`; +for n in 0 1 2 3 4 5 6 7 8 9; do + ln -s /dev/ttyv$n $linux_dev/tty`expr 1 + $n`; done ln -s /dev/ttyva ${linux_dev}/tty11 ln -s /dev/ttyvb ${linux_dev}/tty12 @@ -17,7 +18,7 @@ ln -s ${linux_dev}/tty1 ${linux_dev}/tty0 echo Creating $linux_dev/hd\? mknod ${linux_dev}/hda b 0 0x00010002 mknod ${linux_dev}/hdb b 0 0x0001000a -# Not enable wd2-3, because vmware-wizard locked, when +# Do not enable below, because vmware-wizard is locked when # doing something like access("/dev/hdc"...) #mknod ${linux_dev}/hdc b 0 0x00010012 #mknod ${linux_dev}/hdd b 0 0x0001001a |