From f867f90d5fb37d2493099700f9f0752a4a2d50d3 Mon Sep 17 00:00:00 2001 From: Neil McKee Date: Mon, 28 Nov 2022 11:40:32 -0800 Subject: [PATCH] DROPMON extension appeared in kernel 5.4, not 5.0 --- hsflowd.spec | 4 ++-- src/Linux/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hsflowd.spec b/hsflowd.spec index 0b57b26..4916788 100644 --- a/hsflowd.spec +++ b/hsflowd.spec @@ -1,7 +1,7 @@ Summary: host sFlow daemon Name: hsflowd -Version: 2.0.39 -Release: 9 +Version: 2.0.40 +Release: 1 License: http://sflow.net/license.html Group: Applications/Internet URL: http://sflow.net diff --git a/src/Linux/Makefile b/src/Linux/Makefile index baf5842..ab8bbed 100644 --- a/src/Linux/Makefile +++ b/src/Linux/Makefile @@ -15,7 +15,7 @@ endif # learn kernel version KVER=$(shell ./kernelVersion.sh) -KERNEL5PLUS=$(shell if test $(KVER) -gt 5000000; then echo "yes"; else echo "no"; fi) +KERNEL54PLUS=$(shell if test $(KVER) -ge 5004000; then echo "yes"; else echo "no"; fi) HSFLOWD_CONF=scripts/hsflowd.conf HSFLOWD_INITSCRIPT=scripts/hsflowd @@ -47,7 +47,7 @@ FEATURES_EOS= EAPI FEATURES_OS10= OS10 DBUS SYSTEMD FEATURES_OPX= OPX DBUS SYSTEMD FEATURES_SONIC= SONIC PSAMPLE DOCKER -ifeq ($(KERNEL5PLUS),yes) +ifeq ($(KERNEL54PLUS),yes) FEATURES_SONIC += DROPMON endif FEATURES_XEN= XEN OVS