Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "NetworkManager" |
| 2 | SECTION = "net/misc" |
| 3 | |
| 4 | LICENSE = "GPLv2+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=cbbffd568227ada506640fe950a4823b \ |
| 6 | file://libnm-util/COPYING;md5=1c4fa765d6eb3cd2fbd84344a1b816cd \ |
| 7 | file://docs/api/html/license.html;md5=51d7fb67bde992e58533a8481cee070b \ |
| 8 | " |
| 9 | |
| 10 | DEPENDS = "libnl dbus dbus-glib libgudev util-linux libndp libnewt polkit" |
| 11 | |
| 12 | inherit gnomebase gettext systemd bluetooth bash-completion vala gobject-introspection |
| 13 | |
| 14 | SRC_URI = " \ |
| 15 | ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ |
| 16 | file://0001-don-t-try-to-run-sbin-dhclient-to-get-the-version-nu.patch \ |
| 17 | file://0002-add-pkg-config-for-libgcrypt.patch \ |
| 18 | file://0003-core-fix-failure-to-configure-routes-due-to-wrong-de.patch \ |
| 19 | file://0004-ppp-manager-clear-ppp_watch_id-upon-pppd-termination.patch \ |
| 20 | file://0005-device-update-ip_iface-only-if-IP-interface-exists.patch \ |
| 21 | file://0006-Fix-nm-version-macro-includes.patch \ |
| 22 | " |
| 23 | SRC_URI[md5sum] = "a8f54460a4708efd840358f32d0968fd" |
| 24 | SRC_URI[sha256sum] = "1bcfce8441dfd9f432a100d06b54f3831a2275cccc3b74b1b4c09a011e179fbc" |
| 25 | |
| 26 | S = "${WORKDIR}/NetworkManager-${PV}" |
| 27 | |
| 28 | EXTRA_OECONF = " \ |
| 29 | --disable-ifcfg-rh \ |
| 30 | --disable-ifnet \ |
| 31 | --disable-ifcfg-suse \ |
| 32 | --disable-more-warnings \ |
| 33 | --with-iptables=${sbindir}/iptables \ |
| 34 | --with-tests \ |
| 35 | --with-nmtui=yes \ |
| 36 | " |
| 37 | |
| 38 | do_compile_prepend() { |
| 39 | export GIR_EXTRA_LIBS_PATH="${B}/libnm-util/.libs" |
| 40 | } |
| 41 | |
| 42 | PACKAGECONFIG ??= "nss ifupdown netconfig dhclient dnsmasq \ |
| 43 | ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)} \ |
| 44 | ${@bb.utils.contains('DISTRO_FEATURES','bluetooth','${BLUEZ}','',d)} \ |
| 45 | ${@bb.utils.contains('DISTRO_FEATURES','wifi','wifi','',d)} \ |
| 46 | " |
| 47 | PACKAGECONFIG[systemd] = " \ |
| 48 | --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \ |
| 49 | --without-systemdsystemunitdir, \ |
| 50 | polkit \ |
| 51 | " |
| 52 | PACKAGECONFIG[bluez5] = "--enable-bluez5-dun,--disable-bluez5-dun,bluez5" |
| 53 | # consolekit is not picked by shlibs, so add it to RDEPENDS too |
| 54 | PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit" |
| 55 | PACKAGECONFIG[concheck] = "--with-libsoup=yes,--with-libsoup=no,libsoup-2.4" |
| 56 | PACKAGECONFIG[modemmanager] = "--with-modem-manager-1=yes,--with-modem-manager-1=no,modemmanager" |
| 57 | PACKAGECONFIG[ppp] = "--enable-ppp,--disable-ppp,ppp,ppp" |
| 58 | # Use full featured dhcp client instead of internal one |
| 59 | PACKAGECONFIG[dhclient] = "--with-dhclient=${base_sbindir}/dhclient,,,dhcp-client" |
| 60 | PACKAGECONFIG[dnsmasq] = "--with-dnsmasq=${bindir}/dnsmasq" |
| 61 | PACKAGECONFIG[nss] = "--with-crypto=nss,,nss" |
| 62 | PACKAGECONFIG[gnutls] = "--with-crypto=gnutls,,gnutls libgcrypt" |
| 63 | PACKAGECONFIG[wifi] = "--enable-wifi=yes,--enable-wifi=no,wireless-tools,wpa-supplicant wireless-tools" |
| 64 | PACKAGECONFIG[ifupdown] = "--enable-ifupdown,--disable-ifupdown" |
| 65 | PACKAGECONFIG[netconfig] = "--with-netconfig=yes,--with-netconfig=no" |
| 66 | PACKAGECONFIG[qt4-x11-free] = "--enable-qt,--disable-qt,qt4-x11-free" |
| 67 | |
| 68 | PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests \ |
| 69 | ${PN}-nmtui ${PN}-nmtui-doc \ |
| 70 | ${PN}-adsl \ |
| 71 | " |
| 72 | |
| 73 | FILES_libnmutil += "${libdir}/libnm-util.so.*" |
| 74 | FILES_libnmglib += "${libdir}/libnm-glib.so.*" |
| 75 | FILES_libnmglib-vpn += "${libdir}/libnm-glib-vpn.so.*" |
| 76 | |
| 77 | FILES_${PN}-adsl = "${libdir}/NetworkManager/libnm-device-plugin-adsl.so" |
| 78 | |
| 79 | FILES_${PN} += " \ |
| 80 | ${libexecdir} \ |
| 81 | ${libdir}/pppd/*/nm-pppd-plugin.so \ |
| 82 | ${libdir}/NetworkManager/*.so \ |
| 83 | ${datadir}/polkit-1 \ |
| 84 | ${datadir}/dbus-1 \ |
| 85 | ${base_libdir}/udev/* \ |
| 86 | ${systemd_unitdir}/system \ |
| 87 | " |
| 88 | |
| 89 | RRECOMMENDS_${PN} += "iptables \ |
| 90 | ${@bb.utils.contains('PACKAGECONFIG','dnsmasq','dnsmasq','',d)} \ |
| 91 | " |
| 92 | RCONFLICTS_${PN} = "connman" |
| 93 | |
| 94 | FILES_${PN}-dbg += " \ |
| 95 | ${libdir}/NetworkManager/.debug/ \ |
| 96 | ${libdir}/pppd/*/.debug/ \ |
| 97 | " |
| 98 | |
| 99 | FILES_${PN}-dev += " \ |
| 100 | ${datadir}/NetworkManager/gdb-cmd \ |
| 101 | ${libdir}/pppd/*/*.la \ |
| 102 | ${libdir}/NetworkManager/*.la \ |
| 103 | " |
| 104 | |
| 105 | FILES_${PN}-tests = " \ |
| 106 | ${bindir}/nm-online \ |
| 107 | " |
| 108 | |
| 109 | FILES_${PN}-nmtui = " \ |
| 110 | ${bindir}/nmtui \ |
| 111 | ${bindir}/nmtui-edit \ |
| 112 | ${bindir}/nmtui-connect \ |
| 113 | ${bindir}/nmtui-hostname \ |
| 114 | " |
| 115 | |
| 116 | FILES_${PN}-nmtui-doc = " \ |
| 117 | ${mandir}/man1/nmtui* \ |
| 118 | " |
| 119 | |
| 120 | SYSTEMD_SERVICE_${PN} = "NetworkManager.service NetworkManager-dispatcher.service" |
| 121 | |
| 122 | do_install_append() { |
| 123 | rm -rf ${D}/run ${D}${localstatedir}/run |
| 124 | } |