mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 17:19:23 +00:00
networkmanager: rework dependencies/configure-option and use PACKAGECONFIG
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
committed by
Martin Jansa
parent
da51d044a8
commit
692d8f0364
@@ -4,8 +4,7 @@ SECTION = "net/misc"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b"
|
||||
|
||||
DEPENDS = "libnl dbus dbus-glib udev wireless-tools polkit gnutls util-linux ppp"
|
||||
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
|
||||
DEPENDS = "libnl dbus dbus-glib udev wireless-tools gnutls util-linux ppp"
|
||||
|
||||
inherit gnome gettext systemd
|
||||
|
||||
@@ -33,7 +32,14 @@ EXTRA_OECONF = " \
|
||||
--with-tests \
|
||||
"
|
||||
|
||||
EXTRA_OECONF += "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '--without-systemdsystemunitdir', d)}"
|
||||
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}"
|
||||
PACKAGECONFIG[systemd] = " \
|
||||
--with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \
|
||||
--without-systemdsystemunitdir=, \
|
||||
polkit \
|
||||
"
|
||||
# consolekit is not picked by shlibs, so add it to RDEPENDS too
|
||||
PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
|
||||
|
||||
# Work around dbus permission problems since we lack a proper at_console
|
||||
do_install_prepend() {
|
||||
|
||||
Reference in New Issue
Block a user