-
Notifications
You must be signed in to change notification settings - Fork 74
/
.nfpm.yaml
57 lines (57 loc) · 1.59 KB
/
.nfpm.yaml
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
# this is the base "template" for the package
name: nginx-agent
description: NGINX Agent
arch: ${ARCH}
version: ${VERSION}
priority: optional
vendor: NGINX Software, Inc.
maintainer: NGINX Inc. <agent@nginx.org>
homepage: https://github.com/nginx/agent
license: Apache 2.0
contents:
- src: ./build/nginx-agent
dst: /usr/bin/nginx-agent
- src: nginx-agent.conf
dst: /etc/nginx-agent/nginx-agent.conf
type: config|noreplace
file_info:
mode: 0640
- src: ./scripts/packages/nginx-agent.service
dst: /etc/systemd/system/nginx-agent.service
- src: ./scripts/nginx-agent.logrotate
dst: /etc/logrotate.d/nginx-agent
- src: ./scripts/packages/nginx-agent.openrc
dst: /etc/init.d/nginx-agent
packager: apk
- src: ./scripts/selinux/nginx_agent_selinux.8.gz
dst: /usr/share/man/man8/nginx_agent_selinux.8.gz
packager: rpm
- src: ./scripts/selinux/nginx_agent.if
dst: /usr/share/selinux/devel/include/contrib/nginx_agent.if
packager: rpm
- src: ./scripts/selinux/nginx_agent.pp
dst: /usr/share/selinux/packages/nginx_agent.pp
packager: rpm
- dst: /var/log/nginx-agent
type: dir
overrides:
deb:
depends:
- apt-transport-https
deb:
signature:
method: dpkg-sig
key_file: ".key.asc"
rpm:
signature:
key_file: ".key.asc"
apk:
signature:
key_file: ".key.rsa"
scripts:
postupgrade: "./scripts/packages/postupgrade.sh"
scripts:
preinstall: "./scripts/packages/preinstall.sh"
postinstall: "./scripts/packages/postinstall.sh"
preremove: "./scripts/packages/preremove.sh"
postremove: "./scripts/packages/postremove.sh"