#
# 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 2017 Aurelien Larcher
# Copyright 2019 Michal Nowak
# Copyright 2021 Andreas Wacknitz
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_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)

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

# Drop info dir files:
<transform file path=.+/share/info/dir -> drop>

# Compatibility links
link path=usr/bin/gawk target=../gnu/bin/awk facet.compat.gnulinks=true
link path=usr/bin/gawkbug target=../gnu/bin/awkbug facet.compat.gnulinks=true
link path=usr/share/man/man1/gawk.1 \
    target=../../../gnu/share/man/man1/awk.1 facet.compat.gnulinks=all
link path=usr/share/man/man1/gawkbug.1 \
    target=../../../gnu/share/man/man1/awkbug.1 facet.compat.gnulinks=all
link path=usr/share/man/man1/pm-gawk.1 \
    target=../../../gnu/share/man/man1/pm-awk.1 facet.compat.gnulinks=all

# The following link conflicts with an action from system/extended-system-utilities:
#link path=usr/bin/awk target=gawk

file usr/bin/gawk path=usr/gnu/bin/awk
file usr/bin/gawkbug path=usr/gnu/bin/awkbug

file path=etc/profile.d/gawk.csh
file path=etc/profile.d/gawk.sh
file path=usr/include/gawkapi.h
file path=usr/lib/$(MACH64)/gawk/filefuncs.so
file path=usr/lib/$(MACH64)/gawk/fnmatch.so
file path=usr/lib/$(MACH64)/gawk/fork.so
file path=usr/lib/$(MACH64)/gawk/inplace.so
file path=usr/lib/$(MACH64)/gawk/intdiv.so
file path=usr/lib/$(MACH64)/gawk/ordchr.so
file path=usr/lib/$(MACH64)/gawk/readdir.so
file path=usr/lib/$(MACH64)/gawk/readfile.so
file path=usr/lib/$(MACH64)/gawk/revoutput.so
file path=usr/lib/$(MACH64)/gawk/revtwoway.so
file path=usr/lib/$(MACH64)/gawk/rwarray.so
file path=usr/lib/$(MACH64)/gawk/time.so
file path=usr/libexec/awk/grcat
file path=usr/libexec/awk/pwcat
file path=usr/share/awk/assert.awk
file path=usr/share/awk/bits2str.awk
file path=usr/share/awk/cliff_rand.awk
file path=usr/share/awk/ctime.awk
file path=usr/share/awk/ftrans.awk
file path=usr/share/awk/getopt.awk
file path=usr/share/awk/gettime.awk
file path=usr/share/awk/group.awk
file path=usr/share/awk/have_mpfr.awk
file path=usr/share/awk/inplace.awk
file path=usr/share/awk/intdiv0.awk
file path=usr/share/awk/isnumeric.awk
file path=usr/share/awk/join.awk
file path=usr/share/awk/libintl.awk
file path=usr/share/awk/noassign.awk
file path=usr/share/awk/ns_passwd.awk
file path=usr/share/awk/ord.awk
file path=usr/share/awk/passwd.awk
file path=usr/share/awk/processarray.awk
file path=usr/share/awk/quicksort.awk
file path=usr/share/awk/readable.awk
file path=usr/share/awk/readfile.awk
file path=usr/share/awk/rewind.awk
file path=usr/share/awk/round.awk
file path=usr/share/awk/shellquote.awk
file path=usr/share/awk/strtonum.awk
file path=usr/share/awk/tocsv.awk
file path=usr/share/awk/walkarray.awk
file path=usr/share/awk/zerofile.awk
file path=usr/share/info/dir
file path=usr/share/info/gawk.info
file path=usr/share/info/gawk_api-figure1.png
file path=usr/share/info/gawk_api-figure2.png
file path=usr/share/info/gawk_api-figure3.png
file path=usr/share/info/gawk_array-elements.png
file path=usr/share/info/gawk_general-program.png
file path=usr/share/info/gawk_process-flow.png
file path=usr/share/info/gawk_statist.jpg
file path=usr/share/info/gawkinet.info
file path=usr/share/info/gawkworkflow.info
file path=usr/share/info/pm-gawk.info
file path=usr/share/locale/bg/LC_MESSAGES/gawk.mo
file path=usr/share/locale/ca/LC_MESSAGES/gawk.mo
file path=usr/share/locale/da/LC_MESSAGES/gawk.mo
file path=usr/share/locale/de/LC_MESSAGES/gawk.mo
file path=usr/share/locale/es/LC_MESSAGES/gawk.mo
file path=usr/share/locale/fi/LC_MESSAGES/gawk.mo
file path=usr/share/locale/fr/LC_MESSAGES/gawk.mo
file path=usr/share/locale/id/LC_MESSAGES/gawk.mo
file path=usr/share/locale/it/LC_MESSAGES/gawk.mo
file path=usr/share/locale/ja/LC_MESSAGES/gawk.mo
file path=usr/share/locale/ka/LC_MESSAGES/gawk.mo
file path=usr/share/locale/ko/LC_MESSAGES/gawk.mo
file path=usr/share/locale/ms/LC_MESSAGES/gawk.mo
file path=usr/share/locale/nl/LC_MESSAGES/gawk.mo
file path=usr/share/locale/pl/LC_MESSAGES/gawk.mo
file path=usr/share/locale/pt/LC_MESSAGES/gawk.mo
file path=usr/share/locale/pt_BR/LC_MESSAGES/gawk.mo
file path=usr/share/locale/ro/LC_MESSAGES/gawk.mo
file path=usr/share/locale/sr/LC_MESSAGES/gawk.mo
file path=usr/share/locale/sv/LC_MESSAGES/gawk.mo
file path=usr/share/locale/uk/LC_MESSAGES/gawk.mo
file path=usr/share/locale/vi/LC_MESSAGES/gawk.mo
file path=usr/share/locale/zh_CN/LC_MESSAGES/gawk.mo
file usr/share/man/man1/gawk.1 path=usr/gnu/share/man/man1/awk.1
file usr/share/man/man1/gawkbug.1 path=usr/gnu/share/man/man1/awkbug.1
file usr/share/man/man1/pm-gawk.1 path=usr/gnu/share/man/man1/pm-awk.1
file path=usr/share/man/man3/filefuncs.3am
file path=usr/share/man/man3/fnmatch.3am
file path=usr/share/man/man3/fork.3am
file path=usr/share/man/man3/inplace.3am
file path=usr/share/man/man3/ordchr.3am
file path=usr/share/man/man3/readdir.3am
file path=usr/share/man/man3/readfile.3am
file path=usr/share/man/man3/revoutput.3am
file path=usr/share/man/man3/revtwoway.3am
file path=usr/share/man/man3/rwarray.3am
file path=usr/share/man/man3/time.3am