forked from uw-ictd/colte
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnfpm.yaml
212 lines (170 loc) · 5.72 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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
name: "colte"
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}
# 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: ${DISTRO_RELEASE_VERSION}
section: "net"
priority: "optional"
maintainer: "Matthew Johnson <matt9j@cs.washington.edu>"
description: "The Community LTE Project"
vendor: "UW-ICTD <colte@cs.washington.edu>"
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: false
# Packages it replaces. (overridable)
replaces:
# - foobar
# Packages it provides. (overridable)
provides:
# - bar
# Dependencies. (overridable)
depends:
- "open5gs-hss (>= 2.0.0)"
- "open5gs-sgwu (>= 2.0.0)"
- "open5gs-sgwc (>= 2.0.0)"
- "open5gs-mme (>= 2.0.0)"
- "open5gs-pcrf (>= 2.0.0)"
- "open5gs-smf (>= 2.0.0)"
- "open5gs-upf (>= 2.0.0)"
- "haulage"
- "python3"
- "nodejs (>= 8.0.0)"
- "default-mysql-client"
- "default-mysql-server"
- "python3-netaddr"
- "python3-ruamel.yaml"
- "python3-mysqldb"
# 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:
# Basic files that applies to all packagers
- src: "./package/sample_db.sql"
dst: "/etc/colte/sample_db.sql"
- src: "./conf/coltenat.sh"
dst: "/usr/bin/coltenat"
- src: "./package/colte-nat.service"
dst: "/etc/systemd/system/colte-nat.service"
- src: "./conf/colteconf.py"
dst: "/usr/bin/colteconf"
- src: "./conf/coltedb.py"
dst: "/usr/bin/coltedb"
- src: "./conf/open5gs_dbconf.sh"
dst: "/etc/colte/colte_open5gsdb"
- src: "./package/colte-webadmin.service"
dst: "/etc/systemd/system/colte-webadmin.service"
- src: "./package/colte-webgui.service"
dst: "/etc/systemd/system/colte-webgui.service"
- src: "./webadmin/*"
dst: "/usr/bin/colte-webadmin"
- src: "./webgui/*"
dst: "/usr/bin/colte-webgui"
- src: "./colte-common-models/*"
dst: "/usr/bin/colte-common-models"
# Installed symlinks
# Will result in `ln -s ${src} ${dst}`.
- src: /etc/haulage/config.yml
dst: /etc/colte/haulage.yml
type: "symlink"
- src: "/usr/bin/colte-webgui/pricing.json"
dst: "/etc/colte/pricing.json"
type: "symlink"
- src: "/usr/bin/colte-webadmin/.env"
dst: "/etc/colte/webadmin.env"
type: "symlink"
- src: "/usr/bin/colte-webgui/.env"
dst: "/etc/colte/webgui.env"
type: "symlink"
# Explicit symlinks for relative NPM packages
- src: "/usr/bin/colte-common-models"
dst: "/usr/bin/colte-webgui/node_modules/colte-common-models"
type: "symlink"
- src: "/usr/bin/colte-common-models"
dst: "/usr/bin/colte-webadmin/node_modules/colte-common-models"
type: "symlink"
# Config files
- src: ./conf/config.yml
dst: /etc/colte/config.yml
type: config
- src: "./webgui/.env"
dst: "/usr/bin/colte-webgui/.env"
type: "config"
- src: "./webadmin/.env"
dst: "/usr/bin/colte-webadmin/.env"
type: "config"
# Mark the transaction log as config for now to avoid overwriting existing logs.
# TODO(matt9j) Move the transaction log to the database.
- src: ./package/transaction_log.txt
dst: /var/log/colte/transaction_log.txt
type: "config"
# Sometimes it is important to be able to set the mtime, mode, owner, or group for a file
# that differs from what is on the local build system at build time.
# - src: path/to/foo
# dst: /usr/local/foo
# file_info:
# mode: 0644
# mtime: 2008-01-02T15:04:05Z
# owner: notRoot
# group: notRoot
# Empty folders your package may need created. (overridable)
empty_folders:
- /var/log/colte
# 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:
# # 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