# nfpm configuration file for build Stork hooks (server and agent both)
#
# check https://nfpm.goreleaser.com/configuration for detailed usage
#
arch: "${STORK_NFPM_ARCH}"
version: "${STORK_NFPM_VERSION}"

name: "isc-stork-${STORK_NFPM_HOOK_KIND}-hook-${STORK_NFPM_HOOK_NAME}"
platform: "linux"
section: "admin"
priority: "required"
replaces: []
provides: []
depends: []
recommends: []
suggests: []
conflicts: []
maintainer: "Stork team <stork-users@lists.isc.org>"
description: ISC Stork ${STORK_NFPM_HOOK_KIND} ${STORK_NFPM_HOOK_NAME} hook
vendor: "Internet Systems Consortium, Inc."
homepage: "https://stork.isc.org"
license: "MPL 2.0"

contents:
- src: ${STORK_NFPM_HOOK_PATH}
  dst: /usr/lib/stork-${STORK_NFPM_HOOK_KIND}/hooks/${STORK_NFPM_HOOK_FILENAME}
  expand: true
