mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
meta-networking: use bb.utils.contains() instead of base_contains()
base_contains() is a compatibility wrapper and may warn in the future, so replace all instances with bb.utils.contains(). Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
7a9c626092
commit
275b6c30fb
@@ -146,7 +146,7 @@ INITSCRIPT_PACKAGES = "${PN}-server"
|
||||
INITSCRIPT_NAME_${PN}-server = "snmpd"
|
||||
INITSCRIPT_PARAMS_${PN}-server = "start 90 2 3 4 5 . stop 60 0 1 6 ."
|
||||
|
||||
EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemd', '--without-systemd', d)}"
|
||||
EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--with-systemd', '--without-systemd', d)}"
|
||||
|
||||
SYSTEMD_PACKAGES = "${PN}-server-snmpd \
|
||||
${PN}-server-snmptrapd"
|
||||
|
||||
@@ -20,7 +20,7 @@ PACKAGECONFIG[openssl] = "--enable-ssl,--disable-ssl, openssl, libssl"
|
||||
|
||||
EXTRA_OECONF += " \
|
||||
KARCH=${TARGET_ARCH} \
|
||||
${@base_contains('PACKAGECONFIG', 'openssl', 'SSL_LIBS="-lssl -lcrypto"', '', d)} \
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'openssl', 'SSL_LIBS="-lssl -lcrypto"', '', d)} \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
@@ -9,8 +9,8 @@ HOMEPAGE = "http://www.nongnu.org/quagga/"
|
||||
SECTION = "net"
|
||||
LICENSE = "GPL-2.0 & LGPL-2.0"
|
||||
DEPENDS = "readline ncurses perl-native"
|
||||
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'snmp', 'net-snmp', '', d)}"
|
||||
SNMP_CONF="${@base_contains('DISTRO_FEATURES', 'snmp', '--enable-snmp', '', d)}"
|
||||
DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'snmp', 'net-snmp', '', d)}"
|
||||
SNMP_CONF="${@bb.utils.contains('DISTRO_FEATURES', 'snmp', '--enable-snmp', '', d)}"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=81bcece21748c91ba9992349a91ec11d \
|
||||
file://COPYING.LIB;md5=01ef24401ded36cd8e5d18bfe947240c"
|
||||
@@ -41,7 +41,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/quagga${QUAGGASUBDIR}/quagga-${PV}.tar.gz; \
|
||||
file://zebra.service \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'pam', '', d)}"
|
||||
PACKAGECONFIG[cap] = "--enable-capabilities,--disable-capabilities,libcap"
|
||||
PACKAGECONFIG[pam] = "--with-libpam, --without-libpam, libpam"
|
||||
|
||||
@@ -62,7 +62,7 @@ EXTRA_OECONF = "--sysconfdir=${sysconfdir}/quagga \
|
||||
--enable-exampledir=${docdir}/quagga/examples/ \
|
||||
--enable-vtysh \
|
||||
--enable-isisd \
|
||||
${@base_contains('DISTRO_FEATURES', 'sysvinit', '--enable-watchquagga', '--disable-watchquagga', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '--enable-watchquagga', '--disable-watchquagga', d)} \
|
||||
--enable-ospf-te \
|
||||
--enable-opaque-lsa \
|
||||
--enable-ospfclient=yes \
|
||||
@@ -125,7 +125,7 @@ do_install () {
|
||||
fi
|
||||
done
|
||||
|
||||
if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${sysconfdir}/tmpfiles.d
|
||||
echo "d /var/run/quagga 0755 quagga quagga -" \
|
||||
> ${D}${sysconfdir}/tmpfiles.d/${BPN}.conf
|
||||
@@ -162,7 +162,7 @@ pkg_postinst_${PN} () {
|
||||
# Split into a main package and separate per-protocol packages
|
||||
PACKAGE_BEFORE_PN = "${PN}-ospfd ${PN}-ospf6d ${PN}-babeld ${PN}-bgpd \
|
||||
${PN}-ripd ${PN}-ripngd ${PN}-isisd \
|
||||
${PN}-ospfclient ${@base_contains('DISTRO_FEATURES', 'sysvinit', '${PN}-watchquagga', '', d)}"
|
||||
${PN}-ospfclient ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '${PN}-watchquagga', '', d)}"
|
||||
|
||||
RDEPENDS_${PN} += "${PN}-babeld ${PN}-bgpd ${PN}-isisd ${PN}-ospf6d ${PN}-ospfd ${PN}-ripd ${PN}-ripngd"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user