github.com/goreleaser/nfpm/v2@v2.44.0/internal/cmd/example.yml (about)

     1  # This is an example nfpm configuration file.
     2  # Make sure to check the documentation at https://nfpm.goreleaser.com
     3  #
     4  # The lines below are called `modelines`. See `:help modeline`
     5  # Feel free to remove those if you don't want/need to use them.
     6  # yaml-language-server: $schema=https://nfpm.goreleaser.com/schema.json
     7  # vim: set ts=2 sw=2 tw=0 fo=cnqoj
     8  
     9  name: "foo"
    10  arch: "amd64"
    11  platform: "linux"
    12  version: "1.0.0"
    13  section: "default"
    14  priority: "extra"
    15  replaces:
    16    - foobar
    17  provides:
    18    - bar
    19  depends:
    20    - foo
    21    - bar
    22  recommends:
    23    - whatever
    24  suggests:
    25    - something-else
    26  conflicts:
    27    - not-foo
    28    - not-bar
    29  maintainer: "John Doe <john@example.com>"
    30  description: |
    31    FooBar is the great foo and bar software.
    32      And this can be in multiple lines!
    33  vendor: "FooBarCorp"
    34  homepage: "http://example.com"
    35  license: "MIT"
    36  changelog: "changelog.yml"
    37  contents:
    38    - src: ./foo
    39      dst: /usr/bin/foo
    40    - src: ./bar
    41      dst: /usr/bin/bar
    42    - src: ./foobar.conf
    43      dst: /etc/foobar.conf
    44      type: config
    45    - src: /usr/bin/foo
    46      dst: /sbin/foo
    47      type: symlink
    48  overrides:
    49    rpm:
    50      scripts:
    51        preinstall: ./scripts/preinstall.sh
    52        postremove: ./scripts/postremove.sh
    53    deb:
    54      scripts:
    55        postinstall: ./scripts/postinstall.sh
    56        preremove: ./scripts/preremove.sh