2000-03-29 16:23:07 -05:00
|
|
|
# ports collection makefile for: VMware 2.0 for Linux
|
2000-03-25 15:24:32 -05:00
|
|
|
# Date created: Fri 26 Nov 19:16:47 EST 1999
|
|
|
|
# Whom: vns@delta.odessa.ua
|
2000-01-26 17:06:13 -05:00
|
|
|
#
|
2000-01-28 01:22:56 -05:00
|
|
|
# $FreeBSD$
|
2000-07-31 17:56:38 -04:00
|
|
|
# $vmFreeBSD: vmware/vmmon-only/freebsd/port/Makefile,v 1.15 2000/07/31 00:54:32 vsilyaev Exp $
|
2000-01-26 17:06:13 -05:00
|
|
|
#
|
|
|
|
|
2000-04-12 00:56:17 -04:00
|
|
|
PORTNAME= vmware2
|
2000-07-22 16:55:26 -04:00
|
|
|
PORTVERSION= 2.0.2.621
|
2000-09-15 06:19:47 -04:00
|
|
|
PORTREVISION= 1
|
2000-02-28 03:34:04 -05:00
|
|
|
CATEGORIES= emulators linux
|
2000-01-26 17:06:13 -05:00
|
|
|
MASTER_SITES= http://www4.vmware.com/software/ \
|
|
|
|
http://vmware-svca.www.conxion.com/software/ \
|
|
|
|
http://vmware-chil.www.conxion.com/software/ \
|
|
|
|
http://vmware-heva.www.conxion.com/software/ \
|
|
|
|
http://www.vmware.co.uk/software/ \
|
|
|
|
http://mirror.aarnet.edu.au/pub/vmware/software/ \
|
|
|
|
ftp://mirror.aarnet.edu.au/pub/vmware/software/
|
2000-06-03 03:27:10 -04:00
|
|
|
DISTNAME= VMware-${PORTVERSION:R}-${PORTVERSION:E}
|
2000-01-26 17:06:13 -05:00
|
|
|
|
2000-07-31 17:56:38 -04:00
|
|
|
PATCH_SITES= http://www.mindspring.com/~vsilyaev/vmware/files/ \
|
2000-01-26 17:06:13 -05:00
|
|
|
ftp://mirror.aarnet.edu.au/pub/vmware/freebsd/ \
|
|
|
|
http://mirror.aarnet.edu.au/pub/vmware/freebsd/
|
2000-07-31 17:56:38 -04:00
|
|
|
PATCHFILES= vmmon-freebsd-0.98.tar.gz \
|
|
|
|
vmnet-freebsd-0.21.tar.gz
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-06-03 03:27:10 -04:00
|
|
|
# Feel free to post your questions/reports/suggestions on this port to
|
|
|
|
# freebsd-emulation mailing list with the following maintainer address CC'ed.
|
2000-07-31 17:56:38 -04:00
|
|
|
MAINTAINER= vns@delta.odessa.ua
|
2000-03-25 15:24:32 -05:00
|
|
|
|
2000-04-03 12:13:11 -04:00
|
|
|
RUN_DEPENDS= ${LINUX_DIR}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \
|
2000-04-14 17:01:58 -04:00
|
|
|
${LINUX_DIR}/dev/rtc:${PORTSDIR}/emulators/rtc
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-03-25 15:24:32 -05:00
|
|
|
RESTRICTED= "Not sure if we can redistribute it"
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-03-25 15:24:32 -05:00
|
|
|
LINUX_DIR= /compat/linux
|
|
|
|
VMDIR= ${PREFIX}/lib/vmware
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-03-25 15:24:32 -05:00
|
|
|
ONLY_FOR_ARCHS= i386
|
2000-01-28 01:22:56 -05:00
|
|
|
USE_XLIB= yes
|
|
|
|
WRKSRC= ${WRKDIR}/vmware-distrib
|
2000-03-25 15:24:32 -05:00
|
|
|
GZCAT= ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/extract
|
2000-01-28 01:22:56 -05:00
|
|
|
MAN1= vmware.1
|
2000-01-26 17:06:13 -05:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 400013
|
2000-03-25 15:24:32 -05:00
|
|
|
BROKEN= "Systems prior to 400013 is out of support"
|
2000-01-26 17:06:13 -05:00
|
|
|
.endif
|
|
|
|
|
2000-09-15 06:19:47 -04:00
|
|
|
.if !defined(HAVE_LINPROCFS) && !exists(/modules/linprocfs.ko) && !exists(/boot/kernel/linprocfs.ko) && !exists(${PREFIX}/modules/linprocfs.ko)
|
2000-03-29 16:23:07 -05:00
|
|
|
BROKEN= "This software absolutely requires Linux procfs support"
|
2000-01-26 17:06:13 -05:00
|
|
|
.endif
|
|
|
|
|
2000-08-23 15:13:51 -04:00
|
|
|
.if !exists(/sys/Makefile)
|
|
|
|
BROKEN= "Kernel source files required"
|
|
|
|
.endif
|
|
|
|
|
2000-03-25 15:24:32 -05:00
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net"
|
|
|
|
.endif
|
2000-01-26 17:06:13 -05:00
|
|
|
|
2000-03-25 15:24:32 -05:00
|
|
|
SCRIPTS_ENV+= LINUX_DIR="${LINUX_DIR}" \
|
|
|
|
VMNET_HOST_IP="${VMNET_HOST_IP}" \
|
|
|
|
VMNET_NETMASK="${VMNET_NETMASK}"
|
|
|
|
MAKE_ARGS= KMODDIR="${VMDIR}/lib/modules"
|
2000-01-26 17:06:13 -05:00
|
|
|
|
|
|
|
post-patch:
|
2000-03-25 15:24:32 -05:00
|
|
|
${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
2000-03-29 16:23:07 -05:00
|
|
|
${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile
|
2000-05-26 01:42:51 -04:00
|
|
|
${RM} -rf ${WRKSRC}/vmmon-only/linux/
|
2000-08-24 11:01:44 -04:00
|
|
|
.if exists(/sys/compat/linux/linux_ioctl.h)
|
2000-08-23 15:13:51 -04:00
|
|
|
${PERL} -i -pe 's,i386(/linux/linux_ioctl\.h),compat$$1,' \
|
|
|
|
${WRKSRC}/vmnet-only/freebsd/vmnet_linux.c
|
|
|
|
.endif
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-01-26 17:06:13 -05:00
|
|
|
setoptions:
|
2000-03-25 15:24:32 -05:00
|
|
|
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
|
2000-01-28 01:22:56 -05:00
|
|
|
-e 's;@@HOST_IP@@;${VMNET_HOST_IP};' \
|
|
|
|
-e 's;@@NETMASK@@;${VMNET_NETMASK};' \
|
2000-03-25 15:24:32 -05:00
|
|
|
${FILESDIR}/config > ${WRKDIR}/config
|
2000-01-26 17:06:13 -05:00
|
|
|
|
2000-03-25 15:24:32 -05:00
|
|
|
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
|
2000-07-31 17:56:38 -04:00
|
|
|
-e 's;@@LINUX_DIR@@;${LINUX_DIR};' \
|
2000-01-28 01:22:56 -05:00
|
|
|
-e 's;@@NETWORKING@@;${VMNET_NETWORKING};' \
|
|
|
|
-e 's;@@HOST_IP@@;${VMNET_HOST_IP};' \
|
|
|
|
-e 's;@@NETMASK@@;${VMNET_NETMASK};' \
|
|
|
|
${FILESDIR}/vmware.sh > ${WRKDIR}/vmware.sh
|
|
|
|
|
2000-04-17 00:23:24 -04:00
|
|
|
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
|
2000-04-25 10:23:37 -04:00
|
|
|
-e 's;@@LINUX_DIR@@;${LINUX_DIR};' \
|
2000-04-17 00:23:24 -04:00
|
|
|
${FILESDIR}/vmware > ${WRKDIR}/vmware
|
|
|
|
|
2000-01-26 17:06:13 -05:00
|
|
|
pre-install: setoptions
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/vmware.1 ${MANPREFIX}/man/man1
|
|
|
|
${MKDIR} ${VMDIR}/lib/modules
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-01-26 17:06:13 -05:00
|
|
|
${MKDIR} ${PREFIX}/etc/vmware
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/config ${PREFIX}/etc/vmware
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-01-26 17:06:13 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/vmware.sh ${PREFIX}/etc/rc.d
|
|
|
|
|
|
|
|
${MKDIR} ${VMDIR}/bin
|
2000-01-28 01:22:56 -05:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/df ${VMDIR}/bin
|
2000-01-26 17:06:13 -05:00
|
|
|
[ -f ${LINUX_DIR}/bin/df ] || ${LN} -s ${VMDIR}/bin/df ${LINUX_DIR}/bin/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/*.pl ${VMDIR}/bin
|
|
|
|
for i in \
|
|
|
|
vmnet-bridge vmnet-dhcpd vmnet-sniffer \
|
|
|
|
vmware-loop vmware-ping vmware-wizard \
|
|
|
|
; do \
|
2000-03-25 15:24:32 -05:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/$${i} ${VMDIR}/bin; \
|
2000-01-26 17:06:13 -05:00
|
|
|
done
|
2000-01-28 01:22:56 -05:00
|
|
|
${INSTALL_SCRIPT} -m 4555 ${WRKSRC}/bin/vmware ${VMDIR}/bin
|
2000-04-17 00:23:24 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/vmware ${PREFIX}/bin
|
2000-01-26 17:06:13 -05:00
|
|
|
${MKDIR} ${VMDIR}/lib
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/config ${VMDIR}/lib
|
2000-03-29 16:23:07 -05:00
|
|
|
${MKDIR} ${VMDIR}/lib/floppies
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/floppies/* ${VMDIR}/lib/floppies
|
2000-01-26 17:06:13 -05:00
|
|
|
${MKDIR} ${VMDIR}/lib/help
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/help/* ${VMDIR}/lib/help
|
|
|
|
${MKDIR} ${VMDIR}/lib/xkeymap
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/xkeymap/* ${VMDIR}/lib/xkeymap
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/vmware
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/vmware
|
2000-03-29 16:23:07 -05:00
|
|
|
.for f in README.FreeBSD Hints.FreeBSD
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/${f} ${PREFIX}/share/doc/vmware
|
|
|
|
.endfor
|
2000-01-26 17:06:13 -05:00
|
|
|
.endif
|
2000-01-28 01:22:56 -05:00
|
|
|
|
2000-01-26 17:06:13 -05:00
|
|
|
post-install:
|
2000-03-25 15:24:32 -05:00
|
|
|
${LN} -s ${PREFIX}/etc/vmware /etc/vmware
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-01-26 17:06:13 -05:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|