#
# 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) 2013, Adam Stevko <adam.stevko@gmail.com> 
#

set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI_AGENT)@$(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)'

group groupname="zabbix" gid=61
user gcos-field="Zabbix Monitoring System" username="zabbix"  group="zabbix" uid=61 home-dir=/var/lib/zabbix login-shell=/usr/bin/false

dir path=var/lib/zabbix owner=zabbix group=zabbix
dir path=var/log/zabbix owner=zabbix group=zabbix
file files/zabbix-agent.xml path=lib/svc/manifest/application/management/zabbix-agent.xml restart_fmri=svc:/system/manifest-import:default

file path=etc/zabbix/zabbix_agentd.conf preserve=true
file path=usr/bin/zabbix_sender
file path=usr/sbin/zabbix_agentd
file path=usr/share/man/man1/zabbix_sender.1
file path=usr/share/man/man8/zabbix_agentd.8