python36: add libressl patch
[unleashed-userland.git] / transforms / generate-cleanup
blob70ad01c4e15a108159e32b9169689ee9af782d73
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
21 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
25 # This set of transforms is intended to be used to convert a set of actions
26 # generated by "pkgsend generate ..." into a more generic set of actions with
27 # most attributes removed and paths converted to use strategically placed
28 # macros to remove plartform or version specifics.
31 # convert the "pkgsend generate" file "hash" to a common value
32 <transform file -> set action.hash 'NOHASH'>
34 # drop extra attribute data that "pkgsend generate" might have added
35 <transform dir file link hardlink license -> delete timestamp .*>
36 <transform dir file link hardlink license -> delete pkg.size .*>
37 <transform dir file link hardlink license -> delete owner .*>
38 <transform dir file link hardlink license -> delete group .*>
39 <transform dir file link hardlink license -> delete mode .*>
41 #<transform set name=pkg.fmri -> edit value "@[^ \t\n\r\f\v]*" "@$!(IPS_COMPONENT_VERSION),$!(BUILD_VERSION)">
43 <transform dir file link hardlink -> \
44         edit path "/(sparcv9|amd64)$" "/$!(MACH64)">
45 <transform dir file link hardlink -> \
46         edit path "/(sparcv9|amd64)/" "/$!(MACH64)/">
47 <transform dir file link hardlink -> \
48         edit path "/(sparcv7|i86)$" "/$!(MACH32)">
49 <transform dir file link hardlink -> \
50         edit path "/(sparcv7|i86)/" "/$!(MACH32)/">
51 <transform dir file link hardlink -> \
52         edit path "/(sparc|i386)$" "/$!(MACH)">
53 <transform dir file link hardlink -> \
54         edit path "/(sparc|i386)/" "/$!(MACH)/">
55 <transform dir file link hardlink -> \
56         edit path "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
58 <transform dir file link hardlink -> \
59         edit target "/(sparcv9|amd64)$" "/$!(MACH64)">
60 <transform dir file link hardlink -> \
61         edit target "/(sparcv9|amd64)/" "/$!(MACH64)/">
62 <transform dir file link hardlink -> \
63         edit target "/(sparcv7|i86)$" "/$!(MACH32)">
64 <transform dir file link hardlink -> \
65         edit target "/(sparcv7|i86)/" "/$!(MACH32)/">
66 <transform dir file link hardlink -> \
67         edit target "/(sparc|i386)$" "/$!(MACH)">
68 <transform dir file link hardlink -> \
69         edit target "/(sparc|i386)/" "/$!(MACH)/">
70 <transform dir file link hardlink -> \
71         edit target "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
73 # <transform dir file link hardlink -> \
74 #       edit path "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
75 # <transform dir file link hardlink -> \
76 #       edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
78 <transform dir file link hardlink -> \
79         edit path "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
80 <transform dir file link hardlink -> \
81         edit target "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
83 <transform dir file link hardlink -> \
84         edit path "$(IPS_VERSION)" "$!(IPS_VERSION)">
85 <transform dir file link hardlink -> \
86         edit target "$(IPS_VERSION)" "$!(IPS_VERSION)">
88 # convert temporary macro names to their real name
89 <transform set -> \
90         edit value "\$!\((.*)\)" "$(\1)">
91 <transform dir file link hardlink -> \
92         edit path "\$!\((.*)\)" "$(\1)">
93 <transform dir file link hardlink -> \
94         edit target "\$!\((.*)\)" "$(\1)">
95 <transform dir file link hardlink -> \
96         edit path "\$!\((.*)\)" "$(\1)">
97 <transform dir file link hardlink -> \
98         edit target "\$!\((.*)\)" "$(\1)">
99 <transform dir file link hardlink -> \
100         edit path "\$!\((.*)\)" "$(\1)">
101 <transform dir file link hardlink -> \
102         edit target "\$!\((.*)\)" "$(\1)">
103 <transform dir file link hardlink -> \
104         edit path "\$!\((.*)\)" "$(\1)">
105 <transform dir file link hardlink -> \
106         edit target "\$!\((.*)\)" "$(\1)">
107 <transform dir file link hardlink -> \
108         edit path "\$!\((.*)\)" "$(\1)">
109 <transform dir file link hardlink -> \
110         edit target "\$!\((.*)\)" "$(\1)">
112 <transform dir path=mangled -> drop>
113 <transform dir file link hardlink path=mangled/(.*) -> drop>