-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathnfpm-colte-cn-4g.yaml
138 lines (113 loc) · 3.85 KB
/
nfpm-colte-cn-4g.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: "colte-cn-4g"
arch: "${HOST_ARCHITECTURE}"
platform: "linux"
# Upstream Version. (required)
# This will expand any env var you set in the field, eg version: v${SEMVER}
version: ${VERSION}+${DISTRO_RELEASE_VERSION}
# Version Epoch.
# Default is extracted from `version` if it is semver compatible.
# epoch: 1
# Version Prerelease.
# Default is extracted from `version` if it is semver compatible.
# prerelease: beta1
# Version Metadata (previously deb.metadata).
# Default is extracted from `version` if it is semver compatible.
# Setting metadata might interfere with version comparisons depending on the packager.
# version_metadata: "git"
# Package Release Revision (Usually 1).
# This will expand any env var you set in the field, eg release: ${VERSION_RELEASE}
release:
section: "net"
priority: "optional"
maintainer: "Matthew Johnson <[email protected]>"
description: "The Community LTE Project"
vendor: "UW-ICTD <[email protected]>"
homepage: "https://github.com/uw-ictd/colte"
license: "MIT"
# Changelog YAML file, see: https://github.com/goreleaser/chglog
#changelog: "changelog.yaml"
# Disables globbing for files, config_files, etc.
disable_globbing: true
# Packages it replaces. (overridable)
replaces:
- colte (<< 0.16.0)
# - foobar
# Packages it provides. (overridable)
provides:
- "colte-cn (= ${VERSION}+${DISTRO_RELEASE_VERSION})"
# Dependencies. (overridable)
depends:
- "colte-essential (= ${VERSION}+${DISTRO_RELEASE_VERSION})"
- "open5gs-hss (>= 2.3.0)"
- "open5gs-sgwu (>= 2.3.0)"
- "open5gs-sgwc (>= 2.3.0)"
- "open5gs-mme (>= 2.3.0)"
- "open5gs-pcrf (>= 2.3.0)"
- "open5gs-smf (>= 2.3.0)"
- "open5gs-upf (>= 2.3.0)"
- "python3"
- "python3-netaddr"
- "python3-ruamel.yaml"
- "python3-yaml"
# Recommended packages. (overridable)
recommends:
# - fooa
# Suggested packages. (overridable)
suggests:
# - foob
# Packages it conflicts with. (overridable)
conflicts:
# - fooc
# Contents to add to the package
# This can be binaries or any other files.
contents:
- src: "./conf/coltenat.sh"
dst: "/usr/bin/coltenat"
- src: "./package/colte-nat.service"
dst: "/etc/systemd/system/colte-nat.service"
- src: "./conf/open5gs_dbconf.sh"
dst: "/etc/colte/colte_open5gsdb"
- src: "./python/colteconf_cn_4g.py"
dst: "/usr/lib/python3/dist-packages/colteconf_cn_4g.py"
file_info:
mode: 0o444
- src: "./python/coltedb_cn_4g.py"
dst: "/usr/lib/python3/dist-packages/coltedb_cn_4g.py"
# Empty folders your package may need created. (overridable)
empty_folders:
# Scripts to run at specific stages. (overridable)
scripts:
# preinstall: ./scripts/preinstall.sh
# postinstall: ./package/postinst
# preremove: ./scripts/preremove.sh
# postremove: ./package/postrm
# Custom configuration applied only to the Deb packager.
deb:
breaks:
- colte (<< 0.16.0)
# # Custom deb special files.
# scripts:
# # Deb rules script.
# rules: foo.sh
# # Deb templates file, when using debconf.
# templates: templates
# # Custom deb triggers
# triggers:
# # register interrest on a trigger activated by another package
# # (also available: interest_await, interest_noawait)
# interest:
# - some-trigger-name
# # activate a trigger for another package
# # (also available: activate_await, activate_noawait)
# activate:
# - another-trigger-name
# # The package is signed if a key_file is set
# signature:
# # PGP secret key (can also be ASCII-armored). The passphrase is taken
# # from the environment variable $NFPM_DEB_PASSPHRASE with a fallback
# # to #NFPM_PASSPHRASE.
# # This will expand any env var you set in the field, eg key_file: ${SIGNING_KEY_FILE}
# key_file: key.gpg
# # The type describes the signers role, possible values are "origin",
# # "maint" and "archive". If unset, the type defaults to "origin".
# type: origin