name: "centreon-monitoring-agent-selinux"
arch: "${ARCH}"
platform: "linux"
version_schema: "none"
version: "${VERSION}"
release: "${RELEASE}${DIST}"
section: "default"
priority: "optional"
maintainer: "Centreon <contact@centreon.com>"
description: |
  SELinux context for centreon-monitoring-agent
vendor: "Centreon"
homepage: "https://centreon.com"
license: "Apache-2.0"

depends:
  - policycoreutils
  - centreon-common-selinux
replaces:
  - centreon-monitoring-agent-selinux-debuginfo
conflicts:
  - centreon-monitoring-agent-selinux-debuginfo
provides:
  - centreon-monitoring-agent-selinux-debuginfo

contents:
  - src: "../../selinux/centreon-monitoring-agent/centreon-monitoring-agent.pp"
    dst: "/usr/share/selinux/packages/centreon/centreon-monitoring-agent.pp"
    file_info:
      mode: 0655

scripts:
  postinstall: ./scripts/centreon-monitoring-agent-selinux-postinstall.sh
  preremove: ./scripts/centreon-monitoring-agent-selinux-preremove.sh

rpm:
  summary: SELinux context for centreon-monitoring-agent
  signature:
    key_file: ${RPM_SIGNING_KEY_FILE}
    key_id: ${RPM_SIGNING_KEY_ID}
