@cryptotaxi247 / netdata-1 / commits / 49e417b33

Add support for DEB packages for Ubuntu 20.04 (focal) (#9592)

* Add support for Ubuntu 20.04 DEB packages * Add Travis config to also build the DEB packages for Ubuntu 20.04 (focal)

James Mills committed Aug 7, 2020 at 15:00 UTC 49e417b33701037b82c17dca7731b41a6bed5869
3 files changed +85
.travis.yml
+8
@@ -278,6 +278,14 @@ jobs:
278 - PACKAGE_TYPE="deb" REPO_TOOL="apt-get"
279 - ALLOW_SOFT_FAILURE_HERE=true
280
281 + - name: "Build & Publish DEB package for ubuntu/focal"
282 + <<: *DEB_TEMPLATE
283 + if: commit_message =~ /\[Package (amd64|arm64|i386) DEB( Ubuntu)?\]/
284 + env:
285 + - BUILDER_NAME="builder" BUILD_DISTRO="ubuntu" BUILD_RELEASE="focal" BUILD_STRING="ubuntu/focal"
286 + - PACKAGE_TYPE="deb" REPO_TOOL="apt-get"
287 + - ALLOW_SOFT_FAILURE_HERE=true
288 +
289 - name: "Build & Publish DEB package for debian/buster"
290 <<: *DEB_TEMPLATE
291 if: commit_message =~ /\[Package (amd64|arm64|i386) DEB( Debian)?\]/
.travis/package_management/configure_deb_lxc_environment.py
+4
@@ -91,6 +91,10 @@ if str(os.environ["BUILD_STRING"]).count("debian/buster") == 1:
91 common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.buster', 'contrib/debian/control'])
92
93 ### Ubuntu
94 +if str(os.environ["BUILD_STRING"]).count("ubuntu/focal") == 1:
95 + print("5.1 We are building for Xenial, adjusting control file")
96 + common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control'])
97 + common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.focal', 'contrib/debian/control'])
98 if str(os.environ["BUILD_STRING"]).count("ubuntu/xenial") == 1:
99 print("5.1 We are building for Xenial, adjusting control file")
100 common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control'])
contrib/debian/control.focal new
+73
@@ -0,0 +1,73 @@
1 +Source: netdata
2 +Build-Depends: debhelper (>= 9),
3 + dh-autoreconf,
4 + dh-systemd (>= 1.5),
5 + dpkg-dev (>= 1.13.19),
6 + zlib1g-dev,
7 + uuid-dev,
8 + libuv1-dev,
9 + liblz4-dev,
10 + libjudy-dev,
11 + libssl-dev,
12 + libmnl-dev,
13 + libjson-c-dev,
14 + libcups2-dev,
15 + libipmimonitoring-dev,
16 + libnetfilter-acct-dev,
17 + libsnappy-dev,
18 + libprotobuf-dev,
19 + libprotoc-dev,
20 + cmake,
21 + autogen,
22 + autoconf,
23 + automake,
24 + pkg-config,
25 + curl,
26 + gcc,
27 + g++
28 +Section: net
29 +Priority: optional
30 +Maintainer: Netdata Builder <bot@netdata.cloud>
31 +Standards-Version: 3.9.6
32 +Homepage: https://netdata.cloud
33 +
34 +Package: netdata
35 +Architecture: any
36 +Depends: adduser,
37 + libcap2-bin (>= 1:2.0),
38 + lsb-base (>= 3.1-23.2),
39 + zlib1g,
40 + libuuid1,
41 + libuv1,
42 + liblz4-1,
43 + libjudydebian1,
44 + openssl,
45 + libmnl0,
46 + libjson-c4,
47 + libnetfilter-acct1,
48 + libprotobuf-c1,
49 + libsnappy1v5,
50 + libprotoc17,
51 + ${misc:Depends},
52 + ${shlibs:Depends}
53 +Pre-Depends: dpkg (>= 1.17.14)
54 +Description: real-time charts for system monitoring
55 + Netdata is a daemon that collects data in realtime (per second)
56 + and presents a web site to view and analyze them. The presentation
57 + is also real-time and full of interactive charts that precisely
58 + render all collected values.
59 +
60 +Package: netdata-plugin-cups
61 +Architecture: any
62 +Depends: cups,
63 + netdata (>= ${source:Version})
64 +Description: The Common Unix Printing System plugin for metrics collection from cupsd
65 +
66 +Package: netdata-plugin-freeipmi
67 +Architecture: any
68 +Depends: freeipmi,
69 + netdata (= ${source:Version})
70 +Description: FreeIPMI - The Intelligent Platform Management System.
71 + The IPMI specification defines a set of interfaces for platform management.
72 + It is implemented by a number vendors for system management. The features of IPMI that most users will be interested in
73 + are sensor monitoring, system event monitoring, power control, and serial-over-LAN (SOL).