mirror of
https://github.com/goreleaser/nfpm
synced 2026-11-30 14:04:45 +01:00
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>
11 lines
262 B
Plaintext
11 lines
262 B
Plaintext
Package: foo
|
|
Version: 1.0.0
|
|
Section: default
|
|
Priority: extra
|
|
Architecture: amd64
|
|
Maintainer: Carlos A Becker <pkg@carlosbecker.com>
|
|
Installed-Size: 10
|
|
Homepage: http://carlosbecker.com
|
|
Description: Foo does things
|
|
Bugs: https://github.com/goreleaser/nfpm/issues
|