Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/networkmanager/, net-misc/networkmanager/files/
Date: Sun, 11 Oct 2020 21:44:24
Message-Id: 1602452654.ac76ca95f55d3bb53d5fe5e46a55361c21c20298.leio@gentoo
1 commit: ac76ca95f55d3bb53d5fe5e46a55361c21c20298
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 21:42:56 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 21:44:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac76ca95
7
8 net-misc/networkmanager: remove old
9
10 Package-Manager: Portage-2.3.103, Repoman-2.3.20
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 net-misc/networkmanager/Manifest | 5 -
14 .../networkmanager/files/1.18.4-iwd1-compat.patch | 81 -----
15 .../networkmanager/files/init.d.NetworkManager-r1 | 58 ----
16 ...ager-data-fix-the-ID_NET_DRIVER-udev-rule.patch | 33 --
17 .../networkmanager/networkmanager-1.18.4-r4.ebuild | 350 ---------------------
18 .../networkmanager/networkmanager-1.18.6-r1.ebuild | 350 ---------------------
19 .../networkmanager-1.20.12-r1.ebuild | 340 --------------------
20 .../networkmanager-1.22.14-r1.ebuild | 342 --------------------
21 .../networkmanager/networkmanager-1.24.2-r1.ebuild | 341 --------------------
22 9 files changed, 1900 deletions(-)
23
24 diff --git a/net-misc/networkmanager/Manifest b/net-misc/networkmanager/Manifest
25 index 0719e582e0e..5f26a17ed32 100644
26 --- a/net-misc/networkmanager/Manifest
27 +++ b/net-misc/networkmanager/Manifest
28 @@ -1,8 +1,3 @@
29 -DIST NetworkManager-1.18.4.tar.xz 4875196 BLAKE2B 9c58d6d7317562332dfa9639f8e236a0a7f6b58e7dad5af83916b1c6178899a6bcf12bc289fb401d84fd6420306364b4c4c0a25eda2a08eef812acde1862a18a SHA512 9fd22775a400ee8d20c75ebddfee842bfbd8780966444dd537e371a65918f41640e921d2c441853afe8f72d693e9b4c1415435136a07004666a6af4799fd3350
30 -DIST NetworkManager-1.18.6.tar.xz 4845144 BLAKE2B cf66789c025d9ec2007d1fe541acb8fd2b5204796ff8498fc5689124016e84a7e76509bee1b6650c796f0429cce6748c7b99e1976d95ac12bc31a1f1e67289b0 SHA512 92ab648e689dd903279fe676e867d7929f616c96dd478b2132854145a29debfcac5b083d70652ea0c7bccb0eb132534133fc9c005527237c47e2802556a29b92
31 -DIST NetworkManager-1.20.12.tar.xz 4663320 BLAKE2B c0faab91a50ee38d6c884dd4f753d642e5c21c268814cd6badc8a8dc3b654f54d1ff60b362d6e3cb4b254218618f16dd7a1fde153879907b5b3538a92086e5af SHA512 97dacee9b0720b864c941c139579d84d98d1b2f74dfc97fd0a6ed35ed9ae0b45d40553f8d79c4d7c4d3958228a2e6035555069c94040ecbe4a34457bce8d5f60
32 DIST NetworkManager-1.22.10.tar.bz2 6292347 BLAKE2B b6cb06a0630685714cdd3c8b8e1d788a6e979c2d7f232259e682fdc9e1f5569259731fdbbea65b6e8321561ecb8354b6f7a0b10843eb17cbe6f5937af8d9d898 SHA512 61b6214188a3cd281d0d5a5b8bfc402f8a19d8beaa6a3a2bd85983991cc66d62b2c3785d7ca652373903d53331610cd63a45d94bdb355196d939c48f42be29c1
33 -DIST NetworkManager-1.22.14.tar.xz 4771180 BLAKE2B d0133c2de2fd8a7932be7699bcef7e8e32083e6f908de0eaa3875a862329a1a302245d66dbba8a90a691245897b7a943a35785da21f394a7cf2659eb9cceb866 SHA512 81ccb634c3583406d52c159d1b0903f98c2732f9cd6962f3d6d71940d05cba32e262219de4f09c0cc687beff57bd7ba425f06d9a9c1bfa60aef11d427e91f453
34 -DIST NetworkManager-1.24.2.tar.xz 4848624 BLAKE2B f8030159d6f645c3015cfb9cf41ffbf30f052592e04c27a2a378e6d7c0ac86f521a5147229b84e68adb7835ebac8b8ad094977f0783b3fa794149190d809a098 SHA512 34fcbdffe5b621ff5d851e6b8de07ddf3f3ad294822adc36d6c36682049cc1f7e0280631ecc38d335871a3ee3483b338106b3a513d46a6cafdf61849027fe923
35 DIST NetworkManager-1.26.0.tar.xz 4956796 BLAKE2B 752b6b47387bac5787d06be7f31cc7387798d0c917977c8e72d6d21538a86c167003901d628e596109aec28816f56fd8cd6bf2b46a8d4918a7e6cf1946586550 SHA512 46035fda8f154497ba4a634e4bf7f0a11f579d0d3f4ffdcea7d47ea0bde6dd0183885491f5453255af7b163ae3db4f0c62c3161913a8c30c35b6475887235b6d
36 DIST NetworkManager-1.26.2.tar.xz 4972240 BLAKE2B f9f0879ad01d7aee8edc28b33a08d903637b0a9c0738d64480394d0298a02e4fa4277f6a14a7fec62eeb7e1ca50646f47d08f735827b5dbe698070669fd558c4 SHA512 4029bf5224523d851a36766376813c7edc85c2fef3600ceaffc0c7e6faadcfebf843a406ee071bdc59c21bceb7bf3de8c87fca6bb2f2116d9eddbb70e11bf517
37
38 diff --git a/net-misc/networkmanager/files/1.18.4-iwd1-compat.patch b/net-misc/networkmanager/files/1.18.4-iwd1-compat.patch
39 deleted file mode 100644
40 index 12c8b873e6a..00000000000
41 --- a/net-misc/networkmanager/files/1.18.4-iwd1-compat.patch
42 +++ /dev/null
43 @@ -1,81 +0,0 @@
44 -From 59923ad85d1a1cf2216a4f14649702d24d3f2360 Mon Sep 17 00:00:00 2001
45 -From: Lubomir Rintel <lkundrak@××.sk>
46 -Date: Sat, 2 Nov 2019 06:55:54 +0100
47 -Subject: [PATCH 1/2] iwd: add some missing error handling
48 -
49 -g_dbus_object_manager_get_interface() can happily return NULL and we
50 -need to check for that.
51 ----
52 - src/devices/wifi/nm-iwd-manager.c | 10 ++++++++++
53 - 1 file changed, 10 insertions(+)
54 -
55 -diff --git a/src/devices/wifi/nm-iwd-manager.c b/src/devices/wifi/nm-iwd-manager.c
56 -index dd1cad480..e83f8063c 100644
57 ---- a/src/devices/wifi/nm-iwd-manager.c
58 -+++ b/src/devices/wifi/nm-iwd-manager.c
59 -@@ -136,6 +136,11 @@ agent_dbus_method_cb (GDBusConnection *connection,
60 - network = g_dbus_object_manager_get_interface (priv->object_manager,
61 - network_path,
62 - NM_IWD_NETWORK_INTERFACE);
63 -+ if (!network) {
64 -+ _LOGE ("unable to find the network object");
65 -+ return;
66 -+ }
67 -+
68 -
69 - device_path = get_property_string_or_null (G_DBUS_PROXY (network), "Device");
70 - if (!device_path) {
71 -@@ -260,6 +265,11 @@ register_agent (NMIwdManager *self)
72 - "/",
73 - NM_IWD_AGENT_MANAGER_INTERFACE);
74 -
75 -+ if (!agent_manager) {
76 -+ _LOGE ("unable to register the IWD Agent: PSK/8021x Wi-Fi networks may not work");
77 -+ return;
78 -+ }
79 -+
80 - /* Register our agent */
81 - g_dbus_proxy_call (G_DBUS_PROXY (agent_manager),
82 - "RegisterAgent",
83 ---
84 -2.20.1
85 -
86 -
87 -From 186d22a9634e2bf94658ed6f1cf2b332ecb3a32c Mon Sep 17 00:00:00 2001
88 -From: Lubomir Rintel <lkundrak@××.sk>
89 -Date: Sat, 2 Nov 2019 07:01:28 +0100
90 -Subject: [PATCH 2/2] iwd: unbreak iwd-1.0
91 -
92 -The upstream apparently thought it's a great idea to change the agent
93 -manager path. This fixes things for those unfortunate enough to run
94 -IWD.
95 ----
96 - src/devices/wifi/nm-iwd-manager.c | 10 +++++++++-
97 - 1 file changed, 9 insertions(+), 1 deletion(-)
98 -
99 -diff --git a/src/devices/wifi/nm-iwd-manager.c b/src/devices/wifi/nm-iwd-manager.c
100 -index e83f8063c..470cb1c90 100644
101 ---- a/src/devices/wifi/nm-iwd-manager.c
102 -+++ b/src/devices/wifi/nm-iwd-manager.c
103 -@@ -262,9 +262,17 @@ register_agent (NMIwdManager *self)
104 - GDBusInterface *agent_manager;
105 -
106 - agent_manager = g_dbus_object_manager_get_interface (priv->object_manager,
107 -- "/",
108 -+ "/net/connman/iwd",
109 - NM_IWD_AGENT_MANAGER_INTERFACE);
110 -
111 -+ if (!agent_manager) {
112 -+ /* IWD prior to 1.0 dated 30 October, 2019 has the agent manager on a
113 -+ * different path. */
114 -+ agent_manager = g_dbus_object_manager_get_interface (priv->object_manager,
115 -+ "/",
116 -+ NM_IWD_AGENT_MANAGER_INTERFACE);
117 -+ }
118 -+
119 - if (!agent_manager) {
120 - _LOGE ("unable to register the IWD Agent: PSK/8021x Wi-Fi networks may not work");
121 - return;
122 ---
123 -2.20.1
124 -
125
126 diff --git a/net-misc/networkmanager/files/init.d.NetworkManager-r1 b/net-misc/networkmanager/files/init.d.NetworkManager-r1
127 deleted file mode 100644
128 index 3209644c511..00000000000
129 --- a/net-misc/networkmanager/files/init.d.NetworkManager-r1
130 +++ /dev/null
131 @@ -1,58 +0,0 @@
132 -#!/sbin/openrc-run
133 -# Copyright (c) 2008 Saleem Abdulrasool <compnerd@××××××××.org>
134 -# Copyright 2013-2017 Gentoo Foundation
135 -# Distributed under the terms of the GNU General Public License v2
136 -
137 -description="NetworkManager daemon. The service is marked as started only \
138 -when a network connection is established."
139 -
140 -depend() {
141 - need dbus
142 - use consolekit
143 - provide net
144 -}
145 -
146 -start() {
147 - # If we are re-called by a dispatcher event, we want to mark the service
148 - # as started without starting the daemon again
149 - yesno "${IN_BACKGROUND}" && return 0
150 -
151 - [ -z "${INACTIVE_TIMEOUT}" ] && INACTIVE_TIMEOUT="1"
152 -
153 - ebegin "Starting NetworkManager"
154 - start-stop-daemon --start --quiet --pidfile /run/NetworkManager/NetworkManager.pid \
155 - --exec /usr/sbin/NetworkManager -- --pid-file /run/NetworkManager/NetworkManager.pid
156 - local _retval=$?
157 - eend "${_retval}"
158 - if [ "x${_retval}" = 'x0' ] && ! nm-online -t "${INACTIVE_TIMEOUT}"; then
159 - einfo "Marking NetworkManager as inactive. It will automatically be marked"
160 - einfo "as started after a network connection has been established."
161 - mark_service_inactive
162 - fi
163 - return "${_retval}"
164 -}
165 -
166 -stop() {
167 - # If we are re-called by a dispatcher event, we want to mark the service
168 - # as inactive without stopping the daemon
169 - if yesno "${IN_BACKGROUND}"; then
170 - mark_service_inactive "${SVCNAME}"
171 - return 0
172 - fi
173 -
174 - ebegin "Stopping NetworkManager"
175 - local pidfile=/run/NetworkManager/NetworkManager.pid
176 - if [ ! -e "${pidfile}" ] && [ -e /var/run/NetworkManager.pid ]; then
177 - # Try stopping the pid file used by <0.9.7
178 - pidfile=/var/run/NetworkManager.pid
179 - start-stop-daemon --stop --quiet --pidfile "${pidfile}"
180 - ret=$?
181 - [ ${ret} = 0 ] && [ -e "${pidfile}" ] && rm "${pidfile}"
182 - eend ${ret}
183 - else
184 - start-stop-daemon --stop --quiet --pidfile "${pidfile}"
185 - eend $?
186 - fi
187 -}
188 -
189 -# vim: set ft=gentoo-init-d ts=4 :
190
191 diff --git a/net-misc/networkmanager/files/networkmanager-data-fix-the-ID_NET_DRIVER-udev-rule.patch b/net-misc/networkmanager/files/networkmanager-data-fix-the-ID_NET_DRIVER-udev-rule.patch
192 deleted file mode 100644
193 index 1b94ab478d8..00000000000
194 --- a/net-misc/networkmanager/files/networkmanager-data-fix-the-ID_NET_DRIVER-udev-rule.patch
195 +++ /dev/null
196 @@ -1,33 +0,0 @@
197 -From 27d380b70ea839c7badab420361e4e65e023e8e9 Mon Sep 17 00:00:00 2001
198 -From: Lubomir Rintel <lkundrak@××.sk>
199 -Date: Fri, 16 Aug 2019 13:22:09 +0200
200 -Subject: [PATCH] data: fix the ID_NET_DRIVER udev rule
201 -
202 -Systemd v243 is complaining about the wrong substitution there. That is
203 -sort of harmless, because systemd-udevd in that version doesn't need the
204 -rule anyway. But still fix it, to avoid a warning.
205 -
206 -Also, newer udevd's $PATH doesn't include sbin. That is also okay,
207 -because we don't need the rule to actually work there. But fix it
208 -anyway.
209 -
210 -https://bugzilla.redhat.com/show_bug.cgi?id=1740655
211 ----
212 - data/84-nm-drivers.rules | 2 +-
213 - 1 file changed, 1 insertion(+), 1 deletion(-)
214 -
215 -diff --git a/data/84-nm-drivers.rules b/data/84-nm-drivers.rules
216 -index d246ef6ce..e398cb9f2 100644
217 ---- a/data/84-nm-drivers.rules
218 -+++ b/data/84-nm-drivers.rules
219 -@@ -7,6 +7,6 @@ ACTION!="add|change", GOTO="nm_drivers_end"
220 - # Determine ID_NET_DRIVER if there's no ID_NET_DRIVER or DRIVERS (old udev?)
221 - ENV{ID_NET_DRIVER}=="?*", GOTO="nm_drivers_end"
222 - DRIVERS=="?*", GOTO="nm_drivers_end"
223 --PROGRAM="/bin/sh -c 'ethtool -i $1 | sed -n s/^driver:\ //p' -- $env{INTERFACE}", RESULT=="?*", ENV{ID_NET_DRIVER}="%c"
224 -+PROGRAM="/bin/sh -c '/usr/sbin/ethtool -i $$1 |/usr/bin/sed -n s/^driver:\ //p' -- $env{INTERFACE}", ENV{ID_NET_DRIVER}="%c"
225 -
226 - LABEL="nm_drivers_end"
227 ---
228 -2.21.0
229 -
230
231 diff --git a/net-misc/networkmanager/networkmanager-1.18.4-r4.ebuild b/net-misc/networkmanager/networkmanager-1.18.4-r4.ebuild
232 deleted file mode 100644
233 index baec49b2cdb..00000000000
234 --- a/net-misc/networkmanager/networkmanager-1.18.4-r4.ebuild
235 +++ /dev/null
236 @@ -1,350 +0,0 @@
237 -# Copyright 1999-2020 Gentoo Authors
238 -# Distributed under the terms of the GNU General Public License v2
239 -
240 -EAPI=6
241 -GNOME_ORG_MODULE="NetworkManager"
242 -GNOME2_LA_PUNT="yes"
243 -VALA_USE_DEPEND="vapigen"
244 -PYTHON_COMPAT=( python{3_6,3_7} )
245 -
246 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal
247 -
248 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
249 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
250 -
251 -LICENSE="GPL-2+"
252 -SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version
253 -
254 -IUSE="audit bluetooth connection-sharing +dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
255 -RESTRICT="!test? ( test )"
256 -
257 -REQUIRED_USE="
258 - bluetooth? ( modemmanager )
259 - iwd? ( wifi )
260 - vala? ( introspection )
261 - wext? ( wifi )
262 - || ( nss gnutls )
263 - ?? ( elogind systemd )
264 -"
265 -
266 -KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~sparc x86"
267 -
268 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
269 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
270 -COMMON_DEPEND="
271 - >=sys-apps/dbus-1.2[${MULTILIB_USEDEP}]
272 - >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
273 - >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
274 - policykit? ( >=sys-auth/polkit-0.106 )
275 - net-libs/libndp[${MULTILIB_USEDEP}]
276 - >=net-misc/curl-7.24
277 - net-misc/iputils
278 - sys-apps/util-linux[${MULTILIB_USEDEP}]
279 - sys-libs/readline:0=
280 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
281 - audit? ( sys-process/audit )
282 - bluetooth? ( >=net-wireless/bluez-5 )
283 - connection-sharing? (
284 - net-dns/dnsmasq[dbus,dhcp]
285 - net-firewall/iptables )
286 - dhclient? ( >=net-misc/dhcp-4[client] )
287 - dhcpcd? ( net-misc/dhcpcd )
288 - elogind? ( >=sys-auth/elogind-219 )
289 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
290 - json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] )
291 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0= )
292 - ncurses? ( >=dev-libs/newt-0.52.15 )
293 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
294 - !nss? ( gnutls? (
295 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
296 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) )
297 - ofono? ( net-misc/ofono )
298 - ovs? ( dev-libs/jansson )
299 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
300 - resolvconf? ( net-dns/openresolv )
301 - selinux? ( sys-libs/libselinux )
302 - systemd? ( >=sys-apps/systemd-209:0= )
303 - teamd? (
304 - dev-libs/jansson
305 - >=net-misc/libteam-1.9
306 - )
307 -"
308 -RDEPEND="${COMMON_DEPEND}
309 - acct-group/plugdev
310 - || (
311 - net-misc/iputils[arping(+)]
312 - net-analyzer/arping
313 - )
314 - wifi? (
315 - !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
316 - iwd? ( net-wireless/iwd )
317 - )
318 -"
319 -DEPEND="${COMMON_DEPEND}
320 - dev-util/gdbus-codegen
321 - dev-util/glib-utils
322 - dev-util/gtk-doc-am
323 - >=dev-util/intltool-0.40
324 - >=sys-devel/gettext-0.17
325 - >=sys-kernel/linux-headers-3.18
326 - virtual/pkgconfig
327 - introspection? (
328 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
329 - dev-lang/perl
330 - dev-libs/libxslt
331 - )
332 - vala? ( $(vala_depend) )
333 - test? (
334 - $(python_gen_any_dep '
335 - dev-python/dbus-python[${PYTHON_USEDEP}]
336 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
337 - )
338 -"
339 -
340 -PATCHES=(
341 - "${FILESDIR}"/${PN}-data-fix-the-ID_NET_DRIVER-udev-rule.patch
342 - "${FILESDIR}"/${PV}-iwd1-compat.patch # included in 1.21.3+
343 -)
344 -
345 -python_check_deps() {
346 - if use introspection; then
347 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
348 - fi
349 - if use test; then
350 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
351 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
352 - fi
353 -}
354 -
355 -sysfs_deprecated_check() {
356 - ebegin "Checking for SYSFS_DEPRECATED support"
357 -
358 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
359 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
360 - eerror "or NetworkManager will not work correctly."
361 - eerror "See https://bugs.gentoo.org/333639 for more info."
362 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
363 - fi
364 - eend $?
365 -}
366 -
367 -pkg_pretend() {
368 - if use kernel_linux; then
369 - get_version
370 - if linux_config_exists; then
371 - sysfs_deprecated_check
372 - else
373 - ewarn "Was unable to determine your kernel .config"
374 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
375 - ewarn "See https://bugs.gentoo.org/333639 for more info."
376 - fi
377 -
378 - fi
379 -}
380 -
381 -pkg_setup() {
382 - if use connection-sharing; then
383 - if kernel_is lt 5 1; then
384 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
385 - else
386 - CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
387 - fi
388 - linux-info_pkg_setup
389 - fi
390 - if use introspection || use test; then
391 - python-any-r1_pkg_setup
392 - fi
393 -}
394 -
395 -src_prepare() {
396 - DOC_CONTENTS="To modify system network connections without needing to enter the
397 - root password, add your user account to the 'plugdev' group."
398 -
399 - use vala && vala_src_prepare
400 - gnome2_src_prepare
401 -}
402 -
403 -multilib_src_configure() {
404 - local myconf=(
405 - --disable-more-warnings
406 - --disable-static
407 - --localstatedir=/var
408 - --disable-lto
409 - --disable-config-plugin-ibft
410 - --disable-qt
411 - --without-netconfig
412 - --with-dbus-sys-dir=/etc/dbus-1/system.d
413 - # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are
414 - # still not ready for removing that lib, bug #665338
415 - --with-libnm-glib
416 - $(multilib_native_with nmcli)
417 - --with-udev-dir="$(get_udevdir)"
418 - --with-config-plugins-default=keyfile
419 - --with-iptables=/sbin/iptables
420 - --with-ebpf=yes
421 - $(multilib_native_enable concheck)
422 - --with-crypto=$(usex nss nss gnutls)
423 - # elogind lacks multilib for now, and consolekit doesn't require linking against, so we use it as a fake option
424 - # This SHOULD be removable once elogind has that. We abuse the fact that 'consolekit' does nothing at buildtime.
425 - # (There is no off switch, and we do not support upower.)
426 - # bug #747358
427 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
428 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
429 - $(multilib_native_use_with audit libaudit)
430 - $(multilib_native_use_enable bluetooth bluez5-dun)
431 - $(use_with dhclient)
432 - $(use_with dhcpcd)
433 - $(multilib_native_use_enable introspection)
434 - $(use_enable json json-validation)
435 - $(multilib_native_use_enable ppp)
436 - --without-libpsl
437 - $(multilib_native_use_with modemmanager modem-manager-1)
438 - $(multilib_native_use_with ncurses nmtui)
439 - $(multilib_native_use_with ofono)
440 - $(multilib_native_use_enable ovs)
441 - $(multilib_native_use_enable policykit polkit)
442 - $(multilib_native_use_enable policykit polkit-agent)
443 - $(multilib_native_use_with resolvconf)
444 - $(multilib_native_use_with selinux)
445 - $(multilib_native_use_with systemd systemd-journal)
446 - $(multilib_native_use_enable teamd teamdctl)
447 - $(multilib_native_use_enable test tests)
448 - $(multilib_native_use_enable vala)
449 - --without-valgrind
450 - $(multilib_native_use_with wifi iwd)
451 - $(multilib_native_use_with wext)
452 - $(multilib_native_use_enable wifi)
453 - )
454 -
455 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
456 - if use ppp; then
457 - local PPPD_VER=`best_version net-dialup/ppp`
458 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
459 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
460 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
461 - fi
462 -
463 - # unit files directory needs to be passed only when systemd is enabled,
464 - # otherwise systemd support is not disabled completely, bug #524534
465 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
466 -
467 - if multilib_is_native_abi; then
468 - # work-around man out-of-source brokenness, must be done before configure
469 - ln -s "${S}/docs" docs || die
470 - ln -s "${S}/man" man || die
471 - fi
472 -
473 - ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}"
474 -}
475 -
476 -multilib_src_compile() {
477 - if multilib_is_native_abi; then
478 - emake
479 - else
480 - local targets=(
481 - libnm/libnm.la
482 - libnm-util/libnm-util.la
483 - libnm-glib/libnm-glib.la
484 - libnm-glib/libnm-glib-vpn.la
485 - )
486 - emake "${targets[@]}"
487 - fi
488 -}
489 -
490 -multilib_src_test() {
491 - if use test && multilib_is_native_abi; then
492 - python_setup
493 - virtx emake check
494 - fi
495 -}
496 -
497 -multilib_src_install() {
498 - if multilib_is_native_abi; then
499 - # Install completions at proper place, bug #465100
500 - gnome2_src_install completiondir="$(get_bashcompdir)"
501 - insinto /usr/lib/NetworkManager/conf.d #702476
502 - doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf
503 - else
504 - local targets=(
505 - install-libLTLIBRARIES
506 - install-libdeprecatedHEADERS
507 - install-libnm_glib_libnmvpnHEADERS
508 - install-libnm_glib_libnmincludeHEADERS
509 - install-libnm_util_libnm_util_includeHEADERS
510 - install-libnmincludeHEADERS
511 - install-nodist_libnm_glib_libnmincludeHEADERS
512 - install-nodist_libnm_glib_libnmvpnHEADERS
513 - install-nodist_libnm_util_libnm_util_includeHEADERS
514 - install-nodist_libnmincludeHEADERS
515 - install-pkgconfigDATA
516 - )
517 - emake DESTDIR="${D}" "${targets[@]}"
518 - fi
519 -}
520 -
521 -multilib_src_install_all() {
522 - einstalldocs
523 - ! use systemd && readme.gentoo_create_doc
524 -
525 - newinitd "${FILESDIR}/init.d.NetworkManager-r1" NetworkManager
526 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
527 -
528 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
529 - keepdir /etc/NetworkManager/dispatcher.d
530 -
531 - # Provide openrc net dependency only when nm is connected
532 - exeinto /etc/NetworkManager/dispatcher.d
533 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
534 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
535 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
536 -
537 - keepdir /etc/NetworkManager/system-connections
538 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
539 -
540 - # Allow users in plugdev group to modify system connections
541 - insinto /usr/share/polkit-1/rules.d/
542 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
543 -
544 - if use iwd; then
545 - # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir
546 - cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf
547 - [device]
548 - wifi.backend=iwd
549 - EOF
550 - fi
551 -
552 - # Empty
553 - rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die
554 -}
555 -
556 -pkg_postinst() {
557 - gnome2_pkg_postinst
558 - systemd_reenable NetworkManager.service
559 - ! use systemd && readme.gentoo_print_elog
560 -
561 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
562 - ewarn "The ${PN} system configuration file has moved to a new location."
563 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
564 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
565 - ewarn
566 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
567 - fi
568 -
569 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
570 - # but still show a warning to remember people to have cleaner config file
571 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
572 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
573 - ewarn
574 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
575 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
576 - ewarn
577 - fi
578 - fi
579 -
580 - # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457
581 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
582 - ewarn "You have psk-flags=1 setting in above files, you will need to"
583 - ewarn "either reconfigure affected networks or, at least, set the flag"
584 - ewarn "value to '0'."
585 - fi
586 -}
587
588 diff --git a/net-misc/networkmanager/networkmanager-1.18.6-r1.ebuild b/net-misc/networkmanager/networkmanager-1.18.6-r1.ebuild
589 deleted file mode 100644
590 index 2f8cca8565b..00000000000
591 --- a/net-misc/networkmanager/networkmanager-1.18.6-r1.ebuild
592 +++ /dev/null
593 @@ -1,350 +0,0 @@
594 -# Copyright 1999-2020 Gentoo Authors
595 -# Distributed under the terms of the GNU General Public License v2
596 -
597 -EAPI=6
598 -GNOME_ORG_MODULE="NetworkManager"
599 -GNOME2_LA_PUNT="yes"
600 -VALA_USE_DEPEND="vapigen"
601 -PYTHON_COMPAT=( python{3_6,3_7} )
602 -
603 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal
604 -
605 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
606 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
607 -
608 -LICENSE="GPL-2+"
609 -SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version
610 -
611 -IUSE="audit bluetooth connection-sharing +dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
612 -RESTRICT="!test? ( test )"
613 -
614 -REQUIRED_USE="
615 - bluetooth? ( modemmanager )
616 - iwd? ( wifi )
617 - vala? ( introspection )
618 - wext? ( wifi )
619 - || ( nss gnutls )
620 - ?? ( elogind systemd )
621 -"
622 -
623 -KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~sparc x86"
624 -
625 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
626 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
627 -COMMON_DEPEND="
628 - >=sys-apps/dbus-1.2[${MULTILIB_USEDEP}]
629 - >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
630 - >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
631 - policykit? ( >=sys-auth/polkit-0.106 )
632 - net-libs/libndp[${MULTILIB_USEDEP}]
633 - >=net-misc/curl-7.24
634 - net-misc/iputils
635 - sys-apps/util-linux[${MULTILIB_USEDEP}]
636 - sys-libs/readline:0=
637 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
638 - audit? ( sys-process/audit )
639 - bluetooth? ( >=net-wireless/bluez-5 )
640 - connection-sharing? (
641 - net-dns/dnsmasq[dbus,dhcp]
642 - net-firewall/iptables )
643 - dhclient? ( >=net-misc/dhcp-4[client] )
644 - dhcpcd? ( net-misc/dhcpcd )
645 - elogind? ( >=sys-auth/elogind-219 )
646 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
647 - json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] )
648 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0= )
649 - ncurses? ( >=dev-libs/newt-0.52.15 )
650 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
651 - !nss? ( gnutls? (
652 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
653 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) )
654 - ofono? ( net-misc/ofono )
655 - ovs? ( dev-libs/jansson )
656 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
657 - resolvconf? ( net-dns/openresolv )
658 - selinux? ( sys-libs/libselinux )
659 - systemd? ( >=sys-apps/systemd-209:0= )
660 - teamd? (
661 - dev-libs/jansson
662 - >=net-misc/libteam-1.9
663 - )
664 -"
665 -RDEPEND="${COMMON_DEPEND}
666 - acct-group/plugdev
667 - || (
668 - net-misc/iputils[arping(+)]
669 - net-analyzer/arping
670 - )
671 - wifi? (
672 - !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
673 - iwd? ( net-wireless/iwd )
674 - )
675 -"
676 -DEPEND="${COMMON_DEPEND}
677 - dev-util/gdbus-codegen
678 - dev-util/glib-utils
679 - dev-util/gtk-doc-am
680 - >=dev-util/intltool-0.40
681 - >=sys-devel/gettext-0.17
682 - >=sys-kernel/linux-headers-3.18
683 - virtual/pkgconfig
684 - introspection? (
685 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
686 - dev-lang/perl
687 - dev-libs/libxslt
688 - )
689 - vala? ( $(vala_depend) )
690 - test? (
691 - $(python_gen_any_dep '
692 - dev-python/dbus-python[${PYTHON_USEDEP}]
693 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
694 - )
695 -"
696 -
697 -PATCHES=(
698 - "${FILESDIR}"/${PN}-data-fix-the-ID_NET_DRIVER-udev-rule.patch
699 - "${FILESDIR}"/1.18.4-iwd1-compat.patch # included in 1.21.3+
700 -)
701 -
702 -python_check_deps() {
703 - if use introspection; then
704 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
705 - fi
706 - if use test; then
707 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
708 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
709 - fi
710 -}
711 -
712 -sysfs_deprecated_check() {
713 - ebegin "Checking for SYSFS_DEPRECATED support"
714 -
715 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
716 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
717 - eerror "or NetworkManager will not work correctly."
718 - eerror "See https://bugs.gentoo.org/333639 for more info."
719 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
720 - fi
721 - eend $?
722 -}
723 -
724 -pkg_pretend() {
725 - if use kernel_linux; then
726 - get_version
727 - if linux_config_exists; then
728 - sysfs_deprecated_check
729 - else
730 - ewarn "Was unable to determine your kernel .config"
731 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
732 - ewarn "See https://bugs.gentoo.org/333639 for more info."
733 - fi
734 -
735 - fi
736 -}
737 -
738 -pkg_setup() {
739 - if use connection-sharing; then
740 - if kernel_is lt 5 1; then
741 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
742 - else
743 - CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
744 - fi
745 - linux-info_pkg_setup
746 - fi
747 - if use introspection || use test; then
748 - python-any-r1_pkg_setup
749 - fi
750 -}
751 -
752 -src_prepare() {
753 - DOC_CONTENTS="To modify system network connections without needing to enter the
754 - root password, add your user account to the 'plugdev' group."
755 -
756 - use vala && vala_src_prepare
757 - gnome2_src_prepare
758 -}
759 -
760 -multilib_src_configure() {
761 - local myconf=(
762 - --disable-more-warnings
763 - --disable-static
764 - --localstatedir=/var
765 - --disable-lto
766 - --disable-config-plugin-ibft
767 - --disable-qt
768 - --without-netconfig
769 - --with-dbus-sys-dir=/etc/dbus-1/system.d
770 - # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are
771 - # still not ready for removing that lib, bug #665338
772 - --with-libnm-glib
773 - $(multilib_native_with nmcli)
774 - --with-udev-dir="$(get_udevdir)"
775 - --with-config-plugins-default=keyfile
776 - --with-iptables=/sbin/iptables
777 - --with-ebpf=yes
778 - $(multilib_native_enable concheck)
779 - --with-crypto=$(usex nss nss gnutls)
780 - # elogind lacks multilib for now, and consolekit doesn't require linking against, so we use it as a fake option
781 - # This SHOULD be removable once elogind has that. We abuse the fact that 'consolekit' does nothing at buildtime.
782 - # (There is no off switch, and we do not support upower.)
783 - # bug #747358
784 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
785 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
786 - $(multilib_native_use_with audit libaudit)
787 - $(multilib_native_use_enable bluetooth bluez5-dun)
788 - $(use_with dhclient)
789 - $(use_with dhcpcd)
790 - $(multilib_native_use_enable introspection)
791 - $(use_enable json json-validation)
792 - $(multilib_native_use_enable ppp)
793 - --without-libpsl
794 - $(multilib_native_use_with modemmanager modem-manager-1)
795 - $(multilib_native_use_with ncurses nmtui)
796 - $(multilib_native_use_with ofono)
797 - $(multilib_native_use_enable ovs)
798 - $(multilib_native_use_enable policykit polkit)
799 - $(multilib_native_use_enable policykit polkit-agent)
800 - $(multilib_native_use_with resolvconf)
801 - $(multilib_native_use_with selinux)
802 - $(multilib_native_use_with systemd systemd-journal)
803 - $(multilib_native_use_enable teamd teamdctl)
804 - $(multilib_native_use_enable test tests)
805 - $(multilib_native_use_enable vala)
806 - --without-valgrind
807 - $(multilib_native_use_with wifi iwd)
808 - $(multilib_native_use_with wext)
809 - $(multilib_native_use_enable wifi)
810 - )
811 -
812 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
813 - if use ppp; then
814 - local PPPD_VER=`best_version net-dialup/ppp`
815 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
816 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
817 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
818 - fi
819 -
820 - # unit files directory needs to be passed only when systemd is enabled,
821 - # otherwise systemd support is not disabled completely, bug #524534
822 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
823 -
824 - if multilib_is_native_abi; then
825 - # work-around man out-of-source brokenness, must be done before configure
826 - ln -s "${S}/docs" docs || die
827 - ln -s "${S}/man" man || die
828 - fi
829 -
830 - ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}"
831 -}
832 -
833 -multilib_src_compile() {
834 - if multilib_is_native_abi; then
835 - emake
836 - else
837 - local targets=(
838 - libnm/libnm.la
839 - libnm-util/libnm-util.la
840 - libnm-glib/libnm-glib.la
841 - libnm-glib/libnm-glib-vpn.la
842 - )
843 - emake "${targets[@]}"
844 - fi
845 -}
846 -
847 -multilib_src_test() {
848 - if use test && multilib_is_native_abi; then
849 - python_setup
850 - virtx emake check
851 - fi
852 -}
853 -
854 -multilib_src_install() {
855 - if multilib_is_native_abi; then
856 - # Install completions at proper place, bug #465100
857 - gnome2_src_install completiondir="$(get_bashcompdir)"
858 - insinto /usr/lib/NetworkManager/conf.d #702476
859 - doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf
860 - else
861 - local targets=(
862 - install-libLTLIBRARIES
863 - install-libdeprecatedHEADERS
864 - install-libnm_glib_libnmvpnHEADERS
865 - install-libnm_glib_libnmincludeHEADERS
866 - install-libnm_util_libnm_util_includeHEADERS
867 - install-libnmincludeHEADERS
868 - install-nodist_libnm_glib_libnmincludeHEADERS
869 - install-nodist_libnm_glib_libnmvpnHEADERS
870 - install-nodist_libnm_util_libnm_util_includeHEADERS
871 - install-nodist_libnmincludeHEADERS
872 - install-pkgconfigDATA
873 - )
874 - emake DESTDIR="${D}" "${targets[@]}"
875 - fi
876 -}
877 -
878 -multilib_src_install_all() {
879 - einstalldocs
880 - ! use systemd && readme.gentoo_create_doc
881 -
882 - newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager
883 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
884 -
885 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
886 - keepdir /etc/NetworkManager/dispatcher.d
887 -
888 - # Provide openrc net dependency only when nm is connected
889 - exeinto /etc/NetworkManager/dispatcher.d
890 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
891 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
892 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
893 -
894 - keepdir /etc/NetworkManager/system-connections
895 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
896 -
897 - # Allow users in plugdev group to modify system connections
898 - insinto /usr/share/polkit-1/rules.d/
899 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
900 -
901 - if use iwd; then
902 - # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir
903 - cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf
904 - [device]
905 - wifi.backend=iwd
906 - EOF
907 - fi
908 -
909 - # Empty
910 - rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die
911 -}
912 -
913 -pkg_postinst() {
914 - gnome2_pkg_postinst
915 - systemd_reenable NetworkManager.service
916 - ! use systemd && readme.gentoo_print_elog
917 -
918 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
919 - ewarn "The ${PN} system configuration file has moved to a new location."
920 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
921 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
922 - ewarn
923 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
924 - fi
925 -
926 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
927 - # but still show a warning to remember people to have cleaner config file
928 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
929 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
930 - ewarn
931 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
932 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
933 - ewarn
934 - fi
935 - fi
936 -
937 - # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457
938 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
939 - ewarn "You have psk-flags=1 setting in above files, you will need to"
940 - ewarn "either reconfigure affected networks or, at least, set the flag"
941 - ewarn "value to '0'."
942 - fi
943 -}
944
945 diff --git a/net-misc/networkmanager/networkmanager-1.20.12-r1.ebuild b/net-misc/networkmanager/networkmanager-1.20.12-r1.ebuild
946 deleted file mode 100644
947 index 3ec06c3aefc..00000000000
948 --- a/net-misc/networkmanager/networkmanager-1.20.12-r1.ebuild
949 +++ /dev/null
950 @@ -1,340 +0,0 @@
951 -# Copyright 1999-2020 Gentoo Authors
952 -# Distributed under the terms of the GNU General Public License v2
953 -
954 -EAPI=6
955 -GNOME_ORG_MODULE="NetworkManager"
956 -GNOME2_LA_PUNT="yes"
957 -VALA_USE_DEPEND="vapigen"
958 -PYTHON_COMPAT=( python3_{6,7,8} )
959 -
960 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal
961 -
962 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
963 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
964 -
965 -LICENSE="GPL-2+"
966 -SLOT="0"
967 -
968 -IUSE="audit bluetooth connection-sharing dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
969 -RESTRICT="!test? ( test )"
970 -
971 -REQUIRED_USE="
972 - bluetooth? ( modemmanager )
973 - iwd? ( wifi )
974 - vala? ( introspection )
975 - wext? ( wifi )
976 - || ( nss gnutls )
977 - ?? ( elogind systemd )
978 -"
979 -
980 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
981 -
982 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
983 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
984 -COMMON_DEPEND="
985 - >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
986 - policykit? ( >=sys-auth/polkit-0.106 )
987 - net-libs/libndp[${MULTILIB_USEDEP}]
988 - >=net-misc/curl-7.24
989 - net-misc/iputils
990 - sys-apps/util-linux[${MULTILIB_USEDEP}]
991 - sys-libs/readline:0=
992 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
993 - audit? ( sys-process/audit )
994 - bluetooth? ( >=net-wireless/bluez-5 )
995 - connection-sharing? (
996 - net-dns/dnsmasq[dbus,dhcp]
997 - net-firewall/iptables )
998 - dhclient? ( >=net-misc/dhcp-4[client] )
999 - dhcpcd? ( net-misc/dhcpcd )
1000 - elogind? ( >=sys-auth/elogind-219 )
1001 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
1002 - json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] )
1003 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0= )
1004 - ncurses? ( >=dev-libs/newt-0.52.15 )
1005 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
1006 - !nss? ( gnutls? (
1007 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
1008 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) )
1009 - ofono? ( net-misc/ofono )
1010 - ovs? ( dev-libs/jansson )
1011 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
1012 - resolvconf? ( net-dns/openresolv )
1013 - selinux? ( sys-libs/libselinux )
1014 - systemd? ( >=sys-apps/systemd-209:0= )
1015 - teamd? (
1016 - dev-libs/jansson
1017 - >=net-misc/libteam-1.9
1018 - )
1019 -"
1020 -RDEPEND="${COMMON_DEPEND}
1021 - acct-group/plugdev
1022 - || (
1023 - net-misc/iputils[arping(+)]
1024 - net-analyzer/arping
1025 - )
1026 - wifi? (
1027 - !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
1028 - iwd? ( net-wireless/iwd )
1029 - )
1030 -"
1031 -DEPEND="${COMMON_DEPEND}
1032 - dev-util/gdbus-codegen
1033 - dev-util/glib-utils
1034 - dev-util/gtk-doc-am
1035 - >=dev-util/intltool-0.40
1036 - >=sys-devel/gettext-0.17
1037 - >=sys-kernel/linux-headers-3.18
1038 - virtual/pkgconfig
1039 - introspection? (
1040 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
1041 - dev-lang/perl
1042 - dev-libs/libxslt
1043 - )
1044 - vala? ( $(vala_depend) )
1045 - test? (
1046 - $(python_gen_any_dep '
1047 - dev-python/dbus-python[${PYTHON_USEDEP}]
1048 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
1049 - )
1050 -"
1051 -
1052 -python_check_deps() {
1053 - if use introspection; then
1054 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
1055 - fi
1056 - if use test; then
1057 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
1058 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
1059 - fi
1060 -}
1061 -
1062 -sysfs_deprecated_check() {
1063 - ebegin "Checking for SYSFS_DEPRECATED support"
1064 -
1065 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
1066 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
1067 - eerror "or NetworkManager will not work correctly."
1068 - eerror "See https://bugs.gentoo.org/333639 for more info."
1069 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
1070 - fi
1071 - eend $?
1072 -}
1073 -
1074 -pkg_pretend() {
1075 - if use kernel_linux; then
1076 - get_version
1077 - if linux_config_exists; then
1078 - sysfs_deprecated_check
1079 - else
1080 - ewarn "Was unable to determine your kernel .config"
1081 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
1082 - ewarn "See https://bugs.gentoo.org/333639 for more info."
1083 - fi
1084 -
1085 - fi
1086 -}
1087 -
1088 -pkg_setup() {
1089 - if use connection-sharing; then
1090 - if kernel_is lt 5 1; then
1091 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
1092 - else
1093 - CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
1094 - fi
1095 - linux-info_pkg_setup
1096 - fi
1097 - if use introspection || use test; then
1098 - python-any-r1_pkg_setup
1099 - fi
1100 -}
1101 -
1102 -src_prepare() {
1103 - DOC_CONTENTS="To modify system network connections without needing to enter the
1104 - root password, add your user account to the 'plugdev' group."
1105 -
1106 - use vala && vala_src_prepare
1107 - gnome2_src_prepare
1108 -}
1109 -
1110 -multilib_src_configure() {
1111 - local myconf=(
1112 - --disable-more-warnings
1113 - --disable-static
1114 - --localstatedir=/var
1115 - --with-runstatedir=/run
1116 - --disable-lto
1117 - --disable-qt
1118 - --without-netconfig
1119 - --with-dbus-sys-dir=/etc/dbus-1/system.d
1120 - $(multilib_native_with nmcli)
1121 - --with-udev-dir="$(get_udevdir)"
1122 - --with-config-plugins-default=keyfile
1123 - --with-iptables=/sbin/iptables
1124 - --with-ebpf=yes
1125 - $(multilib_native_enable concheck)
1126 - --with-crypto=$(usex nss nss gnutls)
1127 - # elogind lacks multilib for now, and consolekit doesn't require linking against, so we use it as a fake option
1128 - # This SHOULD be removable once elogind has that. We abuse the fact that 'consolekit' does nothing at buildtime.
1129 - # (There is no off switch, and we do not support upower.)
1130 - # bug #747358
1131 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
1132 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
1133 - $(multilib_native_use_with audit libaudit)
1134 - $(multilib_native_use_enable bluetooth bluez5-dun)
1135 - --without-dhcpcanon
1136 - $(use_with dhclient)
1137 - $(use_with dhcpcd)
1138 - --with-config-dhcp-default=internal
1139 - $(multilib_native_use_enable introspection)
1140 - $(use_enable json json-validation)
1141 - $(multilib_native_use_enable ppp)
1142 - --without-libpsl
1143 - $(multilib_native_use_with modemmanager modem-manager-1)
1144 - $(multilib_native_use_with ncurses nmtui)
1145 - $(multilib_native_use_with ofono)
1146 - $(multilib_native_use_enable ovs)
1147 - $(multilib_native_use_enable policykit polkit)
1148 - $(multilib_native_use_enable policykit polkit-agent)
1149 - $(multilib_native_use_with resolvconf)
1150 - $(multilib_native_use_with selinux)
1151 - $(multilib_native_use_with systemd systemd-journal)
1152 - $(multilib_native_use_enable teamd teamdctl)
1153 - $(multilib_native_use_enable test tests)
1154 - $(multilib_native_use_enable vala)
1155 - --without-valgrind
1156 - $(multilib_native_use_with wifi iwd)
1157 - $(multilib_native_use_with wext)
1158 - $(multilib_native_use_enable wifi)
1159 - )
1160 -
1161 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
1162 - if use ppp; then
1163 - local PPPD_VER=`best_version net-dialup/ppp`
1164 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
1165 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
1166 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
1167 - fi
1168 -
1169 - # unit files directory needs to be passed only when systemd is enabled,
1170 - # otherwise systemd support is not disabled completely, bug #524534
1171 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
1172 -
1173 - if multilib_is_native_abi; then
1174 - # work-around man out-of-source brokenness, must be done before configure
1175 - ln -s "${S}/docs" docs || die
1176 - ln -s "${S}/man" man || die
1177 - fi
1178 -
1179 - ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}"
1180 -}
1181 -
1182 -multilib_src_compile() {
1183 - if multilib_is_native_abi; then
1184 - emake
1185 - else
1186 - local targets=(
1187 - libnm/libnm.la
1188 - )
1189 - emake "${targets[@]}"
1190 - fi
1191 -}
1192 -
1193 -multilib_src_test() {
1194 - if use test && multilib_is_native_abi; then
1195 - python_setup
1196 - virtx emake check
1197 - fi
1198 -}
1199 -
1200 -multilib_src_install() {
1201 - if multilib_is_native_abi; then
1202 - # Install completions at proper place, bug #465100
1203 - gnome2_src_install completiondir="$(get_bashcompdir)"
1204 - insinto /usr/lib/NetworkManager/conf.d #702476
1205 - doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf
1206 - else
1207 - local targets=(
1208 - install-libLTLIBRARIES
1209 - install-libnmincludeHEADERS
1210 - install-nodist_libnmincludeHEADERS
1211 - install-pkgconfigDATA
1212 - )
1213 - emake DESTDIR="${D}" "${targets[@]}"
1214 - fi
1215 -}
1216 -
1217 -multilib_src_install_all() {
1218 - einstalldocs
1219 - ! use systemd && readme.gentoo_create_doc
1220 -
1221 - newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager
1222 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
1223 -
1224 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
1225 - keepdir /etc/NetworkManager/dispatcher.d
1226 -
1227 - # Provide openrc net dependency only when nm is connected
1228 - exeinto /etc/NetworkManager/dispatcher.d
1229 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
1230 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
1231 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
1232 -
1233 - keepdir /etc/NetworkManager/system-connections
1234 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
1235 -
1236 - # Allow users in plugdev group to modify system connections
1237 - insinto /usr/share/polkit-1/rules.d/
1238 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
1239 -
1240 - if use iwd; then
1241 - # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir
1242 - cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf
1243 - [device]
1244 - wifi.backend=iwd
1245 - EOF
1246 - fi
1247 -
1248 - # Empty
1249 - rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die
1250 -}
1251 -
1252 -pkg_postinst() {
1253 - gnome2_pkg_postinst
1254 - systemd_reenable NetworkManager.service
1255 - ! use systemd && readme.gentoo_print_elog
1256 -
1257 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
1258 - ewarn "The ${PN} system configuration file has moved to a new location."
1259 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
1260 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
1261 - ewarn
1262 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
1263 - fi
1264 -
1265 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
1266 - # but still show a warning to remember people to have cleaner config file
1267 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
1268 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
1269 - ewarn
1270 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
1271 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
1272 - ewarn
1273 - fi
1274 - fi
1275 -
1276 - # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457
1277 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
1278 - ewarn "You have psk-flags=1 setting in above files, you will need to"
1279 - ewarn "either reconfigure affected networks or, at least, set the flag"
1280 - ewarn "value to '0'."
1281 - fi
1282 -
1283 - if use dhclient || use dhcpcd; then
1284 - ewarn "You have enabled USE=dhclient and/or USE=dhcpcd, but NetworkManager since"
1285 - ewarn "version 1.20 defaults to the internal DHCP client. If the internal client"
1286 - ewarn "works for you, and you're happy with, the alternative USE flags can be"
1287 - ewarn "disabled. If you want to use dhclient or dhcpcd, then you need to tweak"
1288 - ewarn "the main.dhcp configuration option to use one of them instead of internal."
1289 - fi
1290 -}
1291
1292 diff --git a/net-misc/networkmanager/networkmanager-1.22.14-r1.ebuild b/net-misc/networkmanager/networkmanager-1.22.14-r1.ebuild
1293 deleted file mode 100644
1294 index a956d94131e..00000000000
1295 --- a/net-misc/networkmanager/networkmanager-1.22.14-r1.ebuild
1296 +++ /dev/null
1297 @@ -1,342 +0,0 @@
1298 -# Copyright 1999-2020 Gentoo Authors
1299 -# Distributed under the terms of the GNU General Public License v2
1300 -
1301 -EAPI=6
1302 -GNOME_ORG_MODULE="NetworkManager"
1303 -GNOME2_LA_PUNT="yes"
1304 -VALA_USE_DEPEND="vapigen"
1305 -PYTHON_COMPAT=( python3_{6,7,8} )
1306 -
1307 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal
1308 -
1309 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
1310 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
1311 -
1312 -LICENSE="GPL-2+"
1313 -SLOT="0"
1314 -
1315 -IUSE="audit bluetooth connection-sharing dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
1316 -RESTRICT="!test? ( test )"
1317 -
1318 -REQUIRED_USE="
1319 - bluetooth? ( modemmanager )
1320 - iwd? ( wifi )
1321 - vala? ( introspection )
1322 - wext? ( wifi )
1323 - || ( nss gnutls )
1324 - ?? ( elogind systemd )
1325 -"
1326 -
1327 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
1328 -
1329 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
1330 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
1331 -COMMON_DEPEND="
1332 - >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
1333 - policykit? ( >=sys-auth/polkit-0.106 )
1334 - net-libs/libndp[${MULTILIB_USEDEP}]
1335 - >=net-misc/curl-7.24
1336 - net-misc/iputils
1337 - sys-apps/util-linux[${MULTILIB_USEDEP}]
1338 - sys-libs/readline:0=
1339 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
1340 - audit? ( sys-process/audit )
1341 - bluetooth? ( >=net-wireless/bluez-5 )
1342 - connection-sharing? (
1343 - net-dns/dnsmasq[dbus,dhcp]
1344 - net-firewall/iptables )
1345 - dhclient? ( >=net-misc/dhcp-4[client] )
1346 - dhcpcd? ( net-misc/dhcpcd )
1347 - elogind? ( >=sys-auth/elogind-219 )
1348 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
1349 - json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] )
1350 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0=
1351 - net-misc/mobile-broadband-provider-info )
1352 - ncurses? ( >=dev-libs/newt-0.52.15 )
1353 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
1354 - !nss? ( gnutls? (
1355 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
1356 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) )
1357 - ofono? ( net-misc/ofono )
1358 - ovs? ( dev-libs/jansson )
1359 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
1360 - resolvconf? ( net-dns/openresolv )
1361 - selinux? ( sys-libs/libselinux )
1362 - systemd? ( >=sys-apps/systemd-209:0= )
1363 - teamd? (
1364 - dev-libs/jansson
1365 - >=net-misc/libteam-1.9
1366 - )
1367 -"
1368 -RDEPEND="${COMMON_DEPEND}
1369 - acct-group/plugdev
1370 - || (
1371 - net-misc/iputils[arping(+)]
1372 - net-analyzer/arping
1373 - )
1374 - wifi? (
1375 - !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
1376 - iwd? ( net-wireless/iwd )
1377 - )
1378 -"
1379 -DEPEND="${COMMON_DEPEND}
1380 - dev-util/gdbus-codegen
1381 - dev-util/glib-utils
1382 - dev-util/gtk-doc-am
1383 - >=dev-util/intltool-0.40
1384 - >=sys-devel/gettext-0.17
1385 - >=sys-kernel/linux-headers-3.18
1386 - virtual/pkgconfig
1387 - introspection? (
1388 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
1389 - dev-lang/perl
1390 - dev-libs/libxslt
1391 - )
1392 - vala? ( $(vala_depend) )
1393 - test? (
1394 - $(python_gen_any_dep '
1395 - dev-python/dbus-python[${PYTHON_USEDEP}]
1396 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
1397 - )
1398 -"
1399 -
1400 -python_check_deps() {
1401 - if use introspection; then
1402 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
1403 - fi
1404 - if use test; then
1405 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
1406 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
1407 - fi
1408 -}
1409 -
1410 -sysfs_deprecated_check() {
1411 - ebegin "Checking for SYSFS_DEPRECATED support"
1412 -
1413 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
1414 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
1415 - eerror "or NetworkManager will not work correctly."
1416 - eerror "See https://bugs.gentoo.org/333639 for more info."
1417 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
1418 - fi
1419 - eend $?
1420 -}
1421 -
1422 -pkg_pretend() {
1423 - if use kernel_linux; then
1424 - get_version
1425 - if linux_config_exists; then
1426 - sysfs_deprecated_check
1427 - else
1428 - ewarn "Was unable to determine your kernel .config"
1429 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
1430 - ewarn "See https://bugs.gentoo.org/333639 for more info."
1431 - fi
1432 -
1433 - fi
1434 -}
1435 -
1436 -pkg_setup() {
1437 - if use connection-sharing; then
1438 - if kernel_is lt 5 1; then
1439 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
1440 - else
1441 - CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
1442 - fi
1443 - linux-info_pkg_setup
1444 - fi
1445 - if use introspection || use test; then
1446 - python-any-r1_pkg_setup
1447 - fi
1448 -}
1449 -
1450 -src_prepare() {
1451 - DOC_CONTENTS="To modify system network connections without needing to enter the
1452 - root password, add your user account to the 'plugdev' group."
1453 -
1454 - use vala && vala_src_prepare
1455 - gnome2_src_prepare
1456 -}
1457 -
1458 -multilib_src_configure() {
1459 - local myconf=(
1460 - --disable-more-warnings
1461 - --disable-static
1462 - --localstatedir=/var
1463 - --with-runstatedir=/run
1464 - --disable-lto
1465 - --disable-qt
1466 - --without-netconfig
1467 - --with-dbus-sys-dir=/etc/dbus-1/system.d
1468 - $(multilib_native_with nmcli)
1469 - --with-udev-dir="$(get_udevdir)"
1470 - --with-config-plugins-default=keyfile
1471 - --with-iptables=/sbin/iptables
1472 - --with-ebpf=yes
1473 - $(multilib_native_enable concheck)
1474 - --with-nm-cloud-setup=$(multilib_is_native_abi && echo yes || echo no)
1475 - --with-crypto=$(usex nss nss gnutls)
1476 - # elogind lacks multilib for now, and consolekit doesn't require linking against, so we use it as a fake option
1477 - # This SHOULD be removable once elogind has that. We abuse the fact that 'consolekit' does nothing at buildtime.
1478 - # (There is no off switch, and we do not support upower.)
1479 - # bug #747358
1480 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
1481 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
1482 - $(multilib_native_use_with audit libaudit)
1483 - $(multilib_native_use_enable bluetooth bluez5-dun)
1484 - --without-dhcpcanon
1485 - $(use_with dhclient)
1486 - $(use_with dhcpcd)
1487 - --with-config-dhcp-default=internal
1488 - $(multilib_native_use_enable introspection)
1489 - $(use_enable json json-validation)
1490 - $(multilib_native_use_enable ppp)
1491 - --without-libpsl
1492 - $(multilib_native_use_with modemmanager modem-manager-1)
1493 - $(multilib_native_use_with ncurses nmtui)
1494 - $(multilib_native_use_with ofono)
1495 - $(multilib_native_use_enable ovs)
1496 - $(multilib_native_use_enable policykit polkit)
1497 - $(multilib_native_use_enable policykit polkit-agent)
1498 - $(multilib_native_use_with resolvconf)
1499 - $(multilib_native_use_with selinux)
1500 - $(multilib_native_use_with systemd systemd-journal)
1501 - $(multilib_native_use_enable teamd teamdctl)
1502 - $(multilib_native_use_enable test tests)
1503 - $(multilib_native_use_enable vala)
1504 - --without-valgrind
1505 - $(multilib_native_use_with wifi iwd)
1506 - $(multilib_native_use_with wext)
1507 - $(multilib_native_use_enable wifi)
1508 - )
1509 -
1510 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
1511 - if use ppp; then
1512 - local PPPD_VER=`best_version net-dialup/ppp`
1513 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
1514 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
1515 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
1516 - fi
1517 -
1518 - # unit files directory needs to be passed only when systemd is enabled,
1519 - # otherwise systemd support is not disabled completely, bug #524534
1520 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
1521 -
1522 - if multilib_is_native_abi; then
1523 - # work-around man out-of-source brokenness, must be done before configure
1524 - ln -s "${S}/docs" docs || die
1525 - ln -s "${S}/man" man || die
1526 - fi
1527 -
1528 - ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}"
1529 -}
1530 -
1531 -multilib_src_compile() {
1532 - if multilib_is_native_abi; then
1533 - emake
1534 - else
1535 - local targets=(
1536 - libnm/libnm.la
1537 - )
1538 - emake "${targets[@]}"
1539 - fi
1540 -}
1541 -
1542 -multilib_src_test() {
1543 - if use test && multilib_is_native_abi; then
1544 - python_setup
1545 - virtx emake check
1546 - fi
1547 -}
1548 -
1549 -multilib_src_install() {
1550 - if multilib_is_native_abi; then
1551 - # Install completions at proper place, bug #465100
1552 - gnome2_src_install completiondir="$(get_bashcompdir)"
1553 - insinto /usr/lib/NetworkManager/conf.d #702476
1554 - doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf
1555 - else
1556 - local targets=(
1557 - install-libLTLIBRARIES
1558 - install-libnmincludeHEADERS
1559 - install-nodist_libnmincludeHEADERS
1560 - install-pkgconfigDATA
1561 - )
1562 - emake DESTDIR="${D}" "${targets[@]}"
1563 - fi
1564 -}
1565 -
1566 -multilib_src_install_all() {
1567 - einstalldocs
1568 - ! use systemd && readme.gentoo_create_doc
1569 -
1570 - newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager
1571 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
1572 -
1573 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
1574 - keepdir /etc/NetworkManager/dispatcher.d
1575 -
1576 - # Provide openrc net dependency only when nm is connected
1577 - exeinto /etc/NetworkManager/dispatcher.d
1578 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
1579 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
1580 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
1581 -
1582 - keepdir /etc/NetworkManager/system-connections
1583 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
1584 -
1585 - # Allow users in plugdev group to modify system connections
1586 - insinto /usr/share/polkit-1/rules.d/
1587 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
1588 -
1589 - if use iwd; then
1590 - # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir
1591 - cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf
1592 - [device]
1593 - wifi.backend=iwd
1594 - EOF
1595 - fi
1596 -
1597 - # Empty
1598 - rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die
1599 -}
1600 -
1601 -pkg_postinst() {
1602 - gnome2_pkg_postinst
1603 - systemd_reenable NetworkManager.service
1604 - ! use systemd && readme.gentoo_print_elog
1605 -
1606 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
1607 - ewarn "The ${PN} system configuration file has moved to a new location."
1608 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
1609 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
1610 - ewarn
1611 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
1612 - fi
1613 -
1614 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
1615 - # but still show a warning to remember people to have cleaner config file
1616 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
1617 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
1618 - ewarn
1619 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
1620 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
1621 - ewarn
1622 - fi
1623 - fi
1624 -
1625 - # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457
1626 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
1627 - ewarn "You have psk-flags=1 setting in above files, you will need to"
1628 - ewarn "either reconfigure affected networks or, at least, set the flag"
1629 - ewarn "value to '0'."
1630 - fi
1631 -
1632 - if use dhclient || use dhcpcd; then
1633 - ewarn "You have enabled USE=dhclient and/or USE=dhcpcd, but NetworkManager since"
1634 - ewarn "version 1.20 defaults to the internal DHCP client. If the internal client"
1635 - ewarn "works for you, and you're happy with, the alternative USE flags can be"
1636 - ewarn "disabled. If you want to use dhclient or dhcpcd, then you need to tweak"
1637 - ewarn "the main.dhcp configuration option to use one of them instead of internal."
1638 - fi
1639 -}
1640
1641 diff --git a/net-misc/networkmanager/networkmanager-1.24.2-r1.ebuild b/net-misc/networkmanager/networkmanager-1.24.2-r1.ebuild
1642 deleted file mode 100644
1643 index 3c513d596fc..00000000000
1644 --- a/net-misc/networkmanager/networkmanager-1.24.2-r1.ebuild
1645 +++ /dev/null
1646 @@ -1,341 +0,0 @@
1647 -# Copyright 1999-2020 Gentoo Authors
1648 -# Distributed under the terms of the GNU General Public License v2
1649 -
1650 -EAPI=6
1651 -GNOME_ORG_MODULE="NetworkManager"
1652 -GNOME2_LA_PUNT="yes"
1653 -VALA_USE_DEPEND="vapigen"
1654 -PYTHON_COMPAT=( python3_{6,7,8} )
1655 -
1656 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal
1657 -
1658 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
1659 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
1660 -
1661 -LICENSE="GPL-2+"
1662 -SLOT="0"
1663 -
1664 -IUSE="audit bluetooth connection-sharing dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
1665 -RESTRICT="!test? ( test )"
1666 -
1667 -REQUIRED_USE="
1668 - bluetooth? ( modemmanager )
1669 - iwd? ( wifi )
1670 - vala? ( introspection )
1671 - wext? ( wifi )
1672 - || ( nss gnutls )
1673 - ?? ( elogind systemd )
1674 -"
1675 -
1676 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
1677 -
1678 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
1679 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
1680 -COMMON_DEPEND="
1681 - >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
1682 - policykit? ( >=sys-auth/polkit-0.106 )
1683 - net-libs/libndp[${MULTILIB_USEDEP}]
1684 - >=net-misc/curl-7.24
1685 - net-misc/iputils
1686 - sys-apps/util-linux[${MULTILIB_USEDEP}]
1687 - sys-libs/readline:0=
1688 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
1689 - audit? ( sys-process/audit )
1690 - bluetooth? ( >=net-wireless/bluez-5 )
1691 - connection-sharing? (
1692 - net-dns/dnsmasq[dbus,dhcp]
1693 - net-firewall/iptables )
1694 - dhclient? ( >=net-misc/dhcp-4[client] )
1695 - dhcpcd? ( net-misc/dhcpcd )
1696 - elogind? ( >=sys-auth/elogind-219 )
1697 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
1698 - json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] )
1699 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0=
1700 - net-misc/mobile-broadband-provider-info )
1701 - ncurses? ( >=dev-libs/newt-0.52.15 )
1702 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
1703 - !nss? ( gnutls? (
1704 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
1705 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) )
1706 - ofono? ( net-misc/ofono )
1707 - ovs? ( dev-libs/jansson )
1708 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
1709 - resolvconf? ( net-dns/openresolv )
1710 - selinux? ( sys-libs/libselinux )
1711 - systemd? ( >=sys-apps/systemd-209:0= )
1712 - teamd? (
1713 - dev-libs/jansson
1714 - >=net-misc/libteam-1.9
1715 - )
1716 -"
1717 -RDEPEND="${COMMON_DEPEND}
1718 - acct-group/plugdev
1719 - || (
1720 - net-misc/iputils[arping(+)]
1721 - net-analyzer/arping
1722 - )
1723 - wifi? (
1724 - !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
1725 - iwd? ( net-wireless/iwd )
1726 - )
1727 -"
1728 -DEPEND="${COMMON_DEPEND}
1729 - dev-util/gdbus-codegen
1730 - dev-util/glib-utils
1731 - dev-util/gtk-doc-am
1732 - >=dev-util/intltool-0.40
1733 - >=sys-devel/gettext-0.17
1734 - >=sys-kernel/linux-headers-3.18
1735 - virtual/pkgconfig
1736 - introspection? (
1737 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
1738 - dev-lang/perl
1739 - dev-libs/libxslt
1740 - )
1741 - vala? ( $(vala_depend) )
1742 - test? (
1743 - $(python_gen_any_dep '
1744 - dev-python/dbus-python[${PYTHON_USEDEP}]
1745 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
1746 - )
1747 -"
1748 -
1749 -python_check_deps() {
1750 - if use introspection; then
1751 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
1752 - fi
1753 - if use test; then
1754 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
1755 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
1756 - fi
1757 -}
1758 -
1759 -sysfs_deprecated_check() {
1760 - ebegin "Checking for SYSFS_DEPRECATED support"
1761 -
1762 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
1763 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
1764 - eerror "or NetworkManager will not work correctly."
1765 - eerror "See https://bugs.gentoo.org/333639 for more info."
1766 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
1767 - fi
1768 - eend $?
1769 -}
1770 -
1771 -pkg_pretend() {
1772 - if use kernel_linux; then
1773 - get_version
1774 - if linux_config_exists; then
1775 - sysfs_deprecated_check
1776 - else
1777 - ewarn "Was unable to determine your kernel .config"
1778 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
1779 - ewarn "See https://bugs.gentoo.org/333639 for more info."
1780 - fi
1781 -
1782 - fi
1783 -}
1784 -
1785 -pkg_setup() {
1786 - if use connection-sharing; then
1787 - if kernel_is lt 5 1; then
1788 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
1789 - else
1790 - CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE"
1791 - fi
1792 - linux-info_pkg_setup
1793 - fi
1794 - if use introspection || use test; then
1795 - python-any-r1_pkg_setup
1796 - fi
1797 -}
1798 -
1799 -src_prepare() {
1800 - DOC_CONTENTS="To modify system network connections without needing to enter the
1801 - root password, add your user account to the 'plugdev' group."
1802 -
1803 - use vala && vala_src_prepare
1804 - gnome2_src_prepare
1805 -}
1806 -
1807 -multilib_src_configure() {
1808 - local myconf=(
1809 - --disable-more-warnings
1810 - --disable-static
1811 - --localstatedir=/var
1812 - --with-runstatedir=/run
1813 - --disable-lto
1814 - --disable-qt
1815 - --without-netconfig
1816 - --with-dbus-sys-dir=/etc/dbus-1/system.d
1817 - $(multilib_native_with nmcli)
1818 - --with-udev-dir="$(get_udevdir)"
1819 - --with-config-plugins-default=keyfile
1820 - --with-iptables=/sbin/iptables
1821 - --with-ebpf=yes
1822 - $(multilib_native_enable concheck)
1823 - --with-nm-cloud-setup=$(multilib_is_native_abi && echo yes || echo no)
1824 - --with-crypto=$(usex nss nss gnutls)
1825 - # elogind lacks multilib for now, and consolekit doesn't require linking against, so we use it as a fake option
1826 - # This SHOULD be removable once elogind has that. We abuse the fact that 'consolekit' does nothing at buildtime.
1827 - # (There is no off switch, and we do not support upower.)
1828 - # bug #747358
1829 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
1830 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
1831 - $(multilib_native_use_with audit libaudit)
1832 - $(multilib_native_use_enable bluetooth bluez5-dun)
1833 - --without-dhcpcanon
1834 - $(use_with dhclient)
1835 - $(use_with dhcpcd)
1836 - --with-config-dhcp-default=internal
1837 - $(multilib_native_use_enable introspection)
1838 - $(use_enable json json-validation)
1839 - $(multilib_native_use_enable ppp)
1840 - --without-libpsl
1841 - $(multilib_native_use_with modemmanager modem-manager-1)
1842 - $(multilib_native_use_with ncurses nmtui)
1843 - $(multilib_native_use_with ofono)
1844 - $(multilib_native_use_enable ovs)
1845 - $(multilib_native_use_enable policykit polkit)
1846 - $(multilib_native_use_with resolvconf)
1847 - $(multilib_native_use_with selinux)
1848 - $(multilib_native_use_with systemd systemd-journal)
1849 - $(multilib_native_use_enable teamd teamdctl)
1850 - $(multilib_native_use_enable test tests)
1851 - $(multilib_native_use_enable vala)
1852 - --without-valgrind
1853 - $(multilib_native_use_with wifi iwd)
1854 - $(multilib_native_use_with wext)
1855 - $(multilib_native_use_enable wifi)
1856 - )
1857 -
1858 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
1859 - if use ppp; then
1860 - local PPPD_VER=`best_version net-dialup/ppp`
1861 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
1862 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
1863 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
1864 - fi
1865 -
1866 - # unit files directory needs to be passed only when systemd is enabled,
1867 - # otherwise systemd support is not disabled completely, bug #524534
1868 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
1869 -
1870 - if multilib_is_native_abi; then
1871 - # work-around man out-of-source brokenness, must be done before configure
1872 - ln -s "${S}/docs" docs || die
1873 - ln -s "${S}/man" man || die
1874 - fi
1875 -
1876 - ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}"
1877 -}
1878 -
1879 -multilib_src_compile() {
1880 - if multilib_is_native_abi; then
1881 - emake
1882 - else
1883 - local targets=(
1884 - libnm/libnm.la
1885 - )
1886 - emake "${targets[@]}"
1887 - fi
1888 -}
1889 -
1890 -multilib_src_test() {
1891 - if use test && multilib_is_native_abi; then
1892 - python_setup
1893 - virtx emake check
1894 - fi
1895 -}
1896 -
1897 -multilib_src_install() {
1898 - if multilib_is_native_abi; then
1899 - # Install completions at proper place, bug #465100
1900 - gnome2_src_install completiondir="$(get_bashcompdir)"
1901 - insinto /usr/lib/NetworkManager/conf.d #702476
1902 - doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf
1903 - else
1904 - local targets=(
1905 - install-libLTLIBRARIES
1906 - install-libnmincludeHEADERS
1907 - install-nodist_libnmincludeHEADERS
1908 - install-pkgconfigDATA
1909 - )
1910 - emake DESTDIR="${D}" "${targets[@]}"
1911 - fi
1912 -}
1913 -
1914 -multilib_src_install_all() {
1915 - einstalldocs
1916 - ! use systemd && readme.gentoo_create_doc
1917 -
1918 - newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager
1919 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
1920 -
1921 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
1922 - keepdir /etc/NetworkManager/dispatcher.d
1923 -
1924 - # Provide openrc net dependency only when nm is connected
1925 - exeinto /etc/NetworkManager/dispatcher.d
1926 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
1927 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
1928 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
1929 -
1930 - keepdir /etc/NetworkManager/system-connections
1931 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
1932 -
1933 - # Allow users in plugdev group to modify system connections
1934 - insinto /usr/share/polkit-1/rules.d/
1935 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
1936 -
1937 - if use iwd; then
1938 - # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir
1939 - cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf
1940 - [device]
1941 - wifi.backend=iwd
1942 - EOF
1943 - fi
1944 -
1945 - # Empty
1946 - rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die
1947 -}
1948 -
1949 -pkg_postinst() {
1950 - gnome2_pkg_postinst
1951 - systemd_reenable NetworkManager.service
1952 - ! use systemd && readme.gentoo_print_elog
1953 -
1954 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
1955 - ewarn "The ${PN} system configuration file has moved to a new location."
1956 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
1957 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
1958 - ewarn
1959 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
1960 - fi
1961 -
1962 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
1963 - # but still show a warning to remember people to have cleaner config file
1964 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
1965 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
1966 - ewarn
1967 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
1968 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
1969 - ewarn
1970 - fi
1971 - fi
1972 -
1973 - # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457
1974 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
1975 - ewarn "You have psk-flags=1 setting in above files, you will need to"
1976 - ewarn "either reconfigure affected networks or, at least, set the flag"
1977 - ewarn "value to '0'."
1978 - fi
1979 -
1980 - if use dhclient || use dhcpcd; then
1981 - ewarn "You have enabled USE=dhclient and/or USE=dhcpcd, but NetworkManager since"
1982 - ewarn "version 1.20 defaults to the internal DHCP client. If the internal client"
1983 - ewarn "works for you, and you're happy with, the alternative USE flags can be"
1984 - ewarn "disabled. If you want to use dhclient or dhcpcd, then you need to tweak"
1985 - ewarn "the main.dhcp configuration option to use one of them instead of internal."
1986 - fi
1987 -}