#
# 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 (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2016, Jim Klimov
#

<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
set name=pkg.fmri \
    value=pkg:/compress/p7zip@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.description \
    value="P7zip is a unix port of the 7-Zip utility.  It has support for numerous compression algorithms, including LZMA and LZMA2, as well as for various archive and compression file formats, including 7z, xz, bzip2, gzip, tar, zip (read-write) and cab, cpio, deb, lzh, rar, and rpm (read-only)."
set name=pkg.summary value="The p7zip compression and archiving utility"
set name=com.oracle.info.description value="the p7zip compression and archiving utility"
set name=info.classification value=org.opensolaris.category.2008:System/Core
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
set name=org.opensolaris.arc-caseid \
    value=PSARC/2007/617
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license copying.txt license=LGPLv2.1+
license unRarLicense.txt license=unRAR

# add links to libs for mySplitCommandLine.cpp patch
link path=usr/lib/$(MACH64)/7z/7z.so target=../../p7zip/$(MACH64)/7z.so
link path=usr/lib/$(MACH64)/7z/Codecs/Rar.so target=../../../p7zip/$(MACH64)/Codecs/Rar.so

<transform file path=usr/lib/p7zip/$(MACH64)/7z ->default mode 0555>
<transform file path=usr/lib/p7zip/$(MACH64)/7zCon.sfx ->default mode 0555>
<transform file path=usr/lib/p7zip/$(MACH64)/7za ->default mode 0555>
<transform file path=usr/lib/p7zip/$(MACH64)/7zr ->default mode 0555>

file path=usr/bin/7z
file path=usr/bin/7za
file path=usr/bin/7zr
file path=usr/lib/p7zip/$(MACH64)/7z
file path=usr/lib/p7zip/$(MACH64)/7z.so
file path=usr/lib/p7zip/$(MACH64)/7zCon.sfx
file path=usr/lib/p7zip/$(MACH64)/7za
file path=usr/lib/p7zip/$(MACH64)/7zr
file path=usr/lib/p7zip/$(MACH64)/Codecs/Rar.so
file path=usr/share/doc/p7zip/ChangeLog
file path=usr/share/doc/p7zip/DOC/7zC.txt
file path=usr/share/doc/p7zip/DOC/7zFormat.txt
file path=usr/share/doc/p7zip/DOC/License.txt
file path=usr/share/doc/p7zip/DOC/MANUAL/7-zip.chm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/add.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/bench.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/delete.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/extract.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/extract_full.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/hash.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/index.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/list.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/rename.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/style.css
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/test.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/commands/update.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/exit_codes.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/index.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/style.css
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/ar_exclude.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/ar_include.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/ar_no.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/bb.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/bs.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/charset.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/exclude.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/include.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/index.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/large_pages.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/list_tech.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/method.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/output_dir.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/overwrite.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/password.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/recurse.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/sa.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/scc.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/scrc.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/sdel.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/sfx.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/shared.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/sni.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/sns.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/spf.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/ssc.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/stdin.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/stdout.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/stl.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/stop_switch.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/stx.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/style.css
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/type.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/update.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/volume.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/working_dir.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/switches/yes.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/cmdline/syntax.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/about.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/benchmark.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/index.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/menu.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/options.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/plugins/7-zip/add.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/plugins/7-zip/extract.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/plugins/7-zip/index.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/plugins/7-zip/style.css
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/plugins/index.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/plugins/style.css
file path=usr/share/doc/p7zip/DOC/MANUAL/fm/style.css
file path=usr/share/doc/p7zip/DOC/MANUAL/general/7z.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/general/faq.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/general/formats.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/general/index.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/general/license.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/general/performance.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/general/style.css
file path=usr/share/doc/p7zip/DOC/MANUAL/general/thanks.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/start.htm
file path=usr/share/doc/p7zip/DOC/MANUAL/style.css
file path=usr/share/doc/p7zip/DOC/Methods.txt
file path=usr/share/doc/p7zip/DOC/Struct.EAP
file path=usr/share/doc/p7zip/DOC/Struct.ldb
file path=usr/share/doc/p7zip/DOC/copying.txt
file path=usr/share/doc/p7zip/DOC/lzma.txt
file path=usr/share/doc/p7zip/DOC/readme.txt
file path=usr/share/doc/p7zip/DOC/src-history.txt
file path=usr/share/doc/p7zip/DOC/unRarLicense.txt
file path=usr/share/doc/p7zip/README
file path=usr/share/man/man1/7z.1
file path=usr/share/man/man1/7za.1
file path=usr/share/man/man1/7zr.1