fix: lintian issues (#445)

* fix: lintian issues

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: merge

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: mention lintian

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: overrides

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2022-02-03 09:20:21 -03:00
committed by GitHub
parent 3ea7b84aa0
commit 1f50ccc830
4 changed files with 53 additions and 12 deletions
+25 -4
View File
@@ -126,23 +126,44 @@ scoop:
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}'
homepage: https://nfpm.goreleaser.com
description: nFPM is a simple, 0-dependencies, deb, rpm and apk packager.
maintainer: Carlos Alexandro Becker <root@carlosbecker.com>
description: |-
A simple, 0-dependencies, deb, rpm and apk packager.
nFPM (not FPM) is configurable via YAML and does not need any packaging software installed.
maintainer: Carlos Alexandro Becker <carlos@becker.software>
license: MIT
vendor: GoReleaser
formats:
- apk
- deb
- rpm
bindir: /usr/bin
section: utils
contents:
- src: ./completions/nfpm.bash
dst: /etc/bash_completion.d/nfpm
dst: /usr/share/bash-completion/completions
file_info:
mode: 0644
- src: ./completions/nfpm.fish
dst: /usr/share/fish/completions/nfpm.fish
file_info:
mode: 0644
- src: ./completions/nfpm.zsh
dst: /usr/local/share/zsh/site-functions/_nfpm
dst: /usr/share/zsh/vendor-completions/_nfpm
file_info:
mode: 0644
- src: ./manpages/nfpm.1.gz
dst: /usr/share/man/man1/nfpm.1.gz
file_info:
mode: 0644
- src: ./LICENSE.md
dst: /usr/share/doc/nfpm/copyright
file_info:
mode: 0644
- src: .lintian-overrides
dst: ./usr/share/lintian/overrides/nfpm
packager: deb
file_info:
mode: 0644
aurs:
- homepage: https://nfpm.goreleaser.com
+2
View File
@@ -0,0 +1,2 @@
nfpm: statically-linked-binary
nfpm: changelog-file-missing-in-native-package
+1 -1
View File
@@ -2,4 +2,4 @@
set -e
rm -rf manpages
mkdir manpages
go run ./cmd/nfpm/ man | gzip -c >manpages/nfpm.1.gz
go run ./cmd/nfpm/ man | gzip -c -9 >manpages/nfpm.1.gz
+18
View File
@@ -158,3 +158,21 @@ esac
* With the note that only `RuntimeDirectory` is used in systemd < 231
* `/bin/bash -c "$(which ...) ...` is a great way to make your single service file work on all platforms since rhel and debian based systems have standard executables in differing locations and complain about `executable path is not absolute`
* eg `/bin/bash -c '$(which mkdir) -p /var/log/your-service'`
### Debs and Lintian
Its recommended to run [lintian](https://lintian.debian.org) against your
deb packages to see if there are any problems.
You can also add a `lintian-overrides` file:
```yaml
contents:
- src: .lintian-overrides
dst: ./usr/share/lintian/overrides/nfpm
packager: deb
file_info:
mode: 0644
```
You can read more in [lintian's documentation](https://lintian.debian.org/manual/index.html).