1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Use LINUXBASE/USE_LINUX variables.

This is only a cosmetic change, so there's no need to reinstall your
installation(s).
This commit is contained in:
Akinori MUSHA 2000-09-22 17:22:24 +00:00
parent fd944e0024
commit 8b3cd773ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33019
12 changed files with 39 additions and 38 deletions

View File

@ -15,11 +15,10 @@ MAINTAINER= freebsd-emulation@FreeBSD.org
WRKSRC= ${WRKDIR}/files
LINUX_DIR= /compat/linux
KMODDIR= ${PREFIX}/modules
CDEV_MAJOR= 202
DEVDIR= ${LINUX_DIR}/dev
DEVDIR= ${LINUXBASE}/dev
STARTUP= rtc.sh
MAKE_ARGS= KMODDIR="${KMODDIR}" CDEV_MAJOR="${CDEV_MAJOR}"

View File

@ -60,10 +60,11 @@ BROKEN= "Kernel source files required"
.include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net"
.endif
SCRIPTS_ENV+= LINUX_DIR="${LINUXBASE}" \
SCRIPTS_ENV+= LINUXBASE="${LINUXBASE}" \
VMNET_HOST_IP="${VMNET_HOST_IP}" \
VMNET_NETMASK="${VMNET_NETMASK}"
MAKE_ARGS= KMODDIR="${VMDIR}/lib/modules"
PLIST_SUB= LINUXBASE="${LINUXBASE}"
post-patch:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
@ -81,14 +82,14 @@ setoptions:
${FILESDIR}/config > ${WRKDIR}/config
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
-e 's;@@LINUX_DIR@@;${LINUXBASE};' \
-e 's;@@LINUXBASE@@;${LINUXBASE};' \
-e 's;@@NETWORKING@@;${VMNET_NETWORKING};' \
-e 's;@@HOST_IP@@;${VMNET_HOST_IP};' \
-e 's;@@NETMASK@@;${VMNET_NETMASK};' \
${FILESDIR}/vmware.sh > ${WRKDIR}/vmware.sh
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
-e 's;@@LINUX_DIR@@;${LINUXBASE};' \
-e 's;@@LINUXBASE@@;${LINUXBASE};' \
${FILESDIR}/vmware > ${WRKDIR}/vmware
pre-install: setoptions

View File

@ -4,9 +4,9 @@
#
# $FreeBSD$
if [ ! -e @@LINUX_DIR@@/proc/cpuinfo ]; then
if [ ! -e @@LINUXBASE@@/proc/cpuinfo ]; then
echo "************************************************************"
echo "It seems Linux procfs is not mounted on @@LINUX_DIR@@/proc."
echo "It seems Linux procfs is not mounted on @@LINUXBASE@@/proc."
echo "VMware does not work without Linux procfs mounted."
echo
echo "For details, see linprocfs(5) manpage."

View File

@ -25,7 +25,7 @@ start)
if [ $networking -eq 1 ]; then
sysctl net.link.ether.bridge_refresh && bridge="_bridge"
kldload if_tap.ko
echo -n >@@LINUX_DIR@@/dev/vmnet1
echo -n >@@LINUXBASE@@/dev/vmnet1
ifconfig vmnet1 $host_ip netmask $netmask
if [ _$bridge != _ ]; then
sysctl -w net.link.ether.bridge_refresh=1

View File

