#
# 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
# Copyright 2019 Michal Nowak
#

set name=pkg.fmri value=pkg:/system/management/bmc-watchdog@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
set name=pkg.human-version value=$(HUMAN_VERSION)
set name=pkg.summary value="A local BMC-polling watchdog service"
set name=pkg.description value="A local BMC-polling watchdog service based on freeipmi software and driver/ipmi"
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)'

depend type=require fmri=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
depend type=require fmri=pkg:/driver/ipmi

#file path=etc/init.d/bmc-watchdog
#file path=etc/sysconfig/bmc-watchdog preserve=true

file files/bmc-watchdog.xml \
     path=lib/svc/manifest/application/bmc-watchdog.xml \
     restart_fmri=svc:/system/manifest-import:default

file files/svc-bmc-watchdog path=lib/svc/method/svc-bmc-watchdog