mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
336242ef27
The recipe wants to install a script under init.d but does not want to it be started by default. It did so by inheriting update-rc.d and setting INITSCRIPT_PARAMS to "remove". This is not correct. We could just not inherit 'update-rc.d' to achieve such effect. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
46 lines
1.8 KiB
BlitzBasic
46 lines
1.8 KiB
BlitzBasic
SUMMARY = "High Availability monitor built upon LVS, VRRP and service pollers"
|
|
DESCRIPTION = "Keepalived is a routing software written in C. The main goal \
|
|
of this project is to provide simple and robust facilities for loadbalancing \
|
|
and high-availability to Linux system and Linux based infrastructures. \
|
|
Loadbalancing framework relies on well-known and widely used Linux Virtual \
|
|
Server (IPVS) kernel module providing Layer4 loadbalancing \
|
|
"
|
|
HOMEPAGE = "http://www.keepalived.org/"
|
|
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz"
|
|
SRC_URI[md5sum] = "610af6e04071f02d3469191de7499f4e"
|
|
SRC_URI[sha256sum] = "4e2d7cc01a6ee29a3955f5c622d47704ba7d9dd758189f15e9def016a2d1faa3"
|
|
|
|
DEPENDS = "libnfnetlink openssl"
|
|
|
|
inherit autotools pkgconfig systemd
|
|
|
|
PACKAGECONFIG ??= "libnl snmp \
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
|
|
"
|
|
PACKAGECONFIG[libnl] = "--enable-libnl,--disable-libnl,libnl"
|
|
PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp,net-snmp"
|
|
PACKAGECONFIG[systemd] = "--with-init=systemd --with-systemdsystemunitdir=${systemd_system_unitdir},--with-init=SYSV,systemd"
|
|
|
|
EXTRA_OECONF = "--disable-libiptc"
|
|
EXTRA_OEMAKE = "initdir=${sysconfdir}/init.d"
|
|
|
|
do_install_append() {
|
|
if [ -f ${D}${sysconfdir}/init.d/${BPN} ]; then
|
|
chmod 0755 ${D}${sysconfdir}/init.d/${BPN}
|
|
sed -i 's#rc.d/##' ${D}${sysconfdir}/init.d/${BPN}
|
|
fi
|
|
|
|
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
|
install -D -m 0644 ${B}/${BPN}/${BPN}.service ${D}${systemd_system_unitdir}/${BPN}.service
|
|
fi
|
|
}
|
|
|
|
FILES_${PN} += "${datadir}/snmp/mibs/KEEPALIVED-MIB.txt"
|
|
|
|
SYSTEMD_SERVICE_${PN} = "keepalived.service"
|
|
SYSTEMD_AUTO_ENABLE ?= "disable"
|