pkg/transforms/defaults
author Colin Ellis <panamayacht@gmail.com>
Tue, 01 Feb 2011 13:03:29 +0000
changeset 541 5bbfcb580a3b
parent 506 07e29ccd3531
permissions -rw-r--r--
Locale Updates

#
# 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.
#

#
# For kernel/drv, set .conf files to mode 0644.  Assume all other
# files there are drivers, and give them mode 0755 and reboot-needed.
#
# The (?<!r) construct in the reboot-needed transform is a negative
# lookbehind assertion: it says "only match this regex if the
# previously matched text does NOT match regex r."  So it will match
# all files in the various kernel trees, except for .conf files.
#
<transform file path=.*kernel/.+(?<!\.conf)$ -> default reboot-needed true>


#
# Non-global zones should not have content in kernel, usr/kernel (and
# other kernel dirs) or in boot/.
#
<transform file dir link hardlink path=.*kernel/.* -> set variant.opensolaris.zone global>
<transform dir path=kernel$ -> set variant.opensolaris.zone global>
<transform dir path=.*/kernel$ -> set variant.opensolaris.zone global>

#
# shared objects should generally have mode 0755
#
<transform file path=.*lib/.*\.so.* -> default mode 0755>

#
# Catch some of the collections of largely read-only files
#
<transform file path=usr/lib/help/.+ -> default mode 0444>
<transform file path=usr/share/X11/xkb/.+ -> default mode 0444>
<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+\.properties -> default mode 0644>
<transform file path=usr/share/lib/locale/com/sun/dhcpmgr/.+ -> default mode 0444>
<transform file path=usr/share/fonts/.+ -> default mode 0444>
<transform file path=usr/share/man/.+ -> default mode 0444>


#
# For what's left, go with root:bin 0644, +x for directories
#
#
<transform file dir -> default owner root>
<transform file dir -> default group bin>
<transform file -> default mode 0644>
<transform dir -> default mode 0755>

#
# Defaults for legacy actions
#
<transform legacy -> default arch "$(ARCH)">
<transform legacy -> default variant.arch "$(ARCH)">
<transform legacy -> default hotline "Please contact your local service provider">
<transform legacy -> edit version REV=(.*)\.20[0-9][0-9]\..* REV=\\1.$(LEGACY_REV_DATE)>
<transform legacy -> edit version REV=20[0-9][0-9]\..* REV=$(LEGACY_REV_DATE)>
<transform legacy -> edit version REV=([1-9][0-9]*)$ REV=\\1.$(LEGACY_REV_DATE)>
<transform legacy -> edit version REV=$ REV=$(LEGACY_REV_DATE)>