net-misc/networkmanager: Add USE=elogind
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 27 May 2017 10:48:47 +0000 (12:48 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 27 May 2017 15:08:10 +0000 (17:08 +0200)
Gentoo-bug: 607352

Package-Manager: Portage-2.3.5, Repoman-2.3.1

net-misc/networkmanager/metadata.xml
net-misc/networkmanager/networkmanager-1.8.0.ebuild

index 5603207a6719da99fbfc781d19b080cac0fc2252..734ee56b37e8b6bdaf35599f7e5c226d8a97027f 100644 (file)
@@ -16,6 +16,7 @@
                        tracking</flag>
                <flag name="dhclient">Use dhclient from <pkg>net-misc/dhcp</pkg> for
                        getting ip</flag>
+               <flag name="elogind">Use <pkg>sys-auth/elogind</pkg> for session tracking</flag>
                <flag name="json">Enable JSON validation via <pkg>dev-libs/jansson</pkg>
                        in libnm.</flag>
                <flag name="modemmanager">Enable support for mobile broadband devices
index 32c1d37225a7fbb066a699e37f7634e799f69606..ba6cd27f53fb0e72195946ccd6f229b5f2501f5d 100644 (file)
@@ -16,15 +16,16 @@ HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
 LICENSE="GPL-2+"
 SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version
 
-IUSE="audit bluetooth connection-sharing consolekit +dhclient gnutls +introspection \
-json kernel_linux +nss +modemmanager ncurses ofono +ppp resolvconf selinux \
-systemd teamd test vala +wext +wifi"
+IUSE="audit bluetooth connection-sharing consolekit +dhclient elogind gnutls \
++introspection json kernel_linux +nss +modemmanager ncurses ofono +ppp resolvconf \
+selinux systemd teamd test vala +wext +wifi"
 
 REQUIRED_USE="
        modemmanager? ( ppp )
        vala? ( introspection )
        wext? ( wifi )
        ^^ ( nss gnutls )
+       ?? ( consolekit elogind systemd )
 "
 
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
@@ -51,6 +52,7 @@ COMMON_DEPEND="
                net-firewall/iptables )
        consolekit? ( >=sys-auth/consolekit-1.0.0 )
        dhclient? ( >=net-misc/dhcp-4[client] )
+       elogind? ( sys-auth/elogind )
        gnutls? (
                dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
                >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] )
@@ -193,8 +195,8 @@ multilib_src_configure() {
                --with-iptables=/sbin/iptables
                $(multilib_native_enable concheck)
                --with-crypto=$(usex nss nss gnutls)
-               --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex consolekit consolekit no))
-               --with-suspend-resume=$(multilib_native_usex systemd systemd consolekit)
+               --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind $(multilib_native_usex consolekit consolekit no)))
+               --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
                $(multilib_native_use_with audit libaudit)
                $(multilib_native_use_enable bluetooth bluez5-dun)
                $(multilib_native_use_enable introspection)