@ -112,17 +112,17 @@ share/doc/vmware/INSTALL
share/doc/vmware/README
share/doc/vmware/README.FreeBSD
share/doc/vmware/SAMBA-LICENSE
@exec mkdir -p /compat/linux/dev;for n in 0 1 2 3 4 5 6 7 8 9; do ln -s /dev/ttyv$n /compat/linux/dev/tty$n;done
@exec ln -s /dev/ttyva /compat/linux/dev/tty10
@exec ln -s /dev/ttyvb /compat/linux/dev/tty11
@exec mknod /compat/linux/dev/null c 2 2
@exec chmod 666 /compat/linux/dev/null
@exec mknod /compat/linux/dev/hda b 0 0x00010002
@exec mknod /compat/linux/dev/hdb b 0 0x0001000a
@exec mkdir -p %%LINUXBASE%%/dev;for n in 0 1 2 3 4 5 6 7 8 9; do ln -s /dev/ttyv$n %%LINUXBASE%%/dev/tty$n;done
@exec ln -s /dev/ttyva %%LINUXBASE%%/dev/tty10
@exec ln -s /dev/ttyvb %%LINUXBASE%%/dev/tty11
@exec mknod %%LINUXBASE%%/dev/null c 2 2
@exec chmod 666 %%LINUXBASE%%/dev/null
@exec mknod %%LINUXBASE%%/dev/hda b 0 0x00010002
@exec mknod %%LINUXBASE%%/dev/hdb b 0 0x0001000a
@exec ln -s %D/etc/vmware /etc/vmware
@exec mknod /compat/linux/dev/vmmon c 200 0
@exec mknod /compat/linux/dev/vmnet1 c 149 65537
@unexec rm -f /etc/vmware /compat/linux/dev/vmmon /compat/linux/dev/vmnet1 /compat/linux/bin/df /compat/linux/dev/tty[0-9]* /compat/linux/dev/hd? /compat/linux/dev/null
@exec mknod %%LINUXBASE%%/dev/vmmon c 200 0
@exec mknod %%LINUXBASE%%/dev/vmnet1 c 149 65537
@unexec rm -f /etc/vmware %%LINUXBASE%%/dev/vmmon %%LINUXBASE%%/dev/vmnet1 %%LINUXBASE%%/bin/df %%LINUXBASE%%/dev/tty[0-9]* %%LINUXBASE%%/dev/hd? %%LINUXBASE%%/dev/null
@dirrm etc/vmware
@dirrm lib/vmware/bin
@dirrm lib/vmware/lib/floppies

View File

@ -1,7 +1,7 @@
#!/bin/sh
echo Setup Linux compatible /dev directory
linux_dev=${LINUX_DIR}/dev
linux_dev=${LINUXBASE}/dev
if [ ! -d $linux_dev ]; then
echo Creating $linux_dev
mkdir $linux_dev

View File

@ -60,10 +60,11 @@ BROKEN= "Kernel source files required"
.include "${WRKDIRPREFIX}${.CURDIR}/work/Makefile.inc.net"
.endif
SCRIPTS_ENV+= LINUX_DIR="${LINUXBASE}" \
SCRIPTS_ENV+= LINUXBASE="${LINUXBASE}" \
VMNET_HOST_IP="${VMNET_HOST_IP}" \
VMNET_NETMASK="${VMNET_NETMASK}"
MAKE_ARGS= KMODDIR="${VMDIR}/lib/modules"
PLIST_SUB= LINUXBASE="${LINUXBASE}"
post-patch:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
@ -81,14 +82,14 @@ setoptions:
${FILESDIR}/config > ${WRKDIR}/config
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
-e 's;@@LINUX_DIR@@;${LINUXBASE};' \
-e 's;@@LINUXBASE@@;${LINUXBASE};' \
-e 's;@@NETWORKING@@;${VMNET_NETWORKING};' \
-e 's;@@HOST_IP@@;${VMNET_HOST_IP};' \
-e 's;@@NETMASK@@;${VMNET_NETMASK};' \
${FILESDIR}/vmware.sh > ${WRKDIR}/vmware.sh
${SED} -e 's;@@PREFIX@@;${PREFIX};' \
-e 's;@@LINUX_DIR@@;${LINUXBASE};' \
-e 's;@@LINUXBASE@@;${LINUXBASE};' \
${FILESDIR}/vmware > ${WRKDIR}/vmware
pre-install: setoptions

View File

@ -4,9 +4,9 @@
#
# $FreeBSD$
if [ ! -e @@LINUX_DIR@@/proc/cpuinfo ]; then
if [ ! -e @@LINUXBASE@@/proc/cpuinfo ]; then
echo "************************************************************"
echo "It seems Linux procfs is not mounted on @@LINUX_DIR@@/proc."
echo "It seems Linux procfs is not mounted on @@LINUXBASE@@/proc."
echo "VMware does not work without Linux procfs mounted."
echo
echo "For details, see linprocfs(5) manpage."

