summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2021-07-26 07:05:59 -0400
committerGitHub <noreply@github.com>2021-07-26 07:05:59 -0400
commit1bc3051f8e4736b1a71c3744a1c0d0fd59eed40c (patch)
tree0f7d2db18a99c0f748d4543db0961243432ba436 /netdata.spec.in
parentc5732041b66e6417a7d948905525a1ce70be8f18 (diff)
Properly handle eBPF plugin in RPM packages. (#11362)
Diffstat (limited to 'netdata.spec.in')
-rw-r--r--netdata.spec.in12
1 files changed, 0 insertions, 12 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index 3b6bd21234..536e039566 100644
--- a/netdata.spec.in
+++ b/netdata.spec.in
@@ -10,12 +10,6 @@
# PACKAGE IS BROKEN WITHOUT THEM.
AutoReqProv: yes
-%if "@HAVE_LIBBPF@" == "1"
-%global have_bpf 1
-%else
-%global have_bpf 0
-%endif
-
# This is temporary and should eventually be resolved. This bypasses
# the default rhel __os_install_post which throws a python compile
# error.
@@ -228,9 +222,7 @@ export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging
%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
-%if 0%{?have_bpf}
export CFLAGS="${CFLAGS} -fPIC" && ${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-libbpf.sh ${RPM_BUILD_DIR}/%{name}-%{version}
-%endif
%build
# Conf step
@@ -282,9 +274,7 @@ install -m 4750 -p perf.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.
# ###########################################################
# Install ebpf.plugin
-%if 0%{?have_bpf}
install -m 4750 -p ebpf.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/ebpf.plugin"
-%endif
# ###########################################################
# Install cups.plugin
@@ -411,9 +401,7 @@ install_go() {
install_go
install -m 0640 -p go.d.plugin "${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d/go.d.plugin"
-%if 0%{?have_bpf}
${RPM_BUILD_DIR}/%{name}-%{version}/packaging/bundle-ebpf.sh ${RPM_BUILD_DIR}/%{name}-%{version} ${RPM_BUILD_ROOT}%{_libexecdir}/%{name}/plugins.d
-%endif
%pre