#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms 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 2014 Alexander Pyhalov. All rights reserved.
#

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.source-url value=$(COMPONENT_ARCHIVE_URL)
set name=org.opensolaris.consolidation value=$(CONSOLIDATION)

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

file files/gio-module-cache.xml \
    path=lib/svc/manifest/application/desktop-cache/gio-module-cache.xml
file files/gio-module-cache.sh path=lib/svc/method/gio-module-cache
file files/gio-module-cache.8s path=usr/share/man/man8s/gio-module-cache.8s

# Deliver empty loaders.cache files for gdk-pixbuf and make sure they are
# updated once installed.  This will also make sure they are removed when the
# package is uninstalled.
file files/empty path=usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
    preserve=true \
    refresh_fmri=svc:/application/desktop-cache/pixbuf-loaders-installer:default
file files/empty path=usr/lib/amd64/gdk-pixbuf-2.0/2.10.0/loaders.cache \
    preserve=true \
    refresh_fmri=svc:/application/desktop-cache/pixbuf-loaders-installer:default

file path=lib/svc/manifest/application/desktop-cache/desktop-mime-cache.xml
file path=lib/svc/manifest/application/desktop-cache/gconf-cache.xml
file path=lib/svc/manifest/application/desktop-cache/icon-cache.xml
file path=lib/svc/manifest/application/desktop-cache/input-method-cache.xml
file path=lib/svc/manifest/application/desktop-cache/mime-types-cache.xml
file path=lib/svc/manifest/application/desktop-cache/pixbuf-loaders-installer.xml
file path=lib/svc/method/desktop-mime-cache
file path=lib/svc/method/gconf-cache
file path=lib/svc/method/icon-cache
file path=lib/svc/method/input-method-cache
file path=lib/svc/method/mime-types-cache
file path=lib/svc/method/pixbuf-loaders-installer