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 | license LICENSE license="GPLv2 (virtualbox)"
|
---|
10 | group groupname=vboxusers gid=86
|
---|
11 | # The data-xkb was renamed to xkeyboard-config in S11.4, so adjust this when
|
---|
12 | # we have moved our builds away from S11.3.
|
---|
13 | depend fmri=pkg:/x11/keyboard/data-xkb type=require
|
---|
14 | depend fmri=pkg:/system/font/xorg/xorg-core type=require
|
---|
15 | depend fmri=pkg:/system/font/truetype/dejavu type=require
|
---|
16 |
|
---|
17 | # Drop system directories to not have conflicting permissions
|
---|
18 | <transform dir path=etc$ -> drop>
|
---|
19 | <transform dir path=opt$ -> drop>
|
---|
20 | <transform dir path=platform.*$ -> drop>
|
---|
21 | <transform dir path=usr.*$ -> drop>
|
---|
22 | <transform dir path=var$ -> drop>
|
---|
23 | <transform dir path=var/svc$ -> drop>
|
---|
24 | <transform dir path=var/svc/manifest$ -> drop>
|
---|
25 | <transform dir path=var/svc/manifest/application$ -> drop>
|
---|
26 |
|
---|
27 | # Drop all files in root, they are for packaging purposes
|
---|
28 | <transform file path=[^/]*$ -> drop>
|
---|
29 | <transform dir file path=vbox-repo.*$ -> drop>
|
---|
30 |
|
---|
31 | # Drop STREAMS based NetFilter driver, obsolete for Solaris 11
|
---|
32 | <transform file path=platform/i86pc/kernel/drv/amd64/vboxflt$ -> drop>
|
---|
33 | <transform file path=platform/i86pc/kernel/drv/vboxflt\.conf$ -> drop>
|
---|
34 |
|
---|
35 | # Drop all API helper libraries for python 2.x other than 2.7
|
---|
36 | <transform file path=opt/VirtualBox/VBoxPython\.so.*$ -> drop>
|
---|
37 | <transform file path=opt/VirtualBox/VBoxPython2\.so.*$ -> drop>
|
---|
38 | <transform file path=opt/VirtualBox/VBoxPython2_[^7].*\.so.*$ -> drop>
|
---|
39 |
|
---|
40 | # Ignore dependencies of vboxshell.py
|
---|
41 | <transform file path=opt/VirtualBox/vboxshell.py$ -> set pkg.depend.bypass-generate .*>
|
---|
42 |
|
---|
43 | # Ignore dependencies on libpython2.7.so* since it's getting phased out
|
---|
44 | <transform file path=opt/VirtualBox/VBoxPython2_7.*\.so.*$ -> set pkg.depend.bypass-generate .*/libpython2\\.7\\.so.*>
|
---|
45 |
|
---|
46 | # Tweak: do not try to get the dependencies for libGL.so which is needed by Qt
|
---|
47 | <transform file path=opt/VirtualBox/amd64/libQt*GuiVBox\.so\.*$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
48 | <transform file path=opt/VirtualBox/amd64/libQt*PrintSupportVBox\.so\.*$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
49 | <transform file path=opt/VirtualBox/amd64/libQt*WidgetsVBox\.so\.*$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
50 | <transform file path=opt/VirtualBox/amd64/libQt*X11ExtrasVBox\.so\.*$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
51 | <transform file path=opt/VirtualBox/amd64/libQt*XcbQpaVBox\.so\.*$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
52 | <transform file path=opt/VirtualBox/amd64/plugins/platforms/libqxcb\.so$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
53 | <transform file path=opt/VirtualBox/amd64/plugins/xcbglintegrations/libqxcb-glx-integration\.so$ -> set pkg.depend.runpath /usr/lib/mesa/amd64:$PKGDEPEND_RUNPATH>
|
---|
54 |
|
---|
55 | # Some binaries must be SUID.
|
---|
56 | <transform file path=opt/VirtualBox/amd64/(VBoxNetAdpCtl|VBoxNetDHCP|VBoxNetNAT)$ -> set mode 4755>
|
---|
57 | $(HARDENED_ONLY)<transform file path=opt/VirtualBox/amd64/(VirtualBoxVM|VBoxHeadless|VBoxSDL)$ -> set mode 4755>
|
---|
58 |
|
---|
59 | # Set the appropriate pkg variant for drivers (global zone only)
|
---|
60 | <transform file path=platform/i86pc/kernel/drv/amd64/[^/]*$ -> add variant.opensolaris.zone global>
|
---|
61 | <transform file path=platform/i86pc/kernel/drv/amd64/[^/]*$ -> set reboot-needed true>
|
---|
62 | <transform file path=platform/i86pc/kernel/drv/amd64/vboxdrv$ -> emit driver name=vboxdrv perms="* 0600 root sys" perms="vboxdrvu 0666 root sys" devlink=type=ddi_pseudo;name=vboxdrv;minor=vboxdrv\t\D devlink=type=ddi_pseudo;name=vboxdrv;minor=vboxdrvu\t\M0>
|
---|
63 | <transform file path=platform/i86pc/kernel/drv/amd64/vboxnet$ -> emit driver name=vboxnet>
|
---|
64 | <transform file path=platform/i86pc/kernel/drv/amd64/vboxbow$ -> emit driver name=vboxbow>
|
---|
65 | <transform file path=platform/i86pc/kernel/drv/amd64/vboxusbmon$ -> emit driver name=vboxusbmon perms="* 0660 root vboxusers" devlink=type=ddi_pseudo;name=vboxusbmon\t\D>
|
---|
66 | <transform file path=platform/i86pc/kernel/drv/amd64/vboxusb$ -> emit driver name=vboxusb>
|
---|
67 | <transform file path=platform/i86pc/kernel/drv/.*$ -> set group sys>
|
---|
68 |
|
---|
69 | # Handle SMF manifests
|
---|
70 | <transform dir file path=var/svc/manifest/.*$ -> set group sys>
|
---|
71 | <transform file path=var/svc/manifest/.*\.xml$ -> default restart_fmri svc:/system/manifest-import:default>
|
---|