Merge lp:~ericsnowcurrently/landscape-client/sysinfo-package into lp:~landscape/landscape-client/trunk
- sysinfo-package
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Eric Snow |
Approved revision: | 1017 |
Merged at revision: | 1012 |
Proposed branch: | lp:~ericsnowcurrently/landscape-client/sysinfo-package |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
659 lines (+212/-218) 28 files modified
.bzrignore (+6/-0) debian/changelog (+1/-1) debian/control (+17/-2) debian/landscape-common.config (+0/-10) debian/landscape-common.dirs (+0/-4) debian/landscape-common.install (+0/-2) debian/landscape-common.manpages (+0/-1) debian/landscape-common.postinst (+0/-26) debian/landscape-common.postrm (+0/-2) debian/landscape-common.prerm (+0/-42) debian/landscape-common.templates (+0/-20) debian/landscape-common3.config (+0/-10) debian/landscape-common3.dirs (+0/-4) debian/landscape-common3.install (+0/-2) debian/landscape-common3.manpages (+0/-1) debian/landscape-common3.postinst (+0/-26) debian/landscape-common3.postrm (+0/-2) debian/landscape-common3.prerm (+0/-42) debian/landscape-common3.templates (+0/-20) debian/landscape-sysinfo.config (+10/-0) debian/landscape-sysinfo.dirs (+2/-0) debian/landscape-sysinfo.install (+2/-0) debian/landscape-sysinfo.manpages (+1/-0) debian/landscape-sysinfo.postinst (+73/-0) debian/landscape-sysinfo.postrm (+37/-0) debian/landscape-sysinfo.prerm (+42/-0) debian/landscape-sysinfo.templates (+20/-0) debian/rules (+1/-1) |
To merge this branch: | bzr merge lp:~ericsnowcurrently/landscape-client/sysinfo-package |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Free Ekanayaka (community) | Approve | ||
Chad Smith | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Review via email:
|
Commit message
Factor out a landscape-sysinfo debian package.
This allows us to drop the CONFLICTS constraints in the common packages.
Description of the change
Factor out a landscape-sysinfo debian package.
This allows us to drop the CONFLICTS constraints in the common packages.
Testing instructions:
sudo apt-cache policy landscape-client landscape-common3 landscape-common landscape-sysinfo
make package DEBUILD_OPTS="-us -uc"
sudo apt-get install ../landscape-
sudo apt-get install ../landscape-
sudo apt-get install ../landscape-
sudo apt-get install ../landscape-
sudo apt-get install ../landscape-
sudo apt-cache policy landscape-client landscape-common3 landscape-common landscape-sysinfo
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) wrote : | # |
Command: TRIAL_ARGS=-j4 make ci-check
Result: Success
Revno: 1016
Branch: lp:~ericsnowcurrently/landscape-client/sysinfo-package
Jenkins: https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) wrote : | # |
Command: TRIAL_ARGS=-j4 make ci-check
Result: Success
Revno: 1017
Branch: lp:~ericsnowcurrently/landscape-client/sysinfo-package
Jenkins: https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chad Smith (chad.smith) wrote : | # |
Looks like a good 2nd step in factoring out py2-py3 dependencies. Packages files look reasonable for this pass. Attempted installs w/out issue. I'll check followup branches for final pkg details as this implies some upcoming landscape pkg fixes.
Preview Diff
1 | === modified file '.bzrignore' |
2 | --- .bzrignore 2017-04-04 13:46:49 +0000 |
3 | +++ .bzrignore 2017-04-07 21:11:06 +0000 |
4 | @@ -10,6 +10,12 @@ |
5 | debian/landscape-client.prerm.debhelper |
6 | debian/landscape-client.substvars |
7 | debian/landscape-client.debhelper.log |
8 | +debian/landscape-sysinfo |
9 | +debian/landscape-sysinfo.debhelper.log |
10 | +debian/landscape-sysinfo.postinst.debhelper |
11 | +debian/landscape-sysinfo.postrm.debhelper |
12 | +debian/landscape-sysinfo.prerm.debhelper |
13 | +debian/landscape-sysinfo.substvars |
14 | debian/landscape-common*/ |
15 | debian/landscape-common*.debhelper.log |
16 | debian/landscape-common*.postinst.debhelper |
17 | |
18 | === modified file 'debian/changelog' |
19 | --- debian/changelog 2017-04-06 21:27:32 +0000 |
20 | +++ debian/changelog 2017-04-07 21:11:06 +0000 |
21 | @@ -3,7 +3,7 @@ |
22 | [ Steffen Allner ] |
23 | * New local test build |
24 | |
25 | - -- Eric Snow (landscape-dev) <esnow@landscape-dev.lxd> Thu, 06 Apr 2017 21:20:37 +0000 |
26 | + -- Eric Snow (landscape-dev) <esnow@landscape-dev.lxd> Fri, 07 Apr 2017 21:10:28 +0000 |
27 | |
28 | landscape-client (17.04-0ubuntu1) UNRELEASED; urgency=medium |
29 | |
30 | |
31 | === modified file 'debian/control' |
32 | --- debian/control 2017-04-06 21:27:32 +0000 |
33 | +++ debian/control 2017-04-07 21:11:06 +0000 |
34 | @@ -26,7 +26,6 @@ |
35 | Suggests: ${extra:Suggests} |
36 | Breaks: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
37 | Replaces: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
38 | -Conflicts: landscape-common3 |
39 | Description: Landscape administration system client - Common files |
40 | Landscape is a web-based tool for managing Ubuntu systems. This |
41 | package is necessary if you want your machine to be managed in a |
42 | @@ -54,7 +53,6 @@ |
43 | Suggests: ${extra:Suggests} |
44 | Breaks: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
45 | Replaces: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
46 | -Conflicts: landscape-common |
47 | Description: Landscape administration system client - Common files |
48 | Landscape is a web-based tool for managing Ubuntu systems. This |
49 | package is necessary if you want your machine to be managed in a |
50 | @@ -63,12 +61,29 @@ |
51 | This package provides the core libraries. |
52 | XB-Python-Version: ${python:Versions} |
53 | |
54 | +Package: landscape-sysinfo |
55 | +Architecture: any |
56 | +Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, |
57 | + ${shlibs:Depends}, |
58 | + python3-twisted, |
59 | + landscape-common3 (= ${binary:Version}) |
60 | +Suggests: ${extra:Suggests} |
61 | +Description: Landscape administration system client - sysinfo tool |
62 | + Landscape is a web-based tool for managing Ubuntu systems. This |
63 | + package is necessary if you want your machine to be managed in a |
64 | + Landscape account. |
65 | + . |
66 | + This package provides the landscape-sysinfo tool that Landscape uses |
67 | + to get information about the host. |
68 | +XB-Python-Version: ${python:Versions} |
69 | + |
70 | Package: landscape-client |
71 | Architecture: any |
72 | Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, |
73 | ${shlibs:Depends}, |
74 | python3-twisted, |
75 | python3-pycurl, |
76 | + landscape-sysinfo (= ${binary:Version}), |
77 | landscape-common3 (= ${binary:Version}) |
78 | Suggests: ${extra:Suggests} |
79 | Description: Landscape administration system client |
80 | |
81 | === removed file 'debian/landscape-common.config' |
82 | --- debian/landscape-common.config 2017-04-04 13:46:49 +0000 |
83 | +++ debian/landscape-common.config 1970-01-01 00:00:00 +0000 |
84 | @@ -1,10 +0,0 @@ |
85 | -#!/bin/sh |
86 | - |
87 | -PACKAGE=landscape-common |
88 | - |
89 | -set -e |
90 | -. /usr/share/debconf/confmodule |
91 | - |
92 | -# Ask questions. |
93 | -db_input medium $PACKAGE/sysinfo || true |
94 | -db_go |
95 | |
96 | === added file 'debian/landscape-common.dirs' |
97 | --- debian/landscape-common.dirs 1970-01-01 00:00:00 +0000 |
98 | +++ debian/landscape-common.dirs 2017-04-07 21:11:06 +0000 |
99 | @@ -0,0 +1,3 @@ |
100 | +etc/landscape |
101 | +var/lib/landscape |
102 | +var/log/landscape |
103 | |
104 | === removed file 'debian/landscape-common.dirs' |
105 | --- debian/landscape-common.dirs 2017-04-07 18:52:18 +0000 |
106 | +++ debian/landscape-common.dirs 1970-01-01 00:00:00 +0000 |
107 | @@ -1,4 +0,0 @@ |
108 | -etc/update-motd.d |
109 | -etc/landscape |
110 | -var/lib/landscape |
111 | -var/log/landscape |
112 | |
113 | === modified file 'debian/landscape-common.install' |
114 | --- debian/landscape-common.install 2017-04-06 21:08:46 +0000 |
115 | +++ debian/landscape-common.install 2017-04-07 21:11:06 +0000 |
116 | @@ -1,3 +1,1 @@ |
117 | usr/lib/python2* |
118 | -usr/bin/landscape-sysinfo |
119 | -usr/share/landscape/landscape-sysinfo.wrapper |
120 | |
121 | === removed file 'debian/landscape-common.manpages' |
122 | --- debian/landscape-common.manpages 2017-04-04 13:46:49 +0000 |
123 | +++ debian/landscape-common.manpages 1970-01-01 00:00:00 +0000 |
124 | @@ -1,1 +0,0 @@ |
125 | -man/landscape-sysinfo.1 |
126 | |
127 | === modified file 'debian/landscape-common.postinst' |
128 | --- debian/landscape-common.postinst 2017-04-04 13:46:49 +0000 |
129 | +++ debian/landscape-common.postinst 2017-04-07 21:11:06 +0000 |
130 | @@ -26,32 +26,6 @@ |
131 | case "$1" in |
132 | configure) |
133 | |
134 | - # Since motd shows a different number of security updates, suppress the message |
135 | - dpkg-divert --package landscape-common --rename /etc/update-motd.d/90-updates-available |
136 | - |
137 | - db_get $PACKAGE/sysinfo |
138 | - # Choices: |
139 | - # * Do not display sysinfo on login |
140 | - # * Cache sysinfo in /etc/motd |
141 | - # * Run sysinfo on every login |
142 | - SYSINFO="${RET:-Cache sysinfo in /etc/motd}" |
143 | - WRAPPER=/usr/share/landscape/landscape-sysinfo.wrapper |
144 | - PROFILE_LOCATION=/etc/profile.d/50-landscape-sysinfo.sh |
145 | - UPDATE_MOTD_LOCATION=/etc/update-motd.d/50-landscape-sysinfo |
146 | - if [ "$RET" = "Cache sysinfo in /etc/motd" ]; then |
147 | - rm -f $PROFILE_LOCATION 2>/dev/null || true |
148 | - ln -sf $WRAPPER $UPDATE_MOTD_LOCATION |
149 | - update-motd 2>/dev/null || true |
150 | - elif [ "$RET" = "Run sysinfo on every login" ]; then |
151 | - rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true |
152 | - update-motd 2>/dev/null || true |
153 | - ln -sf $WRAPPER $PROFILE_LOCATION |
154 | - else |
155 | - rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true |
156 | - update-motd 2>/dev/null || true |
157 | - rm -f $PROFILE_LOCATION || true |
158 | - fi |
159 | - |
160 | # 0.9.1 introduces non-backwards compatible changes. This detects |
161 | # whether or not the data is in the current format. If not, all |
162 | # existing data is removed. |
163 | |
164 | === modified file 'debian/landscape-common.postrm' |
165 | --- debian/landscape-common.postrm 2017-04-04 13:46:49 +0000 |
166 | +++ debian/landscape-common.postrm 2017-04-07 21:11:06 +0000 |
167 | @@ -16,10 +16,8 @@ |
168 | |
169 | case "$1" in |
170 | purge) |
171 | - LOG_DIR=/var/log/landscape |
172 | CONFIG_FILE=/etc/landscape/client.conf |
173 | deluser --quiet --system landscape >/dev/null || true |
174 | - rm -f "${LOG_DIR}/sysinfo.log"* |
175 | rm -f "${CONFIG_FILE}" |
176 | ;; |
177 | |
178 | |
179 | === removed file 'debian/landscape-common.prerm' |
180 | --- debian/landscape-common.prerm 2017-04-06 20:59:56 +0000 |
181 | +++ debian/landscape-common.prerm 1970-01-01 00:00:00 +0000 |
182 | @@ -1,42 +0,0 @@ |
183 | -#!/bin/sh |
184 | -# prerm script for landscape-common |
185 | -# |
186 | -# see: dh_installdeb(1) |
187 | - |
188 | -set -e |
189 | - |
190 | -# summary of how this script can be called: |
191 | -# * <prerm> `remove' |
192 | -# * <old-prerm> `upgrade' <new-version> |
193 | -# * <new-prerm> `failed-upgrade' <old-version> |
194 | -# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> |
195 | -# * <deconfigured's-prerm> `deconfigure' `in-favour' |
196 | -# <package-being-installed> <version> `removing' |
197 | -# <conflicting-package> <version> |
198 | -# for details, see http://www.debian.org/doc/debian-policy/ or |
199 | -# the debian-policy package |
200 | - |
201 | - |
202 | -case "$1" in |
203 | - remove|upgrade|deconfigure) |
204 | - dpkg-divert --remove --package landscape-common --rename /etc/update-motd.d/90-updates-available |
205 | - rm -f /etc/update-motd.d/50-landscape-sysinfo 2>/dev/null || true |
206 | - update-motd 2>/dev/null || true |
207 | - rm -f /etc/profile.d/landscape-sysinfo.sh 2>/dev/null || true |
208 | - ;; |
209 | - |
210 | - failed-upgrade) |
211 | - ;; |
212 | - |
213 | - *) |
214 | - echo "prerm called with unknown argument \`$1'" >&2 |
215 | - exit 1 |
216 | - ;; |
217 | -esac |
218 | - |
219 | -# dh_installdeb will replace this with shell code automatically |
220 | -# generated by other debhelper scripts. |
221 | - |
222 | -#DEBHELPER# |
223 | - |
224 | -exit 0 |
225 | |
226 | === removed file 'debian/landscape-common.templates' |
227 | --- debian/landscape-common.templates 2017-04-06 20:59:56 +0000 |
228 | +++ debian/landscape-common.templates 1970-01-01 00:00:00 +0000 |
229 | @@ -1,20 +0,0 @@ |
230 | -Template: landscape-common/sysinfo |
231 | -Type: select |
232 | -# Translators beware! the following three strings form a single |
233 | -# Choices menu. - Every one of these strings has to fit in a standard |
234 | -# 80 characters console, as the fancy screen setup takes up some space |
235 | -# try to keep below ~71 characters. |
236 | -# DO NOT USE commas (,) in Choices translations otherwise |
237 | -# this will break the choices shown to users |
238 | -__Choices: Do not display sysinfo on login, Cache sysinfo in /etc/motd, Run sysinfo on every login |
239 | -Default: Cache sysinfo in /etc/motd |
240 | -_Description: landscape-sysinfo configuration: |
241 | - Landscape includes a tool and a set of modules that can display |
242 | - system status, information, and statistics on login. |
243 | - . |
244 | - This information can be gathered periodically (every 10 minutes) |
245 | - and automatically written to /etc/motd. The data could be a few |
246 | - minutes out-of-date. |
247 | - . |
248 | - Or, this information can be gathered at login. The data will be |
249 | - more current, but might introduce a small delay at login. |
250 | |
251 | === removed file 'debian/landscape-common3.config' |
252 | --- debian/landscape-common3.config 2017-03-31 12:05:57 +0000 |
253 | +++ debian/landscape-common3.config 1970-01-01 00:00:00 +0000 |
254 | @@ -1,10 +0,0 @@ |
255 | -#!/bin/sh |
256 | - |
257 | -PACKAGE=landscape-common3 |
258 | - |
259 | -set -e |
260 | -. /usr/share/debconf/confmodule |
261 | - |
262 | -# Ask questions. |
263 | -db_input medium $PACKAGE/sysinfo || true |
264 | -db_go |
265 | |
266 | === added file 'debian/landscape-common3.dirs' |
267 | --- debian/landscape-common3.dirs 1970-01-01 00:00:00 +0000 |
268 | +++ debian/landscape-common3.dirs 2017-04-07 21:11:06 +0000 |
269 | @@ -0,0 +1,3 @@ |
270 | +etc/landscape |
271 | +var/lib/landscape |
272 | +var/log/landscape |
273 | |
274 | === removed file 'debian/landscape-common3.dirs' |
275 | --- debian/landscape-common3.dirs 2017-04-07 18:52:18 +0000 |
276 | +++ debian/landscape-common3.dirs 1970-01-01 00:00:00 +0000 |
277 | @@ -1,4 +0,0 @@ |
278 | -etc/update-motd.d |
279 | -etc/landscape |
280 | -var/lib/landscape |
281 | -var/log/landscape |
282 | |
283 | === modified file 'debian/landscape-common3.install' |
284 | --- debian/landscape-common3.install 2017-04-06 21:08:46 +0000 |
285 | +++ debian/landscape-common3.install 2017-04-07 21:11:06 +0000 |
286 | @@ -1,3 +1,1 @@ |
287 | usr/lib/python3* |
288 | -usr/bin/landscape-sysinfo |
289 | -usr/share/landscape/landscape-sysinfo.wrapper |
290 | |
291 | === removed file 'debian/landscape-common3.manpages' |
292 | --- debian/landscape-common3.manpages 2017-04-06 20:59:56 +0000 |
293 | +++ debian/landscape-common3.manpages 1970-01-01 00:00:00 +0000 |
294 | @@ -1,1 +0,0 @@ |
295 | -man/landscape-sysinfo.1 |
296 | |
297 | === modified file 'debian/landscape-common3.postinst' |
298 | --- debian/landscape-common3.postinst 2017-03-31 12:05:57 +0000 |
299 | +++ debian/landscape-common3.postinst 2017-04-07 21:11:06 +0000 |
300 | @@ -26,32 +26,6 @@ |
301 | case "$1" in |
302 | configure) |
303 | |
304 | - # Since motd shows a different number of security updates, suppress the message |
305 | - dpkg-divert --package landscape-common3 --rename /etc/update-motd.d/90-updates-available |
306 | - |
307 | - db_get $PACKAGE/sysinfo |
308 | - # Choices: |
309 | - # * Do not display sysinfo on login |
310 | - # * Cache sysinfo in /etc/motd |
311 | - # * Run sysinfo on every login |
312 | - SYSINFO="${RET:-Cache sysinfo in /etc/motd}" |
313 | - WRAPPER=/usr/share/landscape/landscape-sysinfo.wrapper |
314 | - PROFILE_LOCATION=/etc/profile.d/50-landscape-sysinfo.sh |
315 | - UPDATE_MOTD_LOCATION=/etc/update-motd.d/50-landscape-sysinfo |
316 | - if [ "$RET" = "Cache sysinfo in /etc/motd" ]; then |
317 | - rm -f $PROFILE_LOCATION 2>/dev/null || true |
318 | - ln -sf $WRAPPER $UPDATE_MOTD_LOCATION |
319 | - update-motd 2>/dev/null || true |
320 | - elif [ "$RET" = "Run sysinfo on every login" ]; then |
321 | - rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true |
322 | - update-motd 2>/dev/null || true |
323 | - ln -sf $WRAPPER $PROFILE_LOCATION |
324 | - else |
325 | - rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true |
326 | - update-motd 2>/dev/null || true |
327 | - rm -f $PROFILE_LOCATION || true |
328 | - fi |
329 | - |
330 | # 0.9.1 introduces non-backwards compatible changes. This detects |
331 | # whether or not the data is in the current format. If not, all |
332 | # existing data is removed. |
333 | |
334 | === modified file 'debian/landscape-common3.postrm' |
335 | --- debian/landscape-common3.postrm 2017-04-06 20:59:56 +0000 |
336 | +++ debian/landscape-common3.postrm 2017-04-07 21:11:06 +0000 |
337 | @@ -16,10 +16,8 @@ |
338 | |
339 | case "$1" in |
340 | purge) |
341 | - LOG_DIR=/var/log/landscape |
342 | CONFIG_FILE=/etc/landscape/client.conf |
343 | deluser --quiet --system landscape >/dev/null || true |
344 | - rm -f "${LOG_DIR}/sysinfo.log"* |
345 | rm -f "${CONFIG_FILE}" |
346 | ;; |
347 | |
348 | |
349 | === removed file 'debian/landscape-common3.prerm' |
350 | --- debian/landscape-common3.prerm 2017-04-06 20:59:56 +0000 |
351 | +++ debian/landscape-common3.prerm 1970-01-01 00:00:00 +0000 |
352 | @@ -1,42 +0,0 @@ |
353 | -#!/bin/sh |
354 | -# prerm script for landscape-common3 |
355 | -# |
356 | -# see: dh_installdeb(1) |
357 | - |
358 | -set -e |
359 | - |
360 | -# summary of how this script can be called: |
361 | -# * <prerm> `remove' |
362 | -# * <old-prerm> `upgrade' <new-version> |
363 | -# * <new-prerm> `failed-upgrade' <old-version> |
364 | -# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> |
365 | -# * <deconfigured's-prerm> `deconfigure' `in-favour' |
366 | -# <package-being-installed> <version> `removing' |
367 | -# <conflicting-package> <version> |
368 | -# for details, see http://www.debian.org/doc/debian-policy/ or |
369 | -# the debian-policy package |
370 | - |
371 | - |
372 | -case "$1" in |
373 | - remove|upgrade|deconfigure) |
374 | - dpkg-divert --remove --package landscape-common3 --rename /etc/update-motd.d/90-updates-available |
375 | - rm -f /etc/update-motd.d/50-landscape-sysinfo 2>/dev/null || true |
376 | - update-motd 2>/dev/null || true |
377 | - rm -f /etc/profile.d/landscape-sysinfo.sh 2>/dev/null || true |
378 | - ;; |
379 | - |
380 | - failed-upgrade) |
381 | - ;; |
382 | - |
383 | - *) |
384 | - echo "prerm called with unknown argument \`$1'" >&2 |
385 | - exit 1 |
386 | - ;; |
387 | -esac |
388 | - |
389 | -# dh_installdeb will replace this with shell code automatically |
390 | -# generated by other debhelper scripts. |
391 | - |
392 | -#DEBHELPER# |
393 | - |
394 | -exit 0 |
395 | |
396 | === removed file 'debian/landscape-common3.templates' |
397 | --- debian/landscape-common3.templates 2017-04-06 20:59:56 +0000 |
398 | +++ debian/landscape-common3.templates 1970-01-01 00:00:00 +0000 |
399 | @@ -1,20 +0,0 @@ |
400 | -Template: landscape-common3/sysinfo |
401 | -Type: select |
402 | -# Translators beware! the following three strings form a single |
403 | -# Choices menu. - Every one of these strings has to fit in a standard |
404 | -# 80 characters console, as the fancy screen setup takes up some space |
405 | -# try to keep below ~71 characters. |
406 | -# DO NOT USE commas (,) in Choices translations otherwise |
407 | -# this will break the choices shown to users |
408 | -__Choices: Do not display sysinfo on login, Cache sysinfo in /etc/motd, Run sysinfo on every login |
409 | -Default: Cache sysinfo in /etc/motd |
410 | -_Description: landscape-sysinfo configuration: |
411 | - Landscape includes a tool and a set of modules that can display |
412 | - system status, information, and statistics on login. |
413 | - . |
414 | - This information can be gathered periodically (every 10 minutes) |
415 | - and automatically written to /etc/motd. The data could be a few |
416 | - minutes out-of-date. |
417 | - . |
418 | - Or, this information can be gathered at login. The data will be |
419 | - more current, but might introduce a small delay at login. |
420 | |
421 | === added file 'debian/landscape-sysinfo.config' |
422 | --- debian/landscape-sysinfo.config 1970-01-01 00:00:00 +0000 |
423 | +++ debian/landscape-sysinfo.config 2017-04-07 21:11:06 +0000 |
424 | @@ -0,0 +1,10 @@ |
425 | +#!/bin/sh |
426 | + |
427 | +PACKAGE=landscape-sysinfo |
428 | + |
429 | +set -e |
430 | +. /usr/share/debconf/confmodule |
431 | + |
432 | +# Ask questions. |
433 | +db_input medium $PACKAGE/sysinfo || true |
434 | +db_go |
435 | |
436 | === added file 'debian/landscape-sysinfo.dirs' |
437 | --- debian/landscape-sysinfo.dirs 1970-01-01 00:00:00 +0000 |
438 | +++ debian/landscape-sysinfo.dirs 2017-04-07 21:11:06 +0000 |
439 | @@ -0,0 +1,2 @@ |
440 | +etc/profile.d |
441 | +etc/update-motd.d |
442 | |
443 | === added file 'debian/landscape-sysinfo.install' |
444 | --- debian/landscape-sysinfo.install 1970-01-01 00:00:00 +0000 |
445 | +++ debian/landscape-sysinfo.install 2017-04-07 21:11:06 +0000 |
446 | @@ -0,0 +1,2 @@ |
447 | +usr/bin/landscape-sysinfo |
448 | +usr/share/landscape/landscape-sysinfo.wrapper |
449 | |
450 | === added file 'debian/landscape-sysinfo.manpages' |
451 | --- debian/landscape-sysinfo.manpages 1970-01-01 00:00:00 +0000 |
452 | +++ debian/landscape-sysinfo.manpages 2017-04-07 21:11:06 +0000 |
453 | @@ -0,0 +1,1 @@ |
454 | +man/landscape-sysinfo.1 |
455 | |
456 | === added file 'debian/landscape-sysinfo.postinst' |
457 | --- debian/landscape-sysinfo.postinst 1970-01-01 00:00:00 +0000 |
458 | +++ debian/landscape-sysinfo.postinst 2017-04-07 21:11:06 +0000 |
459 | @@ -0,0 +1,73 @@ |
460 | +#!/bin/sh |
461 | +set -e |
462 | + |
463 | +# summary of how this script can be called: |
464 | +# * <postinst> `configure' <most-recently-configured-version> |
465 | +# * <old-postinst> `abort-upgrade' <new version> |
466 | +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
467 | +# <new-version> |
468 | +# * <postinst> `abort-remove' |
469 | +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
470 | +# <failed-install-package> <version> `removing' |
471 | +# <conflicting-package> <version> |
472 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
473 | +# the debian-policy package |
474 | + |
475 | +. /usr/share/debconf/confmodule |
476 | +trap "db_stop || true" EXIT HUP INT QUIT TERM |
477 | + |
478 | +PACKAGE=landscape-sysinfo |
479 | + |
480 | +# Use the default installed Python 3. Running just "python3" might run |
481 | +# something from /usr/local/bin, which doesn't necessarily support |
482 | +# running the landscape client. |
483 | +PYTHON=/usr/bin/python3 |
484 | + |
485 | +case "$1" in |
486 | + configure) |
487 | + |
488 | + # Since motd shows a different number of security updates, suppress the message |
489 | + dpkg-divert --package landscape-sysinfo --rename /etc/update-motd.d/90-updates-available |
490 | + |
491 | + db_get $PACKAGE/sysinfo |
492 | + # Choices: |
493 | + # * Do not display sysinfo on login |
494 | + # * Cache sysinfo in /etc/motd |
495 | + # * Run sysinfo on every login |
496 | + SYSINFO="${RET:-Cache sysinfo in /etc/motd}" |
497 | + WRAPPER=/usr/share/landscape/landscape-sysinfo.wrapper |
498 | + PROFILE_LOCATION=/etc/profile.d/50-landscape-sysinfo.sh |
499 | + UPDATE_MOTD_LOCATION=/etc/update-motd.d/50-landscape-sysinfo |
500 | + if [ "$RET" = "Cache sysinfo in /etc/motd" ]; then |
501 | + rm -f $PROFILE_LOCATION 2>/dev/null || true |
502 | + ln -sf $WRAPPER $UPDATE_MOTD_LOCATION |
503 | + update-motd 2>/dev/null || true |
504 | + elif [ "$RET" = "Run sysinfo on every login" ]; then |
505 | + rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true |
506 | + update-motd 2>/dev/null || true |
507 | + ln -sf $WRAPPER $PROFILE_LOCATION |
508 | + else |
509 | + rm -f $UPDATE_MOTD_LOCATION 2>/dev/null || true |
510 | + update-motd 2>/dev/null || true |
511 | + rm -f $PROFILE_LOCATION || true |
512 | + fi |
513 | + |
514 | + # We rely on landscape-common to create the user and log dir. |
515 | + |
516 | + ;; |
517 | + |
518 | + abort-upgrade|abort-remove|abort-deconfigure) |
519 | + ;; |
520 | + |
521 | + *) |
522 | + echo "postinst called with unknown argument \`$1'" >&2 |
523 | + exit 1 |
524 | + ;; |
525 | +esac |
526 | + |
527 | +# dh_installdeb will replace this with shell code automatically |
528 | +# generated by other debhelper scripts. |
529 | + |
530 | +#DEBHELPER# |
531 | + |
532 | +exit 0 |
533 | |
534 | === added file 'debian/landscape-sysinfo.postrm' |
535 | --- debian/landscape-sysinfo.postrm 1970-01-01 00:00:00 +0000 |
536 | +++ debian/landscape-sysinfo.postrm 2017-04-07 21:11:06 +0000 |
537 | @@ -0,0 +1,37 @@ |
538 | +#!/bin/sh |
539 | +set -e |
540 | + |
541 | +# summary of how this script can be called: |
542 | +# * <postrm> `remove' |
543 | +# * <postrm> `purge' |
544 | +# * <old-postrm> `upgrade' <new-version> |
545 | +# * <new-postrm> `failed-upgrade' <old-version> |
546 | +# * <new-postrm> `abort-install' |
547 | +# * <new-postrm> `abort-install' <old-version> |
548 | +# * <new-postrm> `abort-upgrade' <old-version> |
549 | +# * <disappearer's-postrm> `disappear' <overwriter> |
550 | +# <overwriter-version> |
551 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
552 | +# the debian-policy package |
553 | + |
554 | +case "$1" in |
555 | + purge) |
556 | + LOG_DIR=/var/log/landscape |
557 | + rm -f "${LOG_DIR}/sysinfo.log"* |
558 | + ;; |
559 | + |
560 | + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
561 | + ;; |
562 | + |
563 | + *) |
564 | + echo "postrm called with unknown argument \`$1'" >&2 |
565 | + exit 1 |
566 | + ;; |
567 | +esac |
568 | + |
569 | +# dh_installdeb will replace this with shell code automatically |
570 | +# generated by other debhelper scripts. |
571 | + |
572 | +#DEBHELPER# |
573 | + |
574 | +exit 0 |
575 | |
576 | === added file 'debian/landscape-sysinfo.prerm' |
577 | --- debian/landscape-sysinfo.prerm 1970-01-01 00:00:00 +0000 |
578 | +++ debian/landscape-sysinfo.prerm 2017-04-07 21:11:06 +0000 |
579 | @@ -0,0 +1,42 @@ |
580 | +#!/bin/sh |
581 | +# prerm script for landscape-sysinfo |
582 | +# |
583 | +# see: dh_installdeb(1) |
584 | + |
585 | +set -e |
586 | + |
587 | +# summary of how this script can be called: |
588 | +# * <prerm> `remove' |
589 | +# * <old-prerm> `upgrade' <new-version> |
590 | +# * <new-prerm> `failed-upgrade' <old-version> |
591 | +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> |
592 | +# * <deconfigured's-prerm> `deconfigure' `in-favour' |
593 | +# <package-being-installed> <version> `removing' |
594 | +# <conflicting-package> <version> |
595 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
596 | +# the debian-policy package |
597 | + |
598 | + |
599 | +case "$1" in |
600 | + remove|upgrade|deconfigure) |
601 | + dpkg-divert --remove --package landscape-sysinfo --rename /etc/update-motd.d/90-updates-available |
602 | + rm -f /etc/update-motd.d/50-landscape-sysinfo 2>/dev/null || true |
603 | + update-motd 2>/dev/null || true |
604 | + rm -f /etc/profile.d/landscape-sysinfo.sh 2>/dev/null || true |
605 | + ;; |
606 | + |
607 | + failed-upgrade) |
608 | + ;; |
609 | + |
610 | + *) |
611 | + echo "prerm called with unknown argument \`$1'" >&2 |
612 | + exit 1 |
613 | + ;; |
614 | +esac |
615 | + |
616 | +# dh_installdeb will replace this with shell code automatically |
617 | +# generated by other debhelper scripts. |
618 | + |
619 | +#DEBHELPER# |
620 | + |
621 | +exit 0 |
622 | |
623 | === added file 'debian/landscape-sysinfo.templates' |
624 | --- debian/landscape-sysinfo.templates 1970-01-01 00:00:00 +0000 |
625 | +++ debian/landscape-sysinfo.templates 2017-04-07 21:11:06 +0000 |
626 | @@ -0,0 +1,20 @@ |
627 | +Template: landscape-sysinfo/sysinfo |
628 | +Type: select |
629 | +# Translators beware! the following three strings form a single |
630 | +# Choices menu. - Every one of these strings has to fit in a standard |
631 | +# 80 characters console, as the fancy screen setup takes up some space |
632 | +# try to keep below ~71 characters. |
633 | +# DO NOT USE commas (,) in Choices translations otherwise |
634 | +# this will break the choices shown to users |
635 | +__Choices: Do not display sysinfo on login, Cache sysinfo in /etc/motd, Run sysinfo on every login |
636 | +Default: Cache sysinfo in /etc/motd |
637 | +_Description: landscape-sysinfo configuration: |
638 | + Landscape includes a tool and a set of modules that can display |
639 | + system status, information, and statistics on login. |
640 | + . |
641 | + This information can be gathered periodically (every 10 minutes) |
642 | + and automatically written to /etc/motd. The data could be a few |
643 | + minutes out-of-date. |
644 | + . |
645 | + Or, this information can be gathered at login. The data will be |
646 | + more current, but might introduce a small delay at login. |
647 | |
648 | === modified file 'debian/rules' |
649 | --- debian/rules 2017-04-07 18:52:18 +0000 |
650 | +++ debian/rules 2017-04-07 21:11:06 +0000 |
651 | @@ -2,7 +2,7 @@ |
652 | |
653 | dist_release := $(shell lsb_release -cs) |
654 | |
655 | -dh_extra_flags = -plandscape-common -plandscape-common3 -plandscape-client |
656 | +dh_extra_flags = -plandscape-common -plandscape-common3 -plandscape-client -plandscape-sysinfo |
657 | |
658 | -include /usr/share/python/python.mk |
659 | ifeq (,$(py_sitename)) |
Command: TRIAL_ARGS=-j4 make ci-check /ci.lscape. net/job/ latch-test- xenial/ 3863/
Result: Success
Revno: 1014
Branch: lp:~ericsnowcurrently/landscape-client/sysinfo-package
Jenkins: https:/