From owner-freebsd-ports Mon Feb 21 14:52:12 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D2FA737B5B1 for ; Mon, 21 Feb 2000 14:52:05 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA29952; Mon, 21 Feb 2000 14:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from fb01.eng00.mindspring.net (fb01.eng00.mindspring.net [207.69.229.19]) by hub.freebsd.org (Postfix) with ESMTP id 0FF8137B54F for ; Mon, 21 Feb 2000 14:45:32 -0800 (PST) (envelope-from vns@mindspring.com) Received: from mindspring.com (user-2ive6lb.dialup.mindspring.com [165.247.26.171]) by fb01.eng00.mindspring.net (8.9.3/8.8.5) with ESMTP id RAA02533 for ; Mon, 21 Feb 2000 17:44:17 -0500 (EST) Received: (from vsilyaev@localhost) by mindspring.com (8.9.3/8.9.3) id RAA02925; Mon, 21 Feb 2000 17:44:15 -0500 (EST) (envelope-from vns) Message-Id: <200002212244.RAA02925@mindspring.com> Date: Mon, 21 Feb 2000 17:44:15 -0500 (EST) From: vns@delta.odessa.ua Reply-To: vns@delta.odessa.ua To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/16894: VMware update Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 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