From 2a798ad5510008abcb3949d17d97ddaa6d2801b8 Mon Sep 17 00:00:00 2001 From: Sander Klein Date: Wed, 19 Aug 2020 15:14:26 +0200 Subject: Debian packaging (#8982) * Add protobuf-compiler This adds the package protobuf-compiler to the dependencies. Without it, prometheus support will not be included. * Remove libraries from dependencies There is no need to include the libraries since they will automaticaly be added by ${shlibs:Depends} * Remove various control files - control.buster - control.eoan - control.xenial Default control file can be used - control.jessie About to be unsupported - control.wheezy unsupported - control.trusty Since Netdata need libuv1-dev to build, it cannot be build on Trusty anymore because it doesn't have that library. * Fix sysv init scripts Set the location of the pidfile using $PIDFILE in the init script and in the defaults file. This way no changes are needed when compiling for systemd or sysv. * Update documentation to reflect the changes * Add note about updating the changelog * Update install instructions * Remove travis control file adjustments Since these control files have been removed, this code is now obsolete. * Remove unused control.focal file --- .../configure_deb_lxc_environment.py | 24 ---------------------- 1 file changed, 24 deletions(-) (limited to '.travis') diff --git a/.travis/package_management/configure_deb_lxc_environment.py b/.travis/package_management/configure_deb_lxc_environment.py index 1ffda6135f..627493bf54 100755 --- a/.travis/package_management/configure_deb_lxc_environment.py +++ b/.travis/package_management/configure_deb_lxc_environment.py @@ -80,30 +80,6 @@ tar_file="%s/netdata-%s.tar.gz" % (os.path.dirname(dest_archive), friendly_versi print("5. I will be building version '%s' of netdata." % os.environ['BUILD_VERSION']) dest_archive="%s/netdata-%s.tar.gz" % (build_path, friendly_version) -### Debian -if str(os.environ["BUILD_STRING"]).count("debian/jessie") == 1: - print("5.1 We are building for Jessie, adjusting control file") - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control']) - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.jessie', 'contrib/debian/control']) -if str(os.environ["BUILD_STRING"]).count("debian/buster") == 1: - print("5.1 We are building for Buster, adjusting control file") - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control']) - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.buster', 'contrib/debian/control']) - -### Ubuntu -if str(os.environ["BUILD_STRING"]).count("ubuntu/focal") == 1: - print("5.1 We are building for Focal, adjusting control file") - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control']) - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.focal', 'contrib/debian/control']) -if str(os.environ["BUILD_STRING"]).count("ubuntu/xenial") == 1: - print("5.1 We are building for Xenial, adjusting control file") - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control']) - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.xenial', 'contrib/debian/control']) -if str(os.environ["BUILD_STRING"]).count("ubuntu/eoan") == 1: - print("5.1 We are building for Eoan, adjusting control file") - common.run_command_in_host(['sudo', 'rm', 'contrib/debian/control']) - common.run_command_in_host(['sudo', 'cp', 'contrib/debian/control.eoan', 'contrib/debian/control']) - common.prepare_version_source(dest_archive, friendly_version, tag=tag) print("6. Installing build.sh script to build path") -- cgit v1.2.3