#
# 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) 2016 Jim Klimov. All rights reserved.
#

set name=pkg.fmri \
    value=pkg:/system/storage/qphotorec@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="QPhotoRec - GUI for toolkit for file un-deletion and other forensics"
set name=pkg.description value="QPhotoRec - GUI for toolkit for file un-deletion and other forensics"
set name=info.classification value="org.opensolaris.category.2008:System/Administration and Configuration"
set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=info.upstream-url value=https://www.cgsecurity.org/wiki/PhotoRec
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

license COPYING license="GPL2+"

# pull the manpages out of the component dir
<transform file path=usr/share/man/(man3/.+$) -> set action.hash %<\1> >

<transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted>
<transform file path=usr/share/applications/.* ->  default restart_fmri svc:/application/desktop-cache/desktop-mime-cache:default>
<transform file path=usr/share/applications/.* ->  default restart_fmri svc:/application/desktop-cache/mime-types-cache:default>

file path=usr/bin/qphotorec
file path=usr/share/icons/hicolor/scalable/apps/qphotorec.svg
file path=usr/share/icons/hicolor/48x48/apps/qphotorec.png
file path=usr/share/man/zh_CN/man8/qphotorec.8
file path=usr/share/man/man8/qphotorec.8

# The desktop file is available in sources... downside - hardcoded /usr/bin
file linux/qphotorec.desktop \
    path=usr/share/applications/photorec.desktop
file usr/share/icons/hicolor/48x48/apps/qphotorec.png \
    path=usr/share/pixmaps/qphotorec.png