From bb50acdcb8073654ea667b8c0272e335bd43f844 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 14 Apr 2022 20:12:14 +0200 Subject: Merging upstream version 1.34.0. Signed-off-by: Daniel Baumann --- netdata.spec.in | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) (limited to 'netdata.spec.in') diff --git a/netdata.spec.in b/netdata.spec.in index c4f53fed5..3d016c971 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -139,15 +139,23 @@ BuildRequires: libuuid-devel BuildRequires: libuv-devel >= 1 BuildRequires: openssl-devel %if 0%{?suse_version} +BuildRequires: protobuf-devel +BuildRequires: libprotobuf-c-devel BuildRequires: judy-devel BuildRequires: liblz4-devel BuildRequires: libjson-c-devel %else %if 0%{?fedora} +BuildRequires: protobuf-devel +BuildRequires: protobuf-c-devel BuildRequires: Judy-devel BuildRequires: lz4-devel BuildRequires: json-c-devel %else +%if 0%{?centos_ver} >= 8 +BuildRequires: protobuf-devel +BuildRequires: protobuf-c-devel +%endif BuildRequires: lz4-devel BuildRequires: json-c-devel %endif @@ -200,12 +208,6 @@ BuildRequires: cups-devel >= 1.7 # Prometheus remote write dependencies BuildRequires: snappy-devel -BuildRequires: protobuf-devel -%if 0%{?suse_version} -BuildRequires: libprotobuf-c-devel -%else -BuildRequires: protobuf-c-devel -%endif # end - prometheus remote write dependencies # ##################################################################### @@ -227,15 +229,24 @@ happened, on your systems and applications. %if 0%{!?fedora:1} && 0%{!?suse_version:1} export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-judy.sh ${RPM_BUILD_DIR}/%{name}-%{version} %endif +# Only bundle protobuf on CentOS 7 or earlier +%if 0%{?centos_ver:1} +%if %{centos_ver} < 8 +export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-protobuf.sh ${RPM_BUILD_DIR}/%{name}-%{version} +%endif +%endif %if 0%{?_have_ebpf} %if 0%{?centos_ver:1} %if %{centos_ver} < 8 export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} centos7 +export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf-co-re.sh ${RPM_BUILD_DIR}/%{name}-%{version} %else export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} centos8 +export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf-co-re.sh ${RPM_BUILD_DIR}/%{name}-%{version} %endif %else export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} other +export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf-co-re.sh ${RPM_BUILD_DIR}/%{name}-%{version} %endif %endif @@ -249,6 +260,11 @@ autoreconf -ivf %if 0%{!?fedora:1} && 0%{!?suse_version:1} --with-bundled-libJudy \ %endif + %if 0%{?centos_ver:1} + %if %{centos_ver} < 8 + --with-bundled-protobuf \ + %endif + %endif --prefix="%{_prefix}" \ --sysconfdir="%{_sysconfdir}" \ --localstatedir="%{_localstatedir}" \ @@ -270,6 +286,10 @@ rm -rf "${RPM_BUILD_ROOT}" install -m 644 -p system/netdata.conf "${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}" +# ########################################################### +# Install updater script +install -m 755 -p packaging/installer/netdata-updater.sh "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/netdata-updater.sh" + # ########################################################### # logrotate settings install -m 755 -d "${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d" @@ -497,7 +517,7 @@ rm -rf "${RPM_BUILD_ROOT}" # Enforce 0644 for files and 0755 for directories # for the netdata web directory -%defattr(0644,root,netdata,0755) +%defattr(0644,root,root,0755) %{_datadir}/%{name}/web # Enforce 0660 for files and 0770 for directories @@ -544,6 +564,8 @@ are sensor monitoring, system event monitoring, power control, and serial-over-L %attr(4750,root,netdata) %{_libexecdir}/%{name}/plugins.d/freeipmi.plugin %changelog +* Wed Feb 03 2022 Austin Hemmelgarn 0.0.0-16 +- Bundle updater script in native packages. * Mon Oct 11 2021 Austin Hemmelgarn 0.0.0-15 - Remove support code for legacy ACLK implementation. * Wed Sep 16 2020 Austin Hemmelgarn 0.0.0-14 -- cgit v1.2.3