mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-16 03:09:38 +00:00
* 0001-Correct-timeout-issue.patch: timeout is build by coreutils * 0002-Makefiles-does-not-build-contrib-dir.patch: Upstream added identical Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
56 lines
1.8 KiB
BlitzBasic
56 lines
1.8 KiB
BlitzBasic
HOMEPAGE = "https://github.com/firehol/netdata/"
|
|
SUMMARY = "Real-time performance monitoring"
|
|
LICENSE = "GPLv3"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=fc9b848046ef54b5eaee6071947abd24"
|
|
|
|
SRC_URI = "git://github.com/firehol/netdata.git;protocol=https"
|
|
SRCREV = "1be9200ba8e11dc81a2101d85a2725137d43f766"
|
|
PV = "1.22.1"
|
|
|
|
# default netdata.conf for netdata configuration
|
|
SRC_URI += "file://netdata.conf"
|
|
|
|
# file for providing systemd service support
|
|
SRC_URI += "file://netdata.service"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
DEPENDS += "zlib util-linux libuv"
|
|
|
|
inherit pkgconfig autotools-brokensep useradd systemd
|
|
|
|
LIBS_toolchain-clang_x86 = "-latomic"
|
|
LIBS_riscv64 = "-latomic"
|
|
LIBS_riscv32 = "-latomic"
|
|
export LIBS
|
|
|
|
#systemd
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
SYSTEMD_SERVICE_${PN} = "netdata.service"
|
|
SYSTEMD_AUTO_ENABLE_${PN} = "enable"
|
|
|
|
#User specific
|
|
USERADD_PACKAGES = "${PN}"
|
|
GROUPADD_PARAM_${PN} = "--system netdata"
|
|
|
|
do_install_append() {
|
|
#set S UID for plugins
|
|
chmod 4755 ${D}${libexecdir}/netdata/plugins.d/apps.plugin
|
|
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
|
# Install systemd unit files
|
|
install -d ${D}${systemd_unitdir}/system
|
|
install -m 0644 ${WORKDIR}/netdata.service ${D}${systemd_unitdir}/system
|
|
sed -i -e 's,@@datadir,${datadir_native},g' ${D}${systemd_unitdir}/system/netdata.service
|
|
fi
|
|
|
|
# Install default netdata.conf
|
|
install -d ${D}${sysconfdir}/netdata
|
|
install -m 0644 ${WORKDIR}/netdata.conf ${D}${sysconfdir}/netdata/
|
|
sed -i -e 's,@@sysconfdir,${sysconfdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
|
sed -i -e 's,@@libdir,${libexecdir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
|
sed -i -e 's,@@datadir,${datadir},g' ${D}${sysconfdir}/netdata/netdata.conf
|
|
}
|
|
|
|
RDEPENDS_${PN} = "bash zlib"
|