1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-06-09 01:06:27 +02:00
nfpm/www/docs
Aaron Jacobs 98a59ec16d
feat: add support for additional fields in Debian control files (#491)
Debian control files (DCF) have a number of optional fields [0] --
including "Bugs" and "Tags" -- that are used by many existing packages.
The original fpm supports adding arbitrary fields to DCFs with the
--deb-field flag [1], but until now it was not possible to do so with
nfpm.

This commit introduces a new deb-specific override, "fields", that
simply translates key-value pairs from a map directly into the DCF.
Given the following nfpm config file entry:

    deb:
      fields:
        Bugs: https://github.com/goreleaser/nfpm/issues

The resulting DCF would contain the entry

    Bugs: https://github.com/goreleaser/nfpm/issues

To avoid generating malformed DCFs, we simply ignore empty entries.

This commit includes unit tests and updates to the website
documentation.

Closes #490.

[0]: https://man7.org/linux/man-pages/man5/deb-control.5.html
[1]: https://fpm.readthedocs.io/en/latest/packages/deb.html?highlight=changelog#deb-specific-command-line-flags

Signed-off-by: Aaron Jacobs <aaron.jacobs@rstudio.com>
2022-04-06 14:38:10 -03:00
..
cmd docs: update 2021-12-15 15:36:38 -03:00
overrides/partials/integrations docs: improve colors and analytics 2021-06-27 00:45:05 +00:00
static docs: update help after cobra upgrade 2021-12-15 15:20:55 -03:00
configuration.md feat: add support for additional fields in Debian control files (#491) 2022-04-06 14:38:10 -03:00
contributing.md feat: rename branch to main (#400) 2021-11-12 17:18:34 -03:00
index.md style: spelling and grammar fixes (#462) 2022-02-21 15:53:33 -03:00
install.md style: spelling and grammar fixes (#462) 2022-02-21 15:53:33 -03:00
sponsors.md docs: improve search 2021-11-01 09:03:27 -03:00
tips.md fix: lintian issues (#445) 2022-02-03 09:20:21 -03:00
usage.md docs: fix url 2021-11-12 17:21:09 -03:00