name: "centreon-broker-cbmod"
arch: "${ARCH}"
platform: "linux"
version_schema: "none"
version: "${VERSION}"
release: "${RELEASE}${DIST}"
section: "default"
priority: "optional"
maintainer: "Centreon <contact@centreon.com>"
description: |
  The Centreon Broker daemon can aggregate the outputs of multiple cbmod and store
  events in a DB from a single point.
  Commit: @COMMIT_HASH@
vendor: "Centreon"
homepage: "https://www.centreon.com"
license: "Apache-2.0"

contents:
  - src: "../broker/config/central-module.json"
    dst: "/etc/centreon-broker/central-module.json"
    type: config|noreplace
    file_info:
      mode: 0664
      owner: centreon-broker
      group: centreon-broker

  - src: "../build/broker/neb/cbmod.so"
    dst: "/usr/lib64/nagios/cbmod.so"

overrides:
  rpm:
    depends:
      - centreon-broker-core = ${VERSION}-${RELEASE}${DIST}
  deb:
    depends:
      - centreon-broker-core (= ${VERSION}-${RELEASE}${DIST})

rpm:
  summary: Centreon Broker as Centreon Engine 2 module.
  compression: zstd
  signature:
    key_file: ${RPM_SIGNING_KEY_FILE}
    key_id: ${RPM_SIGNING_KEY_ID}
