Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Feb 2000 17:44:15 -0500 (EST)
From:      vns@delta.odessa.ua
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16894: VMware update
Message-ID:  <200002212244.RAA02925@mindspring.com>

next in thread | raw e-mail | index | archive | help

>Number:         16894
>Category:       ports
>Synopsis:       VMware port update
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 21 14:50:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir N.Silyaev
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:


>Description:
	Some VMware port cleanup:
	- remove [buggy] dependencies from linuxprocfs port, when this
	  port doesn't exist in a system (it's a common situation, because
	  linuxprocfs port don't included in the official port tree).
	- remove Makefiles.inc.xxx at cleanup stage
	- added message about loading kernel modules
	- added warning when vmware runned with not super-user id

>How-To-Repeat:

>Fix:
	Apply the following patch

diff -ru vmware.orig/Makefile vmware/Makefile
--- vmware.orig/Makefile	Mon Feb 21 17:10:46 2000
+++ vmware/Makefile	Mon Feb 21 17:36:31 2000
@@ -117,6 +117,19 @@
 .endif
 
 post-install:
-	${LN} -s ${PREFIX}/etc/vmware /etc/vmware
+	@${LN} -s ${PREFIX}/etc/vmware /etc/vmware
+.if !defined(BATCH)
+	@${ECHO} "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" 
+	@${ECHO} "Before launch vmware, execute the next command"
+	@${ECHO} ${PREFIX}/etc/rc.d/vmware.sh start
+	@${ECHO} 
+	@${ECHO} "to load required kernel modules"
+	@${ECHO} "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" 
+.endif
+
+	
+pre-clean:
+	@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc.linproc \
+		  ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc.net
 
 .include <bsd.port.post.mk>
diff -ru vmware.orig/files/vmware vmware/files/vmware
--- vmware.orig/files/vmware	Mon Feb 21 17:10:46 2000
+++ vmware/files/vmware	Mon Feb 21 17:22:21 2000
@@ -1,6 +1,10 @@
 #!/bin/sh
 # $FreeBSD: ports/emulators/vmware/files/vmware,v 1.2 2000/01/28 06:25:44 obrien Exp $
 #
+if [ `id -u` -ne 0 ]; then
+	echo "This vmware configuration available only for superuser"
+	exit 1
+fi
 vmdir=@@PREFIX@@/lib/vmware/bin
 exe=${vmdir}/vmware
 ${vmdir}/fakeprocfs.sh $$ $exe
diff -ru vmware.orig/scripts/configure.linproc vmware/scripts/configure.linproc
--- vmware.orig/scripts/configure.linproc	Mon Feb 21 17:10:46 2000
+++ vmware/scripts/configure.linproc	Mon Feb 21 17:17:58 2000
@@ -1,8 +1,8 @@
 #!/bin/sh
 
 use_linproc=0
-
-if [ _$BATCH = _ ]; then
+LINPROCFS=${PORTSDIR}/emulators/linux_procfs
+if [ _$BATCH = _ -a -e ${LINPROCFS} ]; then
 
 /usr/bin/dialog --title "Confirmation" --clear --yesno "\n"\
 "Do you use linux proc filesystem emulator?\n" \
@@ -18,6 +18,6 @@
 echo '#' `date`
 if [ $use_linproc -ne 0 ]; then
 echo USE_LINPROC=	yes
-echo RUN_DEPENDS+=	${PREFIX}/modules/linprocfs.ko:${PORTSDIR}/emulators/linux_procfs
+echo RUN_DEPENDS+=	${PREFIX}/modules/linprocfs.ko:${LINPROCFS}
 fi
 )


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002212244.RAA02925>