netdata_netdata/contrib
Austin S. Hemmelgarn aa6d30384d
Move libbpf and eBPF CO-RE bundling into CMake. (#17484)
* Move libbpf and eBPF CO-RE bundling into CMake.

* Silence CMP0135 warnings.

* Fix handling of legacy eBPF code.

* Only enable eBPF by default on Linux.

* Correctly auto-detect the need for legacy libbpf.

* Fix include paths for libbpf linking.

* Add coreutils dependency on Alpine.

* Fix ebpf code handling.

* Fix lib path handling for libbpf.a.

* Correctly fix libbpf lib directory handling.

* Use correct comparison type.
2024-04-24 09:17:23 +03:00
..
debian Move libbpf and eBPF CO-RE bundling into CMake. (#17484) 2024-04-24 09:17:23 +03:00
README.md Add markdown files in Learn (#14466) 2023-02-08 09:48:19 -08:00

README.md

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.