View File

@ -25,7 +25,7 @@ start)
if [ $networking -eq 1 ]; then
sysctl net.link.ether.bridge_refresh && bridge="_bridge"
kldload if_tap.ko
echo -n >@@LINUX_DIR@@/dev/vmnet1
echo -n >@@LINUXBASE@@/dev/vmnet1
ifconfig vmnet1 $host_ip netmask $netmask
if [ _$bridge != _ ]; then
sysctl -w net.link.ether.bridge_refresh=1

View File

@ -112,17 +112,17 @@ share/doc/vmware/INSTALL
share/doc/vmware/README
share/doc/vmware/README.FreeBSD
share/doc/vmware/SAMBA-LICENSE
@exec mkdir -p /compat/linux/dev;for n in 0 1 2 3 4 5 6 7 8 9; do ln -s /dev/ttyv$n /compat/linux/dev/tty$n;done
@exec ln -s /dev/ttyva /compat/linux/dev/tty10
@exec ln -s /dev/ttyvb /compat/linux/dev/tty11
@exec mknod /compat/linux/dev/null c 2 2
@exec chmod 666 /compat/linux/dev/null
@exec mknod /compat/linux/dev/hda b 0 0x00010002
@exec mknod /compat/linux/dev/hdb b 0 0x0001000a
@exec mkdir -p %%LINUXBASE%%/dev;for n in 0 1 2 3 4 5 6 7 8 9; do ln -s /dev/ttyv$n %%LINUXBASE%%/dev/tty$n;done
@exec ln -s /dev/ttyva %%LINUXBASE%%/dev/tty10
@exec ln -s /dev/ttyvb %%LINUXBASE%%/dev/tty11
@exec mknod %%LINUXBASE%%/dev/null c 2 2
@exec chmod 666 %%LINUXBASE%%/dev/null
@exec mknod %%LINUXBASE%%/dev/hda b 0 0x00010002
@exec mknod %%LINUXBASE%%/dev/hdb b 0 0x0001000a
@exec ln -s %D/etc/vmware /etc/vmware
@exec mknod /compat/linux/dev/vmmon c 200 0
@exec mknod /compat/linux/dev/vmnet1 c 149 65537
@unexec rm -f /etc/vmware /compat/linux/dev/vmmon /compat/linux/dev/vmnet1 /compat/linux/bin/df /compat/linux/dev/tty[0-9]* /compat/linux/dev/hd? /compat/linux/dev/null
@exec mknod %%LINUXBASE%%/dev/vmmon c 200 0
@exec mknod %%LINUXBASE%%/dev/vmnet1 c 149 65537
@unexec rm -f /etc/vmware %%LINUXBASE%%/dev/vmmon %%LINUXBASE%%/dev/vmnet1 %%LINUXBASE%%/bin/df %%LINUXBASE%%/dev/tty[0-9]* %%LINUXBASE%%/dev/hd? %%LINUXBASE%%/dev/null
@dirrm etc/vmware
@dirrm lib/vmware/bin
@dirrm lib/vmware/lib/floppies

View File

@ -1,7 +1,7 @@
#!/bin/sh
echo Setup Linux compatible /dev directory
linux_dev=${LINUX_DIR}/dev
linux_dev=${LINUXBASE}/dev
if [ ! -d $linux_dev ]; then
echo Creating $linux_dev
mkdir $linux_dev

View File

@ -13,7 +13,7 @@ DISTNAME= handbase_desktop_${PORTVERSION:S/./_/}.i386-any-linux2.0
MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
USE_LINUX= yes
ONLY_FOR_ARCHS= i386
NO_BUILD= yes
@ -21,7 +21,7 @@ WRKSRC= ${WRKDIR}/handbase-${PORTVERSION}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hd ${PREFIX}/bin/hdconv
/compat/linux/usr/bin/strip ${PREFIX}/bin/hdconv
${LINUXBASE}/usr/bin/strip ${PREFIX}/bin/hdconv
brandelf -t Linux ${PREFIX}/bin/hdconv
${MKDIR} ${PREFIX}/share/doc/hdconv/
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/hdconv/