VirtualBox

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

Last change on this file since 43257 was 42491, checked in by vboxsync, 12 years ago

Autostart: Support for Solaris

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