4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Andrzej Szeszo. All rights reserved.
27 <transform dir path=etc$ -> default group sys>
28 <transform dir path=etc/inet$ -> default group sys>
29 <transform dir path=var$ -> default group sys>
31 <transform dir path=etc/profile.d$ -> default group sys>
32 <transform dir path=etc/profile.d/.* -> default group sys>
33 <transform dir path=etc/skel$ -> default group sys>
34 <transform dir path=usr$ -> default group sys>
35 <transform dir path=usr/lib/pkgconfig$ -> default group other>
36 <transform dir path=usr/lib/.*/pkgconfig$ -> default group other>
37 <transform dir path=usr/share$ -> default group sys>
38 <transform dir path=usr/share/application-registry$ -> default group other>
39 <transform dir path=usr/share/aclocal$ -> default group other>
40 <transform dir path=usr/share/doc$ -> default group other>
41 <transform dir path=usr/share/gnome$ -> default group other>
42 <transform dir path=usr/share/lib$ -> default group sys>
43 <transform dir path=usr/share/lib/java$ -> default group sys>
44 <transform dir path=usr/share/lib/java/javadoc$ -> default group other>
47 # Users added by our packages should be blocked from ftp access by default
49 <transform user -> default ftpuser false>
52 # Changes to zoneinfo files on live systems need to trigger a refresh of
53 # the timezone reloader. See tzreload(1m).
55 <transform file link hardlink path=usr/share/lib/zoneinfo/.+ -> add refresh_fmri "svc:/system/timezone:default">
58 # HPN-SSH configuration files should be preserved and cause the service restart
60 <transform file path=etc/hpnssh/sshd?_config -> default preserve renamenew>
61 <transform file path=etc/hpnssh/sshd_config -> default restart_fmri svc:/network/hpnssh:default>
63 # Change in Graphviz plugins should refresh the plugins configuration
64 <transform file link hardlink path=usr/lib.*/graphviz/libgvplugin_ -> \
65 default refresh_fmri svc:/application/graphviz/configure-plugins:default>
68 # Most directories and files under /etc/security are group sys
70 <transform dir path=etc/security$ -> default group sys>
71 <transform dir path=etc/security/exec_attr.d$ -> default group sys>
72 <transform file path=etc/security/exec_attr.d/.* -> default group sys>
73 <transform dir path=etc/security/prof_attr.d$ -> default group sys>
74 <transform file path=etc/security/prof_attr.d/.* -> default group sys>
75 <transform dir path=etc/security/auth_attr.d$ -> default group sys>
76 <transform file path=etc/security/auth_attr.d/.* -> default group sys>
79 # SMF directories and files
81 <transform dir path=lib/svc/manifest -> default group sys>
82 <transform file path=lib/svc/manifest -> default group sys>
83 <transform file path=lib/svc/method/.* -> default mode 0555>
86 # Many files under /usr/share are group other
88 <transform dir path=usr/share/locale(/.+){0,2}$ -> default group other>
89 <transform file path=usr/share/locale(/.+){3}$ -> default group other>
90 <transform dir path=usr/share/applications$ -> default group other>
91 <transform file path=usr/share/applications/.* -> default group other>
92 <transform dir path=usr/share/pixmaps$ -> default group other>
93 <transform file path=usr/share/pixmaps/.* -> default group other>
95 <transform dir path=usr/gnu/share$ -> default group sys>
97 <transform dir path=var/db$ -> default group sys>
98 <transform dir path=var/lib$ -> default group other>
99 <transform dir path=var/log$ -> default group sys>
101 # usr/share/icons, and all its subdirectories at any level are group other
102 <transform dir path=usr/share/icons(/.*){0,1}$ -> default group other>
105 # programs & shared objects should generally have mode 0555
107 <transform file path=.*lib/.*\.so.* -> default mode 0555>
108 <transform file path=.*bin/.* -> default mode 0555>
109 <transform file path=.*lib/inet/.* -> default mode 0555>
111 # files in libexec should have mode 0555
112 <transform file path=usr/libexec/.* -> default mode 0555>
115 # For what's left, go with root:bin 0444 for files, 0755 for directories
117 <transform dir file -> default owner root>
118 <transform dir file -> default group bin>
119 <transform file -> default mode 0444>
120 <transform dir -> default mode 0755>
122 set name=variant.arch value=$(MACH)
125 # Defaults for legacy metadata for SVR4 package information
127 <transform legacy -> default vendor "Project OpenIndiana">
128 <transform legacy -> default hotline \
129 "Please contact your local service provider">
130 <transform legacy -> default arch $(MACH)>
131 <transform legacy -> default category "system">
132 # This is set to the final version number delivered as SVR4 format
133 <transform legacy -> default version "11.11.0,REV=2010.05.25.01.00">
137 # Set the default GCC for mediated links
139 <transform link mediator=gcc mediator-version=13 -> default mediator-priority vendor>
142 # Set the default Python for mediated links
144 <transform link mediator=python mediator-version=3.9 -> default tmp.fmri %{pkg.fmri} >
145 <transform link tmp.fmri=.*runtime/python -> default mediator-priority vendor>
146 <transform link tmp.fmri=.* -> delete tmp.fmri .* >
149 # Set the default Apache for mediated links
151 <transform link mediator=apache mediator-version=2.2 -> default mediator-priority vendor>
154 # Set the default Ruby for mediated links
156 <transform link mediator=ruby mediator-version=2.3 -> default mediator-priority vendor>
159 # Set the default Java for mediated links
161 <transform link mediator=java mediator-version=17 -> default mediator-priority vendor>
164 # Set the default MySQL for mediated links
166 <transform link mediator=mysql mediator-implementation=mariadb mediator-version=10.6 -> default mediator-priority vendor>
169 # Disable gtk3 csd by default
171 <transform link mediator=nocsd mediator-implementation=gtk3-nocsd -> default mediator-priority vendor>
174 # Add a facet.version-lock.{package} to each 'optional' consolidation
175 # incorporation dependency so that we can install without having to
176 # mangle the system in some way.
178 <transform depend type=optional fmri=(pkg:/)?consolidation/.+-incorporation@ -> \
179 default tmp.fmri %{pkg.fmri} >
180 <transform depend tmp.fmri=pkg:/(.+)@.*$ -> \
181 default facet.version-lock.%<1> true >
182 <transform depend tmp.fmri=.*-> delete tmp.fmri .* >
184 <transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
186 # Avoid mangling compressed man pages
187 <transform file path=usr.*/man/.+\.(Z|bzip2|gz|xz)$ -> default mangler.bypass true>
189 # Create default package-level attributes
190 <transform set name=pkg.fmri -> emit set name=userland.info.git-remote \
191 value=$(USERLAND_GIT_REMOTE)>
192 <transform set name=pkg.fmri -> emit set name=userland.info.git-branch \
193 value=$(USERLAND_GIT_BRANCH)>
194 <transform set name=pkg.fmri -> emit set name=userland.info.git-rev \
195 value=$(USERLAND_GIT_REV)>
196 <transform set name=pkg.fmri -> emit set name=userland.info.component \