No description, website, or topics provided.
C Makefile Other Shell
Latest commit ac19ff3 Jan 11, 2017 @gonzoua gonzoua committed on GitHub Merge pull request #4 from VanagaS/master
Corrected destination path for patch files

README.md

freebsd-vboxfs

To setup development environment quickly:

cd /usr/ports/emulators/virtualbox-ose-additions
(optional) make config; unselect "X11"
make all-depends-list | awk -F/ '{print $5}' > /tmp/vbox-addon-depends
pkg install `cat /tmp/vbox-addon-depends`
edit /tmp/vbox-addon-depends, remove/modify error entries from last command:
  perl5.16 -> perl5
  gcc-ecj45 -> gcc-ecj
  delete indexinfo
pkg install `cat /tmp/vbox-addon-depends`

There is a pre-generated list is at misc/all-depends-list, to install:

pkg install `cat misc/all-depends-list`

To build:

cp -R $(freebsd-vboxsf)/mount_vboxfs /usr/src/sbin
cd /usr/src/sbin/mount_vboxfs && make depend all install

cp $(freebsd-vboxsf)/patch-* /usr/ports/emulators/virtualbox-ose-additions/files

cd /usr/ports/emulators/virtualbox-ose-additions
make patch
rm -fr `make -V WRKSRC`/src/VBox/Additions/freebsd/vboxvfs
cp -R $(freebsd-vboxsf)/vboxvfs `make -V WRKSRC`/src/VBox/Additions/freebsd

make

To test: (currently does not fully work)

cd /usr/ports/emulators/virtualbox-ose-additions
cd `make -V WRKSRC`
kldload ./out/freebsd.amd64/release/bin/additions/vboxguest.ko
kldload ./out/freebsd.amd64/release/bin/additions/vboxvfs.ko

mount_vboxfs -w shared_folder_name /mnt