author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Fri, 26 Jun 2015 17:12:16 -0700 | |
changeset 1476 | db63a2409b45 |
parent 1450 | 579f8dafeb45 |
permissions | -rw-r--r-- |
1450
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
1 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
2 |
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
3 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
4 |
# Permission is hereby granted, free of charge, to any person obtaining a |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
5 |
# copy of this software and associated documentation files (the "Software"), |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
6 |
# to deal in the Software without restriction, including without limitation |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
7 |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
8 |
# and/or sell copies of the Software, and to permit persons to whom the |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
9 |
# Software is furnished to do so, subject to the following conditions: |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
10 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
11 |
# The above copyright notice and this permission notice (including the next |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
12 |
# paragraph) shall be included in all copies or substantial portions of the |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
13 |
# Software. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
14 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
15 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
16 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
17 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
18 |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
19 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
20 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
21 |
# DEALINGS IN THE SOFTWARE. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
22 |
|
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
23 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
24 |
# For packagers: |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
25 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
26 |
# This ruleset is useful for "system" components-- ones which are expected |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
27 |
# to appear primarily in the global zone, but which may have some small |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
28 |
# pieces (man pages, header files) which may need to appear in all zones. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
29 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
30 |
# The current rules specify that all payload-bearing actions (file, |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
31 |
# dir, hardlink, link) should appear *only* in the global zone, with |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
32 |
# the following exceptions: |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
33 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
34 |
# - man pages appear in all zones |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
35 |
# - header files appear in all zones |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
36 |
# - mdb(1) modules appear in all zones |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
37 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
38 |
# You may well have other actions which you wish to appear in all zones. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
39 |
# An example would be an administrative utility for a driver which has |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
40 |
# been virtualized to work within zones. For those actions you wish to |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
41 |
# appear in all zones, add the following attribute to your action. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
42 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
43 |
# variant.opensolaris.zone=__NODEFAULT |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
44 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
45 |
# You DO NOT need to specify __NODEFAULT for man pages, headers, or |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
46 |
# mdb modules, as those are covered by the automatic rules below. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
47 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
48 |
# Note: When you specify variant.opensolaris.zone=__NODEFAULT, the |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
49 |
# net effect is that *no* variant.opensolaris.zone attribute will |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
50 |
# appear in the post-processed manifest. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
51 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
52 |
|
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
53 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
54 |
# For packaging nerds: |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
55 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
56 |
# We have a problem to solve here: To make an action appear in all zones, |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
57 |
# it should have *no* variant.opensolaris.zone attribute. So it's a bit |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
58 |
# more complicated to use "default". |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
59 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
60 |
# Here's what we do: we use "default" to set all payload bearing actions |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
61 |
# which have no variant.opensolaris.zone attribute to be |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
62 |
# variant.opensolaris.zone=global. For those actions which need to appear |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
63 |
# in all zones, the packager must specify |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
64 |
# variant.opensolaris.zone=__NODEFAULT. Additionally we have some rules |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
65 |
# which set __NODEFAULT for a few classes of well known things, like man |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
66 |
# pages and headers. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
67 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
68 |
# We then go through and clean up all of the __NODEFAULTed attributes by |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
69 |
# simply deleting them. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
70 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
71 |
|
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
72 |
# Man pages should appear in all zones. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
73 |
<transform dir file link hardlink path=.*/man/.* -> default variant.opensolaris.zone __NODEFAULT> |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
74 |
<transform dir path=.*/man$ -> default variant.opensolaris.zone __NODEFAULT> |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
75 |
|
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
76 |
# Headers should appear in all zones. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
77 |
<transform dir file link hardlink path=.*/include/.* -> default variant.opensolaris.zone __NODEFAULT> |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
78 |
<transform dir path=.*/include$ -> default variant.opensolaris.zone __NODEFAULT> |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
79 |
|
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
80 |
# MDB modules should appear in all zones, as one might debug a crash dump |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
81 |
# in a zone. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
82 |
<transform dir file link hardlink path=.*/mdb/.* -> default variant.opensolaris.zone __NODEFAULT> |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
83 |
<transform dir path=.*/mdb$ -> default variant.opensolaris.zone __NODEFAULT> |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
84 |
|
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
85 |
# Everything else is global zone only unless the user overrides |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
86 |
# action-by-action with __NODEFAULT. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
87 |
<transform dir file link hardlink -> default variant.opensolaris.zone global> |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
88 |
|
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
89 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
90 |
# Buff out the __NODEFAULT attributes. |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
91 |
# |
579f8dafeb45
18692834 Add i915 and drm to the X consolidation
rfishel <randy.fishel@oracle.com>
parents:
diff
changeset
|
92 |
<transform dir file link hardlink -> delete variant.opensolaris.zone __NODEFAULT> |