1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-21 07:06:16 +02:00
NFPM is Not FPM - a simple deb, rpm and apk packager written in Go
Go to file
Joakim Karlsson 7701bb950c
feat: Support for deb's config maintenance script (#317)
* feat: Support for deb's config maintenance script

With debconf, the config script is responsible for asking any questions
necessary to configure a package [1]. Without this, we're forced to ask
questions in postinst, which is against best practices [2].

This commit adds the possibility to include a config script when using
debconf like so:

```yaml
deb:
  scripts:
    templates: ./my/templates
    config: ./my/config
```

[1] https://manpages.debian.org/jessie/debconf-doc/debconf-devel.7.en.html#THE_CONFIG_SCRIPT
[2] https://manpages.debian.org/jessie/debconf-doc/debconf-devel.7.en.html#THE_POSTINST_SCRIPT

* docs: Add info about deb config maintainer script
2021-04-14 14:43:42 +00:00
.github fix(ci): go mod tidy (#308) 2021-03-02 21:29:17 -03:00
apk feat: upgrade fileglob (#306) 2021-03-01 11:27:05 -03:00
cmd/nfpm feat(ci): lint action, gocenter, tools (#304) 2021-02-27 17:15:05 +00:00
deb feat: Support for deb's config maintenance script (#317) 2021-04-14 14:43:42 +00:00
files feat: upgrade fileglob (#306) 2021-03-01 11:27:05 -03:00
internal fix: switch to use gopenpgp (#315) 2021-04-08 11:15:11 -07:00
rpm fix: switch to use gopenpgp (#315) 2021-04-08 11:15:11 -07:00
testdata feat: Support for deb's config maintenance script (#317) 2021-04-14 14:43:42 +00:00
www feat: Support for deb's config maintenance script (#317) 2021-04-14 14:43:42 +00:00
.gitattributes fix: ensure nfpm can run on windows and still build correct rpm, deb, and apk packages (#262) 2020-12-09 18:28:30 +00:00
.gitignore feat: try to clean up and simplify the file adding interface (#255) 2020-12-15 13:47:00 -03:00
.golangci.yml feat(ci): lint action, gocenter, tools (#304) 2021-02-27 17:15:05 +00:00
.goreleaser.yml chore: release apks as well 2021-03-01 13:48:29 -03:00
.kodiak.toml chore: setup automerge 2020-05-13 16:55:32 -03:00
CODE_OF_CONDUCT.md docs: readme, coc, contributing 2018-02-18 19:32:16 -03:00
CONTRIBUTING.md feat: go 1.16 2021-02-27 11:41:13 -03:00
Dockerfile feat: improve docker image (#274) 2020-12-31 10:32:17 -03:00
LICENSE.md Create LICENSE.md 2018-02-03 17:11:21 -02:00
Makefile fix(ci): go mod tidy (#308) 2021-03-02 21:29:17 -03:00
README.md docs: fix godoc link 2020-12-23 15:41:23 -03:00
acceptance_test.go feat(ci): lint action, gocenter, tools (#304) 2021-02-27 17:15:05 +00:00
go.mod fix: switch to use gopenpgp (#315) 2021-04-08 11:15:11 -07:00
go.sum fix: switch to use gopenpgp (#315) 2021-04-08 11:15:11 -07:00
nfpm.go feat: Support for deb's config maintenance script (#317) 2021-04-14 14:43:42 +00:00
nfpm_test.go fix: allow using an env var in the signature.key_file field (#282) 2021-01-14 10:32:10 -08:00

GoReleaser Logo

NFPM

NFPM is Not FPM - a simple deb, rpm and apk packager written in Go.

Release Software License GitHub Actions Codecov branch Go Report Card Go Doc Powered By: GoReleaser

Why

While fpm is great, for me, it is a bummer that it depends on ruby, tar and other softwares.

I wanted something that could be used as a binary and/or as a library and that was really simple.

So I created NFPM: a simpler, 0-dependency, as-little-assumptions-as-possible alternative to fpm.

Usage

Check the documentation at https://nfpm.goreleaser.com

Special thanks 🙏

Thanks to the fpm authors for fpm, which inspires nfpm a lot.

Donate

Donations are very much appreciated! You can donate/sponsor on the main goreleaser opencollective! It's easy and will surely help the developers at least buy some or 🍺!

Stargazers over time

goreleaser/nfpm stargazers over time


Would you like to fix something in the documentation? Feel free to open an issue.