forked from canonical/subiquity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
158 lines (156 loc) · 4.4 KB
/
snapcraft.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
name: subiquity
base: core18
version: git
summary: Ubuntu installer
description: The Ubuntu server installer
confinement: classic
apps:
subiquity:
command: usr/bin/subiquity
environment:
PYTHONIOENCODING: utf-8
subiquity-loadkeys:
command: usr/bin/subiquity-loadkeys
subiquity-configure-apt:
command: usr/bin/subiquity-configure-apt
console-conf:
command: usr/bin/console-conf
probert:
command: bin/probert
subiquity-server:
command: usr/bin/subiquity-server
daemon: simple
restart-condition: always
environment:
PYTHONIOENCODING: utf-8
subiquity-service:
command: usr/bin/subiquity-service
daemon: simple
restart-condition: always
environment:
PYTHONIOENCODING: utf-8
parts:
curtin:
override-pull: |
snapcraftctl pull
PACKAGED_VERSION="$(git describe --long --abbrev=9 --match=[0-9][0-9]*)"
sed -e "s,@@PACKAGED_VERSION@@,$PACKAGED_VERSION,g" -i curtin/version.py
plugin: python
source-type: git
source: https://git.launchpad.net/curtin
source-commit: 4339a49ee93fd99940f8e0b804227af409da82ae
python-packages:
- pyyaml==5.3.1
- oauthlib
- jsonschema
- pyrsistent
organize:
'lib/python*/site-packages/usr/lib/curtin': 'usr/lib/'
stage:
- "*"
- "-lib/python*/site-packages/_yaml.*.so"
- "-lib/python*/site-packages/jsonschema"
apport:
plugin: python
source-type: bzr
source: lp:~ubuntu-core-dev/ubuntu/focal/apport/ubuntu
build-packages:
- python3-distutils-extra
- python3-apt
- python3-httplib2
- python3-problem-report
- python3-requests-unixsocket
stage-packages:
- python3-distutils-extra
- python3-apt
- python3-httplib2
- python3-problem-report
- python3-requests-unixsocket
stage:
- "lib/python*/site-packages/"
- "-lib/python*/site-packages/etc/*"
- "-lib/python*/site-packages/lib/*"
- "share/apport/general-hooks/"
- "usr/"
subiquity:
plugin: python
build-packages:
- libsystemd-dev
- lsb-release
- pkg-config
- python3-urwid
stage-packages:
- cloud-init
- libsystemd0
- iso-codes
- lsb-release
- python3-bson
- python3-urwid
- python3-requests
- python3-requests-unixsocket
- ssh-import-id
python-packages:
- attrs
- pyyaml==5.3.1
- systemd-python
- aiohttp
- yarl==1.5.1
#- urwid
source: .
source-type: git
organize:
'bin/console-conf-tui': usr/bin/console-conf
'bin/subiquity-tui': usr/bin/subiquity
'bin/subiquity-loadkeys': usr/bin/subiquity-loadkeys
'bin/subiquity-service': usr/bin/subiquity-service
'bin/subiquity-server': usr/bin/subiquity-server
'bin/subiquity-configure-apt': usr/bin/subiquity-configure-apt
users-and-groups:
plugin: nil
build-packages:
- user-setup
override-build: |
echo "get passwd/user-default-groups" | \
debconf-communicate user-setup | \
cut -d ' ' -f 2- > $SNAPCRAFT_PART_INSTALL/users-and-groups
cp /usr/lib/user-setup/reserved-usernames $SNAPCRAFT_PART_INSTALL/
stage:
- users-and-groups
- reserved-usernames
keyboard-data:
plugin: nil
build-packages:
- console-setup
- locales
- xkb-data-i18n
- python3-attr
override-build: PYTHONPATH=$SNAPCRAFT_PROJECT_DIR/ $SNAPCRAFT_PROJECT_DIR/scripts/make-kbd-info.py
stage:
- kbds/
font:
plugin: dump
source: ./
source-type: git
organize:
font/subiquity.psf: subiquity.psf
stage:
- subiquity.psf
languagelists:
plugin: nil
build-packages:
- localechooser-data
override-build: |
grep '^path-exclude=.*LC_MESSAGES.*' /etc/dpkg/dpkg.cfg.d/excludes && {
sed -i 's/^path-exclude.*LC_MESSAGES.*/#\0/g' /etc/dpkg/dpkg.cfg.d/excludes
apt-get -y install --reinstall iso-codes
} || true
$SNAPCRAFT_PROJECT_DIR/scripts/make-language-lists $SNAPCRAFT_PROJECT_DIR/po > $SNAPCRAFT_PART_INSTALL/languagelist
stage:
- languagelist
probert:
plugin: python
build-packages: [python-setuptools, build-essential, libnl-3-dev, libnl-genl-3-dev, libnl-route-3-dev]
source: https://github.com/canonical/probert.git
source-type: git
source-commit: 844c957b7f61f78bbd814cceef87f0d8eb218675
requirements: [requirements.txt]