VirtualBox

source: vbox/trunk/src/VBox/Installer/solaris/Makefile.kmk@ 38082

Last change on this file since 38082 was 38082, checked in by vboxsync, 13 years ago

*.kmk: Installation/staging adjustments (kBuild 0.2.0 preps).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 37.4 KB
Line 
1# $Id: Makefile.kmk 38082 2011-07-20 14:26:24Z vboxsync $
2## @file
3# Sub-Makefile for the Solaris installer.
4#
5
6#
7# Copyright (C) 2007-2011 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifneq ($(KBUILD_HOST),solaris)
22$(error "The Solaris installer can only be built on Solaris!") # yeah, right.
23endif
24
25# Unset this to speed up things during makefile hacking.
26VBOX_SOL_INST_DEP_ON_MAKEFILE := $(MAKEFILE_CURRENT)
27
28#
29# Globals
30#
31ifdef VBOX_WITH_COMBINED_SOLARIS_PACKAGE ## @todo remove this when tinderclient.pl is updated.
32 VBOX_WITH_COMBINED_PACKAGE := 1
33endif
34VBOX_PATH_SOL_INST_SRC := $(PATH_SUB_CURRENT)
35SOLARIS_DIR_NAME_64 := amd64
36SOLARIS_DIR_NAME_32 := i386
37SOLARIS_INST_OUT_DIR := $(PATH_TARGET)/Installer
38SOLARIS_BASEINST_DIR := $(PATH_TARGET)/Installer/BasePkg
39SOLARIS_VBOXINST_SUBDIR := opt/VirtualBox
40SOLARIS_VBOXINST_DIR := $(SOLARIS_BASEINST_DIR)/$(SOLARIS_VBOXINST_SUBDIR)
41SOLARIS_VBOXINST_DIR_32 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_32)
42SOLARIS_VBOXINST_DIR_64 := $(SOLARIS_VBOXINST_DIR)/$(SOLARIS_DIR_NAME_64)
43SOLARIS_DRIVERINST_DIR := $(SOLARIS_BASEINST_DIR)/platform/i86pc/kernel/drv
44SOLARIS_DRIVERINST_DIR_32 := $(SOLARIS_DRIVERINST_DIR)
45SOLARIS_DRIVERINST_DIR_64 := $(SOLARIS_DRIVERINST_DIR)/amd64
46SOLARIS_USR_DIR := $(SOLARIS_BASEINST_DIR)/usr
47SOLARIS_USRBIN_DIR := $(SOLARIS_USR_DIR)/bin
48SOLARIS_USRSHR_APPS_DIR := $(SOLARIS_USR_DIR)/share/applications
49SOLARIS_USRSHR_APPREG_DIR := $(SOLARIS_USR_DIR)/share/application-registry
50SOLARIS_USRSHR_MIMEXML_DIR := $(SOLARIS_USR_DIR)/share/mime/packages
51SOLARIS_USRSHR_MIMEINFO_DIR := $(SOLARIS_USR_DIR)/share/mime-info
52SOLARIS_USRSHR_ICONS_DIR := $(SOLARIS_USR_DIR)/share/icons/hicolor
53SOLARIS_USRSHR_PIXMAPS_DIR := $(SOLARIS_USR_DIR)/share/pixmaps
54SOLARIS_VBOXSMF_DIR := $(SOLARIS_BASEINST_DIR)/var/svc/manifest/application/virtualbox
55SOLARIS_ETC_DIR := $(SOLARIS_BASEINST_DIR)/etc
56
57SOLARIS_OUT_BIN_64 := $(PATH_OUT_BASE)/solaris.amd64/$(KBUILD_TYPE)/bin
58SOLARIS_OUT_BIN_32 := $(PATH_OUT_BASE)/solaris.x86/$(KBUILD_TYPE)/bin
59SOLARIS_OUT_BIN := $(PATH_STAGE_BIN)
60
61SOLARIS_DBG_DIR := $(PATH_TARGET)/Installer/DebugPkg
62SOLARIS_DBG_DIR_32 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_32)
63SOLARIS_DBG_DIR_64 := $(SOLARIS_DBG_DIR)/$(SOLARIS_DIR_NAME_64)
64SOLARIS_VBI_DIR := $(PATH_TARGET)/Installer/KernelPkg
65
66ifeq ($(KBUILD_TARGET_ARCH),amd64)
67 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_64)
68 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_64)
69 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_64)
70 SOL_DBG_OBJCOPY := /usr/sfw/bin/gobjcopy --only-keep-debug
71 SOL64_PKG := 1
72else
73 SOLARIS_VBOXINST_DIR_ISA := $(SOLARIS_VBOXINST_DIR_32)
74 SOLARIS_DRIVERINST_DIR_ISA := $(SOLARIS_DRIVERINST_DIR_32)
75 SOLARIS_DBG_DIR_ISA := $(SOLARIS_DBG_DIR_32)
76 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.
77endif
78SOL_OBJCOPY := /usr/sfw/bin/gobjcopy --strip-debug -R .comment
79SOL_GTAR := /usr/sfw/bin/gtar
80
81# Figure out the paths to the two platform specific Qt4 directories
82SOLARIS_PATH_QT_32 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.x86,$(VBOX_PATH_QT4))
83SOLARIS_PATH_QT_64 = $(subst solaris.$(KBUILD_TARGET_ARCH),solaris.amd64,$(VBOX_PATH_QT4))
84
85# Base package
86PKGINFO_ARCH = $(shell uname -p)
87PKGINFO_REVSTAMP = $(date %Y.%m.%d.%H.%M)
88ifndef VBOX_WITH_COMBINED_PACKAGE
89 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV)
90else
91 PKG_FILENAME = VirtualBox-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
92endif
93
94# Debug package
95DBG_ARCHIVE = VirtualBoxDebug.tar.bz2
96
97# Kernel interface (vbi) package
98VBIPKG_FILENAME = VirtualBoxKern-$(VBOX_VERSION_STRING)-SunOS-r$(VBOX_SVN_REV)
99
100#
101# Targets
102#
103PROGRAMS += VBoxZoneAccess VBoxISAExec
104INSTALLS += solaris-doc solaris-bin solaris-drv-confs solaris-icons
105
106BLDDIRS += \
107 $(SOLARIS_INST_OUT_DIR) \
108 $(SOLARIS_BASEINST_DIR) \
109 $(SOLARIS_VBOXINST_DIR) \
110 $(SOLARIS_VBI_DIR) \
111 $(SOLARIS_DBG_DIR)
112
113BLDDIRS += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
114 usr \
115 usr/bin \
116 platform \
117 platform/i86pc \
118 platform/i86pc/kernel \
119 platform/i86pc/kernel/drv \
120 platform/i86pc/kernel/drv/amd64 \
121)
122
123PACKING += $(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz $(PATH_STAGE_BIN)/$(DBG_ARCHIVE)
124
125OTHER_CLEAN += $(addprefix $(SOLARIS_BASEINST_DIR)/,\
126 vbox.pkginfo vbox.copyright vbox.space vbox.depend vbox.pkgresponse \
127 makepackage.sh prototype postinstall.sh checkinstall.sh preremove.sh)
128
129#
130# VBoxZoneAccess
131#
132VBoxZoneAccess_TEMPLATE = VBOXR3EXE
133VBoxZoneAccess_DEPS = $(VBOX_SVN_REV_KMK)
134VBoxZoneAccess_SOURCES = VBoxZoneAccess.c
135VBoxZoneAccess_LIBS = $(LIB_RUNTIME)
136
137#
138# VBoxISAExec
139#
140VBoxISAExec_TEMPLATE = VBOXR3EXE
141VBoxISAExec_DEPS = $(VBOX_SVN_REV_KMK)
142VBoxISAExec_SOURCES = VBoxISAExec.c
143
144#
145# Solaris installs.
146#
147solaris-doc_INST = bin/
148solaris-doc_MODE = a+r,u+w
149solaris-doc_SOURCES = \
150 $(VBOX_BRAND_LICENSE_TXT)=>LICENSE \
151 $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/images/$(if $(VBOX_OSE),OSE,NonOSE)/VirtualBox_64px.png=>VBox.png
152
153solaris-bin_INST = bin/
154solaris-bin_MODE = a+rx,u+w
155solaris-bin_SOURCES = \
156 $(if $(VBOX_WITH_PYTHON),$(PATH_ROOT)/src/VBox/Frontends/VBoxShell/vboxshell.py,) \
157 $(VBOX_PATH_SOL_INST_SRC)/vboxconfig.sh \
158 $(VBOX_PATH_SOL_INST_SRC)/VBox.sh \
159 $(VBOX_PATH_SOL_INST_SRC)/pkginstall.sh \
160 $(VBOX_PATH_SOL_INST_SRC)/smf-vboxballoonctrl.sh \
161 $(if $(VBOX_WITH_WEBSERVICES),$(VBOX_PATH_SOL_INST_SRC)/smf-vboxwebsrv.sh,)
162
163solaris-drv-confs_INST = bin/
164solaris-drv-confs_MODE = a+r,u+w
165solaris-drv-confs_SOURCES = \
166 $(PATH_ROOT)/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf \
167 $(if $(VBOX_WITH_NETFLT),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxflt.conf) \
168 $(if $(VBOX_WITH_NETFLT_CROSSBOW),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetFlt/solaris/vboxbow.conf) \
169 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \
170 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) \
171 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb.conf)
172
173solaris-icons_INST = bin/icons
174solaris-icons_MODE = a+r,u+w
175solaris-icons_SOURCES = $(VBOX_MIME_ICONS)
176
177BLDDIRS += \
178 $(SOLARIS_USR_DIR)/share \
179 $(SOLARIS_USR_DIR)/share/icons \
180 $(SOLARIS_USRSHR_ICONS_DIR) \
181 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
182 $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s) \
183 $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s)/mimetypes)
184
185VBOX_MIME_ICONS = \
186 $(addprefix $(PATH_ROOT)/src/VBox/Resources/other/,\
187 $(foreach f,ova ovf vbox vbox-extpack vdi vmdk vhd hdd, \
188 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
189 virtualbox-$(f)-$(s)px.png=>$(s)x$(s)/mimetypes/virtualbox-$(f).png)))
190
191SOLARIS_COMMON_ICONS = \
192 $(foreach f,ova ovf vbox vbox-extpack vdi vmdk vhd hdd, \
193 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
194 $(s)x$(s)/mimetypes/virtualbox-$(f).png))
195
196
197#
198# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
199# go into the temporary install folder $(SOLARIS_VBOXINST_DIR) should be part of $(SOLARIS_ARCH_FILES).
200# For the files produced during packing they should be cleaned up promptly when the work is done.
201#
202
203# Strip these executables
204SOLARIS_STRIP_EXES = \
205 VBoxZoneAccess \
206 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
207 VBoxManage \
208 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE,) \
209 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
210 $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
211 VBoxNetDHCP \
212 $(if $(VBOX_WITH_EXTPACK),VBoxExtPackHelperApp,) \
213 VBoxSVC \
214 $(if $(VBOX_WITH_CROGL),VBoxTestOGL,) \
215 VBoxXPCOMIPCD \
216 $(if $(VBOX_WITH_KCHMVIEWER),kchmviewer,)
217
218SOLARIS_DRIVER_BINS = \
219 vboxdrv \
220 $(if $(VBOX_WITH_NETFLT),vboxflt,) \
221 $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow,) \
222 $(if $(VBOX_WITH_NETADP),vboxnet,) \
223 $(if $(VBOX_WITH_USB),vboxusbmon,) \
224 $(if $(VBOX_WITH_USB),vboxusb,)
225
226SOLARIS_DRIVER_CONFS = \
227 vboxdrv.conf \
228 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
229 $(if $(VBOX_WITH_NETFLT_CROSSBOW),vboxbow.conf,) \
230 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
231 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \
232 $(if $(VBOX_WITH_USB),vboxusb.conf,)
233
234# Strip these binaries
235SOLARIS_STRIP_BINS = \
236 VBoxDD.so \
237 VBoxDD2.so \
238 VBoxREM.so \
239 VBoxRT.so \
240 VBoxDDU.so \
241 VBoxVMM.so \
242 VBoxXPCOM.so \
243 VBoxXPCOMC.so \
244 $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
245 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
246 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
247 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \
248 $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \
249 $(if $(VBOX_WITH_QTGUI),\
250 VBoxKeyboard.so \
251 $(if $(VBOX_WITH_QT4_SUN),\
252 libQtCoreVBox.so.4 \
253 libQtGuiVBox.so.4 \
254 libQtNetworkVBox.so.4 \
255 $(if $(VBOX_GUI_USE_QGL),libQtOpenGLVBox.so.4,) \
256 accessible/libqtaccessiblewidgets.so,)) \
257 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
258 $(if $(VBOX_WITH_CROGL),\
259 VBoxOGLhostcrutil.so \
260 VBoxOGLhosterrorspu.so \
261 VBoxOGLrenderspu.so \
262 VBoxSharedCrOpenGL.so) \
263 components/VBoxC.so \
264 components/VBoxSVCM.so \
265 components/VBoxXPCOMIPCC.so
266ifdef VBOX_WITH_HARDENING
267SOLARIS_STRIP_BINS += \
268 VBoxNetDHCP.so \
269 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
270 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
271 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
272endif
273
274# Do not remove relocation information of these binaries
275SOLARIS_STRIP_OBJS = \
276 VBoxDD2GC.gc \
277 VBoxDD2R0.r0 \
278 VBoxDDGC.gc \
279 VBoxDDR0.r0 \
280 VMMGC.gc \
281 VMMR0.r0
282
283# Special differences between 32-bit and 64-bit
284SOLARIS_STRIP_BIN_32 = \
285 VBoxREM32.so \
286 VBoxREM64.so
287
288VBOX_SOL_PYTHON_DIR_64 = 64
289
290# Do not strip anything of these files
291SOLARIS_NO_STRIP = \
292 components/VBoxXPCOMBase.xpt \
293 components/VirtualBox_XPCOM.xpt \
294 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES))
295
296SOLARIS_USRBIN_LINKS = \
297 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
298 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
299 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
300 VBoxManage
301
302SOLARIS_COMMON_EXES = \
303 vboxconfig.sh \
304 VBox.sh \
305 pkginstall.sh \
306 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
307 smf-vboxballoonctrl.sh \
308 $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,)
309
310# Things packed explicitly, not from $(PATH_STAGE_BIN), track these to clean-up properly
311SOLARIS_EXTRAS = \
312 LICENSE \
313 VBox.png \
314 autoresponse \
315 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
316 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
317 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
318 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
319 virtualbox.xml \
320 virtualbox-balloonctrl.xml \
321 virtualbox-webservice.xml \
322 virtualbox-zoneaccess.xml \
323 VBoxQtconfig \
324 VBoxISAExec \
325 vbox.copyright \
326 ReadMe.txt
327
328# These extra Qt libs are purely for running VBoxQtconfig
329ifdef VBOX_WITH_QTGUI
330 SOLARIS_QTLIBS = \
331 $(if $(VBOX_WITH_QT4_SUN),\
332 libQtXmlVBox.so.4 \
333 libQtSqlVBox.so.4 \
334 libQt3SupportVBox.so.4,)
335
336 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
337 SOLARIS_COMMON = $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
338else
339 SOLARIS_QTLIBS =
340 SOLARIS_COMMON =
341endif
342
343# Documentation (packed as DOCS as they are arch. neutral)
344ifdef VBOX_WITH_DOCS_PACKING
345 SOLARIS_COMMON += \
346 VirtualBox.chm \
347 UserManual.pdf \
348 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
349endif
350
351# Python XPCOM glue
352ifdef VBOX_WITH_PYTHON
353 SOLARIS_COMMON += \
354 $(foreach f,$(notdir $(wildcard $(PATH_STAGE_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
355 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
356 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
357 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
358 sdk/bindings/xpcom/python/xpcom/server/factory.py \
359 sdk/bindings/xpcom/python/xpcom/server/loader.py \
360 sdk/bindings/xpcom/python/xpcom/server/module.py \
361 sdk/bindings/xpcom/python/xpcom/server/policy.py \
362 sdk/installer/vboxapisetup.py \
363 sdk/installer/vboxapi/__init__.py \
364 sdk/installer/vboxapi/VirtualBox_constants.py
365endif
366
367ifdef VBOX_WITH_JXPCOM
368 SOLARIS_COMMON += \
369 sdk/bindings/xpcom/java/vboxjxpcom.jar
370endif
371
372# auth stuff
373 SOLARIS_STRIP_BINS += \
374 VBoxAuth.so \
375 VBoxAuthSimple.so
376
377# VRDP
378ifdef VBOX_WITH_VRDP
379 ifndef VBOX_WITH_EXTPACK_PUEL
380 SOLARIS_STRIP_BINS += \
381 VBoxVRDP.so
382 endif
383 SOLARIS_COMMON += \
384 rdesktop-vrdp.tar.gz
385 ifdef VBOX_WITH_VRDP_RDESKTOP
386 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
387 SOLARIS_STRIP_EXES += \
388 rdesktop-vrdp
389 endif
390endif
391
392SOLARIS_STRIP_BINS += \
393 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
394
395SOLARIS_STRIP_EXES += \
396 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
397 VBoxBalloonCtrl \
398 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
399 $(if $(VBOX_WITH_WEBSERVICES),webtest)
400
401# Guest Additions
402ifdef VBOX_WITH_ADDITIONS_PACKING
403 SOLARIS_COMMON += \
404 additions/VBoxGuestAdditions.iso
405endif
406
407
408# EFI firmware
409ifdef VBOX_WITH_EFIFW_PACKING
410 SOLARIS_COMMON += \
411 VBoxEFI32.fd \
412 VBoxEFI64.fd
413endif
414
415SOLARIS_ARCH_FILES := \
416 $(SOLARIS_STRIP_EXES) \
417 $(SOLARIS_DRIVER_BINS) \
418 $(SOLARIS_DRIVER_CONFS) \
419 $(SOLARIS_USRBIN_LINKS) \
420 $(SOLARIS_STRIP_BINS) \
421 $(SOLARIS_STRIP_OBJS) \
422 $(SOLARIS_NO_STRIP) \
423 $(SOLARIS_EXTRAS) \
424 $(SOLARIS_QTLIBS) \
425 $(SOLARIS_COMMON_EXES) \
426 $(SOLARIS_COMMON)
427
428SOLARIS_DBG_FILES := \
429 $(SOLARIS_STRIP_EXES) \
430 $(SOLARIS_STRIP_BINS) \
431 $(SOLARIS_DRIVER_BINS)
432
433OTHER_CLEAN += \
434 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
435 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
436 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
437 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
438 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
439 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
440 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
441 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
442 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
443
444ifdef VBOX_WITH_COMBINED_PACKAGE
445 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
446 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
447 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
448 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
449 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
450 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
451 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
452 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
453 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
454 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
455 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
456 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
457 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
458 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
459 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
460 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
461 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
462else
463 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
464 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
465 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
466 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
467 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
468 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
469 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
470 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
471 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
472 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
473endif
474SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
475 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
476 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
477 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)) \
478 $(addprefix $(SOLARIS_USRSHR_ICONS_DIR)/,$(SOLARIS_COMMON_ICONS))
479
480BLDDIRS += $(foreach d,\
481 additions \
482 rdesktop-vrdp-keymaps \
483 nls \
484 $(SOLARIS_DIR_NAME_64) \
485 $(SOLARIS_DIR_NAME_64)/components \
486 $(SOLARIS_DIR_NAME_64)/accessible \
487 $(VBOX_SOL_PYTHON_DIR_64) \
488 $(SOLARIS_DIR_NAME_32) \
489 $(SOLARIS_DIR_NAME_32)/components \
490 $(SOLARIS_DIR_NAME_32)/accessible \
491 $(if $(VBOX_WITH_PYTHON),\
492 sdk/ \
493 sdk/installer \
494 sdk/installer/vboxapi \
495 sdk/bindings/xpcom/python/xpcom \
496 sdk/bindings/xpcom/python/xpcom/server \
497 sdk/bindings/xpcom/python/xpcom/client,) \
498 $(if $(VBOX_WITH_JXPCOM), \
499 sdk/bindings/xpcom/java,) \
500,$(SOLARIS_VBOXINST_DIR)/$(d)/)
501
502BLDDIRS += $(foreach d,\
503 amd64 \
504,$(SOLARIS_VBI_DIR)/$(d)/)
505
506BLDDIRS += $(foreach d,\
507 additions \
508 components \
509 accessible \
510 $(SOLARIS_DIR_NAME_64) \
511 $(SOLARIS_DIR_NAME_64)/components \
512 $(SOLARIS_DIR_NAME_64)/accessible \
513 $(VBOX_SOL_PYTHON_DIR_64) \
514 $(SOLARIS_DIR_NAME_32) \
515 $(SOLARIS_DIR_NAME_32)/components \
516 $(SOLARIS_DIR_NAME_32)/accessible \
517,$(SOLARIS_DBG_DIR)/$(d))
518
519# List of files to be tar.gz'd, the files will be
520# installed in $(SOLARIS_BASEINST_DIR) and .gz'd from there.
521SOLARIS_TAR_GZ_FILES := \
522 $(PKG_FILENAME).pkg \
523 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,) \
524 LICENSE \
525 autoresponse \
526 ReadMe.txt
527
528include $(KBUILD_PATH)/subfooter.kmk
529
530#
531# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
532#
533
534## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
535# containing any obsolete files the way packing is performed here. Consider recursively
536# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
537# directory tree.
538$(PATH_STAGE_BIN)/$(PKG_FILENAME).tar.gz: \
539 $(VBOX_VERSION_STAMP) \
540 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
541 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
542 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
543 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
544 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
545 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
546 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
547 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
548 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in \
549 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.xml \
550 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
551 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
552 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
553 $(VBOX_BRAND_LICENSE_TXT) \
554 $(PATH_STAGE_BIN)/LICENSE \
555 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
556 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
557 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
558 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
559 $(addprefix $(PATH_STAGE_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
560 VBoxISAExec \
561 $(SOLARIS_ARCH_DEPFILES)
562 $(QUIET)$(RM) -f $(wildcard $(PATH_STAGE_BIN)/VirtualBox-*-r*.tar.gz)
563 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
564ifdef VBOX_WITH_COMBINED_PACKAGE
565 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
566else
567 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
568endif
569 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
570 $(QUIET)$(SED) \
571 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
572 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
573 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
574 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
575 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
576 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
577 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
578 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
579 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
580 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
581 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
582 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
583 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_APPREG_DIR)
584 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEXML_DIR)
585 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEINFO_DIR)
586 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
587 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
588 $(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE
589 # don't display the license on package install, since 4.0
590 #$(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright
591 $(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/LICENSE
592ifdef VBOX_WITH_COMBINED_PACKAGE
593 ifndef VBOX_OSE
594 $(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,)
595 $(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,)
596 endif
597 @# @todo -XXX- how to get rid of this manual MKDIR ?
598 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
599 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
600 $(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)/,)
601 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if ($VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,),)
602 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,),)
603 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
604 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
605 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
606 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
607 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
608else
609 ifndef VBOX_OSE
610 $(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,)
611 endif
612 @# @todo -XXX- how to get rid of this manual MKDIR ?
613 ifdef VBOX_WITH_PYTHON
614 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
615 $(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)/,)
616 endif
617 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,),)
618 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
619 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
620 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
621endif
622 $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
623 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
624 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
625 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
626 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-balloonctrl.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-balloonctrl.xml
627 $(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,)
628 $(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,)
629 $(QUIET)$(SED) \
630 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
631 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
632 $(PATH_STAGE_BIN)/vboxconfig.sh
633 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
634 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
635 $(QUIET)$(SED) \
636 -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
637 -e "s+@VBOX_DOC_PATH@+/opt/VirtualBox+" \
638 --output $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp \
639 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in
640 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop
641 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp
642 # S10 cannot deal with icon information in virtualbox.xml
643 $(QUIET)$(SED) \
644 -e '/<icon/d' \
645 --output $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp \
646 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.xml
647 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml
648 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp
649 $(QUIET)$(SED) \
650 -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
651 --output $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp \
652 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.applications.in
653 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications
654 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp
655 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.keys $(SOLARIS_USRSHR_MIMEINFO_DIR)/virtualbox.keys
656 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.mime $(SOLARIS_USRSHR_MIMEINFO_DIR)/virtualbox.mime
657 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
658 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
659 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
660 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
661 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
662 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
663 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
664 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
665 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
666 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
667 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
668 $(QUIET)$(SED) \
669 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
670 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
671 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
672 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
673 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
674 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
675 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
676 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
677 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
678 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
679 $(SOLARIS_BASEINST_DIR) \
680 $(PKG_FILENAME) \
681 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
682 $(VBOX_SVN_REV) \
683 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
684 $(call MSG_L1,Creating final tar.gz package)
685 $(QUIET)$(SOL_GTAR) -C $(SOLARIS_BASEINST_DIR) -zcvf $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_TAR_GZ_FILES)
686 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
687 @# Clean up files emitted as side-effect or result of packing
688 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
689 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
690 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
691 $(call MSG_L1,Packaging completed.)
692
693
694#
695# 32-bit Main Package
696#
697$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
698 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
699 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
700
701$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
702 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
703 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
704
705$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
706 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
707 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
708
709$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
710 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
711 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
712
713$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
714 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
715 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
716
717$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
718 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
719 $(INSTALL) -m 0644 $< $@
720
721$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
722 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
723 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
724
725#
726# 64-bit Main Package
727#
728$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
729 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
730 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
731
732$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
733 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
734 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
735
736$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
737 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
738 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
739
740$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
741 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
742 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
743
744$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
745 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
746 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
747
748$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
749 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
750 $(INSTALL) -m 0644 $< $@
751
752$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
753 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
754 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
755
756
757#
758# Common (32-bit and 64-bit)
759#
760$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
761 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_STAGE_BIN)/% | $$(dir $$@)
762 $(INSTALL) -m 0644 $< $@
763
764# Driver configuration files
765$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
766 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_STAGE_BIN)/% | $$(dir $$@)
767 $(INSTALL) -m 0644 $< $@
768
769# Common executables
770$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
771 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_STAGE_BIN)/% | $$(dir $$@)
772 $(INSTALL) -m 0755 $< $@
773
774# Common MIME icons
775$(addprefix $(SOLARIS_USRSHR_ICONS_DIR)/,$(SOLARIS_COMMON_ICONS)): \
776 $(SOLARIS_USRSHR_ICONS_DIR)/% : $(PATH_STAGE_BIN)/icons/% | $$(dir $$@)
777 $(INSTALL) -m 0644 $< $@
778
779
780
781#
782# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
783# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
784# as those binaries do not originate from $(PATH_STAGE_BIN)
785#
786$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
787 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
788 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
789
790
791#
792# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
793#
794ifdef VBOX_WITH_SOLARIS_VBI
795$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
796 $(VBOX_VERSION_STAMP) \
797 $(VBOX_BRAND_LICENSE_TXT) \
798 $(PATH_STAGE_BIN)/LICENSE \
799 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
800 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
801 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
802 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
803 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
804 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
805 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
806 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
807 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
808 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
809 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
810 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
811 $(QUIET)$(SED) \
812 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
813 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
814 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
815 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
816 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
817 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
818 # don't display the license on package install, since 4.0
819 #$(QUIET)$(INSTALL) -m 0644 $(PATH_STAGE_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright
820 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
821 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
822 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
823 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
824endif
825
826
827#
828# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
829#
830$(PATH_STAGE_BIN)/$(DBG_ARCHIVE): \
831 $(VBOX_VERSION_STAMP) \
832 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
833 $(SOLARIS_DBG_DEPFILES)
834 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
835 $(call MSG_L1,Packing $@)
836 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_STAGE_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
837 $(QUIET)$(CHMOD) 0644 $@
838
839#
840# 32-bit Debug package
841#
842$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
843 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
844 $(SOL_DBG_OBJCOPY) $< $@
845
846$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
847 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
848 $(SOL_DBG_OBJCOPY) $< $@
849
850
851#
852# 64-bit Debug package
853#
854$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
855 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
856 $(SOL_DBG_OBJCOPY) $< $@
857
858$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
859 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
860 $(SOL_DBG_OBJCOPY) $< $@
861
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette