diff options
Diffstat (limited to '')
-rw-r--r-- | src/VBox/Installer/freebsd/Makefile.kmk | 336 | ||||
-rw-r--r-- | src/VBox/Installer/freebsd/pkg-comment | 1 | ||||
-rw-r--r-- | src/VBox/Installer/freebsd/pkg-descr | 3 | ||||
-rw-r--r-- | src/VBox/Installer/freebsd/pkg_plist | 95 | ||||
-rwxr-xr-x | src/VBox/Installer/freebsd/postdeinstall.sh | 32 | ||||
-rwxr-xr-x | src/VBox/Installer/freebsd/postinstall.sh | 76 | ||||
-rw-r--r-- | src/VBox/Installer/freebsd/virtualbox.desktop | 19 |
7 files changed, 562 insertions, 0 deletions
diff --git a/src/VBox/Installer/freebsd/Makefile.kmk b/src/VBox/Installer/freebsd/Makefile.kmk new file mode 100644 index 00000000..f6284ee0 --- /dev/null +++ b/src/VBox/Installer/freebsd/Makefile.kmk @@ -0,0 +1,336 @@ +# $Id: Makefile.kmk $ +## @file +# Makefile for the FreeBSD installer. +# + +# +# Copyright (C) 2006-2019 Oracle Corporation +# +# This file is part of VirtualBox Open Source Edition (OSE), as +# available from http://www.virtualbox.org. This file is free software; +# you can redistribute it and/or modify it under the terms of the GNU +# General Public License (GPL) as published by the Free Software +# Foundation, in version 2 as it comes in the "COPYING" file of the +# VirtualBox OSE distribution. VirtualBox OSE is distributed in the +# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. +# + +SUB_DEPTH = ../../../.. +include $(KBUILD_PATH)/subheader.kmk + +ifneq ($(KBUILD_HOST),freebsd) + $(error "The FreeBSD installer can only be built on FreeBSD!") +endif + +# +# Globals and targets. +# +VBOX_PATH_FBSD_INST_SRC := $(PATH_SUB_CURRENT) +VBOX_FBSD_INST_OUT_DIR := $(PATH_TARGET)/Installer/freebsd +VBOX_FBSD_INST_STAGE_DIR := $(PATH_TARGET)/Installer/freebsd/install +VBOX_FBSD_DBG_PATH := usr/lib/debug/opt/VirtualBox +VBOX_FBSD_PACKAGE_NAME = VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tbz +VBOX_FBSD_INST_LIB_DIR := $(VBOX_FBSD_INST_STAGE_DIR)/lib +VBOX_FBSD_INST_BIN_DIR := $(VBOX_FBSD_INST_STAGE_DIR)/bin +VBOX_FBSD_INST_LIBVBOX_DIR := $(VBOX_FBSD_INST_LIB_DIR)/virtualbox +VBOX_FBSD_INST_SHARE_DIR := $(VBOX_FBSD_INST_STAGE_DIR)/share +VBOX_FBSD_INST_SHAREAPP_DIR := $(VBOX_FBSD_INST_SHARE_DIR)/applications +VBOX_FBSD_INST_SHAREICON_DIR := $(VBOX_FBSD_INST_SHARE_DIR)/pixmaps +VBOX_FBSD_INST_SHAREVBOX_DIR := $(VBOX_FBSD_INST_SHARE_DIR)/virtualbox + +# Unset this to speed up things during makefile hacking. +VBOX_FBSD_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT) + +BLDDIRS += $(VBOX_FBSD_INST_OUT_DIR) $(VBOX_FBSD_INST_STAGE_DIR) +PACKING += $(PATH_STAGE_BIN)/$(VBOX_FBSD_PACKAGE_NAME) + +OTHER_CLEAN += \ + $(addprefix $(VBOX_FBSD_INST_STAGE_DIR)/,\ + pkg_plist \ + LICENSE) \ + $(wildcard $(VBOX_FBSD_INST_OUT_DIR)/VirtualBox-*) + +# +# FreeBSD installs. +# +INSTALLS += freebsd-misc +freebsd-misc_INST = bin/ +freebsd-misc_MODE = a+r,u+w +freebsd-misc_SOURCES = \ + $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_32px.png=>VBox.png \ + $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)=>LICENSE) \ + $(if $(VBOX_WITH_QTGUI),$(freebsd-misc_0_OUTDIR)/virtualbox.desktop,) +freebsd-misc_CLEAN = $(freebsd-misc_0_OUTDIR)/virtualbox.desktop + +$$(PATH_freebsd-misc)/virtualbox.desktop: $(PATH_SUB_CURRENT)/virtualbox.desktop $(VBOX_VERSION_STAMP) | $$(dir $$@) + $(call MSG_GENERATE,,$@,$<) +ifdef VBOX_PATH_PACKAGE_DOCS + $(QUIET)$(SED) -e "s+\$$VBOX_DOC_PATH+$(VBOX_PATH_PACKAGE_DOCS)+" --output $@ $< +else + $(QUIET)$(SED) -e "s+\$$VBOX_DOC_PATH+/opt/VirtualBox+" --output $@ $< +endif + + + +# +# The files residing in bin/ that we'll ship. +# + +# Strip these binaries +VBOX_FBSD_STRIP_BIN = \ + VBoxDD.so \ + VBoxDD2.so \ + VBoxREM.so \ + VBoxDDU.so \ + VBoxVMM.so \ + $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM32.so,) \ + $(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM64.so,) \ + VBoxRT.so \ + $(if $(VBOX_WITH_VBOXSDL),VBoxSDL $(if $(VBOX_WITH_HARDENING),VBoxSDL.so),) \ + $(if $(VBOX_WITH_SHARED_CLIPBOARD), VBoxSharedClipboard.so,) \ + $(if $(VBOX_WITH_SHARED_FOLDERS), VBoxSharedFolders.so,) \ + $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \ + $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \ + VBoxHostChannel.so \ + $(if $(VBOX_WITH_MAIN), \ + VBoxManage \ + VBoxNetDHCP $(if $(VBOX_WITH_HARDENING),VBoxNetDHCP.so,) \ + VBoxNetAdpCtl \ + VBoxSVC \ + VBoxXPCOM.so \ + VBoxXPCOMC.so \ + VBoxXPCOMIPCD \ + components/VBoxXPCOMIPCC.so \ + components/VBoxSVCM.so \ + components/VBoxC.so,) \ + $(if $(VBOX_WITH_CROGL),\ + VBoxOGLhostcrutil.so \ + VBoxOGLhosterrorspu.so \ + VBoxOGLrenderspu.so \ + VBoxTestOGL \ + VBoxSharedCrOpenGL.so,) \ + $(if $(VBOX_WITH_PYTHON),VBoxPython.so,) \ + $(if $(VBOX_WITH_DTRACE),VBoxDTrace,) + +# Do not remove relocation information of these binaries +VBOX_FBSD_STRIP_OBJ = \ + VBoxDDRC.rc \ + VBoxDDR0.r0 \ + VMMRC.rc \ + VMMR0.r0 + +# Do not strip anything of these files +VBOX_FBSD_NO_STRIP = \ + $(if $(VBOX_OSE),,LICENSE) \ + $(if $(VBOX_WITH_MAIN), \ + components/VBoxXPCOMBase.xpt \ + components/VirtualBox_XPCOM.xpt) \ + vboxdrv.tar.gz + +# EFI firmware +ifdef VBOX_WITH_EFIFW_PACKING + VBOX_FBSD_NO_STRIP += \ + VBoxEFI32.fd \ + VBoxEFI64.fd +endif + +# Symlinks residing in bin/ +VBOX_FBSD_SYMLINKS = \ + $(if $(VBOX_WITH_MAIN), \ + VBoxManage \ + VBoxSVC) \ + $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \ + $(if $(VBOX_WITH_DTRACE),VBoxDTrace,) + +# Qt GUI +ifdef VBOX_WITH_QTGUI + include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk + VBOX_FBSD_STRIP_BIN += \ + VBoxKeyboard.so \ + VirtualBox \ + $(if $(VBOX_WITH_HARDENING),VirtualBox.so) \ + $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so DbgPlugInDiggers.so,) + VBOX_FBSD_SYMLINKS += \ + VirtualBox + VBOX_FBSD_NO_STRIP += \ + $(VBOX_LICENSE_FILES) \ + $(if $(VBOX_WITH_ORACLE_QT),$(notdir $(wildcard $(PATH_STAGE_BIN)/lib*VBox*)),) \ + $(if $(VBOX_WITH_ORACLE_QT),accessible/libqtaccessiblewidgets.so,) \ + $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm) + VBOX_FBSD_DESKTOP_FILE = \ + virtualbox.desktop + VBOX_FBSD_ICON_FILE = \ + VBox.png +endif + +# Guest Additions +ifdef VBOX_WITH_ADDITIONS_PACKING + VBOX_FBSD_NO_STRIP += \ + additions/VBoxGuestAdditions.iso +endif + +# Documentation +ifdef VBOX_WITH_DOCS_PACKING + VBOX_FBSD_NO_STRIP += \ + VirtualBox.chm UserManual.pdf \ + $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf) + VBOX_FBSD_STRIP_BIN += \ + $(if $(VBOX_WITH_KCHMVIEWER),kchmviewer,) +endif + +# VRDP +ifdef VBOX_WITH_VRDP + VBOX_FBSD_STRIP_BIN += \ + VBoxVRDP.so \ + VBoxAuth.so + VBOX_FBSD_NO_STRIP += \ + rdesktop-vrdp.tar.gz + ifdef VBOX_WITH_VRDP_RDESKTOP +# VBOX_FBSD_NO_STRIP += \ +# rdesktop-vrdp-keymaps + VBOX_FBSD_STRIP_BIN += \ + rdesktop-vrdp + endif +endif + +# Headless +ifdef VBOX_WITH_HEADLESS + VBOX_FBSD_STRIP_BIN += \ + VBoxHeadless \ + $(if $(VBOX_WITH_HARDENING),VBoxHeadless.so) + VBOX_FBSD_SYMLINKS += \ + VBoxHeadless +endif + +# Webservices +ifdef VBOX_WITH_WEBSERVICES + VBOX_FBSD_STRIP_BIN += \ + vboxwebsrv + VBOX_FBSD_SYMLINKS += \ + vboxwebsrv +endif + +# DTrace library, testcase and scripts (as the rest of this file, this makes bold +# ASSUMPTIONS about VBPX_INST_XXX variable values). +ifdef VBOX_WITH_DTRACE + VBOX_FBSD_NO_STRIP += \ + $(addprefix dtrace/lib/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_LIB_ARCH_FILES)) \ + $(addprefix dtrace/testcase/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_TESTCASE_ARCH_FILES)) \ + $(addprefix dtrace/scripts/,$(VBOXINST_DTRACE_SCRIPTS_FILES)) +endif + +# +# All the bin files that goes into the archives. +# +VBOX_FBSD_ARCH_FILES := $(VBOX_FBSD_STRIP_BIN) $(VBOX_FBSD_STRIP_OBJ) $(VBOX_FBSD_NO_STRIP) + +# Cleanup of the files we copy/symlink from bin. +OTHER_CLEAN += $(addprefix $(VBOX_FBSD_INST_LIBVBOX_DIR)/,$(VBOX_FBSD_ARCH_FILES)) + +# +# The module source archive +# +$(PATH_STAGE_BIN)/vboxdrv.tar.gz: \ + src + $(call MSG_TOOL, export_modules.sh,,$@) + $(QUIET)$(PATH_STAGE_BIN)/export_modules.sh $@ + +# +# The generic installer. +## @todo r=aeichner: Create pkg_plist dynamically based on the available features +# +$(PATH_STAGE_BIN)/$(VBOX_FBSD_PACKAGE_NAME): \ + $(VBOX_VERSION_STAMP) \ + $(VBOX_FBSD_INST_OUT_DIR)/pkg_plist \ + $(addprefix $(VBOX_FBSD_INST_LIBVBOX_DIR)/,$(VBOX_FBSD_ARCH_FILES)) \ + $(addprefix $(VBOX_FBSD_INST_BIN_DIR)/,$(VBOX_FBSD_SYMLINKS)) \ + $(if $(VBOX_OSE),,$(VBOX_BRAND_LICENSE_TXT)) \ + $(if $(VBOX_WITH_QTGUI),$(addprefix $(VBOX_FBSD_INST_SHAREAPP_DIR)/,$(VBOX_FBSD_DESKTOP_FILE)),) \ + $(if $(VBOX_WITH_QTGUI),$(addprefix $(VBOX_FBSD_INST_SHAREICON_DIR)/,$(VBOX_FBSD_ICON_FILE)),) \ + $(VBOX_PATH_FBSD_INST_SRC)/postinstall.sh \ + $(VBOX_PATH_FBSD_INST_SRC)/postdeinstall.sh + $(call MSG_TOOL,pkg_create,,$@) + $(QUIET)$(RM) -f $@ + $(QUIET)pkg_create \ + -I $(VBOX_PATH_FBSD_INST_SRC)/postinstall.sh \ + -K $(VBOX_PATH_FBSD_INST_SRC)/postdeinstall.sh \ + -c $(VBOX_PATH_FBSD_INST_SRC)/pkg-comment \ + -d $(VBOX_PATH_FBSD_INST_SRC)/pkg-descr \ + -f $(VBOX_FBSD_INST_OUT_DIR)/pkg_plist \ + -p /usr/local \ + -s $(VBOX_FBSD_INST_STAGE_DIR) \ + $@ + $(QUIET)$(RM) -Rf $(VBOX_FBSD_INST_STAGE_DIR) + +$(addprefix $(VBOX_FBSD_INST_LIBVBOX_DIR)/,$(VBOX_FBSD_STRIP_BIN)): \ + $(VBOX_FBSD_INST_LIBVBOX_DIR)/% : $(PATH_STAGE_BIN)/% + $(call MSG_INST_FILE,$<,$@) + $(QUIET)$(INSTALL) -d $(dir $@) + $(QUIET)$(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@ + +# pattern rule for striping and copying the VBOX_FBSD_STRIP_OBJ files to install/lib/virtualbox +$(addprefix $(VBOX_FBSD_INST_LIBVBOX_DIR)/,$(VBOX_FBSD_STRIP_OBJ)): \ + $(VBOX_FBSD_INST_LIBVBOX_DIR)/% : $(PATH_STAGE_BIN)/% + $(call MSG_INST_FILE,$<,$@) + $(QUIET)$(INSTALL) -d $(dir $@) +ifeq ($(VBOX_DO_STRIP),) + $(QUIET)$(INSTALL) -m 0644 $< $@ +else # strip to temp file because of umask. + $(QUIET)objcopy --strip-unneeded -R .comment $< $@.tmp + $(QUIET)$(INSTALL) -m 0644 $@.tmp $@ + $(QUIET)$(RM) -f -- $@.tmp +endif + +# pattern rule for linking the VBOX_FBSD_NO_STRIP into lib/virtualbox/ +$(addprefix $(VBOX_FBSD_INST_LIBVBOX_DIR)/,$(VBOX_FBSD_NO_STRIP)): \ + $(VBOX_FBSD_INST_LIBVBOX_DIR)/% : $(PATH_STAGE_BIN)/% + $(call MSG_INST_FILE,$<,$@) + $(QUIET)$(INSTALL) -d $(dir $@) + $(QUIET)$(RM) -f $@ + $(QUIET)$(INSTALL) -m 0644 $< $@ + +# pattern rule for symlinking the VBOX_FBSD_SYMLINKS into bin/ +$(addprefix $(VBOX_FBSD_INST_BIN_DIR)/,$(VBOX_FBSD_SYMLINKS)): \ + $(VBOX_FBSD_INST_BIN_DIR)/% : $(PATH_STAGE_BIN)/% + $(call MSG_INST_SYM,$<,$@) + $(QUIET)$(INSTALL) -d $(dir $@) + $(QUIET)$(RM) -f $@ + $(QUIET)$(LN_SYMLINK) ../lib/virtualbox/$(notdir $@) $@ + +# pattern rule for copying the VBOX_FBSD_DESKTOP_FILE into share/applications/ +$(addprefix $(VBOX_FBSD_INST_SHAREAPP_DIR)/,$(VBOX_FBSD_DESKTOP_FILE)): \ + $(VBOX_FBSD_INST_SHAREAPP_DIR)/% : $(PATH_STAGE_BIN)/% + $(call MSG_INST_FILE,$<,$@) + $(QUIET)$(INSTALL) -d $(dir $@) + $(QUIET)$(RM) -f $@ + $(QUIET)$(INSTALL) -m 0644 $< $@ + +# pattern rule for copying the VBOX_FBSD_ICON_FILE into share/pixmaps/ +$(addprefix $(VBOX_FBSD_INST_SHAREICON_DIR)/,$(VBOX_FBSD_ICON_FILE)): \ + $(VBOX_FBSD_INST_SHAREICON_DIR)/% : $(PATH_STAGE_BIN)/% + $(call MSG_INST_FILE,$<,$@) + $(QUIET)$(INSTALL) -d $(dir $@) + $(QUIET)$(RM) -f $@ + $(QUIET)$(INSTALL) -m 0644 $< $@ + +# Create pkg_plist +$(VBOX_FBSD_INST_OUT_DIR)/pkg_plist: \ + $(VBOX_PATH_FBSD_INST_SRC)/pkg_plist + $(call MSG_INST_FILE,$<,$@) + $(QUIET)$(INSTALL) -d $(dir $@) + $(QUIET)$(SED) \ + -e "s;_VBOX_REM_32BIT_MODULE_;$(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM32.so,);g" \ + -e "s;_VBOX_REM_64BIT_MODULE_;$(if $(eq $(KBUILD_TARGET_ARCH),x86),VBoxREM64.so,);g" \ + --output $@ \ + $< +ifdef VBOX_WITH_DTRACE + $(QUIET)$(APPEND) -n "$@" "@mode 644" \ + $(addprefix lib/virtualbox/dtrace/lib/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_LIB_ARCH_FILES)) \ + $(addprefix lib/virtualbox/dtrace/testcase/$(KBUILD_TARGET_ARCH)/,$(VBOXINST_DTRACE_TESTCASE_ARCH_FILES)) \ + $(addprefix lib/virtualbox/dtrace/scripts/,$(VBOXINST_DTRACE_SCRIPTS_FILES)) \ + "@mode 755" \ + "bin/VBoxDTrace" +endif + +include $(FILE_KBUILD_SUB_FOOTER) + diff --git a/src/VBox/Installer/freebsd/pkg-comment b/src/VBox/Installer/freebsd/pkg-comment new file mode 100644 index 00000000..768064dc --- /dev/null +++ b/src/VBox/Installer/freebsd/pkg-comment @@ -0,0 +1 @@ +VirtualBox x86 virtualization package diff --git a/src/VBox/Installer/freebsd/pkg-descr b/src/VBox/Installer/freebsd/pkg-descr new file mode 100644 index 00000000..221d09a3 --- /dev/null +++ b/src/VBox/Installer/freebsd/pkg-descr @@ -0,0 +1,3 @@ +VirtualBox for the FreeBSD operating system + +WWW: http://www.virtualbox.org diff --git a/src/VBox/Installer/freebsd/pkg_plist b/src/VBox/Installer/freebsd/pkg_plist new file mode 100644 index 00000000..d35c6daf --- /dev/null +++ b/src/VBox/Installer/freebsd/pkg_plist @@ -0,0 +1,95 @@ +@owner root +@group wheel +@mode 755 +lib/virtualbox/VBoxDbg.so +lib/virtualbox/DbgPlugInDiggers.so +lib/virtualbox/VBoxDD.so +lib/virtualbox/VBoxDD2.so +lib/virtualbox/VBoxDDU.so +lib/virtualbox/VBoxGuestPropSvc.so +lib/virtualbox/VBoxGuestControlSvc.so +lib/virtualbox/VBoxHostChannel.so +lib/virtualbox/VBoxHeadless.so +lib/virtualbox/VBoxKeyboard.so +lib/virtualbox/VBoxManage +lib/virtualbox/VBoxNetDHCP.so +lib/virtualbox/VBoxPython.so +lib/virtualbox/VBoxREM.so +lib/virtualbox/VBoxRT.so +lib/virtualbox/VBoxSDL.so +lib/virtualbox/VBoxSharedFolders.so +lib/virtualbox/VBoxSVC +lib/virtualbox/VBoxVMM.so +lib/virtualbox/VBoxVRDP.so +lib/virtualbox/VBoxXPCOM.so +lib/virtualbox/VBoxXPCOMC.so +lib/virtualbox/VBoxXPCOMIPCD +lib/virtualbox/VirtualBox.so +lib/virtualbox/VBoxOGLhostcrutil.so +lib/virtualbox/VBoxOGLhosterrorspu.so +lib/virtualbox/VBoxOGLrenderspu.so +lib/virtualbox/vboxwebsrv +lib/virtualbox/rdesktop-vrdp +lib/virtualbox/VBoxTestOGL +_VBOX_REM_32BIT_MODULE_ +_VBOX_REM_64BIT_MODULE_ +@mode 4755 +lib/virtualbox/VBoxSDL +lib/virtualbox/VirtualBox +lib/virtualbox/VBoxNetDHCP +lib/virtualbox/VBoxNetAdpCtl +lib/virtualbox/VBoxHeadless +@mode 755 +lib/virtualbox/components/VBoxC.so +lib/virtualbox/components/VBoxSVCM.so +lib/virtualbox/components/VBoxXPCOMIPCC.so +@mode 644 +lib/virtualbox/components/VBoxXPCOMBase.xpt +lib/virtualbox/components/VirtualBox_XPCOM.xpt +@mode 755 +bin/VirtualBox +bin/VBoxManage +bin/VBoxSVC +bin/VBoxHeadless +bin/VBoxSDL +bin/vboxwebsrv +@mode 644 +lib/virtualbox/VBoxDDRC.rc +lib/virtualbox/VBoxDDR0.r0 +lib/virtualbox/VMMRC.rc +lib/virtualbox/VMMR0.r0 +lib/virtualbox/License-7.html +lib/virtualbox/vboxdrv.tar.gz +lib/virtualbox/nls/qt_de.qm +lib/virtualbox/nls/VirtualBox_de.qm +lib/virtualbox/nls/qt_fr.qm +lib/virtualbox/nls/VirtualBox_fr.qm +lib/virtualbox/nls/qt_it.qm +lib/virtualbox/nls/VirtualBox_it.qm +lib/virtualbox/nls/qt_ro.qm +lib/virtualbox/nls/VirtualBox_ro.qm +lib/virtualbox/nls/qt_zh_CN.qm +lib/virtualbox/nls/VirtualBox_zh_CN.qm +lib/virtualbox/nls/qt_ja.qm +lib/virtualbox/nls/VirtualBox_ja.qm +lib/virtualbox/nls/qt_es.qm +lib/virtualbox/nls/VirtualBox_es.qm +lib/virtualbox/nls/qt_ru.qm +lib/virtualbox/nls/VirtualBox_ru.qm +lib/virtualbox/nls/qt_pl.qm +lib/virtualbox/nls/VirtualBox_pl.qm +lib/virtualbox/nls/qt_pt_BR.qm +lib/virtualbox/nls/VirtualBox_pt_BR.qm +lib/virtualbox/nls/qt_ko.qm +lib/virtualbox/nls/VirtualBox_ko.qm +lib/virtualbox/nls/qt_sv.qm +lib/virtualbox/nls/VirtualBox_sv.qm +lib/virtualbox/nls/qt_fi.qm +lib/virtualbox/nls/VirtualBox_fi.qm +lib/virtualbox/nls/qt_hu.qm +lib/virtualbox/nls/VirtualBox_hu.qm +lib/virtualbox/nls/qt_cs.qm +lib/virtualbox/nls/VirtualBox_cs.qm +share/applications/virtualbox.desktop +share/pixmaps/VBox.png + diff --git a/src/VBox/Installer/freebsd/postdeinstall.sh b/src/VBox/Installer/freebsd/postdeinstall.sh new file mode 100755 index 00000000..b920b5c0 --- /dev/null +++ b/src/VBox/Installer/freebsd/postdeinstall.sh @@ -0,0 +1,32 @@ +#!/bin/sh +## @file +# +# VirtualBox postdeinstall script for FreeBSD. +# + +# +# Copyright (C) 2007-2019 Oracle Corporation +# +# This file is part of VirtualBox Open Source Edition (OSE), as +# available from http://www.virtualbox.org. This file is free software; +# you can redistribute it and/or modify it under the terms of the GNU +# General Public License (GPL) as published by the Free Software +# Foundation, in version 2 as it comes in the "COPYING" file of the +# VirtualBox OSE distribution. VirtualBox OSE is distributed in the +# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. +# + +echo "Removing kernel modules, please wait..." + +kldunload vboxnetadp +kldunload vboxnetflt +kldunload vboxdrv +rm /boot/kernel/vboxnetflt.ko +rm /boot/kernel/vboxnetadp.ko +rm /boot/kernel/vboxdrv.ko +kldxref -R /boot + +echo "Kernel modules successfully removed." + +exit 0 + diff --git a/src/VBox/Installer/freebsd/postinstall.sh b/src/VBox/Installer/freebsd/postinstall.sh new file mode 100755 index 00000000..e931e551 --- /dev/null +++ b/src/VBox/Installer/freebsd/postinstall.sh @@ -0,0 +1,76 @@ +#!/bin/sh +## @file +# +# VirtualBox postinstall script for FreeBSD. +# + +# +# Copyright (C) 2007-2019 Oracle Corporation +# +# This file is part of VirtualBox Open Source Edition (OSE), as +# available from http://www.virtualbox.org. This file is free software; +# you can redistribute it and/or modify it under the terms of the GNU +# General Public License (GPL) as published by the Free Software +# Foundation, in version 2 as it comes in the "COPYING" file of the +# VirtualBox OSE distribution. VirtualBox OSE is distributed in the +# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. +# + +PATH_TMP="/tmp" +PATH_TMP_MODS="$PATH_TMP/vbox_mods" +PATH_INST="/usr/local/lib/virtualbox" +PATH_KERN_SRC="/usr/src/sys" +FILE_VBOXDRV="$PATH_INST/vboxdrv.tar.gz" + + +if [ ! -f $PATH_KERN_SRC/Makefile ]; then + echo "Kernel sources are not installed. Please install them and reinstall VirtualBox" + exit 1 +fi + +echo "Compiling kernel modules, please wait..." + +# Create temporary directory +mkdir -p $PATH_TMP_MODS + +# Unpack archive +tar -C $PATH_TMP_MODS -xf $FILE_VBOXDRV + +# Compile +cd $PATH_TMP_MODS +make + +# Check if we succeeded +if [ $? != 0 ]; then + echo "Compiling kernel modules failed." + cd .. + rm -rf $PATH_TMP_MODS + exit 1 +fi + +# Copy the modules to /boot/kernel +echo "Installing kernel modules to /boot/kernel, please wait..." +cp $PATH_TMP_MODS/vboxdrv.ko /boot/kernel +cp $PATH_TMP_MODS/vboxnetflt.ko /boot/kernel +cp $PATH_TMP_MODS/vboxnetadp.ko /boot/kernel +kldxref -R /boot + +# Load them now, unloading old modules +make load + +if [ $? != 0 ]; then + echo "Loading kernel modules failed" + cd .. + rm -rf $PATH_TMP_MODS + exit 1 +fi + +echo "Kernel modules successfully installed." +echo "To load them on every boot put them into /boot/loader.conf" + +# Cleanup +cd .. +rm -rf $PATH_TMP_MODS + +exit 0 + diff --git a/src/VBox/Installer/freebsd/virtualbox.desktop b/src/VBox/Installer/freebsd/virtualbox.desktop new file mode 100644 index 00000000..4e3b9edf --- /dev/null +++ b/src/VBox/Installer/freebsd/virtualbox.desktop @@ -0,0 +1,19 @@ + +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Name=Oracle VM VirtualBox +GenericName=Virtual Machine +Type=Application +Exec=VirtualBox +TryExec=VirtualBox +DocPath=file://$VBOX_DOC_PATH/UserManual.pdf +Icon=VBox +Categories=Emulator;System; +Comment=Run several virtual systems on a single host computer +Comment[de]=Windows und andere Betriebssysteme unter FreeBSD ausführen +Comment[it]=Esegui più macchine virtuali su un singolo computer +Comment[ko]=가상 머신 +Comment[pl]=Uruchamianie wielu systemów wirtualnych na jednym komputerze gospodarza +Comment[ru]=Запуск нескольких виртуальных машин на одном компьютере +Comment[sv]=Kör flera virtuella system på en enda värddator |