#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 Jim Klimov
#

<transform file dir path=.*kernel.* -> default group sys>
<transform file path=.*kernel/drv/.+\.conf -> default mode 0644>
<transform file path=.*kernel/drv/.+ -> default mode 0755>
<transform file path=.*kernel/drv/$(MACH64)/.+ -> default mode 0755>
<transform file path=.*kernel/.+(?<!\.conf)$ -> default reboot-needed true>

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

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.summary value="$(COMPONENT_SUMMARY)"
set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

set name=variant.opensolaris.zone value="global"

license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'

# NOTE: This is not a "driver" but a module (nothing to install with add_drv)
file path=kernel/strmod/$(MACH64)/brdg mode=555 owner=root group=sys
file path=kernel/strmod/brdg mode=555 owner=root group=sys
file path=usr/bin/$(MACH64)/brdgadm
file path=usr/bin/brdgadm