1
0
mirror of https://github.com/netdata/netdata.git synced 2021-06-06 23:03:21 +03:00
Files
netdata/contrib
vkalintiris 0d96e0a187 Compile/Link with absolute paths for bundled/vendored deps. (#11129)
* Do not accept a path when using --with-bundled-lws.

The bundled library is always placed under externaldeps/libwebsockets,
when using the netdata-installer.sh script. When this option is missing,
we look for the system-wide installed version.

* Do not accept a path when using --with-bundled-libJudy.

The bundled library is always placed under externaldeps/libJudy. When
the option is not given, we look for the system-wide installed version.

* Use absolute header paths for repo-internal deps.

* Use absolute library paths for repo-internal deps.
2021-06-01 13:22:36 +03:00
..
2021-04-05 08:18:11 -04:00

Netdata contrib

Building .deb packages

The contrib/debian/ directory contains basic rules to build a Debian package. It has been tested on Debian Jessie and Wheezy, but should work, possibly with minor changes, if you have other dpkg-based systems such as Ubuntu or Mint.

To build Netdata for a Debian Jessie system, the debian directory has to be available in the root of the Netdata source. The easiest way to do this is with a symlink:

ln -s contrib/debian

Edit the debian/changelog file to reflect the package version and the build time:

netdata (1.21.0) unstable; urgency=medium

  * Initial Release

 -- Netdata Builder <bot@netdata.cloud>   Tue, 12 May 2020 10:36:52 +0200

Then build the debian package:

dpkg-buildpackage -us -uc -rfakeroot

This should give a package that can be installed in the parent directory, which you can install manually with dpkg.

ls -1 ../*.deb
../netdata_1.21.0_amd64.deb
../netdata-dbgsym_1.21.0_amd64.deb
../netdata-plugin-cups_1.21.0_amd64.deb
../netdata-plugin-cups-dbgsym_1.21.0_amd64.deb
../netdata-plugin-freeipmi_1.21.0_amd64.deb
../netdata-plugin-freeipmi-dbgsym_1.21.0_amd64.deb
sudo dpkg -i ../netdata_1.21.0_amd64.deb

Reinstalling Netdata

The recommended way to upgrade Netdata packages built from this source is to remove the current package from your system, then install the new package. Upgrading on wheezy is known to not work cleanly; Jessie may behave as expected.

analytics