2003-04-13 04:59:12 +02:00
|
|
|
# ports collection makefile for: VMware 3.2 for Linux
|
|
|
|
# Date created: Fri 13 Apr 04:59:47 CET 2003
|
|
|
|
# Whom: mbr@freebsd.org
|
2000-01-26 23:06:13 +01:00
|
|
|
#
|
2000-01-28 07:22:56 +01:00
|
|
|
# $FreeBSD$
|
2000-01-26 23:06:13 +01:00
|
|
|
#
|
|
|
|
|
2003-04-12 19:25:12 +02:00
|
|
|
PORTNAME= vmware3
|
2003-10-22 20:22:07 +02:00
|
|
|
PORTVERSION= 3.2.1.2242
|
2006-04-29 00:23:27 +02:00
|
|
|
PORTREVISION= 13
|
2004-02-29 15:54:31 +01:00
|
|
|
PORTEPOCH= 1
|
2000-02-28 09:34:04 +01:00
|
|
|
CATEGORIES= emulators linux
|
2005-10-13 10:27:32 +02:00
|
|
|
MASTER_SITES= http://download3.vmware.com/software/wkst/:vmware \
|
2003-10-21 15:36:23 +02:00
|
|
|
${FREEBSD_MODULE_SITES} \
|
2000-11-03 00:01:40 +01:00
|
|
|
${VMWARE_MIRROR_SITES}
|
2003-10-22 20:22:07 +02:00
|
|
|
DISTFILES= VMware-workstation-${PORTVERSION:R}-${PORTVERSION:E}${EXTRACT_SUFX}:vmware \
|
2004-08-05 00:24:11 +02:00
|
|
|
vmmon-only-${PORTVERSION:R}-20040727${EXTRACT_SUFX}:patch \
|
2004-07-08 10:26:34 +02:00
|
|
|
vmnet-only-${PORTVERSION:R}-20040705${EXTRACT_SUFX}:patch
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2007-02-27 00:51:06 +01:00
|
|
|
MAINTAINER= freebsd-emulation@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= A virtual machine emulator - a full PC in a window
|
2000-03-25 21:24:32 +01:00
|
|
|
|
2005-10-14 10:49:24 +02:00
|
|
|
RUN_DEPENDS= /dev/rtc:${PORTSDIR}/emulators/rtc
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2006-04-29 00:23:27 +02:00
|
|
|
RESTRICTED= Not sure if we can redistribute it
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2000-11-03 00:01:40 +01:00
|
|
|
VMWARE_MIRROR_SITES= \
|
2003-10-21 15:36:23 +02:00
|
|
|
http://vmware-svca.www.conxion.com/software/:vmware \
|
|
|
|
http://vmware-chil.www.conxion.com/software/:vmware \
|
2005-02-23 15:37:37 +01:00
|
|
|
http://vmware-heva.www.conxion.com/software/:vmware
|
2000-11-02 23:56:44 +01:00
|
|
|
FREEBSD_MODULE_SITES= \
|
2004-07-08 10:26:34 +02:00
|
|
|
http://www.break.net/orlando/vmware3/:patch \
|
2000-11-02 23:56:44 +01:00
|
|
|
|
2002-03-25 10:19:20 +01:00
|
|
|
USE_SUBMAKE= yes
|
2000-03-25 21:24:32 +01:00
|
|
|
VMDIR= ${PREFIX}/lib/vmware
|
2003-04-13 04:59:12 +02:00
|
|
|
SRC_BASE?= /usr/src
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2006-05-15 09:25:01 +02:00
|
|
|
SUB_FILES= vmware vmware-wizard pkg-message config 001.vmware.sh
|
|
|
|
SUB_LIST= BRIDGED="${VMNET_BRIDGED}" \
|
|
|
|
BRIDGE_INTF="${VMNET_BRIDGED_INTERFACE}" \
|
|
|
|
HOST_IP="${VMNET_HOST_IP}" \
|
|
|
|
NETMASK="${VMNET_NETMASK}" \
|
|
|
|
LINUXBASE="${LINUXBASE}" \
|
|
|
|
NETWORKING="${VMNET_NETWORKING}" \
|
|
|
|
VMNET1_MINOR="${VMNET1_MINOR}"
|
2000-03-25 21:24:32 +01:00
|
|
|
ONLY_FOR_ARCHS= i386
|
Mega-patch to cleanup the ports infrastructure regarding our linux bits:
- USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
tools to strip binaries anymore, so it's not neccesary anymore to override
STRIP and STRIP_CMD.
- USE_LINUX_PREFIX implies NO_MTREE now.
- In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
instead upon the native FreeBSD libraries.
- The variable LINUX_BASE_PORT contains a string which is suitable as an
item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
instead of a hardcoded reference.
- Change all ports to comply to the "new world order".
- The Ports Collection now allows to override the default linux_base port.
Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
${PORTSDIR}/emulators/linux_base-${OVERRIDE_LINUX_BASE_PORT}).
- If USE_LINUX or OVERRIDE_LINUX_BASE doesn't point to an existing linux_base
port and if USE_LINUX isn't set to "yes" (case insensitive), the port will
be marked as IGNORE. [1]
- Readd USE_LINUX knobs into several ports and make several uses of a
conditional dependency ("USE_LINUX?=") into an unconditional one
("USE_LINUX=") which where removed/changed by Trevor to allow the use of
alternative linux_base ports. While this is a nice goal, the implementation
resulted in missing dependencies. The OVERRIDE_LINUX_BASE_PORT knob
in this commit is supposed to fix the problem while keeping the feature.
Basicaly this includes a backout of Trevor's commit, to prevent confusion
I mention it here explicitely.
- Use the correct prefix (X11- instead of LOCAL- or LINUX-) for some ports.
Chase dependencies for this.
- Changes to make linux_devtools installable on amd64, remove some stray
device nodes (they don't work on recent OS versions and aren't really
needed).
- Make linux_base-8 PREFIX clean and remove some stray device nodes.
Additionally tell a little bit more about how to setup NIS/YP [2].
- Update the PGSQL dependency in the linux-opengroupware port to a recent
version (the old one isn't available anymore), I don't know if this
works (at least it isn't more broken than before).
- Use PREFIX/usr/share/doc instead of PREFIX/usr/doc in the divx4linux
ports, the former path exists already and gets populated by other
packages too (PREFIX=LINUXPREFIX!).
- Fix some obvious (non-linuxolator) bugs in some linux ports while being
there.
- Bump PORTREVISION where neccesary.
Requested by: portmgr (linimon) [1]
Submittted by: Gerrit Kuehn <gerrit_huehn@gruft.fido.de [2]
Approved by: portmgr (kris, linimon), maintainers (or maintainer timeout)
Tested on: ports cluster (kris)
Reviewed by: silence on emulation@
Superseedes PR: 69997
Maintainer approval from:
chris@chrisburkert.de
cracauer@cons.org
des
girgen
jamie@bishopston.net
mezz
mi
nivit@users.sf.net
pat
simond@irrelevant.org
riggs@rrr.de
Udo.Schweigert@Siemens.com
2005-06-18 00:59:29 +02:00
|
|
|
USE_LINUX= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XLIB= yes
|
2000-01-28 07:22:56 +01:00
|
|
|
WRKSRC= ${WRKDIR}/vmware-distrib
|
2000-03-25 21:24:32 +01:00
|
|
|
GZCAT= ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/extract
|
2000-01-28 07:22:56 +01:00
|
|
|
MAN1= vmware.1
|
2000-01-26 23:06:13 +01:00
|
|
|
|
2000-11-02 23:56:44 +01:00
|
|
|
MODULES= vmmon vmnet
|
|
|
|
|
2000-01-26 23:06:13 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-01-21 23:10:20 +01:00
|
|
|
.if !defined(HAVE_LINPROCFS) && !exists(/modules/linprocfs.ko) && !exists(/boot/kernel/linprocfs.ko) && !exists(${PREFIX}/modules/linprocfs.ko) && !exists(/compat/linux/proc/version)
|
2006-04-29 00:23:27 +02:00
|
|
|
IGNORE= linprocfs is required, please build the module and/or add it to your kernel
|
2000-01-26 23:06:13 +01:00
|
|
|
.endif
|
|
|
|
|
2006-07-09 22:13:20 +02:00
|
|
|
.if !exists(${SRC_BASE}/sys/Makefile)
|
2006-04-29 00:23:27 +02:00
|
|
|
IGNORE= kernel source files required
|
2000-08-23 21:13:51 +02:00
|
|
|
.endif
|
|
|
|
|
2003-04-13 04:59:12 +02:00
|
|
|
VMNET1_MINOR= 0x00800001
|
|
|
|
|
2000-09-22 19:22:24 +02:00
|
|
|
SCRIPTS_ENV+= LINUXBASE="${LINUXBASE}" \
|
2000-03-25 21:24:32 +01:00
|
|
|
VMNET_HOST_IP="${VMNET_HOST_IP}" \
|
2003-04-13 04:59:12 +02:00
|
|
|
VMNET_NETMASK="${VMNET_NETMASK}" \
|
|
|
|
VMNET1_MINOR="${VMNET1_MINOR}"
|
2003-11-03 17:50:03 +01:00
|
|
|
MAKE_ARGS= KMODDIR="${VMDIR}/modules"
|
2003-04-13 04:59:12 +02:00
|
|
|
PLIST_SUB= LINUXBASE="${LINUXBASE}" VMNET1_MINOR="${VMNET1_MINOR}"
|
|
|
|
|
2000-11-02 23:56:44 +01:00
|
|
|
post-extract:
|
|
|
|
.for m in ${MODULES}
|
|
|
|
${TAR} -xf ${WRKSRC}/lib/modules/source/${m}.tar -C ${WRKSRC}
|
|
|
|
.endfor
|
|
|
|
${GUNZIP_CMD} ${WRKSRC}/man/man1/vmware.1.gz
|
|
|
|
|
|
|
|
pre-patch:
|
2003-04-13 04:59:12 +02:00
|
|
|
@${MKDIR} ${WRKSRC}/vmnet-only/freebsd
|
|
|
|
@${MKDIR} ${WRKSRC}/vmnet-only/netbsd
|
|
|
|
@${MKDIR} ${WRKSRC}/vmmon-only/freebsd
|
|
|
|
@${MKDIR} ${WRKSRC}/vmmon-only/netbsd
|
2003-11-03 17:50:03 +01:00
|
|
|
@cd ${WRKSRC}/vmmon-only && ${PATCH} -p1 < ${WRKDIR}/vmmon-only.diff
|
2004-07-08 10:26:34 +02:00
|
|
|
@cd ${WRKSRC}/vmnet-only && ${PATCH} -p1 < ${WRKDIR}/vmnet-only.diff
|
2000-11-02 23:56:44 +01:00
|
|
|
|
2000-08-24 17:01:44 +02:00
|
|
|
.if exists(/sys/compat/linux/linux_ioctl.h)
|
2006-05-15 09:25:01 +02:00
|
|
|
${REINPLACE_CMD} -i "" -e 's,i386(/linux/linux_ioctl\.h),compat$$1,' \
|
2000-08-23 21:13:51 +02:00
|
|
|
${WRKSRC}/vmnet-only/freebsd/vmnet_linux.c
|
|
|
|
.endif
|
2001-01-22 11:39:32 +01:00
|
|
|
.if exists(/usr/include/sys/selinfo.h)
|
2006-05-15 09:25:01 +02:00
|
|
|
${REINPLACE_CMD} -i "" -e 's,<sys/select\.h>,<sys/selinfo.h>,' \
|
2001-01-22 11:39:32 +01:00
|
|
|
${WRKSRC}/vmmon-only/freebsd/*.c
|
|
|
|
.endif
|
2001-05-01 21:29:50 +02:00
|
|
|
cd ${WRKSRC}/vmmon-only/freebsd && ${TOUCH} bus_if.h device_if.h
|
2006-05-15 09:25:01 +02:00
|
|
|
${REINPLACE_CMD} -i "" -e 's,<machine/ioctl_fd\.h>,<sys/fdcio.h>,' \
|
|
|
|
${WRKSRC}/vmmon-only/freebsd/*.c
|
2003-04-13 04:59:12 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
|
|
${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile
|
|
|
|
${CP} ${FILESDIR}/Makefile.vmnet ${WRKSRC}/vmnet-only/Makefile
|
2005-11-13 11:14:14 +01:00
|
|
|
.if ${OSVERSION} > 600000
|
2006-05-15 09:25:01 +02:00
|
|
|
cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd6-1.patch
|
|
|
|
cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd6-2.patch
|
2005-11-13 11:14:14 +01:00
|
|
|
.endif
|
2008-04-01 16:04:00 +02:00
|
|
|
.if ${OSVERSION} > 700000
|
|
|
|
cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd7-1.patch
|
|
|
|
cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/fbsd7-2.patch
|
|
|
|
.endif
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2006-05-15 09:25:01 +02:00
|
|
|
pre-install:
|
2000-01-26 23:06:13 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/vmware.1 ${MANPREFIX}/man/man1
|
2003-11-03 17:50:03 +01:00
|
|
|
${MKDIR} ${VMDIR}/modules
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2000-01-26 23:06:13 +01:00
|
|
|
${MKDIR} ${PREFIX}/etc/vmware
|
2004-07-08 10:26:34 +02:00
|
|
|
.if exists(${PREFIX}/etc/vmware/config)
|
|
|
|
@echo "====> Preserving your previous configuration."
|
|
|
|
.else
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/config ${PREFIX}/etc/vmware
|
|
|
|
.endif
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2004-06-12 01:35:29 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/001.vmware.sh ${PREFIX}/etc/rc.d
|
2000-01-26 23:06:13 +01:00
|
|
|
|
|
|
|
${MKDIR} ${VMDIR}/bin
|
2000-01-28 07:22:56 +01:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/df ${VMDIR}/bin
|
2000-09-22 18:55:01 +02:00
|
|
|
[ -f ${LINUXBASE}/bin/df ] || ${LN} -s ${VMDIR}/bin/df ${LINUXBASE}/bin/
|
2000-01-26 23:06:13 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/*.pl ${VMDIR}/bin
|
2003-04-16 00:55:53 +02:00
|
|
|
|
2000-01-26 23:06:13 +01:00
|
|
|
for i in \
|
2003-04-16 00:55:53 +02:00
|
|
|
vmnet-bridge vmnet-dhcpd vmnet-natd vmnet-netifup \
|
|
|
|
vmnet-sniffer vmware-nmbd vmware-smbd vmware-smbpasswd \
|
|
|
|
vmware-smbpasswd.bin vmware-ping vmware-wizard \
|
2000-01-26 23:06:13 +01:00
|
|
|
; do \
|
2000-03-25 21:24:32 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/$${i} ${VMDIR}/bin; \
|
2000-01-26 23:06:13 +01:00
|
|
|
done
|
2004-12-15 03:24:05 +01:00
|
|
|
for f in ${WRKSRC}/lib/bin/*; do \
|
|
|
|
${INSTALL_SCRIPT} $${f} ${VMDIR}/bin; \
|
2003-04-16 00:55:53 +02:00
|
|
|
done
|
|
|
|
|
2003-11-03 17:50:03 +01:00
|
|
|
${MKDIR} ${VMDIR}/configurator
|
2004-12-15 03:24:05 +01:00
|
|
|
for f in ${WRKSRC}/lib/configurator/* ; do \
|
|
|
|
${INSTALL_DATA} $${f} ${VMDIR}/configurator; \
|
2003-04-16 00:55:53 +02:00
|
|
|
done
|
|
|
|
|
2003-11-03 17:50:03 +01:00
|
|
|
${MKDIR} ${VMDIR}/isoimages
|
2004-12-15 03:24:05 +01:00
|
|
|
for f in ${WRKSRC}/lib/isoimages/* ; do \
|
|
|
|
${INSTALL_DATA} $${f} ${VMDIR}/isoimages; \
|
2003-04-15 00:38:13 +02:00
|
|
|
done
|
2003-04-16 00:55:53 +02:00
|
|
|
|
2003-11-03 17:50:03 +01:00
|
|
|
${MKDIR} ${VMDIR}/licenses/site
|
|
|
|
${MKDIR} ${VMDIR}/licenses/user
|
2004-07-08 10:26:34 +02:00
|
|
|
${INSTALL_DATA} -m 644 ${WRKSRC}/lib/licenses/user/license.ws.3.0 \
|
2003-11-03 17:50:03 +01:00
|
|
|
${VMDIR}/licenses/user
|
2000-01-28 07:22:56 +01:00
|
|
|
${INSTALL_SCRIPT} -m 4555 ${WRKSRC}/bin/vmware ${VMDIR}/bin
|
2000-04-17 06:23:24 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/vmware ${PREFIX}/bin
|
2006-04-29 00:23:27 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/vmware-wizard ${PREFIX}/bin
|
2003-11-03 17:50:03 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/config ${VMDIR}
|
|
|
|
${MKDIR} ${VMDIR}/help
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/help/* ${VMDIR}/help
|
|
|
|
|
|
|
|
${MKDIR} ${VMDIR}/xkeymap
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/xkeymap/* ${VMDIR}/xkeymap
|
|
|
|
|
|
|
|
${MKDIR} ${VMDIR}/smb/codepages
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/smb/codepages/* ${VMDIR}/smb/codepages
|
|
|
|
|
|
|
|
${MKDIR} ${VMDIR}/messages/chef
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/messages/chef/* ${VMDIR}/messages/chef
|
|
|
|
${MKDIR} ${VMDIR}/messages/ja
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/messages/ja/* ${VMDIR}/messages/ja
|
|
|
|
${MKDIR} ${VMDIR}/messages/jive
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/messages/jive/* ${VMDIR}/messages/jive
|
2000-01-26 23:06:13 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-04-29 00:23:27 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
2004-07-08 10:26:34 +02:00
|
|
|
.for f in README.FreeBSD Hints.FreeBSD MultipleInstances.FreeBSD ChangeLog.FreeBSD
|
2006-04-29 00:23:27 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/${f} ${DOCSDIR}
|
2000-03-29 23:23:07 +02:00
|
|
|
.endfor
|
2000-01-26 23:06:13 +01:00
|
|
|
.endif
|
2000-01-28 07:22:56 +01:00
|
|
|
|
2000-01-26 23:06:13 +01:00
|
|
|
post-install:
|
2003-04-16 14:36:46 +02:00
|
|
|
${LN} -sf ${PREFIX}/etc/vmware ${LINUXBASE}/etc/
|
|
|
|
@if [ ! -e ${LINUXBASE}/usr/lib/vmware/bin/vmware ]; then \
|
|
|
|
${LN} -sf ${PREFIX}/lib/vmware ${LINUXBASE}/usr/lib/vmware; \
|
2003-04-16 00:55:53 +02:00
|
|
|
fi
|
2000-03-25 21:24:32 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-01-26 23:06:13 +01:00
|
|
|
|
2003-04-13 04:59:12 +02:00
|
|
|
pre-clean:
|
|
|
|
.if exists(${WRKSRC})
|
|
|
|
@${FIND} ${WRKSRC} | ${GREP} \@ | ${XARGS} ${RM}
|
|
|
|
.endif
|
|
|
|
|
2005-10-14 10:45:05 +02:00
|
|
|
.include <bsd.port.post.mk>
|
|
|
|
|
2003-11-03 17:50:03 +01:00
|
|
|
.if exists(${WRKDIR}/Makefile.inc.net)
|
|
|
|
.include "${WRKDIR}/Makefile.inc.net"
|
|
|
|
.endif
|