mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 15:08:40 +01:00
keepalived: update to version 2.0.14
Redmine-patch-id: 3383 Update keepalived to version 2.0.14. Add Config.in file. Authored-by: Quentin Armitage <quentin@armitage.org.uk> Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
+209
-27
@@ -8,12 +8,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=keepalived
|
||||
PKG_VERSION:=2.0.10
|
||||
PKG_VERSION:=2.0.14
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=http://www.keepalived.org/software
|
||||
PKG_HASH:=40e0e55afed9ca313d621a9c5878579696fafb5504dab521aadaf20ba6e7f597
|
||||
PKG_HASH:=1bf586e56ee38b47b82f2a27b27e04d0e5b23f1810db6a8e801bde9d3eb8617b
|
||||
|
||||
PKG_CPE_ID:=cpe:/a:keepalived:keepalived
|
||||
PKG_LICENSE:=GPL-2.0+
|
||||
@@ -21,30 +21,61 @@ PKG_LICENSE_FILES:=COPYING
|
||||
PKG_MAINTAINER:=Ben Kelly <ben@benjii.net> \
|
||||
Florian Eckert <fe@dev.tdt.de>
|
||||
|
||||
PKG_CONFIG_DEPENDS += \
|
||||
KEEPALIVED_VRRP \
|
||||
KEEPALIVED_LVS \
|
||||
KEEPALIVED_IPTABLES \
|
||||
KEEPALIVED_BFD \
|
||||
KEEPALIVED_SNMP_VRRP \
|
||||
KEEPALIVED_SNMP_CHECKER \
|
||||
KEEPALIVED_SNMP_RFC2 \
|
||||
KEEPALIVED_SNMP_RFC3 \
|
||||
KEEPALIVED_SNMP_REPLY_V3_FOR_V2 \
|
||||
KEEPALIVED_DBUS \
|
||||
KEEPALIVED_JSON \
|
||||
KEEPALIVED_ROUTES \
|
||||
IPV6
|
||||
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
define Package/keepalived/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
||||
# specifying +(IPV6&&KEEPALIVED_IPTABLES) in the DEPENDS definition doesn't work
|
||||
ifeq ($(CONFIG_KEEPALIVED_IPTABLES)$(CONFIG_IPV6),yy)
|
||||
KEEPALIVED_DEPENDS_LIBIP6TC=+libip6tc
|
||||
endif
|
||||
|
||||
# The +kmod-nf-ipvs line should be +KEEPALIVED_LVS:kmod-nf-ipvs,
|
||||
# but make menuconfig then reports :error: recursive dependency detected!
|
||||
# !!FIXME DEPENDS:= +KEEPALIVED_LVS:kmod-nf-ipvs
|
||||
define Package/keepalived
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Failover and monitoring daemon for LVS clusters
|
||||
TITLE:=VRRP with failover and monitoring daemon for LVS clusters
|
||||
URL:=http://www.keepalived.org/
|
||||
DEPENDS:= \
|
||||
+libopenssl \
|
||||
+libip4tc \
|
||||
+IPV6:libip6tc \
|
||||
+libxtables \
|
||||
+kmod-macvlan \
|
||||
+libnl-genl \
|
||||
+libmagic \
|
||||
+libnl-route \
|
||||
+libnfnetlink \
|
||||
+kmod-nf-ipvs
|
||||
+KEEPALIVED_VRRP:kmod-macvlan \
|
||||
+KEEPALIVED_VRRP:libnl-route \
|
||||
+KEEPALIVED_VRRP:libnfnetlink \
|
||||
+KEEPALIVED_SHA1:libopenssl \
|
||||
+KEEPALIVED_IPTABLES:libip4tc \
|
||||
$(KEEPALIVED_DEPENDS_LIBIP6TC) \
|
||||
+KEEPALIVED_IPTABLES:libxtables \
|
||||
+KEEPALIVED_IPTABLES:libipset \
|
||||
+(KEEPALIVED_SNMP_VRRP||KEEPALIVED_SNMP_CHECKER||KEEPALIVED_SNMP_RFC2||KEEPALIVED_SNMP_RFC3):libnetsnmp \
|
||||
+KEEPALIVED_JSON:libjson-c \
|
||||
+KEEPALIVED_DBUS:glib2
|
||||
endef
|
||||
|
||||
define Package/keepalived/description
|
||||
Failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
|
||||
VRRP with failover and monitoring daemon for Linux Virtual Server (LVS) clusters.
|
||||
endef
|
||||
|
||||
define Package/keepalived/conffiles
|
||||
@@ -54,31 +85,182 @@ define Package/keepalived/conffiles
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--disable-libipset \
|
||||
--disable-libnl \
|
||||
--enable-sha1 \
|
||||
--disable-snmp \
|
||||
--with-kernel-dir="$(LINUX_DIR)/$(LINUX_UAPI_DIR)" \
|
||||
--with-init=SYSV
|
||||
--with-init=SYSV \
|
||||
--disable-nftables
|
||||
|
||||
MAKE_FLAGS += \
|
||||
STRIP="/bin/true" \
|
||||
ifeq ($(CONFIG_KEEPALIVED_VRRP),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-vrrp
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_LVS),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-lvs
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_BFD),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-bfd
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SHA1),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-sha1
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_VRRP),y)
|
||||
ifeq ($(CONFIG_KEEPALIVED_IPTABLES),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-iptables
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_IPSETS),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-libipset-dynamic
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_VRRP),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-snmp-vrrp
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_RFC2),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-snmp-rfcv2
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_RFC3),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-snmp-rfcv3
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_RFC3),y)
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_REPLY_V3_FOR_V2),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-snmp-reply-v3-for-v2
|
||||
endif
|
||||
endif # CONFIG_KEEPALIVED_SNMP_RFC3
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_JSON),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-json
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_VRRP_AUTH),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-vrrp-auth
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_CHECKSUM_COMPAT),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-checksum-compat
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_DBUS),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-dbus
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_LINKBEAT),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-linkbeat
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_ROUTES),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-routes
|
||||
endif
|
||||
endif # CONFIG_KEEPALIVED_VRRP
|
||||
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_LVS),y)
|
||||
ifeq ($(CONFIG_KEEPALIVED_LVS_SYNCD),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-lvs-syncd
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_LVS_64BIT_STATS),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-lvs-64bit-stats
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_FWMARK),)
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-fwmark
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_CHECKER),y)
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-snmp-checker
|
||||
endif
|
||||
|
||||
endif # CONFIG_KEEPALIVED_LVS
|
||||
|
||||
|
||||
MAKE_FLAGS += STRIP="/bin/true"
|
||||
TARGET_CFLAGS += -I$(LINUX_DIR)
|
||||
|
||||
define Package/keepalived/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/keepalived $(1)/usr/sbin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/keepalived \
|
||||
$(1)/usr/sbin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/genhash $(1)/usr/bin/
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/genhash \
|
||||
$(1)/usr/bin/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/keepalived
|
||||
$(CP) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf $(1)/etc/keepalived/
|
||||
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/keepalived/keepalived.conf \
|
||||
$(1)/etc/keepalived/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
|
||||
$(INSTALL_BIN) ./files/keepalived.init \
|
||||
$(1)/etc/init.d/keepalived
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived
|
||||
$(INSTALL_CONF) ./files/keepalived.config \
|
||||
$(1)/etc/config/keepalived
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc
|
||||
$(INSTALL_CONF) ./files/keepalived.user $(1)/etc/keepalived.user
|
||||
$(INSTALL_CONF) ./files/keepalived.user \
|
||||
$(1)/etc/keepalived.user
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/hotplug.d/keepalived
|
||||
$(INSTALL_DATA) ./files/hotplug-user $(1)/etc/hotplug.d/keepalived/01-user
|
||||
$(INSTALL_DATA) ./files/hotplug-user \
|
||||
$(1)/etc/hotplug.d/keepalived/01-user
|
||||
|
||||
ifneq ($(CONFIG_KEEPALIVED_SNMP_VRRP)$(CONFIG_KEEPALIVED_SNMP_CHECKER)$(CONFIG_KEEPALIVED_SNMP_RFC2)$(CONFIG_KEEPALIVED_SNMP_RFC3),)
|
||||
$(INSTALL_DIR) $(1)/usr/share/snmp/mibs
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_KEEPALIVED_SNMP_VRRP)$(CONFIG_KEEPALIVED_SNMP_CHECKER),)
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/snmp/mibs/KEEPALIVED-MIB.txt \
|
||||
$(1)/usr/share/snmp/mibs/KEEPALIVED-MIB.txt
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_RFC2),y)
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/snmp/mibs/VRRP-MIB.txt \
|
||||
$(1)/usr/share/snmp/mibs/VRRP-MIB.txt
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_SNMP_RFC3),y)
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/snmp/mibs/VRRPv3-MIB.txt \
|
||||
$(1)/usr/share/snmp/mibs/VRRPv3-MIB.txt
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_KEEPALIVED_DBUS),y)
|
||||
$(INSTALL_DIR) $(1)/etc/dbus-1/system.d
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/dbus-1/system.d/org.keepalived.Vrrp1.conf \
|
||||
$(1)/etc/dbus-1/system.d/org.keepalived.Vrrp1.conf
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/share/dbus-1/interfaces
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/dbus-1/interfaces/org.keepalived.Vrrp1.Instance.xml \
|
||||
$(1)/usr/share/dbus-1/interfaces/org.keepalived.Vrrp1.Instance.xml
|
||||
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/dbus-1/interfaces/org.keepalived.Vrrp1.Vrrp.xml \
|
||||
$(1)/usr/share/dbus-1/interfaces/org.keepalived.Vrrp1.Vrrp.xml
|
||||
endif
|
||||
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,keepalived))
|
||||
|
||||
Reference in New Issue
Block a user