#
# 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 path=usr.*/man/.+ -> default mangler.man.stability volatile>

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)

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

### Client part
file path=usr/bin/$(MACH64)/sysstat
file path=usr/bin/$(MACH32)/sysstat
file path=usr/share/man/man1m/sysstat.1m

# Should run the binary matching the kernel bitness
hardlink path=usr/bin/sysstat target=../lib/isaexec pkg.linted=true

### Server part, required for client even locally,
### even if not networked via the -l CLI switch
file files/auth_sysstatd path=etc/security/auth_attr.d/sysstatd
file files/prof_sysstatd path=etc/security/prof_attr.d/sysstatd
file files/sysstatd.xml path=lib/svc/manifest/system/diagnostic-sysstatd.xml

file path=usr/sbin/$(MACH64)/sysstatd
file path=usr/sbin/$(MACH32)/sysstatd
# Note: No manpage for the daemon is provided in the sources

# Should run the binary matching the kernel bitness
hardlink path=usr/sbin/sysstatd target=../lib/isaexec pkg.linted=true