add openntpd-6.2p3
[unleashed-userland.git] / transforms / generate-cleanup
blob6199430802e8865164969c04d236e5382a127957
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 "/(sparc|i386)$" "/$!(MACH32)">
49 <transform dir file link hardlink -> \
50         edit path "/(sparc|i386)/" "/$!(MACH32)/">
51 <transform dir file link hardlink -> \
52         edit path "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH32)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
54 <transform dir file link hardlink -> \
55         edit target "/(sparcv9|amd64)$" "/$!(MACH64)">
56 <transform dir file link hardlink -> \
57         edit target "/(sparcv9|amd64)/" "/$!(MACH64)/">
58 <transform dir file link hardlink -> \
59         edit target "/(sparcv7|i86)$" "/$!(MACH32)">
60 <transform dir file link hardlink -> \
61         edit target "/(sparcv7|i86)/" "/$!(MACH32)/">
62 <transform dir file link hardlink -> \
63         edit target "/(sparc|i386)$" "/$!(MACH32)">
64 <transform dir file link hardlink -> \
65         edit target "/(sparc|i386)/" "/$!(MACH32)/">
66 <transform dir file link hardlink -> \
67         edit target "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH32)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)">
69 # <transform dir file link hardlink -> \
70 #       edit path "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
71 # <transform dir file link hardlink -> \
72 #       edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)">
74 <transform dir file link hardlink -> \
75         edit path "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
76 <transform dir file link hardlink -> \
77         edit target "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)">
79 <transform dir file link hardlink -> \
80         edit path "$(IPS_VERSION)" "$!(IPS_VERSION)">
81 <transform dir file link hardlink -> \
82         edit target "$(IPS_VERSION)" "$!(IPS_VERSION)">
84 # convert temporary macro names to their real name
85 <transform set -> \
86         edit value "\$!\((.*)\)" "$(\1)">
87 <transform dir file link hardlink -> \
88         edit path "\$!\((.*)\)" "$(\1)">
89 <transform dir file link hardlink -> \
90         edit target "\$!\((.*)\)" "$(\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)">
108 <transform dir path=mangled -> drop>
109 <transform dir file link hardlink path=mangled/(.*) -> drop>