github.com/goreleaser/nfpm/v2@v2.44.0/testdata/acceptance/upgrade.v1.yaml (about)

     1  name: "foo"
     2  arch: "${BUILD_ARCH}"
     3  platform: "linux"
     4  version: "v1.2.3"
     5  maintainer: "Foo Bar"
     6  depends:
     7    - bash
     8  provides:
     9    - fake
    10  recommends:
    11    - fish
    12  replaces:
    13    - foo
    14  suggests:
    15    - zsh
    16  description: |
    17    Foo bar
    18      Multiple lines
    19  vendor: "foobar"
    20  homepage: "https://foobar.org"
    21  license: "MIT"
    22  contents:
    23    - src: ./testdata/whatever.conf
    24      dst: /etc/regular.conf
    25      type: config
    26    - src: ./testdata/whatever.conf
    27      dst: /etc/noreplace.conf
    28      type: config|noreplace
    29    - dst: /var/log/whatever
    30      type: dir
    31    - dst: /usr/share/foo
    32      type: dir
    33  scripts:
    34    preinstall: ./testdata/acceptance/scripts/preinstall.sh
    35    postinstall: ./testdata/acceptance/scripts/postinstall.sh
    36    preremove: ./testdata/acceptance/scripts/preremove.sh
    37    postremove: ./testdata/acceptance/scripts/postremove.sh
    38  apk:
    39    scripts:
    40      preupgrade: ./testdata/acceptance/scripts/preupgrade.sh
    41      postupgrade: ./testdata/acceptance/scripts/postupgrade.sh
    42  archlinux:
    43    scripts:
    44      preupgrade: ./testdata/acceptance/scripts/preupgrade.sh
    45      postupgrade: ./testdata/acceptance/scripts/postupgrade.sh