# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # # # This set of transforms is intended to be used to convert a set of actions # generated by "pkgsend generate ..." into a more generic set of actions with # most attributes removed and paths converted to use strategically placed # macros to remove plartform or version specifics. # # convert the "pkgsend generate" file "hash" to a common value set action.hash 'NOHASH'> # drop extra attribute data that "pkgsend generate" might have added delete timestamp .*> delete pkg.size .*> delete owner .*> delete group .*> delete mode .*> # edit value "@[^ \t\n\r\f\v]*" "@$!(IPS_COMPONENT_VERSION),$!(BUILD_VERSION)"> \ edit path "/(sparcv9|amd64)$" "/$!(MACH64)"> \ edit path "/(sparcv9|amd64)/" "/$!(MACH64)/"> \ edit path "/(sparcv7|i86)$" "/$!(MACH32)"> \ edit path "/(sparcv7|i86)/" "/$!(MACH32)/"> \ edit path "/(sparc|i386)$" "/$!(MACH)"> \ edit path "/(sparc|i386)/" "/$!(MACH)/"> \ edit path "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)"> \ edit target "/(sparcv9|amd64)$" "/$!(MACH64)"> \ edit target "/(sparcv9|amd64)/" "/$!(MACH64)/"> \ edit target "/(sparcv7|i86)$" "/$!(MACH32)"> \ edit target "/(sparcv7|i86)/" "/$!(MACH32)/"> \ edit target "/(sparc|i386)$" "/$!(MACH)"> \ edit target "/(sparc|i386)/" "/$!(MACH)/"> \ edit target "/(sparc|i386)-(sun|pc)-solaris\d\.\d+" "/$!(MACH)-$!(PLAT)-solaris$!(SOLARIS_RELEASE)"> # \ # edit path "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)"> # \ # edit target "$(COMPONENT_NAME)" "$!(COMPONENT_NAME)"> \ edit path "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)"> \ edit target "$(COMPONENT_VERSION)" "$!(COMPONENT_VERSION)"> \ edit path "$(IPS_VERSION)" "$!(IPS_VERSION)"> \ edit target "$(IPS_VERSION)" "$!(IPS_VERSION)"> # convert temporary macro names to their real name \ edit value "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)"> \ edit path "\$!\((.*)\)" "$(\1)"> \ edit target "\$!\((.*)\)" "$(\1)">