VirtualBox

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

Last change on this file since 37178 was 36686, checked in by vboxsync, 14 years ago

Installer/solaris: packaging, scripts and SMF manifests for VBoxBalloonCtrl

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 37.1 KB
Line 
1# $Id: Makefile.kmk 36686 2011-04-15 14:39:41Z 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_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_BIN)/$(PKG_FILENAME).tar.gz $(PATH_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_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/vboxnet.conf) \
169 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusbmon.conf) \
170 $(if $(VBOX_WITH_USB),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/solaris/vboxusb.conf)
171
172solaris-icons_INST = bin/icons
173solaris-icons_MODE = a+r,u+w
174solaris-icons_SOURCES = $(VBOX_MIME_ICONS)
175
176BLDDIRS += \
177 $(SOLARIS_USR_DIR)/share \
178 $(SOLARIS_USR_DIR)/share/icons \
179 $(SOLARIS_USRSHR_ICONS_DIR) \
180 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
181 $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s) \
182 $(SOLARIS_USRSHR_ICONS_DIR)/$(s)x$(s)/mimetypes)
183
184VBOX_MIME_ICONS = \
185 $(addprefix $(PATH_ROOT)/src/VBox/Resources/other/,\
186 $(foreach f,ova ovf vbox vbox-extpack, \
187 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
188 virtualbox-$(f)-$(s)px.png=>$(s)x$(s)/mimetypes/virtualbox-$(f).png)))
189
190SOLARIS_COMMON_ICONS = \
191 $(foreach f,ova ovf vbox vbox-extpack, \
192 $(foreach s,16 20 24 32 48 64 72 96 128 256,\
193 $(s)x$(s)/mimetypes/virtualbox-$(f).png))
194
195
196#
197# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
198# go into the temporary install folder $(SOLARIS_VBOXINST_DIR) should be part of $(SOLARIS_ARCH_FILES).
199# For the files produced during packing they should be cleaned up promptly when the work is done.
200#
201
202# Strip these executables
203SOLARIS_STRIP_EXES = \
204 VBoxZoneAccess \
205 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
206 VBoxManage \
207 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE,) \
208 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
209 $(if $(VBOX_WITH_NETADP),VBoxNetAdpCtl,) \
210 VBoxNetDHCP \
211 $(if $(VBOX_WITH_EXTPACK),VBoxExtPackHelperApp,) \
212 VBoxSVC \
213 $(if $(VBOX_WITH_CROGL),VBoxTestOGL,) \
214 VBoxXPCOMIPCD \
215 $(if $(VBOX_WITH_KCHMVIEWER),kchmviewer,)
216
217SOLARIS_DRIVER_BINS = \
218 vboxdrv \
219 $(if $(VBOX_WITH_NETFLT),vboxflt,) \
220 $(if $(VBOX_WITH_NETADP),vboxnet,) \
221 $(if $(VBOX_WITH_USB),vboxusbmon,) \
222 $(if $(VBOX_WITH_USB),vboxusb,)
223
224SOLARIS_DRIVER_CONFS = \
225 vboxdrv.conf \
226 $(if $(VBOX_WITH_NETFLT),vboxflt.conf,) \
227 $(if $(VBOX_WITH_NETADP),vboxnet.conf,) \
228 $(if $(VBOX_WITH_USB),vboxusbmon.conf,) \
229 $(if $(VBOX_WITH_USB),vboxusb.conf,)
230
231# Strip these binaries
232SOLARIS_STRIP_BINS = \
233 VBoxDD.so \
234 VBoxDD2.so \
235 VBoxREM.so \
236 VBoxRT.so \
237 VBoxDDU.so \
238 VBoxVMM.so \
239 VBoxXPCOM.so \
240 VBoxXPCOMC.so \
241 $(if $(VBOX_WITH_SHARED_FOLDERS),VBoxSharedFolders.so,) \
242 $(if $(VBOX_WITH_SHARED_CLIPBOARD),VBoxSharedClipboard.so,) \
243 $(if $(VBOX_WITH_GUEST_PROPS),VBoxGuestPropSvc.so,) \
244 $(if $(VBOX_WITH_GUEST_CONTROL),VBoxGuestControlSvc.so,) \
245 $(if $(VBOX_WITH_JXPCOM),libvboxjxpcom.so,) \
246 $(if $(VBOX_WITH_QTGUI),\
247 VBoxKeyboard.so \
248 $(if $(VBOX_WITH_QT4_SUN),\
249 libQtCoreVBox.so.4 \
250 libQtGuiVBox.so.4 \
251 libQtNetworkVBox.so.4 \
252 $(if $(VBOX_GUI_USE_QGL),libQtOpenGLVBox.so.4,) \
253 accessible/libqtaccessiblewidgets.so,)) \
254 $(if $(VBOX_WITH_DEBUGGER_GUI),VBoxDbg.so,) \
255 $(if $(VBOX_WITH_CROGL),\
256 VBoxOGLhostcrutil.so \
257 VBoxOGLhosterrorspu.so \
258 VBoxOGLrenderspu.so \
259 VBoxSharedCrOpenGL.so) \
260 components/VBoxC.so \
261 components/VBoxSVCM.so \
262 components/VBoxXPCOMIPCC.so
263ifdef VBOX_WITH_HARDENING
264SOLARIS_STRIP_BINS += \
265 VBoxNetDHCP.so \
266 $(if $(VBOX_WITH_VBOXBFE),VBoxBFE.so,) \
267 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL.so,) \
268 $(if $(VBOX_WITH_QTGUI),VirtualBox.so,)
269endif
270
271# Do not remove relocation information of these binaries
272SOLARIS_STRIP_OBJS = \
273 VBoxDD2GC.gc \
274 VBoxDD2R0.r0 \
275 VBoxDDGC.gc \
276 VBoxDDR0.r0 \
277 VMMGC.gc \
278 VMMR0.r0
279
280# Special differences between 32-bit and 64-bit
281SOLARIS_STRIP_BIN_32 = \
282 VBoxREM32.so \
283 VBoxREM64.so
284
285VBOX_SOL_PYTHON_DIR_64 = 64
286
287# Do not strip anything of these files
288SOLARIS_NO_STRIP = \
289 components/VBoxXPCOMBase.xpt \
290 components/VirtualBox_XPCOM.xpt \
291 $(if $(and $(VBOX_LICENSE_FILES),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_FILES))
292
293SOLARIS_USRBIN_LINKS = \
294 $(if $(VBOX_WITH_QTGUI),VirtualBox,) \
295 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless,) \
296 $(if $(VBOX_WITH_VBOXSDL),VBoxSDL,) \
297 VBoxManage
298
299SOLARIS_COMMON_EXES = \
300 vboxconfig.sh \
301 VBox.sh \
302 pkginstall.sh \
303 $(if $(VBOX_WITH_PYTHON),vboxshell.py,) \
304 smf-vboxballoonctrl.sh \
305 $(if $(VBOX_WITH_WEBSERVICES),smf-vboxwebsrv.sh,)
306
307# Things packed explicitly, not from $(PATH_BIN), track these to clean-up properly
308SOLARIS_EXTRAS = \
309 LICENSE \
310 VBox.png \
311 autoresponse \
312 $(if $(VBOX_WITH_VBOXSDL),libSDL-1.2.so.0,) \
313 $(if $(not $(VBOX_WITH_NETFLT))vnic_setup.sh,) \
314 $(if $(not $(VBOX_WITH_NETFLT))vnic_term.sh,) \
315 $(if $(VBOX_WITH_QTGUI),virtualbox.desktop,) \
316 virtualbox.xml \
317 virtualbox-balloonctrl.xml \
318 virtualbox-webservice.xml \
319 virtualbox-zoneaccess.xml \
320 VBoxQtconfig \
321 VBoxISAExec \
322 vbox.copyright \
323 ReadMe.txt
324
325# These extra Qt libs are purely for running VBoxQtconfig
326ifdef VBOX_WITH_QTGUI
327 SOLARIS_QTLIBS = \
328 $(if $(VBOX_WITH_QT4_SUN),\
329 libQtXmlVBox.so.4 \
330 libQtSqlVBox.so.4 \
331 libQt3SupportVBox.so.4,)
332
333 include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
334 SOLARIS_COMMON = $(foreach f,$(VBOX_APPROVED_GUI_LANGUAGES),nls/VirtualBox_$(f).qm nls/qt_$(f).qm)
335else
336 SOLARIS_QTLIBS =
337 SOLARIS_COMMON =
338endif
339
340# Documentation (packed as DOCS as they are arch. neutral)
341ifdef VBOX_WITH_DOCS_PACKING
342 SOLARIS_COMMON += \
343 VirtualBox.chm \
344 UserManual.pdf \
345 $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),VirtualBox_$(f).chm UserManual_$(f).pdf)
346endif
347
348# Python XPCOM glue
349ifdef VBOX_WITH_PYTHON
350 SOLARIS_COMMON += \
351 $(foreach f,$(notdir $(wildcard $(PATH_BIN)/sdk/bindings/xpcom/python/xpcom/*.py)),sdk/bindings/xpcom/python/xpcom/$(f)) \
352 sdk/bindings/xpcom/python/xpcom/client/__init__.py \
353 sdk/bindings/xpcom/python/xpcom/server/__init__.py \
354 sdk/bindings/xpcom/python/xpcom/server/enumerator.py \
355 sdk/bindings/xpcom/python/xpcom/server/factory.py \
356 sdk/bindings/xpcom/python/xpcom/server/loader.py \
357 sdk/bindings/xpcom/python/xpcom/server/module.py \
358 sdk/bindings/xpcom/python/xpcom/server/policy.py \
359 sdk/installer/vboxapisetup.py \
360 sdk/installer/vboxapi/__init__.py \
361 sdk/installer/vboxapi/VirtualBox_constants.py
362endif
363
364ifdef VBOX_WITH_JXPCOM
365 SOLARIS_COMMON += \
366 sdk/bindings/xpcom/java/vboxjxpcom.jar
367endif
368
369# auth stuff
370 SOLARIS_STRIP_BINS += \
371 VBoxAuth.so \
372 VBoxAuthSimple.so
373
374# VRDP
375ifdef VBOX_WITH_VRDP
376 ifndef VBOX_WITH_EXTPACK_PUEL
377 SOLARIS_STRIP_BINS += \
378 VBoxVRDP.so
379 endif
380 SOLARIS_COMMON += \
381 rdesktop-vrdp.tar.gz
382 ifdef VBOX_WITH_VRDP_RDESKTOP
383 SOLARIS_COMMON += $(addprefix rdesktop-vrdp-keymaps/,$(notdir $(wildcard $(SOLARIS_OUT_BIN)/rdesktop-vrdp-keymaps/*)))
384 SOLARIS_STRIP_EXES += \
385 rdesktop-vrdp
386 endif
387endif
388
389SOLARIS_STRIP_BINS += \
390 $(if $(and $(VBOX_WITH_HARDENING),$(VBOX_WITH_HEADLESS)),VBoxHeadless.so,)
391
392SOLARIS_STRIP_EXES += \
393 $(if $(VBOX_WITH_HEADLESS),VBoxHeadless) \
394 VBoxBalloonCtrl \
395 $(if $(VBOX_WITH_WEBSERVICES),vboxwebsrv) \
396 $(if $(VBOX_WITH_WEBSERVICES),webtest)
397
398# Guest Additions
399ifdef VBOX_WITH_ADDITIONS_PACKING
400 SOLARIS_COMMON += \
401 additions/VBoxGuestAdditions.iso
402endif
403
404
405# EFI firmware
406ifdef VBOX_WITH_EFIFW_PACKING
407 SOLARIS_COMMON += \
408 VBoxEFI32.fd \
409 VBoxEFI64.fd
410endif
411
412SOLARIS_ARCH_FILES := \
413 $(SOLARIS_STRIP_EXES) \
414 $(SOLARIS_DRIVER_BINS) \
415 $(SOLARIS_DRIVER_CONFS) \
416 $(SOLARIS_USRBIN_LINKS) \
417 $(SOLARIS_STRIP_BINS) \
418 $(SOLARIS_STRIP_OBJS) \
419 $(SOLARIS_NO_STRIP) \
420 $(SOLARIS_EXTRAS) \
421 $(SOLARIS_QTLIBS) \
422 $(SOLARIS_COMMON_EXES) \
423 $(SOLARIS_COMMON)
424
425SOLARIS_DBG_FILES := \
426 $(SOLARIS_STRIP_EXES) \
427 $(SOLARIS_STRIP_BINS) \
428 $(SOLARIS_DRIVER_BINS)
429
430OTHER_CLEAN += \
431 $(addprefix $(SOLARIS_VBOXINST_DIR)/, $(SOLARIS_ARCH_FILES)) \
432 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz \
433 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg \
434 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_BINS)) \
435 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_DRIVER_BINS)) \
436 $(addprefix $(SOLARIS_DBG_DIR)/,$(SOLARIS_STRIP_EXES)) \
437 $(SOLARIS_DBG_DIR)/$(DBG_ARCHIVE) \
438 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).tar.gz \
439 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg
440
441ifdef VBOX_WITH_COMBINED_PACKAGE
442 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)) \
443 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)) \
444 $(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)) \
445 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)) \
446 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)) \
447 $(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)) \
448 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)) \
449 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)) \
450 $(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)) \
451 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)) \
452 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)) \
453 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)) \
454 $(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)) \
455 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_32)/,VBoxPython*.so)) \
456 $(wildcard $(addprefix $(SOLARIS_OUT_BIN_64)/,VBoxPython*.so))
457 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DBG_FILES)) \
458 $(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DBG_FILES))
459else
460 SOLARIS_ARCH_DEPFILES = $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_EXES)) \
461 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BINS)) \
462 $(addprefix $(SOLARIS_DRIVERINST_DIR_ISA)/,$(SOLARIS_DRIVER_BINS)) \
463 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
464 $(ifeq ($(KBUILD_TARGET_ARCH),x86),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_BIN_32)),) \
465 $(ifeq ($(KBUILD_TARGET_ARCH),amd64),$(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJ_64)),) \
466 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_STRIP_OBJS)) \
467 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_NO_STRIP)) \
468 $(addprefix $(SOLARIS_VBOXINST_DIR_ISA)/,$(SOLARIS_QTLIBS))
469 SOLARIS_DBG_DEPFILES = $(addprefix $(SOLARIS_DBG_DIR_ISA)/,$(SOLARIS_DBG_FILES))
470endif
471SOLARIS_ARCH_DEPFILES += $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)) \
472 $(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)) \
473 $(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)) \
474 $(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)) \
475 $(addprefix $(SOLARIS_USRSHR_ICONS_DIR)/,$(SOLARIS_COMMON_ICONS))
476
477BLDDIRS += $(foreach d,\
478 additions \
479 rdesktop-vrdp-keymaps \
480 nls \
481 $(SOLARIS_DIR_NAME_64) \
482 $(SOLARIS_DIR_NAME_64)/components \
483 $(SOLARIS_DIR_NAME_64)/accessible \
484 $(VBOX_SOL_PYTHON_DIR_64) \
485 $(SOLARIS_DIR_NAME_32) \
486 $(SOLARIS_DIR_NAME_32)/components \
487 $(SOLARIS_DIR_NAME_32)/accessible \
488 $(if $(VBOX_WITH_PYTHON),\
489 sdk/ \
490 sdk/installer \
491 sdk/installer/vboxapi \
492 sdk/bindings/xpcom/python/xpcom \
493 sdk/bindings/xpcom/python/xpcom/server \
494 sdk/bindings/xpcom/python/xpcom/client,) \
495 $(if $(VBOX_WITH_JXPCOM), \
496 sdk/bindings/xpcom/java,) \
497,$(SOLARIS_VBOXINST_DIR)/$(d)/)
498
499BLDDIRS += $(foreach d,\
500 amd64 \
501,$(SOLARIS_VBI_DIR)/$(d)/)
502
503BLDDIRS += $(foreach d,\
504 additions \
505 components \
506 accessible \
507 $(SOLARIS_DIR_NAME_64) \
508 $(SOLARIS_DIR_NAME_64)/components \
509 $(SOLARIS_DIR_NAME_64)/accessible \
510 $(VBOX_SOL_PYTHON_DIR_64) \
511 $(SOLARIS_DIR_NAME_32) \
512 $(SOLARIS_DIR_NAME_32)/components \
513 $(SOLARIS_DIR_NAME_32)/accessible \
514,$(SOLARIS_DBG_DIR)/$(d))
515
516# List of files to be tar.gz'd, the files will be
517# installed in $(SOLARIS_BASEINST_DIR) and .gz'd from there.
518SOLARIS_TAR_GZ_FILES := \
519 $(PKG_FILENAME).pkg \
520 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,) \
521 LICENSE \
522 autoresponse \
523 ReadMe.txt
524
525include $(KBUILD_PATH)/subfooter.kmk
526
527#
528# -=-=-=-=-=-=-=- Main package -=-=-=-=-=-=-=-
529#
530
531## @todo r=bird: makepackage.sh packing a directory tree, right? So, there is no guarantee that it's not
532# containing any obsolete files the way packing is performed here. Consider recursively
533# invoking $(MAKE) vbox_copy_sdk_files (or similar) to do the copying after $(RM) -Rf the
534# directory tree.
535$(PATH_BIN)/$(PKG_FILENAME).tar.gz: \
536 $(VBOX_VERSION_STAMP) \
537 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh \
538 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh \
539 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh \
540 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh \
541 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
542 $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
543 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
544 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
545 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in \
546 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.xml \
547 $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
548 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
549 $(if $(VBOX_WITH_SOLARIS_VBI),$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg,) \
550 $(VBOX_BRAND_LICENSE_TXT) \
551 $(PATH_BIN)/LICENSE \
552 $(if $(and $(VBOX_LICENSE_BINS),$(VBOX_WITH_QTGUI)),$(VBOX_LICENSE_BINS),) \
553 $(if $(VBOX_WITH_NETADP),$(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0,) \
554 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicinit_solaris.sh,) \
555 $(if $(not $(VBOX_WITH_NETFLT))$(PATH_ROOT)/src/VBox/Devices/Network/solaris/vnicterm_solaris.sh,) \
556 $(addprefix $(PATH_BIN)/,$(filter-out $(SOLARIS_EXTRAS) $(SOLARIS_QTLIBS),$(SOLARIS_ARCH_FILES))) \
557 VBoxISAExec \
558 $(SOLARIS_ARCH_DEPFILES)
559 $(QUIET)$(RM) -f $(wildcard $(PATH_BIN)/VirtualBox-*-r*.tar.gz)
560 $(call MSG_L1,Installing binaries $(SOLARIS_VBOXINST_DIR))
561ifdef VBOX_WITH_COMBINED_PACKAGE
562 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN_32)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
563else
564 $(QUIET)$(if $(VBOX_WITH_ADDITIONS_PACKING),$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/additions/VBoxGuestAdditions.iso $(SOLARIS_VBOXINST_DIR)/additions/)
565endif
566 $(call MSG_L1,Installing files $(SOLARIS_VBOXINST_DIR))
567 $(QUIET)$(SED) \
568 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
569 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
570 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
571 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
572 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
573 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
574 --output $(SOLARIS_BASEINST_DIR)/vbox.pkginfo \
575 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo
576 @# @todo BLDDIRS doesn't do "-p" subdir creation; so create for now
577 $(QUIET)$(if $(VBOX_WITH_NETADP),$(MKDIR) -p $(SOLARIS_ETC_DIR),)
578 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXSMF_DIR)
579 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(MKDIR) -p $(SOLARIS_USRSHR_APPS_DIR),)
580 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_APPREG_DIR)
581 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEXML_DIR)
582 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_MIMEINFO_DIR)
583 $(QUIET)$(MKDIR) -p $(SOLARIS_USRSHR_PIXMAPS_DIR)
584 $(QUIET)$(if $(VBOX_WITH_NETADP),$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxNetAdp/solaris/hostname.vboxnet0 $(SOLARIS_ETC_DIR)/hostname.vboxnet0,)
585 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBOXINST_DIR)/LICENSE
586 # don't display the license on package install, since 4.0
587 #$(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/vbox.copyright
588 $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_BASEINST_DIR)/LICENSE
589ifdef VBOX_WITH_COMBINED_PACKAGE
590 ifndef VBOX_OSE
591 $(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,)
592 $(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,)
593 endif
594 @# @todo -XXX- how to get rid of this manual MKDIR ?
595 $(QUIET)$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64)
596 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s) $(wildcard $(SOLARIS_OUT_BIN_32)/VBoxPython*.so) $(SOLARIS_VBOXINST_DIR)/,)
597 $(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)/,)
598 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if ($VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_32)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_32)/VBoxQtconfig,),)
599 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(SOLARIS_PATH_QT_64)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_64)/VBoxQtconfig,),)
600 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN_32)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
601 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_32)/rdesktop-vrdp-keymaps,)
602 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_64)/rdesktop-vrdp-keymaps,)
603 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_32)/additions,)
604 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_64)/additions,)
605else
606 ifndef VBOX_OSE
607 $(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,)
608 endif
609 @# @todo -XXX- how to get rid of this manual MKDIR ?
610 ifdef VBOX_WITH_PYTHON
611 $(QUIET)$(if $(SOL64_PKG),$(MKDIR) -p $(SOLARIS_VBOXINST_DIR)/$(VBOX_SOL_PYTHON_DIR_64),)
612 $(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)/,)
613 endif
614 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(if $(VBOX_WITH_QT4_SUN),$(INSTALL) -m 0755 $(VBOX_PATH_QT4)/bin/qtconfig $(SOLARIS_VBOXINST_DIR_ISA)/VBoxQtconfig,),)
615 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_OUT_BIN)/VBoxISAExec $(SOLARIS_VBOXINST_DIR)/VBoxISAExec
616 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../rdesktop-vrdp-keymaps $(SOLARIS_VBOXINST_DIR_ISA)/rdesktop-vrdp-keymaps,)
617 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../additions $(SOLARIS_VBOXINST_DIR_ISA)/additions,)
618endif
619 $(QUIET)$(LN_SYMLINK) -f ./pkginstall.sh $(SOLARIS_VBOXINST_DIR)/ipsinstall.sh
620 $(QUIET)$(if $(VBOX_WITH_QTGUI),$(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $(SOLARIS_USRBIN_DIR)/VBoxQtconfig,)
621 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-zoneaccess.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-zoneaccess.xml
622 $(QUIET)$(if $(VBOX_WITH_WEBSERVICES),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-webservice.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-webservice.xml,)
623 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox-balloonctrl.xml $(SOLARIS_VBOXSMF_DIR)/virtualbox-balloonctrl.xml
624 $(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,)
625 $(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,)
626 $(QUIET)$(SED) \
627 -e "s/_HARDENED_/$(if $(VBOX_WITH_HARDENED),hardened,)/" \
628 --output $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp \
629 $(PATH_BIN)/vboxconfig.sh
630 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh
631 $(QUIET)$(RM) -f $(SOLARIS_VBOXINST_DIR)/vboxconfig.sh.tmp
632 $(QUIET)$(SED) \
633 -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
634 -e "s+@VBOX_DOC_PATH@+/opt/VirtualBox+" \
635 --output $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp \
636 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in
637 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop
638 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_APPS_DIR)/virtualbox.desktop.tmp
639 # S10 cannot deal with icon information in virtrtualbox.xml
640 $(QUIET)$(SED) \
641 -e '/<icon/d' \
642 --output $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp \
643 $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.xml
644 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml
645 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_MIMEXML_DIR)/virtualbox.xml.tmp
646 $(QUIET)$(SED) \
647 -e "s+@VBOX_PRODUCT@+$(VBOX_PRODUCT)+" \
648 --output $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp \
649 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.applications.in
650 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications
651 $(QUIET)$(RM) -f $(SOLARIS_USRSHR_APPREG_DIR)/virtualbox.applications.tmp
652 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.keys $(SOLARIS_USRSHR_MIMEINFO_DIR)/virtualbox.keys
653 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/virtualbox.mime $(SOLARIS_USRSHR_MIMEINFO_DIR)/virtualbox.mime
654 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
655 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_OUT_BIN)/VBox.png $(SOLARIS_USRSHR_PIXMAPS_DIR)/VBox.png
656 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/postinstall.sh $(SOLARIS_BASEINST_DIR)/postinstall.sh
657 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/checkinstall.sh $(SOLARIS_BASEINST_DIR)/checkinstall.sh
658 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/preremove.sh $(SOLARIS_BASEINST_DIR)/preremove.sh
659 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/makepackage.sh $(SOLARIS_BASEINST_DIR)/makepackage.sh
660 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_VBOXINST_DIR)/autoresponse
661 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse $(SOLARIS_BASEINST_DIR)/autoresponse
662 $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space $(SOLARIS_BASEINST_DIR)/vbox.space
663 @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
664 $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend $(SOLARIS_BASEINST_DIR)/vbox.depend,)
665 $(QUIET)$(SED) \
666 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
667 -e "s/@VBOX_VENDOR@/$(VBOX_VENDOR)/g" \
668 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
669 -e "s/@BUILD_TARGET_ARCH@/$(KBUILD_TARGET_ARCH)/g" \
670 -e "s/@VBOX_SVN_REV@/$(VBOX_SVN_REV)/g" \
671 --output $(SOLARIS_BASEINST_DIR)/ReadMe.txt \
672 $(PATH_ROOT)/doc/ReadMe-Solaris.txt
673 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(INSTALL) -m 0644 $(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
674 $(call MSG_L1,Creating install package: $(PKG_FILENAME).tar.gz)
675 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_BASEINST_DIR)/makepackage.sh $(if $(VBOX_WITH_HARDENING),--hardened) \
676 $(SOLARIS_BASEINST_DIR) \
677 $(PKG_FILENAME) \
678 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),neutral,$(KBUILD_TARGET_ARCH)) \
679 $(VBOX_SVN_REV) \
680 $(if $(VBOX_WITH_SOLARIS_VBI),$(VBIPKG_FILENAME).pkg,)
681 $(call MSG_L1,Creating final tar.gz package)
682 $(QUIET)$(SOL_GTAR) -C $(SOLARIS_BASEINST_DIR) -zcvf $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_TAR_GZ_FILES)
683 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz $(SOLARIS_OUT_BIN)
684 @# Clean up files emitted as side-effect or result of packing
685 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).tar.gz
686 $(QUIET)$(RM) -f $(SOLARIS_BASEINST_DIR)/$(PKG_FILENAME).pkg
687 $(QUIET)$(if $(VBOX_WITH_SOLARIS_VBI),$(RM) -f $(SOLARIS_BASEINST_DIR)/$(VBIPKG_FILENAME).pkg,)
688 $(call MSG_L1,Packaging completed.)
689
690
691#
692# 32-bit Main Package
693#
694$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BINS)): \
695 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
696 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
697
698$(addprefix $(SOLARIS_DRIVERINST_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
699 $(SOLARIS_DRIVERINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
700 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
701
702$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_BIN_32)): \
703 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
704 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
705
706$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_EXES)): \
707 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
708 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
709
710$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_STRIP_OBJS)): \
711 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
712 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
713
714$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_NO_STRIP)): \
715 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
716 $(INSTALL) -m 0644 $< $@
717
718$(addprefix $(SOLARIS_VBOXINST_DIR_32)/,$(SOLARIS_QTLIBS)): \
719 $(SOLARIS_VBOXINST_DIR_32)/% : $(SOLARIS_PATH_QT_32)/lib/% | $$(dir $$@)
720 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
721
722#
723# 64-bit Main Package
724#
725$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_BINS)): \
726 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
727 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
728
729$(addprefix $(SOLARIS_DRIVERINST_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
730 $(SOLARIS_DRIVERINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
731 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
732
733$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_EXES)): \
734 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
735 $(INSTALL) -m 0755 $(if $(VBOX_DO_STRIP),-s,) $< $@
736
737$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJS)): \
738 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
739 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
740
741$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_STRIP_OBJ_64)): \
742 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
743 $(if $(VBOX_DO_STRIP),$(SOL_OBJCOPY) $< $@, $(INSTALL) -m 0644 $< $@)
744
745$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_NO_STRIP)): \
746 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
747 $(INSTALL) -m 0644 $< $@
748
749$(addprefix $(SOLARIS_VBOXINST_DIR_64)/,$(SOLARIS_QTLIBS)): \
750 $(SOLARIS_VBOXINST_DIR_64)/% : $(SOLARIS_PATH_QT_64)/lib/% | $$(dir $$@)
751 $(INSTALL) -m 0644 $(if $(VBOX_DO_STRIP),-s,) $< $@
752
753
754#
755# Common (32-bit and 64-bit)
756#
757$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON)): \
758 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
759 $(INSTALL) -m 0644 $< $@
760
761# Driver configuration files
762$(addprefix $(SOLARIS_DRIVERINST_DIR)/,$(SOLARIS_DRIVER_CONFS)): \
763 $(SOLARIS_DRIVERINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
764 $(INSTALL) -m 0644 $< $@
765
766# Common executables
767$(addprefix $(SOLARIS_VBOXINST_DIR)/,$(SOLARIS_COMMON_EXES)): \
768 $(SOLARIS_VBOXINST_DIR)/% : $(PATH_BIN)/% | $$(dir $$@)
769 $(INSTALL) -m 0755 $< $@
770
771# Common MIME icons
772$(addprefix $(SOLARIS_USRSHR_ICONS_DIR)/,$(SOLARIS_COMMON_ICONS)): \
773 $(SOLARIS_USRSHR_ICONS_DIR)/% : $(PATH_BIN)/icons/% | $$(dir $$@)
774 $(INSTALL) -m 0644 $< $@
775
776
777
778#
779# Common (relative symlinks to /opt/VirtualBox/ from /usr/bin/)
780# Some symlinks are created manually in the prepackage steps above (eg. VBoxQtconfig)
781# as those binaries do not originate from $(PATH_BIN)
782#
783$(addprefix $(SOLARIS_USRBIN_DIR)/,$(SOLARIS_USRBIN_LINKS)): \
784 $(SOLARIS_USRBIN_DIR)/% : % | $$(dir $$@)
785 $(LN_SYMLINK) -f ../../$(SOLARIS_VBOXINST_SUBDIR)/VBox.sh $@
786
787
788#
789# -=-=-=-=-=-=-=- VBI package -=-=-=-=-=-=-=-
790#
791ifdef VBOX_WITH_SOLARIS_VBI
792$(SOLARIS_VBI_DIR)/$(VBIPKG_FILENAME).pkg: \
793 $(VBOX_VERSION_STAMP) \
794 $(VBOX_BRAND_LICENSE_TXT) \
795 $(PATH_BIN)/LICENSE \
796 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo \
797 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh \
798 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh \
799 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
800 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi \
801 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi
802 $(call MSG_L1,Installing vbi binaries $(SOLARIS_VBI_DIR))
803 $(QUIET)$(RM) -Rf $(SOLARIS_VBI_DIR)
804 $(QUIET)$(MKDIR) -p $(SOLARIS_VBI_DIR)/amd64
805 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/32/vbi $(SOLARIS_VBI_DIR)/vbi
806 $(QUIET)$(INSTALL) -m 0644 $(PATH_ROOT)/src/VBox/Runtime/r0drv/solaris/vbi/64/vbi $(SOLARIS_VBI_DIR)/amd64/vbi
807 $(call MSG_L1,Installing other files $(SOLARIS_VBI_DIR))
808 $(QUIET)$(SED) \
809 -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
810 -e "s/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g" \
811 -e "s/@VBOX_VERSION_REVSTAMP@/$(PKGINFO_REVSTAMP)/g" \
812 -e "s/@UNAME_P@/$(PKGINFO_ARCH)/g" \
813 --output $(SOLARIS_VBI_DIR)/vboxkern.pkginfo \
814 $(VBOX_PATH_SOL_INST_SRC)/vbi/vboxkern.pkginfo
815 # don't display the license on package install, since 4.0
816 #$(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/LICENSE $(SOLARIS_VBI_DIR)/vbox.copyright
817 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/makepackage.sh $(SOLARIS_VBI_DIR)/makepackage.sh
818 $(QUIET)$(INSTALL) -m 0755 $(VBOX_PATH_SOL_INST_SRC)/vbi/preremove.sh $(SOLARIS_VBI_DIR)/preremove.sh
819 $(call MSG_L1,Creating install package: $(VBIPKG_FILENAME).pkg)
820 $(QUIET)$(REDIRECT) -C $(VBOX_PATH_SOL_INST_SRC) -- $(SOLARIS_VBI_DIR)/makepackage.sh $(SOLARIS_VBI_DIR) $(VBIPKG_FILENAME)
821endif
822
823
824#
825# -=-=-=-=-=-=-=- Debug package -=-=-=-=-=-=-=-
826#
827$(PATH_BIN)/$(DBG_ARCHIVE): \
828 $(VBOX_VERSION_STAMP) \
829 $(VBOX_PATH_SOL_INST_SRC)/Makefile.kmk \
830 $(SOLARIS_DBG_DEPFILES)
831 $(call MSG_L1,Installing debug binaries $(SOLARIS_DBG_DIR))
832 $(call MSG_L1,Packing $@)
833 $(QUIET)/usr/sfw/bin/gtar --owner 0 --group 0 -cjRhf $(PATH_BIN)/$(DBG_ARCHIVE) -C $(SOLARIS_DBG_DIR) $(SOLARIS_DBG_DEPFILES)
834 $(QUIET)$(CHMOD) 0644 $@
835
836#
837# 32-bit Debug package
838#
839$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
840 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
841 $(SOL_DBG_OBJCOPY) $< $@
842
843$(addprefix $(SOLARIS_DBG_DIR_32)/,$(SOLARIS_DRIVER_BINS)): \
844 $(SOLARIS_DBG_DIR_32)/% : $(SOLARIS_OUT_BIN_32)/% | $$(dir $$@)
845 $(SOL_DBG_OBJCOPY) $< $@
846
847
848#
849# 64-bit Debug package
850#
851$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_STRIP_BINS) $(SOLARIS_STRIP_EXES)): \
852 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
853 $(SOL_DBG_OBJCOPY) $< $@
854
855$(addprefix $(SOLARIS_DBG_DIR_64)/,$(SOLARIS_DRIVER_BINS)): \
856 $(SOLARIS_DBG_DIR_64)/% : $(SOLARIS_OUT_BIN_64)/% | $$(dir $$@)
857 $(SOL_DBG_OBJCOPY) $< $@
858
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