26N/A#
26N/A# CDDL HEADER START
26N/A#
26N/A# The contents of this file are subject to the terms of the
26N/A# Common Development and Distribution License (the "License").
26N/A# You may not use this file except in compliance with the License.
26N/A#
26N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
26N/A# or http://www.opensolaris.org/os/licensing.
26N/A# See the License for the specific language governing permissions
26N/A# and limitations under the License.
26N/A#
26N/A# When distributing Covered Code, include this CDDL HEADER in each
26N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
26N/A# If applicable, add the following below this CDDL HEADER, with the
26N/A# fields enclosed by brackets "[]" replaced with your own identifying
26N/A# information: Portions Copyright [yyyy] [name of copyright owner]
26N/A#
26N/A# CDDL HEADER END
26N/A#
99N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
26N/A#
26N/A
26N/A#
26N/A# These transforms drop the information that we don't really care about when
26N/A# comparing manifests for change.
26N/A#
26N/A
26N/A# drop actions that don't apply to the architecture we are on
99N/A#<transform dir file link hardlink variant.arch=(?!$(ARCH)) -> drop>
26N/A
26N/A# drop the license actions from the manifests, we aren't going to compare them
26N/A<transform license -> drop>
26N/A
26N/A# remove the version information from the dependency actions
26N/A<transform depend -> edit fmri "@[^ \t\n\r\f\v]*" "">
26N/A
26N/A# normalize the pkg.fmri for the current build
26N/A<transform set name=pkg.fmri -> \
26N/A edit value "@[^ \t\n\r\f\v]*" \
26N/A "@$!(IPS_COMPONENT_VERSION),$!(BUILD_VERSION)">
26N/A
26N/A# convert temporary macro names to their real name
26N/A<transform set -> edit value "\$!\((.*)\)" "$(\1)">
26N/A<transform set -> edit value "\$!\((.*)\)" "$(\1)">
26N/A
26N/A# standardize the file hashes
26N/A<transform file -> set action.hash 'NOHASH'>
26N/A
26N/A# drop extra attribute data that we don't want to compare
26N/A<transform dir file link hardlink -> delete timestamp .*>
44N/A<transform dir file link hardlink -> delete pkg.csize .*>
44N/A<transform dir file link hardlink -> delete pkg.chash .*>
99N/A<transform dir file link hardlink -> delete chash .*>
26N/A<transform dir file link hardlink -> delete pkg.size .*>
99N/A<transform dir file link hardlink -> delete elfarch .*>
99N/A<transform dir file link hardlink -> delete elfbits .*>
99N/A<transform dir file link hardlink -> delete elfhash .*>
26N/A<transform dir file link hardlink -> delete owner .*>
26N/A<transform dir file link hardlink -> delete group .*>
26N/A<transform dir file link hardlink -> delete mode .*>
26N/A<transform dir file link hardlink -> delete variant.arch .*>
44N/A<transform dir file link hardlink -> delete preserve .*>
44N/A<transform dir file link hardlink -> delete original_name .*>