diff options
| -rw-r--r-- | meta-networking/recipes-daemons/keepalived/keepalived_1.3.5.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/keepalived/keepalived_1.3.5.bb b/meta-networking/recipes-daemons/keepalived/keepalived_1.3.5.bb new file mode 100644 index 0000000000..5e7e6e49f5 --- /dev/null +++ b/meta-networking/recipes-daemons/keepalived/keepalived_1.3.5.bb | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | SUMMARY = "High Availability monitor built upon LVS, VRRP and service pollers" | ||
| 2 | DESCRIPTION = "Keepalived is a routing software written in C. The main goal \ | ||
| 3 | of this project is to provide simple and robust facilities for loadbalancing \ | ||
| 4 | and high-availability to Linux system and Linux based infrastructures. \ | ||
| 5 | Loadbalancing framework relies on well-known and widely used Linux Virtual \ | ||
| 6 | Server (IPVS) kernel module providing Layer4 loadbalancing \ | ||
| 7 | " | ||
| 8 | HOMEPAGE = "http://www.keepalived.org/" | ||
| 9 | |||
| 10 | LICENSE = "GPLv2" | ||
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 12 | |||
| 13 | SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz" | ||
| 14 | |||
| 15 | SRC_URI[md5sum] = "9964d295ec9d34ed3408b57d28847b68" | ||
| 16 | SRC_URI[sha256sum] = "c0114d86ea4c896557beb0d9367819a423ffba772bc5d7c548dc455e6b3bd048" | ||
| 17 | |||
| 18 | DEPENDS = "libnfnetlink openssl" | ||
| 19 | |||
| 20 | inherit autotools pkgconfig systemd update-rc.d | ||
| 21 | |||
| 22 | PACKAGECONFIG ??= "libnl snmp \ | ||
| 23 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | ||
| 24 | " | ||
| 25 | PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl" | ||
| 26 | PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp" | ||
| 27 | PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd" | ||
| 28 | |||
| 29 | EXTRA_OECONF = "--disable-libiptc" | ||
| 30 | EXTRA_OEMAKE = "initdir=${sysconfdir}/init.d" | ||
| 31 | |||
| 32 | do_install_append() { | ||
| 33 | if [ -f ${D}${sysconfdir}/init.d/${BPN} ]; then | ||
| 34 | chmod 0755 ${D}${sysconfdir}/init.d/${BPN} | ||
| 35 | sed -i 's#rc.d/##' ${D}${sysconfdir}/init.d/${BPN} | ||
| 36 | fi | ||
| 37 | |||
| 38 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | ||
| 39 | install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service | ||
| 40 | fi | ||
| 41 | } | ||
| 42 | |||
| 43 | FILES_${PN} += "${datadir}/snmp/mibs/KEEPALIVED-MIB.txt" | ||
| 44 | |||
| 45 | INITSCRIPT_NAME = "keepalived" | ||
| 46 | INITSCRIPT_PARAMS = "remove" | ||
| 47 | |||
| 48 | SYSTEMD_SERVICE_${PN} = "keepalived.service" | ||
| 49 | SYSTEMD_AUTO_ENABLE ?= "disable" | ||
