diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2024-06-06 17:06:29 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-06-07 09:11:59 -0700 |
| commit | 485dfc19be3495fd110a05752f6251ee059ffd04 (patch) | |
| tree | 366b5bec84e26bbeb6dbe40e5da51f7c3bdeb5f7 /meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb | |
| parent | 531a08bf141957daf92c0caae3881e3c1f87b57a (diff) | |
| download | meta-openembedded-485dfc19be3495fd110a05752f6251ee059ffd04.tar.gz | |
networkmanager: upgrade 1.46.0 -> 1.48.0
Changelog:
============
* Building with autotools is now deprecated and will be completely removed
in the next development cycle. We recommend using meson to build
NetworkManager -- for basic setup, see the CONTRIBUTING.md file.
To ignore this deprecation and still build with Autotools, you can specify
the '--disable-autotools-deprecation' argument when configuring.
* Support changing the OpenSSL ciphers for 802.1X authentication via
connection property "802-1x.openssl-ciphers".
* The reason why a device is unmanaged is now properly set in the
"StateReason" property of the "Device" D-Bus object. The property is
visible in nmcli via "nmcli -f all device show $DEV".
* Deprecated 802-11-wireless and 802-11-wired property 'mac-address-blacklist'
and introduced the 'mac-address-denylist' property.
* Properly restore in-memory connection profiles during the rollback
of a checkpoint.
* Fix detection of 6 GHz band capability for WiFi devices
* Allow IPv6 SLAAC and static IPv6 DNS server assignment for modem broadband
when IPv6 device address was not explicitly passed on by ModemManager
* Fix a performance issue that was leading to 100% CPU usage by NetworkManager
if external programs were doing a big amount of routes updates.
* Patch-level development releases (i.e. 1.48.1-dev) won't be used anymore.
From now on, all the patch releases whithin a stable branch will be normal
releases, like 1.48.0, 1.48.1, 1.48.2, 1.48.3 and so on.
Odd numbers in the minor version number still indicates if it's a development
branch like 1.49 or a stable one like 1.48.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb')
| -rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb | 325 |
1 files changed, 325 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb new file mode 100644 index 0000000000..1355e52a6e --- /dev/null +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.48.0.bb | |||
| @@ -0,0 +1,325 @@ | |||
| 1 | SUMMARY = "NetworkManager is a program for providing detection and \ | ||
| 2 | configuration for systems to automatically connect to networks." | ||
| 3 | |||
| 4 | DESCRIPTION = "NetworkManager is a program for providing detection and \ | ||
| 5 | configuration for systems to automatically connect to networks. \ | ||
| 6 | NetworkManager's functionality can be useful for both wireless and wired \ | ||
| 7 | networks. For wireless networks, NetworkManager prefers known wireless \ | ||
| 8 | networks and has the ability to switch to the most reliable network. \ | ||
| 9 | NetworkManager-aware applications can switch from online and offline mode. \ | ||
| 10 | NetworkManager also prefers wired connections over wireless ones, has support \ | ||
| 11 | for modem connections and certain types of VPN." | ||
| 12 | |||
| 13 | HOMEPAGE = "https://wiki.gnome.org/Projects/NetworkManager" | ||
| 14 | SECTION = "net/misc" | ||
| 15 | |||
| 16 | LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later" | ||
| 17 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
| 18 | file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c \ | ||
| 19 | " | ||
| 20 | |||
| 21 | DEPENDS = " \ | ||
| 22 | glib-2.0 \ | ||
| 23 | python3-pygobject-native \ | ||
| 24 | coreutils-native \ | ||
| 25 | intltool-native \ | ||
| 26 | libxslt-native \ | ||
| 27 | libnl \ | ||
| 28 | udev \ | ||
| 29 | util-linux \ | ||
| 30 | libndp \ | ||
| 31 | curl \ | ||
| 32 | dbus \ | ||
| 33 | " | ||
| 34 | DEPENDS:append:class-target = " bash-completion" | ||
| 35 | |||
| 36 | inherit gnomebase gettext update-rc.d systemd gobject-introspection gtk-doc update-alternatives upstream-version-is-even | ||
| 37 | |||
| 38 | SRC_URI = " \ | ||
| 39 | ${GNOME_MIRROR}/NetworkManager/${@gnome_verdir("${PV}")}/NetworkManager-${PV}.tar.xz \ | ||
| 40 | file://${BPN}.initd \ | ||
| 41 | file://enable-dhcpcd.conf \ | ||
| 42 | file://enable-iwd.conf \ | ||
| 43 | " | ||
| 44 | SRC_URI:append:libc-musl = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch', '', d)}" | ||
| 45 | |||
| 46 | SRC_URI[sha256sum] = "fc80b942de38e329468e6fc1dfb40aad6a78d02ddf6b8ec31f9acc6460b8723f" | ||
| 47 | |||
| 48 | S = "${WORKDIR}/NetworkManager-${PV}" | ||
| 49 | |||
| 50 | # ['auto', 'symlink', 'file', 'netconfig', 'resolvconf'] | ||
| 51 | NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT ??= "auto" | ||
| 52 | |||
| 53 | # ['dhcpcanon', 'dhclient', 'dhcpcd', 'internal', 'nettools'] | ||
| 54 | NETWORKMANAGER_DHCP_DEFAULT ??= "internal" | ||
| 55 | |||
| 56 | # The default gets detected based on whether /usr/sbin/nft or /usr/sbin/iptables is installed, with nftables preferred. | ||
| 57 | # ['', 'iptables', 'nftables'] | ||
| 58 | NETWORKMANAGER_FIREWALL_DEFAULT ??= "nftables" | ||
| 59 | |||
| 60 | EXTRA_OEMESON = "\ | ||
| 61 | -Difcfg_rh=false \ | ||
| 62 | -Dtests=yes \ | ||
| 63 | -Dnmtui=true \ | ||
| 64 | -Dudev_dir=${nonarch_base_libdir}/udev \ | ||
| 65 | -Dlibpsl=false \ | ||
| 66 | -Dqt=false \ | ||
| 67 | -Dconfig_dns_rc_manager_default=${NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT} \ | ||
| 68 | -Dconfig_dhcp_default=${NETWORKMANAGER_DHCP_DEFAULT} \ | ||
| 69 | -Ddhcpcanon=false \ | ||
| 70 | -Diptables=${sbindir}/iptables \ | ||
| 71 | -Dnft=${sbindir}/nft \ | ||
| 72 | " | ||
| 73 | |||
| 74 | # stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template | ||
| 75 | # avoids: | ||
| 76 | # | ../NetworkManager-1.16.0/libnm-core/nm-json.c:106:50: error: 'RTLD_DEEPBIND' undeclared (first use in this function); did you mean 'RTLD_DEFAULT'? | ||
| 77 | CFLAGS:append:libc-musl = " \ | ||
| 78 | -DRTLD_DEEPBIND=0 \ | ||
| 79 | " | ||
| 80 | do_configure:prepend() { | ||
| 81 | cp -f ${STAGING_LIBDIR}/girepository-1.0/GLib*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/ | ||
| 82 | cp -f ${STAGING_LIBDIR}/girepository-1.0/GObject*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/ | ||
| 83 | cp -f ${STAGING_LIBDIR}/girepository-1.0/Gio*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/ | ||
| 84 | cp -f ${STAGING_LIBDIR}/girepository-1.0/GModule*typelib ${STAGING_LIBDIR_NATIVE}/girepository-1.0/ | ||
| 85 | } | ||
| 86 | |||
| 87 | PACKAGECONFIG ??= "readline nss ifupdown dnsmasq nmcli vala \ | ||
| 88 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \ | ||
| 89 | ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)} \ | ||
| 90 | ${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit ppp', d)} \ | ||
| 91 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux audit', '', d)} \ | ||
| 92 | " | ||
| 93 | |||
| 94 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'vala', 'vala', '', d)} | ||
| 95 | |||
| 96 | PACKAGECONFIG[systemd] = "\ | ||
| 97 | -Dsystemdsystemunitdir=${systemd_unitdir}/system -Dsession_tracking=systemd,\ | ||
| 98 | -Dsystemdsystemunitdir=no -Dsystemd_journal=false -Dsession_tracking=no\ | ||
| 99 | " | ||
| 100 | PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false,polkit" | ||
| 101 | PACKAGECONFIG[bluez5] = "-Dbluez5_dun=true,-Dbluez5_dun=false,bluez5" | ||
| 102 | # consolekit is not picked by shlibs, so add it to RDEPENDS too | ||
| 103 | PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" | ||
| 104 | PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info,modemmanager mobile-broadband-provider-info" | ||
| 105 | PACKAGECONFIG[ppp] = "-Dppp=true -Dpppd=${sbindir}/pppd,-Dppp=false,ppp" | ||
| 106 | PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" | ||
| 107 | PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" | ||
| 108 | PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf" | ||
| 109 | PACKAGECONFIG[gnutls] = "-Dcrypto=gnutls,,gnutls" | ||
| 110 | PACKAGECONFIG[crypto-null] = "-Dcrypto=null" | ||
| 111 | PACKAGECONFIG[wifi] = "-Dwext=true -Dwifi=true,-Dwext=false -Dwifi=false" | ||
| 112 | PACKAGECONFIG[iwd] = "-Diwd=true,-Diwd=false" | ||
| 113 | PACKAGECONFIG[ifupdown] = "-Difupdown=true,-Difupdown=false" | ||
| 114 | PACKAGECONFIG[cloud-setup] = "-Dnm_cloud_setup=true,-Dnm_cloud_setup=false" | ||
| 115 | PACKAGECONFIG[nmcli] = "-Dnmcli=true,-Dnmcli=false" | ||
| 116 | PACKAGECONFIG[nmtui] = "-Dnmtui=true,-Dnmtui=false,libnewt" | ||
| 117 | PACKAGECONFIG[readline] = "-Dreadline=libreadline,,readline" | ||
| 118 | PACKAGECONFIG[libedit] = "-Dreadline=libedit,,libedit" | ||
| 119 | PACKAGECONFIG[ovs] = "-Dovs=true,-Dovs=false,jansson" | ||
| 120 | PACKAGECONFIG[audit] = "-Dlibaudit=yes,-Dlibaudit=no" | ||
| 121 | PACKAGECONFIG[selinux] = "-Dselinux=true,-Dselinux=false,libselinux" | ||
| 122 | PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false" | ||
| 123 | PACKAGECONFIG[dhcpcd] = "-Ddhcpcd=${base_sbindir}/dhcpcd,-Ddhcpcd=no,,dhcpcd" | ||
| 124 | PACKAGECONFIG[dhclient] = "-Ddhclient=yes,-Ddhclient=no,,dhcp" | ||
| 125 | PACKAGECONFIG[concheck] = "-Dconcheck=true,-Dconcheck=false" | ||
| 126 | PACKAGECONFIG[adsl] = ",," | ||
| 127 | PACKAGECONFIG[wwan] = ",," | ||
| 128 | # The following PACKAGECONFIG is used to determine whether NM is managing /etc/resolv.conf itself or not | ||
| 129 | PACKAGECONFIG[man-resolv-conf] = ",," | ||
| 130 | |||
| 131 | |||
| 132 | PACKAGES =+ " \ | ||
| 133 | libnm \ | ||
| 134 | ${PN}-adsl \ | ||
| 135 | ${PN}-bluetooth \ | ||
| 136 | ${PN}-cloud-setup \ | ||
| 137 | ${PN}-nmcli \ | ||
| 138 | ${PN}-nmcli-bash-completion \ | ||
| 139 | ${PN}-nmtui \ | ||
| 140 | ${PN}-wifi \ | ||
| 141 | ${PN}-wwan \ | ||
| 142 | ${PN}-ovs \ | ||
| 143 | ${PN}-ppp \ | ||
| 144 | ${PN}-daemon \ | ||
| 145 | " | ||
| 146 | |||
| 147 | SYSTEMD_PACKAGES = "${PN}-daemon ${PN}-cloud-setup" | ||
| 148 | INITSCRIPT_PACKAGES = "${PN}-daemon" | ||
| 149 | |||
| 150 | NETWORKMANAGER_PLUGINDIR = "${libdir}/NetworkManager/${PV}" | ||
| 151 | NETWORKMANAGER_DISPATCHERDIR = "${nonarch_libdir}/NetworkManager/dispatcher.d" | ||
| 152 | |||
| 153 | |||
| 154 | SUMMARY:libnm = "Libraries for adding NetworkManager support to applications" | ||
| 155 | FILES:libnm = "\ | ||
| 156 | ${libdir}/libnm.so.* \ | ||
| 157 | ${libdir}/girepository-1.0/NM-1.0.typelib \ | ||
| 158 | " | ||
| 159 | |||
| 160 | SUMMARY:${PN}-adsl = "ADSL device plugin for NetworkManager" | ||
| 161 | FILES:${PN}-adsl = "${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-adsl.so" | ||
| 162 | RDEPENDS:${PN}-adsl += "${PN}-daemon" | ||
| 163 | |||
| 164 | SUMMARY:${PN}-bluetooth = "Bluetooth device plugin for NetworkManager" | ||
| 165 | FILES:${PN}-bluetooth = "${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-bluetooth.so" | ||
| 166 | RDEPENDS:${PN}-bluetooth += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG', 'bluez5', '${PN}-wwan bluez5', '', d)}" | ||
| 167 | |||
| 168 | SUMMARY:${PN}-cloud-setup = "Automatically configure NetworkManager in cloud" | ||
| 169 | FILES:${PN}-cloud-setup = " \ | ||
| 170 | ${libexecdir}/nm-cloud-setup \ | ||
| 171 | ${systemd_system_unitdir}/nm-cloud-setup.service \ | ||
| 172 | ${systemd_system_unitdir}/nm-cloud-setup.timer \ | ||
| 173 | ${libdir}/NetworkManager/dispatcher.d/90-nm-cloud-setup.sh \ | ||
| 174 | ${libdir}/NetworkManager/dispatcher.d/no-wait.d/90-nm-cloud-setup.sh \ | ||
| 175 | " | ||
| 176 | RDEPENDS:${PN}-cloud-setup += "${PN}-daemon" | ||
| 177 | ALLOW_EMPTY:${PN}-cloud-setup = "1" | ||
| 178 | SYSTEMD_SERVICE:${PN}-cloud-setup = "${@bb.utils.contains('PACKAGECONFIG', 'cloud-setup', 'nm-cloud-setup.service nm-cloud-setup.timer', '', d)}" | ||
| 179 | |||
| 180 | SUMMARY:${PN}-nmcli = "NetworkManager command line client" | ||
| 181 | FILES:${PN}-nmcli = " \ | ||
| 182 | ${bindir}/nmcli \ | ||
| 183 | " | ||
| 184 | RDEPENDS:${PN}-nmcli += "${PN}-daemon" | ||
| 185 | |||
| 186 | SUMMARY:${PN}-nmcli-bash-completion = "NetworkManager command line client bash completion" | ||
| 187 | FILES:${PN}-nmcli-bash-completion = "${datadir}/bash-completion/completions/nmcli" | ||
| 188 | RDEPENDS:${PN}-nmcli-bash-completion = "bash-completion" | ||
| 189 | |||
| 190 | SUMMARY:${PN}-nmtui = "NetworkManager curses-based UI" | ||
| 191 | FILES:${PN}-nmtui = " \ | ||
| 192 | ${bindir}/nmtui \ | ||
| 193 | ${bindir}/nmtui-edit \ | ||
| 194 | ${bindir}/nmtui-connect \ | ||
| 195 | ${bindir}/nmtui-hostname \ | ||
| 196 | " | ||
| 197 | RDEPENDS:${PN}-nmtui += "${PN}-daemon" | ||
| 198 | |||
| 199 | SUMMARY:${PN}-wifi = "Wifi plugin for NetworkManager" | ||
| 200 | FILES:${PN}-wifi = "\ | ||
| 201 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wifi.so \ | ||
| 202 | ${libdir}/NetworkManager/conf.d/enable-iwd.conf \ | ||
| 203 | " | ||
| 204 | def get_wifi_deps(d): | ||
| 205 | packageconfig = (d.getVar('PACKAGECONFIG') or "").split() | ||
| 206 | if 'wifi' in packageconfig: | ||
| 207 | if 'iwd' in packageconfig: | ||
| 208 | return 'iwd' | ||
| 209 | else: | ||
| 210 | return 'wpa-supplicant' | ||
| 211 | else: | ||
| 212 | return '' | ||
| 213 | RDEPENDS:${PN}-wifi += "${PN}-daemon ${@get_wifi_deps(d)}" | ||
| 214 | |||
| 215 | SUMMARY:${PN}-wwan = "Mobile broadband device plugin for NetworkManager" | ||
| 216 | FILES:${PN}-wwan = "\ | ||
| 217 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-wwan.so \ | ||
| 218 | ${NETWORKMANAGER_PLUGINDIR}/libnm-wwan.so \ | ||
| 219 | " | ||
| 220 | RDEPENDS:${PN}-wwan += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG','modemmanager','modemmanager','',d)}" | ||
| 221 | |||
| 222 | SUMMARY:${PN}-ovs = "Open vSwitch device plugin for NetworkManager" | ||
| 223 | FILES:${PN}-ovs = "\ | ||
| 224 | ${NETWORKMANAGER_PLUGINDIR}/libnm-device-plugin-ovs.so \ | ||
| 225 | ${systemd_system_unitdir}/NetworkManager.service.d/NetworkManager-ovs.conf \ | ||
| 226 | " | ||
| 227 | RDEPENDS:${PN}-ovs += "${PN}-daemon" | ||
| 228 | |||
| 229 | SUMMARY:${PN}-ppp = "PPP plugin for NetworkManager" | ||
| 230 | FILES:${PN}-ppp = "\ | ||
| 231 | ${NETWORKMANAGER_PLUGINDIR}/libnm-ppp-plugin.so \ | ||
| 232 | ${libdir}/pppd/*/nm-pppd-plugin.so \ | ||
| 233 | " | ||
| 234 | RDEPENDS:${PN}-ppp += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG','ppp','ppp','',d)}" | ||
| 235 | |||
| 236 | FILES:${PN}-dev += " \ | ||
| 237 | ${libdir}/pppd/*/*.la \ | ||
| 238 | ${libdir}/NetworkManager/*.la \ | ||
| 239 | ${NETWORKMANAGER_PLUGINDIR}/*.la \ | ||
| 240 | ${datadir}/dbus-1/interfaces/*.xml \ | ||
| 241 | " | ||
| 242 | |||
| 243 | SUMMARY:${PN}-daemon += "The NetworkManager daemon" | ||
| 244 | FILES:${PN}-daemon += " \ | ||
| 245 | ${bindir}/nm-online \ | ||
| 246 | ${datadir}/dbus-1 \ | ||
| 247 | ${datadir}/polkit-1 \ | ||
| 248 | ${libdir}/NetworkManager \ | ||
| 249 | ${libexecdir} \ | ||
| 250 | ${localstatedir}/lib/NetworkManager \ | ||
| 251 | ${NETWORKMANAGER_DISPATCHERDIR} \ | ||
| 252 | ${nonarch_base_libdir}/udev/* \ | ||
| 253 | ${nonarch_libdir}/firewalld \ | ||
| 254 | ${nonarch_libdir}/NetworkManager/conf.d \ | ||
| 255 | ${nonarch_libdir}/NetworkManager/dispatcher.d/no-wait.d \ | ||
| 256 | ${nonarch_libdir}/NetworkManager/dispatcher.d/pre-down.d \ | ||
| 257 | ${nonarch_libdir}/NetworkManager/dispatcher.d/pre-up.d \ | ||
| 258 | ${nonarch_libdir}/NetworkManager/system-connections \ | ||
| 259 | ${nonarch_libdir}/NetworkManager/VPN \ | ||
| 260 | ${sbindir}/NetworkManager \ | ||
| 261 | ${sysconfdir}/init.d/network-manager \ | ||
| 262 | ${sysconfdir}/NetworkManager \ | ||
| 263 | ${sysconfdir}/resolv-conf.NetworkManager \ | ||
| 264 | ${sysconfdir}/sysconfig/network-scripts \ | ||
| 265 | ${systemd_system_unitdir} \ | ||
| 266 | " | ||
| 267 | RDEPENDS:${PN}-daemon += "\ | ||
| 268 | ${@bb.utils.contains('PACKAGECONFIG', 'ifupdown', 'bash', '', d)} \ | ||
| 269 | " | ||
| 270 | RRECOMMENDS:${PN}-daemon += "\ | ||
| 271 | ${NETWORKMANAGER_FIREWALL_DEFAULT} \ | ||
| 272 | ${@bb.utils.filter('PACKAGECONFIG', 'dnsmasq', d)} \ | ||
| 273 | " | ||
| 274 | INITSCRIPT_NAME:${PN}-daemon = "network-manager" | ||
| 275 | SYSTEMD_SERVICE:${PN}-daemon = "\ | ||
| 276 | NetworkManager.service \ | ||
| 277 | NetworkManager-dispatcher.service \ | ||
| 278 | " | ||
| 279 | RCONFLICTS:${PN}-daemon += "connman" | ||
| 280 | ALTERNATIVE_PRIORITY = "100" | ||
| 281 | ALTERNATIVE:${PN}-daemon = "${@bb.utils.contains('PACKAGECONFIG','man-resolv-conf','resolv-conf','',d)}" | ||
| 282 | ALTERNATIVE_TARGET[resolv-conf] = "${@bb.utils.contains('PACKAGECONFIG','man-resolv-conf','${sysconfdir}/resolv-conf.NetworkManager','',d)}" | ||
| 283 | ALTERNATIVE_LINK_NAME[resolv-conf] = "${@bb.utils.contains('PACKAGECONFIG','man-resolv-conf','${sysconfdir}/resolv.conf','',d)}" | ||
| 284 | |||
| 285 | |||
| 286 | # The networkmanager package is an empty meta package which weakly depends on all the compiled features. | ||
| 287 | # Install this package to get all plugins and related dependencies installed. Alternatively just install | ||
| 288 | # plugins and related dependencies e.g. by installing networkmanager-wifi or networkmanager-wwan | ||
| 289 | # packages to the firmware. | ||
| 290 | ALLOW_EMPTY:${PN} = "1" | ||
| 291 | RRECOMMENDS:${PN} += "\ | ||
| 292 | ${@bb.utils.contains('PACKAGECONFIG','adsl','${PN}-adsl','',d)} \ | ||
| 293 | ${@bb.utils.contains('PACKAGECONFIG','bluez5','${PN}-bluetooth','',d)} \ | ||
| 294 | ${@bb.utils.contains('PACKAGECONFIG','cloud-setup','${PN}-cloud-setup','',d)} \ | ||
| 295 | ${@bb.utils.contains('PACKAGECONFIG','nmcli','${PN}-nmcli','',d)} \ | ||
| 296 | ${@bb.utils.contains('PACKAGECONFIG','nmtui','${PN}-nmtui','',d)} \ | ||
| 297 | ${@bb.utils.contains('PACKAGECONFIG','wifi','${PN}-wifi','',d)} \ | ||
| 298 | ${@bb.utils.contains('PACKAGECONFIG','wwan','${PN}-wwan','',d)} \ | ||
| 299 | ${@bb.utils.contains('PACKAGECONFIG','ovs','${PN}-ovs','',d)} \ | ||
| 300 | ${@bb.utils.contains('PACKAGECONFIG','ppp','${PN}-ppp','',d)} \ | ||
| 301 | " | ||
| 302 | |||
| 303 | do_install:append() { | ||
| 304 | install -Dm 0755 ${UNPACKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/network-manager | ||
| 305 | |||
| 306 | rm -rf ${D}/run ${D}${localstatedir}/run | ||
| 307 | |||
| 308 | if ${@bb.utils.contains('PACKAGECONFIG','man-resolv-conf','true','false',d)}; then | ||
| 309 | # For read-only filesystem, do not create links during bootup | ||
| 310 | ln -sf ../run/NetworkManager/resolv.conf ${D}${sysconfdir}/resolv-conf.NetworkManager | ||
| 311 | |||
| 312 | # systemd v210 and newer do not need this rule file | ||
| 313 | rm ${D}/${nonarch_base_libdir}/udev/rules.d/84-nm-drivers.rules | ||
| 314 | fi | ||
| 315 | |||
| 316 | # Enable iwd if compiled | ||
| 317 | if ${@bb.utils.contains('PACKAGECONFIG','iwd','true','false',d)}; then | ||
| 318 | install -Dm 0644 ${UNPACKDIR}/enable-iwd.conf ${D}${nonarch_libdir}/NetworkManager/conf.d/enable-iwd.conf | ||
| 319 | fi | ||
| 320 | |||
| 321 | # Enable dhcpd if compiled | ||
| 322 | if ${@bb.utils.contains('PACKAGECONFIG','dhcpcd','true','false',d)}; then | ||
| 323 | install -Dm 0644 ${UNPACKDIR}/enable-dhcpcd.conf ${D}${nonarch_libdir}/NetworkManager/conf.d/enable-dhcpcd.conf | ||
| 324 | fi | ||
| 325 | } | ||
