1 | # Transmogrification from prepared package directory layout to IPS
|
---|
2 | set name=pkg.fmri value=$(VBOX_PKGNAME)@@VBOX_VERSION_STRING@,5.11-0.0.0.@VBOX_SVN_REV@.0.0.0
|
---|
3 | set name=pkg.human-version value="@VBOX_VERSION_STRING@r@VBOX_SVN_REV@"
|
---|
4 | set name=pkg.summary value="@VBOX_PRODUCT@"
|
---|
5 | set name=pkg.description value="A powerful PC virtualization solution"
|
---|
6 | set name=variant.arch value=@UNAME_P@
|
---|
7 | set name=variant.opensolaris.zone value=global value=nonglobal
|
---|
8 | set name=info.classification value=org.opensolaris.category.2008:System/Virtualization
|
---|
9 |
|
---|
10 | # Drop system directories to not have conflicting permissions
|
---|
11 | <transform dir path=etc$ -> drop>
|
---|
12 | <transform dir path=opt$ -> drop>
|
---|
13 | <transform dir path=platform.*$ -> drop>
|
---|
14 | <transform dir path=usr.*$ -> drop>
|
---|
15 | <transform dir path=var$ -> drop>
|
---|
16 | <transform dir path=var/svc$ -> drop>
|
---|
17 | <transform dir path=var/svc/manifest$ -> drop>
|
---|
18 | <transform dir path=var/svc/manifest/application$ -> drop>
|
---|
19 |
|
---|
20 | # Drop all files in root, they are for packaging purposes
|
---|
21 | <transform file path=[^/]*$ -> drop>
|
---|
22 | <transform dir file path=vbox-repo.*$ -> drop>
|
---|
23 |
|
---|
24 | # Drop STREAMS based NetFilter driver, obsolete for Solaris 11
|
---|
25 | <transform file path=platform/i86pc/kernel/drv/amd64/vboxflt$ -> drop>
|
---|
26 | <transform file path=platform/i86pc/kernel/drv/vboxflt\.conf$ -> drop>
|
---|
27 |
|
---|
28 | # Drop legacy libraries, needed only for Solaris 10
|
---|
29 | <transform dir path=opt/VirtualBox/amd64/legacy$ -> drop>
|
---|
30 | <transform file path=opt/VirtualBox/amd64/legacy/.*$ -> drop>
|
---|
31 |
|
---|
32 | # Drop all API helper libraries for python 2.x other than 2.7
|
---|
33 | <transform file path=opt/VirtualBox/64/VBoxPython2\.so.*$ -> drop>
|
---|
34 | <transform file path=opt/VirtualBox/(64/)?VBoxPython2_[^7].*\.so.*$ -> drop>
|
---|
35 |
|
---|
36 | # Tweak: do not try to get the dependencies for libGL.so which is needed by Qt
|
---|
37 | <transform file path=opt/VirtualBox/amd64/libQt5GuiVBox\.so\.5$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
38 | <transform file path=opt/VirtualBox/amd64/libQt5PrintSupportVBox\.so\.5$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
39 | <transform file path=opt/VirtualBox/amd64/libQt5WidgetsVBox\.so\.5$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
40 | <transform file path=opt/VirtualBox/amd64/libQt5X11ExtrasVBox\.so\.5$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
41 | <transform file path=opt/VirtualBox/amd64/libQt5XcbQpaVBox\.so\.5$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
42 | <transform file path=opt/VirtualBox/amd64/plugins/platforms/libqxcb\.so$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
43 | <transform file path=opt/VirtualBox/amd64/plugins/xcbglintegrations/libqxcb-glx-integration\.so$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
44 |
|
---|
45 | # Some binaries must be SUID.
|
---|
46 | <transform file path=opt/VirtualBox/amd64/(VBoxNetAdpCtl|VBoxNetDHCP|VBoxNetNAT)$ -> set mode 4755>
|
---|
47 | $(HARDENED_ONLY)<transform file path=opt/VirtualBox/amd64/(VirtualBoxVM|VBoxHeadless|VBoxSDL)$ -> set mode 4755>
|
---|
48 |
|
---|
49 | # Set the appropriate pkg variant for drivers (global zone only)
|
---|
50 | <transform file path=platform/i86pc/kernel/drv/amd64/[^/]*$ -> add variant.opensolaris.zone global>
|
---|
51 | <transform file path=platform/i86pc/kernel/drv/.*$ -> set group sys>
|
---|
52 |
|
---|
53 | # Handle SMF manifests
|
---|
54 | <transform dir file path=var/svc/manifest/.*$ -> set group sys>
|
---|
55 | <transform file path=var/svc/manifest/.*\.xml$ -> default restart_fmri svc:/system/manifest-import:default>
|
---|
56 |
|
---|
57 | # todo:
|
---|
58 | # resolve dependencies properly for python
|
---|
59 | <transform file path=opt/VirtualBox/vboxshell\.py$ -> drop>
|
---|