# $Id: Makefile.kmk 45775 2013-04-26 12:34:31Z vboxsync $ ## @file # Sub-Makefile for the Solaris installer. # # # Copyright (C) 2007-2013 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),solaris) $(error "The Solaris installer can only be built on Solaris!") # yeah, right. endif # Unset this to speed up things during makefile hacking. VBOX_SOL_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT) # # Globals # ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated. VBOX_WITH_COMBINED_PACKAGE := 1 endif VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT) SOLARIS_DIR_NAME_64 := amd64 SOLARIS_DIR_NAME_32 := i386 SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer SOLARIS_BASEINST_DIR := $(PATH_TARGET)/Installer/BasePkg SOLARIS_VBOXINST_SUBDIR := opt/VirtualBox SOLARIS_VBOXINST_DIR := $(SOLARIS_BASEINST_DIR)/$(SOLARIS_VBOXINST_SUBDIR) SOLARIS_VBOXINST_DIR_32 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_32) SOLARIS_VBOXINST_DIR_64 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_64) SOLARIS_DRIVERINST_DIR := $(SOLARIS_BASEINST_DIR)/platform/i86pc/kernel/drv SOLARIS_DRIVERINST_DIR_32 := $(SOLARIS_DRIVERINST_DIR) SOLARIS_DRIVERINST_DIR_64 := $(SOLARIS_DRIVERINST_DIR)/amd64 SOLARIS_USR_DIR := $(SOLARIS_BASEINST_DIR)/usr SOLARIS_USRBIN_DIR := $(SOLARIS_USR_DIR)/bin SOLARIS_USRSHR_APPS_DIR := $(SOLARIS_USR_DIR)/share/applications SOLARIS_USRSHR_APPREG_DIR := $(SOLARIS_USR_DIR)/share/application-registry SOLARIS_USRSHR_MIMEXML_DIR := $(SOLARIS_USR_DIR)/share/mime/packages SOLARIS_USRSHR_MIMEINFO_DIR := $(SOLARIS_USR_DIR)/share/mime-info SOLARIS_USRSHR_ICONS_DIR := $(SOLARIS_USR_DIR)/share/icons/hicolor SOLARIS_USRSHR_PIXMAPS_DIR := $(SOLARIS_USR_DIR)/share/pixmaps SOLARIS_VBOXSMF_DIR := $(SOLARIS_BASEINST_DIR)/var/svc/manifest/application/virtualbox SOLARIS_ETC_DIR := $(SOLARIS_BASEINST_DIR)/etc SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin SOLARIS_OUT_BIN := $(PATH_STAGE_BIN) SOLARIS_DBG_DIR_NAME := DebugPkg SOLARIS_DBG_DIR := $(SOLARIS_INST_OUT_DIR)/$(SOLARIS_DBG_DIR_NAME) SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32) SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64) ifeq ($(KBUILD_TARGET_ARCH),amd64) SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_64) SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_64) SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64) SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug SOL64_PKG := 1 else SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_32) SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_32) SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32) SOL_DBG_OBJCOPY := $(CP) -p # Solaris ld/gobjcopy(2.15) don't get along on x86, works only on amd64. So just using cp for now. endif SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-debug -R .comment SOL_GTAR := /usr/sfw/bin/gtar # Figure out the paths to the two platform specific Qt4 directories SOLARIS_PATH_QT_32 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.x86,$(VBOX_PATH_QT4)) SOLARIS_PATH_QT_64 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.amd64,$(VBOX_PATH_QT4)) # Base package PKGINFO_ARCH = $(shell uname -p) PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M) ifndef VBOX_WITH_COMBINED_PACKAGE PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV) else PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV) endif # Debug package DBG_ARCHIVE = VirtualBoxDebug.tar.bz2 # Kernel interface (vbi) package VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV) # # Targets # PROGRAMS += VBoxZoneAccess VBoxISAExec INSTALLS += solaris-doc solaris-bin solaris-drv-confs solaris-icons BLDDIRS += \ $(SOLARIS_INST_OUT_DIR) \ $(SOLARIS_BASEINST_DIR) \ $(SOLARIS_VBOXINST_DIR) \ $(SOLARIS_DBG_DIR) BLDDIRS += $(addprefix $(SOLARIS_BASEINST_DIR)/,\ usr \ usr/bin \ platform \ platform/i86pc \ platform/i86pc/kernel \ platform/i86pc/kernel/drv \ platform/i86pc/kernel/drv/amd64 \ ) PACKING += $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz $(PATH_STAGE_BIN)/$(DBG_ARCHIVE) OTHER_CLEAN += $(addprefix $(SOLARIS_BASEINST_DIR)/,\ vbox.pkginfo vbox.copyright vbox.space vbox.depend vbox.pkgresponse \ makepackage.sh prototype postinstall.sh checkinstall.sh preremove.sh) # # VBoxZoneAccess # VBoxZoneAccess_TEMPLATE = VBOXR3EXE VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK) VBoxZoneAccess_SOURCES = VBoxZoneAccess.c VBoxZoneAccess_LIBS = $(LIB_RUNTIME) # # VBoxISAExec # VBoxISAExec_TEMPLATE = VBOXR3EXE VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK) VBoxISAExec_SOURCES = VBoxISAExec.c # # Solaris installs. # solaris-doc_INST = bin/ solaris-doc_MODE = a+r,u+w solaris-doc_SOURCES = \ $(VBOX_BRAND_LICENSE_TXT)=>LICENSE \ $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png \ $(PATH_ROOT)/src/VBox/Resources/$(if $(VBOX_OSE),OSE,NonOSE)/virtualbox-128px.png=>virtualbox.png solaris-bin_INST = bin/ solaris-bin_MODE = a+rx,u+w solaris-bin_SOURCES = \ $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py,) \ $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh \ $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \ $(VBOX_PATH_SOL_INST_SRC)/pkginstall.sh \ $(VBOX_PATH_SOL_INST_SRC)/smf-vboxballoonctrl.sh \ $(VBOX_PATH_SOL_INST_SRC)/smf-vboxautostart.sh \ $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh,) solaris-drv-confs_INST = bin/ solaris-drv-confs_MODE = a+r,u+w solaris-drv-confs_SOURCES = \ $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \ $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \ $(if $(VBOX_WITH_NETFLT_CROSSBOW),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxbow.conf) \ $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \ $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) \ $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb.conf) solaris-icons_INST = bin/icons/ solaris-icons_MODE = a+r,u+w solaris-icons_SOURCES = $(VBOX_MIME_ICONS) BLDDIRS += \ $(SOLARIS_USR_DIR)/share \ $(SOLARIS_USR_DIR)/share/icons \ $(SOLARIS_USRSHR_ICONS_DIR) \ $(foreach s,16 20 24 32 48 64 72 96 128 256,\ $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s) \ $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s)/mimetypes) VBOX_MIME_ICONS = \ $(addprefix $(PATH_ROOT)/src/VBox/Resources/other/,\ $(foreach f,ova ovf vbox vbox-extpack vdi vmdk vhd hdd, \ $(foreach s,16 20 24 32 48 64 72 96 128 256,\ virtualbox-$(f)-$(s)px.png=>$(s)x$(s)/mimetypes/virtualbox-$(f).png))) SOLARIS_COMMON_ICONS = \ $(foreach f,ova ovf vbox vbox-extpack vdi vmdk vhd hdd, \ $(foreach s,16 20 24 32 48 64 72 96 128 256,\ $(s)x$(s)/mimetypes/virtualbox-$(f).png)) # # Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that # go into the temporary install folder $(SOLARIS_VBOXINST_DIR) should be part of $(SOLARIS_ARCH_FILES). # For the files produced during packing they should be cleaned up promptly when the work is done. # # Strip these executables SOLARIS_STRIP_EXES = \ VBoxZoneAccess \ $(if $(VBOX_WITH_QTGUI),VirtualBox,) \ VBoxManage \ $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \ $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \ VBoxNetDHCP \ $(if $(VBOX_WITH_EXTPACK),VBoxExtPackHelperApp,) \ VBoxSVC \ $(if $(VBOX_WITH_CROGL),VBoxTestOGL,) \ VBoxXPCOMIPCD \ $(if $(VBOX_WITH_KCHMVIEWER),kchmviewer,) SOLARIS_DRIVER_BINS = \ vboxdrv \ $(if $(VBOX_WITH_NETFLT),vboxflt,) \ $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow,) \ $(if $(VBOX_WITH_NETADP),vboxnet,) \ $(if $(VBOX_WITH_USB),vboxusbmon,) \ $(if $(VBOX_WITH_USB),vboxusb,) SOLARIS_DRIVER_CONFS = \ vboxdrv.conf \ $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \ $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow.conf,) \ $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \ $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \ $(if $(VBOX_WITH_USB),vboxusb.conf,) # Strip these binaries SOLARIS_STRIP_BINS = \ VBoxDD.so \ VBoxDD2.so \ VBoxREM.so \ VBoxRT.so \ VBoxDDU.so \ VBoxVMM.so \ VBoxXPCOM.so \ VBoxXPCOMC.so \ $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \ $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \ $(if $(VBOX_WITH_DRAG_AND_DROP),VBoxDragAndDropSvc.so,) \ $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \ $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \ VBoxHostChannel.so \ $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \ $(if $(VBOX_WITH_QTGUI),\ VBoxKeyboard.so \ $(if $(VBOX_WITH_QT4_SUN),\ libQtCoreVBox.so.4 \ libQtGuiVBox.so.4 \ libQtNetworkVBox.so.4 \ $(if $(VBOX_GUI_USE_QGL),libQtOpenGLVBox.so.4,) \ accessible/libqtaccessiblewidgets.so,)) \ $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \ $(if $(VBOX_WITH_CROGL),\ VBoxOGLhostcrutil.so \ VBoxOGLhosterrorspu.so \ VBoxOGLrenderspu.so \ VBoxSharedCrOpenGL.so) \ components/VBoxC.so \ components/VBoxSVCM.so \ components/VBoxXPCOMIPCC.so ifdef VBOX_WITH_HARDENING SOLARIS_STRIP_BINS += \ VBoxNetDHCP.so \ $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \ $(if $(VBOX_WITH_QTGUI),VirtualBox.so,) endif # Do not remove relocation information of these binaries SOLARIS_STRIP_OBJS = \ VBoxDD2GC.gc \ VBoxDD2R0.r0 \ VBoxDDGC.gc \ VBoxDDR0.r0 \ VMMGC.gc \ VMMR0.r0 # Special differences between 32-bit and 64-bit SOLARIS_STRIP_BIN_32 = \ VBoxREM32.so \ VBoxREM64.so VBOX_SOL_PYTHON_DIR_64 = 64 # Do not strip anything of these files SOLARIS_NO_STRIP = \ components/VBoxXPCOMBase.xpt \ components/VirtualBox_XPCOM.xpt \ $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES)) SOLARIS_USRBIN_LINKS = \ $(if $(VBOX_WITH_QTGUI),VirtualBox,) \ $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \ $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \ VBoxManage SOLARIS_COMMON_EXES = \ vboxconfig.sh \ VBox.sh \ pkginstall.sh \ $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \ smf-vboxballoonctrl.sh \ smf-vboxautostart.sh \ $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,) # Things packed explicitly, not from $(PATH_STAGE_BIN), track these to clean-up properly SOLARIS_EXTRAS = \ LICENSE \ VBox.png \ virtualbox.png \ autoresponse \ $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \ $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \ $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \ $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \ virtualbox.xml \ virtualbox-balloonctrl.xml \ virtualbox-webservice.xml \ virtualbox-zoneaccess.xml \ VBoxQtconfig \ VBoxISAExec \ vbox.copyright \ ReadMe.txt # These extra Qt libs are purely for running VBoxQtconfig ifdef VBOX_WITH_QTGUI SOLARIS_QTLIBS = \ $(if $(VBOX_WITH_QT4_SUN),\ libQtXmlVBox.so.4 \ libQtSqlVBox.so.4 \ libQt3SupportVBox.so.4,) include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk SOLARIS_COMMON = $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm) else SOLARIS_QTLIBS = SOLARIS_COMMON = endif # Documentation (packed as DOCS as they are arch. neutral) ifdef VBOX_WITH_DOCS_PACKING SOLARIS_COMMON += \ VirtualBox.chm \ UserManual.pdf \ $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf) endif # Python XPCOM glue ifdef VBOX_WITH_PYTHON SOLARIS_COMMON += \ $(foreach f,$(notdir $(wildcard $(PATH_STAGE_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \ sdk/bindings/xpcom/python/xpcom/client/__init__.py \ sdk/bindings/xpcom/python/xpcom/server/__init__.py \ sdk/bindings/xpcom/python/xpcom/server/enumerator.py \ sdk/bindings/xpcom/python/xpcom/server/factory.py \ sdk/bindings/xpcom/python/xpcom/server/loader.py \ sdk/bindings/xpcom/python/xpcom/server/module.py \ sdk/bindings/xpcom/python/xpcom/server/policy.py \ sdk/installer/vboxapisetup.py \ sdk/installer/vboxapi/__init__.py \ sdk/installer/vboxapi/VirtualBox_constants.py endif ifdef VBOX_WITH_JXPCOM SOLARIS_COMMON += \ sdk/bindings/xpcom/java/vboxjxpcom.jar endif # auth stuff SOLARIS_STRIP_BINS += \ VBoxAuth.so \ VBoxAuthSimple.so # VRDP ifdef VBOX_WITH_VRDP ifndef VBOX_WITH_EXTPACK_PUEL SOLARIS_STRIP_BINS += \ VBoxVRDP.so endif SOLARIS_COMMON += \ rdesktop-vrdp.tar.gz ifdef VBOX_WITH_VRDP_RDESKTOP SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*))) SOLARIS_STRIP_EXES += \ rdesktop-vrdp endif endif SOLARIS_STRIP_BINS += \ $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,) SOLARIS_STRIP_EXES += \ $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \ VBoxBalloonCtrl \ VBoxAutostart \ $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \ $(if $(VBOX_WITH_WEBSERVICES),webtest) # Guest Additions ifdef VBOX_WITH_ADDITIONS_PACKING SOLARIS_COMMON += \ additions/VBoxGuestAdditions.iso endif # EFI firmware ifdef VBOX_WITH_EFIFW_PACKING SOLARIS_COMMON += \ VBoxEFI32.fd \ VBoxEFI64.fd endif SOLARIS_ARCH_FILES := \ $(SOLARIS_STRIP_EXES) \ $(SOLARIS_DRIVER_BINS) \ $(SOLARIS_DRIVER_CONFS) \ $(SOLARIS_USRBIN_LINKS) \ $(SOLARIS_STRIP_BINS) \ $(SOLARIS_STRIP_OBJS) \ $(SOLARIS_NO_STRIP) \ $(SOLARIS_EXTRAS) \ $(SOLARIS_QTLIBS) \ $(SOLARIS_COMMON_EXES) \ $(SOLARIS_COMMON) SOLARIS_DBG_FILES := \ $(SOLARIS_STRIP_EXES) \ $(SOLARIS_STRIP_BINS) \ $(SOLARIS_DRIVER_BINS) OTHER_CLEAN += \ $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \ $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \ $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \ $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \ $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \ $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \ $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) ifdef VBOX_WITH_COMBINED_PACKAGE SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \ $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \ $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \ $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \ $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so)) SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \ $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES)) else SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \ $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \ $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \ $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \ $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \ $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \ $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS)) SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES)) endif SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \ $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \ $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \ $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)) \ $(addprefix $(SOLARIS_USRSHR_ICONS_DIR)/,$(SOLARIS_COMMON_ICONS)) BLDDIRS += $(foreach d,\ additions \ rdesktop-vrdp-keymaps \ nls \ $(SOLARIS_DIR_NAME_64) \ $(SOLARIS_DIR_NAME_64)/components \ $(SOLARIS_DIR_NAME_64)/accessible \ $(VBOX_SOL_PYTHON_DIR_64) \ $(SOLARIS_DIR_NAME_32) \ $(SOLARIS_DIR_NAME_32)/components \ $(SOLARIS_DIR_NAME_32)/accessible \ $(if $(VBOX_WITH_PYTHON),\ sdk/ \ sdk/installer \ sdk/installer/vboxapi \ sdk/bindings/xpcom/python/xpcom \ sdk/bindings/xpcom/python/xpcom/server \ sdk/bindings/xpcom/python/xpcom/client,) \ $(if $(VBOX_WITH_JXPCOM), \ sdk/bindings/xpcom/java,) \ ,$(SOLARIS_VBOXINST_DIR)/$(d)/) BLDDIRS += $(foreach d,\ additions \ components \ accessible \ $(SOLARIS_DIR_NAME_64) \ $(SOLARIS_DIR_NAME_64)/components \ $(SOLARIS_DIR_NAME_64)/accessible \ $(VBOX_SOL_PYTHON_DIR_64) \ $(SOLARIS_DIR_NAME_32) \ $(SOLARIS_DIR_NAME_32)/components \ $(SOLARIS_DIR_NAME_32)/accessible \ ,$(SOLARIS_DBG_DIR)/$(d)) # List of files to be tar.gz'd, the files will be # installed in $(SOLARIS_BASEINST_DIR) and .gz'd from there. SOLARIS_TAR_GZ_FILES := \ $(PKG_FILENAME).pkg \ LICENSE \ autoresponse \ ReadMe.txt include $(FILE_KBUILD_SUB_FOOTER) # # -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=- # ## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not # containing any obsolete files the way packing is performed here. Consider recursively # invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the # directory tree. $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz: \ $(VBOX_VERSION_STAMP) \ $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \ $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \ $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \ $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \ $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \ $(VBOX_PATH_SOL_INST_SRC)/vbox.space \ $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \ $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in \ $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.xml \ $(PATH_ROOT)/doc/ReadMe-Solaris.txt \ $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \ $(VBOX_BRAND_LICENSE_TXT) \ $(PATH_STAGE_BIN)/LICENSE \ $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \ $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \ $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \ $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \ $(addprefix $(PATH_STAGE_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \ VBoxISAExec \ $(SOLARIS_ARCH_DEPFILES) $(QUIET)$(RM) -f $(wildcard $(PATH_STAGE_BIN)/VirtualBox-*-r*.tar.gz) $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR)) ifdef VBOX_WITH_COMBINED_PACKAGE $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/) else $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/) endif $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR)) $(QUIET)$(SED) \ -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \ -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \ -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \ -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \ -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \ -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \ --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \ $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),) $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR) $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),) $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_APPREG_DIR) $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEXML_DIR) $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEINFO_DIR) $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR) $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,) $(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE # don't display the license on package install, since 4.0 #$(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright $(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/LICENSE ifdef VBOX_WITH_COMBINED_PACKAGE ifndef VBOX_OSE $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.x86/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_32)/libSDL-1.2.so.0,) $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS)/solaris.amd64/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_64)/libSDL-1.2.so.0,) endif @# @todo -XXX- how to get rid of this manual MKDIR ? $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64) $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,) $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_64)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)/,) $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if ($VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,),) $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,),) $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,) $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,) $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,) $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,) $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_32)/,) $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_64)/,) $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_32)/,) $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_64)/,) else ifndef VBOX_OSE $(QUIET)$(if $(VBOX_WITH_VBOXSDL),$(INSTALL) -m 0644 $(PATH_DEVTOOLS_TRG)/libSDL/v1.2.13/lib/libSDL-1.2.so.0.11.2 $(SOLARIS_VBOXINST_DIR_ISA)/libSDL-1.2.so.0,) endif @# @todo -XXX- how to get rid of this manual MKDIR ? ifdef VBOX_WITH_PYTHON $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),) $(QUIET)$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/$(if $(SOL64_PKG),$(VBOX_SOL_PYTHON_DIR_64)/,) endif $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,),) $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,) $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,) $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI32.fd $(SOLARIS_VBOXINST_DIR_ISA)/,) $(QUIET)$(if $(VBOX_WITH_EFIFW_PACKING),$(LN_SYMLINK) -f ../VBoxEFI64.fd $(SOLARIS_VBOXINST_DIR_ISA)/,) endif $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,) $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,) $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-balloonctrl.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-balloonctrl.xml $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-autostart.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-autostart.xml $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_setup.sh,) $(QUIET)$(if $(not $(VBOX_WITH_NETFLT))$(INSTALL) -m 0755 $(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh $(SOLARIS_VBOXINST_DIR)/vnic_term.sh,) $(QUIET)$(SED) \ -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \ --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \ $(PATH_STAGE_BIN)/vboxconfig.sh $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(QUIET)$(SED) \ -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \ -e "s+@VBOX_DOC_PATH@+/opt/VirtualBox+" \ --output $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp \ $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop $(QUIET)$(RM) -f $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp # S10 cannot deal with icon information in virtualbox.xml $(QUIET)$(SED) \ -e '/