blob: 9a20e02db67ca6c460540629a8fb9745d3006862 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001SUMMARY = "High Availability monitor built upon LVS, VRRP and service pollers"
2DESCRIPTION = "Keepalived is a routing software written in C. The main goal \
3of this project is to provide simple and robust facilities for loadbalancing \
4and high-availability to Linux system and Linux based infrastructures. \
5Loadbalancing framework relies on well-known and widely used Linux Virtual \
6Server (IPVS) kernel module providing Layer4 loadbalancing \
7"
8HOMEPAGE = "http://www.keepalived.org/"
9
10LICENSE = "GPLv2"
11LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
12
13SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz"
14SRC_URI[md5sum] = "68413d76fc23191ddd66246d498e19b5"
15SRC_URI[sha256sum] = "933ee01bc6346aa573453b998f87510d3cce4aba4537c9642b24e6dbfba5c6f4"
16
17DEPENDS = "libnfnetlink openssl"
18
19inherit autotools pkgconfig systemd
20
21PACKAGECONFIG ??= "libnl snmp \
22 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
23"
24PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl"
25PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp"
26PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd"
27
28EXTRA_OECONF = "--disable-libiptc"
29EXTRA_OEMAKE = "initdir=${sysconfdir}/init.d"
30
31do_install_append() {
32 if [ -f ${D}${sysconfdir}/init.d/${BPN} ]; then
33 chmod 0755 ${D}${sysconfdir}/init.d/${BPN}
34 sed -i 's#rc.d/##' ${D}${sysconfdir}/init.d/${BPN}
35 fi
36
37 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
38 install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
39 fi
40}
41
42FILES_${PN} += "${datadir}/snmp/mibs/KEEPALIVED-MIB.txt"
43
44SYSTEMD_SERVICE_${PN} = "keepalived.service"
45SYSTEMD_AUTO_ENABLE ?= "disable"