-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnfpm.yaml
More file actions
114 lines (105 loc) · 2.63 KB
/
nfpm.yaml
File metadata and controls
114 lines (105 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# nfpm configurations.
# See https://nfpm.goreleaser.com/
name: hello
arch: "${ARCH}"
platform: linux
version: "${VERSION}"
version_schema: semver
release: "1"
prerelease: ""
section: default
priority: extra
maintainer: "Hello World Community"
description: Hello World Server.
vendor: "Hello World Community"
homepage: "http://github.com"
license: "Apache 2.0"
provides: []
depends: []
recommends: []
suggests: []
conflicts: []
umask: 0o770
contents:
- src: ./_output/bin/linux-${ARCH}/hello
dst: /usr/bin/hello
expand: true
- src: ./packaging/config.yaml
dst: /etc/hello/config.yaml
type: config
- packager: rpm
src: ./packaging/hello.env
dst: /etc/sysconfig/hello.env
type: config
- packager: rpm
src: ./packaging/rpm/hello.service
dst: /usr/lib/systemd/system/hello.service
type: config
- packager: deb
src: ./packaging/hello.env
dst: /etc/default/hello.env
type: config
- packager: deb
src: ./packaging/deb/hello.service
dst: /usr/lib/systemd/system/hello.service
type: config
- packager: apk
src: ./packaging/hello.env
dst: /etc/default/hello.env
type: config
- packager: apk
src: ./packaging/apk/hello
dst: /etc/init.d/hello
type: config
- packager: archlinux
src: ./packaging/hello.env
dst: /etc/default/hello.env
type: config
- packager: archlinux
src: ./packaging/archlinux/hello.service
dst: /usr/lib/systemd/system/hello.service
type: config
overrides:
rpm:
scripts:
preinstall: ./packaging/rpm/preinst
postinstall: ./packaging/rpm/postinst
preremove: ./packaging/rpm/prerm
postremove: ./packaging/rpm/postrm
deb:
scripts:
preinstall: ./packaging/deb/preinst
postinstall: ./packaging/deb/postinst
preremove: ./packaging/deb/prerm
postremove: ./packaging/deb/postrm
apk:
scripts:
preinstall: ./packaging/apk/preinst
postinstall: ./packaging/apk/postinst
preremove: ./packaging/apk/prerm
postremove: ./packaging/apk/postrm
archlinux:
scripts:
preinstall: ./packaging/archlinux/preinst
postinstall: ./packaging/archlinux/postinst
preremove: ./packaging/archlinux/prerm
postremove: ./packaging/archlinux/postrm
rpm:
summary: Hello Server
packager: Hello Community.
# signature:
# key_file: ./0x52ADAB4B-sec.gpg
# key_id: 1C88AAC752ADAB4B
deb: {}
# signature:
# method: debsign
# key_file: ./0x52ADAB4B-sec.gpg
# type: origin
# key_id: 1C88AAC752ADAB4B
apk: {}
# signature:
# key_file: ./rsa-private.pem
# key_name: origin
# key_id: ignored
archlinux:
packager: Hello Community