initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
From 3fd0c21e4f63ac0a52b5d7a09575f0f364972e4d Mon Sep 17 00:00:00 2001
|
||||
From: Quentin Armitage <quentin@armitage.org.uk>
|
||||
Date: Tue, 8 Jun 2021 08:57:45 +0100
|
||||
Subject: [PATCH] core: Fix compiling on RHEL 9
|
||||
|
||||
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/acassen/keepalived/commit/3fd0c21e4f63ac0a52b5d7a09575f0f364972e4d]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
keepalived/core/layer4.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/keepalived/core/layer4.c b/keepalived/core/layer4.c
|
||||
index d2cc971a3..fdca04913 100644
|
||||
--- a/keepalived/core/layer4.c
|
||||
+++ b/keepalived/core/layer4.c
|
||||
@@ -27,13 +27,14 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
+#include <netinet/in.h>
|
||||
+#include <net/if.h>
|
||||
#include <linux/icmp.h>
|
||||
#include <linux/icmpv6.h>
|
||||
#ifdef ERRQUEUE_NEEDS_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <linux/errqueue.h>
|
||||
-#include <netinet/in.h>
|
||||
|
||||
#include "layer4.h"
|
||||
#include "logger.h"
|
||||
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_KEEPALIVED
|
||||
bool "keepalived"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_STATIC_LIBS # uses libdl
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
The main goal of the keepalived project is to add a strong &
|
||||
robust keepalive facility to the Linux Virtual Server
|
||||
project. It implements a multilayer TCP/IP stack
|
||||
checks. Keepalived implements a framework based on three
|
||||
family checks: Layer3, Layer4 & Layer5. This framework gives
|
||||
the daemon the ability of checking a LVS server pool
|
||||
states. Keepalived can be sumarize as a LVS driving daemon.
|
||||
|
||||
http://www.keepalived.org/
|
||||
|
||||
comment "keepalived needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 245bf399e4320064996ac5507236a8896f545d005f6c4c3b91701bcbc5728c60 keepalived-2.1.4.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
@@ -0,0 +1,57 @@
|
||||
################################################################################
|
||||
#
|
||||
# keepalived
|
||||
#
|
||||
################################################################################
|
||||
|
||||
KEEPALIVED_VERSION = 2.1.4
|
||||
KEEPALIVED_SITE = http://www.keepalived.org/software
|
||||
KEEPALIVED_DEPENDENCIES = host-pkgconf openssl
|
||||
KEEPALIVED_LICENSE = GPL-2.0+
|
||||
KEEPALIVED_LICENSE_FILES = COPYING
|
||||
KEEPALIVED_CPE_ID_VENDOR = keepalived
|
||||
KEEPALIVED_CONF_OPTS = --disable-hardening
|
||||
|
||||
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
||||
KEEPALIVED_DEPENDENCIES += json-c
|
||||
KEEPALIVED_CONF_OPTS += --enable-json
|
||||
else
|
||||
KEEPALIVED_CONF_OPTS += --disable-json
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
||||
KEEPALIVED_DEPENDENCIES += libglib2
|
||||
KEEPALIVED_CONF_OPTS += --enable-dbus
|
||||
else
|
||||
KEEPALIVED_CONF_OPTS += --disable-dbus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNL)$(BR2_PACKAGE_LIBNFNETLINK),yy)
|
||||
KEEPALIVED_DEPENDENCIES += libnl libnfnetlink
|
||||
KEEPALIVED_CONF_OPTS += --enable-libnl
|
||||
else
|
||||
KEEPALIVED_CONF_OPTS += --disable-libnl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_IPTABLES),y)
|
||||
KEEPALIVED_DEPENDENCIES += iptables
|
||||
KEEPALIVED_CONF_OPTS += --enable-iptables
|
||||
# ipset support only makes sense when iptables support is enabled.
|
||||
ifeq ($(BR2_PACKAGE_IPSET),y)
|
||||
KEEPALIVED_DEPENDENCIES += ipset
|
||||
KEEPALIVED_CONF_OPTS += --enable-libipset
|
||||
else
|
||||
KEEPALIVED_CONF_OPTS += --disable-libipset
|
||||
endif
|
||||
else
|
||||
KEEPALIVED_CONF_OPTS += --disable-iptables
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNFTNL),y)
|
||||
KEEPALIVED_DEPENDENCIES += libnftnl
|
||||
KEEPALIVED_CONF_OPTS += --enable-nftables
|
||||
else
|
||||
KEEPALIVED_CONF_OPTS += --disable-nftables
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user