mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
130 lines
4.2 KiB
Makefile
130 lines
4.2 KiB
Makefile
# ports collection makefile for: VMware 2.0 for Linux
|
|
# Version required: 2.0 - Build 476
|
|
# Date created: Fri 26 Nov 19:16:47 EST 1999
|
|
# Whom: vns@delta.odessa.ua
|
|
#
|
|
# $FreeBSD$
|
|
# $vmFreeBSD: vmware/vmmon-only/freebsd/port/Makefile,v 1.9 2000/01/23 22:29:24 vsilyaev Exp $
|
|
#
|
|
|
|
DISTNAME= VMware-2.0-476
|
|
PKGNAME= vmware2-2.0.476
|
|
CATEGORIES= emulators linux
|
|
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/
|
|
|
|
PATCH_SITES= http://www.mindspring.com/~vsilyaev/vmware/files/ \
|
|
ftp://mirror.aarnet.edu.au/pub/vmware/freebsd/ \
|
|
http://mirror.aarnet.edu.au/pub/vmware/freebsd/
|
|
PATCHFILES= vmmon-freebsd-0.95.tar.gz \
|
|
vmnet-freebsd-0.11.tar.gz
|
|
|
|
MAINTAINER= freebsd-emulation@FreeBSD.org
|
|
|
|
RUN_DEPENDS= ${LINUX_DIR}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
|
|
|
|
RESTRICTED= "Not sure if we can redistribute it"
|
|
|
|
LINUX_DIR= /compat/linux
|
|
VMDIR= ${PREFIX}/lib/vmware
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
USE_XLIB= yes
|
|
WRKSRC= ${WRKDIR}/vmware-distrib
|
|
GZCAT= ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/extract
|
|
MAN1= vmware.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 400013
|
|
BROKEN= "Systems prior to 400013 is out of support"
|
|
.endif
|
|
|
|
.if !defined(HAVE_LINPROCFS) && !exists(/modules/linprocfs.ko) && !exists(${PREFIX}/modules/linprocfs.ko)
|
|
BROKEN= "This software absolutely requires Linux procfs support"
|
|
.endif
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net)
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net"
|
|
.endif
|
|
|
|
SCRIPTS_ENV+= LINUX_DIR="${LINUX_DIR}" \
|
|
VMNET_HOST_IP="${VMNET_HOST_IP}" \
|
|
VMNET_NETMASK="${VMNET_NETMASK}"
|
|
MAKE_ARGS= KMODDIR="${VMDIR}/lib/modules"
|
|
|
|
post-patch:
|
|
${CP} ${FILESDIR}/Makefile ${WRKSRC}
|
|
${CP} ${FILESDIR}/Makefile.vmmon ${WRKSRC}/vmmon-only/Makefile
|
|
|
|
setoptions:
|
|
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
|
|
-e 's;@@HOST_IP@@;${VMNET_HOST_IP};' \
|
|
-e 's;@@NETMASK@@;${VMNET_NETMASK};' \
|
|
${FILESDIR}/config > ${WRKDIR}/config
|
|
|
|
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
|
|
-e 's;@@NETWORKING@@;${VMNET_NETWORKING};' \
|
|
-e 's;@@HOST_IP@@;${VMNET_HOST_IP};' \
|
|
-e 's;@@NETMASK@@;${VMNET_NETMASK};' \
|
|
${FILESDIR}/vmware.sh > ${WRKDIR}/vmware.sh
|
|
|
|
pre-install: setoptions
|
|
${INSTALL_MAN} ${WRKSRC}/man/man1/vmware.1 ${MANPREFIX}/man/man1
|
|
${MKDIR} ${VMDIR}/lib/modules
|
|
|
|
${MKDIR} ${PREFIX}/etc/vmware
|
|
${INSTALL_DATA} ${WRKDIR}/config ${PREFIX}/etc/vmware
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/vmware.sh ${PREFIX}/etc/rc.d
|
|
|
|
${MKDIR} ${VMDIR}/bin
|
|
${INSTALL_SCRIPT} ${FILESDIR}/df ${VMDIR}/bin
|
|
[ -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 \
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/$${i} ${VMDIR}/bin; \
|
|
done
|
|
${INSTALL_SCRIPT} -m 4555 ${WRKSRC}/bin/vmware ${VMDIR}/bin
|
|
${LN} -s ${VMDIR}/bin/vmware ${PREFIX}/bin/
|
|
${MKDIR} ${VMDIR}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/lib/config ${VMDIR}/lib
|
|
${MKDIR} ${VMDIR}/lib/floppies
|
|
${INSTALL_DATA} ${WRKSRC}/lib/floppies/* ${VMDIR}/lib/floppies
|
|
${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
|
|
.for f in README.FreeBSD Hints.FreeBSD
|
|
${INSTALL_DATA} ${FILESDIR}/${f} ${PREFIX}/share/doc/vmware
|
|
.endfor
|
|
.endif
|
|
|
|
post-install:
|
|
${LN} -s ${PREFIX}/etc/vmware /etc/vmware
|
|
.if !exists(/dev/rtc) && !exists(${LINUX_DIR}/dev/rtc)
|
|
@${ECHO} "************************************************************"
|
|
@${ECHO} "This system doesn't seem to have /dev/rtc device support."
|
|
@${ECHO} "With it, you can benefit from VMware's rtc support."
|
|
@${ECHO}
|
|
@${ECHO} "You may want to grab the unofficial rtc port at:"
|
|
@${ECHO} " http://people.FreeBSD.org/~knu/ports/emulators/"
|
|
@${ECHO}
|
|
@${ECHO} "Use it at your own risk, thanks."
|
|
@${ECHO} "************************************************************"
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|