1 |
commit: 6dda2f5d5e728ca4f7784707ea786fd2efab860a |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 26 10:18:36 2017 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 26 10:55:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dda2f5d |
7 |
|
8 |
net-misc/networkmanager: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-misc/networkmanager/Manifest | 1 - |
13 |
net-misc/networkmanager/files/1.2.4-upower.patch | 67 ---- |
14 |
.../files/networkmanager-1.0.12-wifi-wext.patch | 24 -- |
15 |
.../networkmanager/networkmanager-1.0.12-r1.ebuild | 346 --------------------- |
16 |
4 files changed, 438 deletions(-) |
17 |
|
18 |
diff --git a/net-misc/networkmanager/Manifest b/net-misc/networkmanager/Manifest |
19 |
index 89e7faa..49217b8 100644 |
20 |
--- a/net-misc/networkmanager/Manifest |
21 |
+++ b/net-misc/networkmanager/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
-DIST NetworkManager-1.0.12.tar.xz 3490836 SHA256 3a470f8c60109b1acb5784ddc2423501706b5fe34c793a6faee87e591eb04a9e SHA512 926c0139dc7ade7bbc512f0d2e386a42a278aceff68996bc3a18fb1940f5d516f0ff2768459d6f50fd5669d72c15202307396bb3cf8b67c3dbac19db484b971c WHIRLPOOL 6178af61fb30a7e8b72cc05296a014a5be5b10fed41cd5385f0bebae1fa22519c83cf8c359479372f063fc2b891715015454c53cd4f1f1516fc03bca76a552ac |
24 |
DIST NetworkManager-1.4.0.tar.xz 3699568 SHA256 c4d5e075998a291074501602a5068a7e54d9e0f2658aba079d58145d65be531d SHA512 2580e885684f6ad464eebdf9e0dab5432d4d45f0f4127af7f8947be16fc5ce84a5cc090e195b68619c14e218d9cffcde1615400c19326e58bdac8fdf7b53fb46 WHIRLPOOL 39607ac0606039c242b2033b9e540c3beb88e7f48fdb8188d942341a57e097dc0e9c7bde248b6d9ae65bd3ac94df83b5e7d7a371baf7f32c8542581c3bdf778c |
25 |
DIST NetworkManager-1.4.4.tar.xz 3762664 SHA256 829378f318cc008d138a23ca6a9191928ce75344e7e47a2f2c35f4ac82133309 SHA512 a73e423e88b0e2694a46dc04f492a656d766796aa987b2e4644147a5939a6fdeb22ff5d8b36c723444bc0ab3d8740b80fa82c2f5e07f073998841695978d6e14 WHIRLPOOL d5e4ca3868c2aa8bceec2029c573b61ccc2fbc9f9a84cb8360ecf7d7503011f0501e9bffd54b163de8e84606ad7977b3c187adb78beed3a44bf2a3ee9821631f |
26 |
|
27 |
diff --git a/net-misc/networkmanager/files/1.2.4-upower.patch b/net-misc/networkmanager/files/1.2.4-upower.patch |
28 |
deleted file mode 100644 |
29 |
index a08e34a..00000000 |
30 |
--- a/net-misc/networkmanager/files/1.2.4-upower.patch |
31 |
+++ /dev/null |
32 |
@@ -1,67 +0,0 @@ |
33 |
-From f864c58cfe87533c69dcf00e3ea236809392a8e0 Mon Sep 17 00:00:00 2001 |
34 |
-From: Beniamino Galvani <bgalvani@××××××.com> |
35 |
-Date: Thu, 4 Aug 2016 16:25:30 +0200 |
36 |
-Subject: build: fix build with '--with-suspend-resume=upower' |
37 |
- |
38 |
-Now we have a single file for all suspend APIs and the selection is |
39 |
-done through the preprocessor: remove stale AM_CONDITIONALs and define |
40 |
-SUSPEND_RESUME_UPOWER when needed. |
41 |
- |
42 |
-Fixes: c76eb3e8f7a80b69c570b513ee3eb16bea1b34bd |
43 |
-(cherry picked from commit e4b2c989dc51818e52906b5120ea6a0659274631) |
44 |
- |
45 |
-diff --git a/configure.ac b/configure.ac |
46 |
-index 46775c3..7869f07 100644 |
47 |
---- a/configure.ac |
48 |
-+++ b/configure.ac |
49 |
-@@ -472,7 +472,9 @@ if test "z$with_suspend_resume" = "z"; then |
50 |
- fi |
51 |
- |
52 |
- case $with_suspend_resume in |
53 |
-- upower) ;; |
54 |
-+ upower) |
55 |
-+ AC_DEFINE([SUSPEND_RESUME_UPOWER], 1, [Define to 1 to use UPower suspend api]) |
56 |
-+ ;; |
57 |
- systemd) |
58 |
- PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd >= 209],, |
59 |
- [PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd-login >= 183])]) |
60 |
-@@ -485,9 +487,6 @@ case $with_suspend_resume in |
61 |
- AC_MSG_ERROR(--with-suspend-resume must be one of [upower, systemd, consolekit]) |
62 |
- ;; |
63 |
- esac |
64 |
--AM_CONDITIONAL(SUSPEND_RESUME_UPOWER, test "x$with_suspend_resume" = "xupower") |
65 |
--AM_CONDITIONAL(SUSPEND_RESUME_SYSTEMD, test "x$with_suspend_resume" = "xsystemd") |
66 |
--AM_CONDITIONAL(SUSPEND_RESUME_CONSOLEKIT, test "x$with_suspend_resume" = "xconsolekit") |
67 |
- |
68 |
- # SELinux support |
69 |
- AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux=yes|no|auto], [Build with SELinux (default: auto)]),,[with_selinux=auto]) |
70 |
--- |
71 |
-cgit v0.10.2 |
72 |
- |
73 |
---- a/config.h.in |
74 |
-+++ b/config.h.in |
75 |
-@@ -216,6 +216,9 @@ |
76 |
- /* Define to 1 to use systemd suspend api */ |
77 |
- #undef SUSPEND_RESUME_SYSTEMD |
78 |
- |
79 |
-+/* Define to 1 to use UPower suspend api */ |
80 |
-+#undef SUSPEND_RESUME_UPOWER |
81 |
-+ |
82 |
- /* Define to 1 if libsystemd-journald is available */ |
83 |
- #undef SYSTEMD_JOURNAL |
84 |
- |
85 |
---- a/configure |
86 |
-+++ b/configure |
87 |
-@@ -22776,7 +22776,11 @@ |
88 |
- fi |
89 |
- |
90 |
- case $with_suspend_resume in |
91 |
-- upower) ;; |
92 |
-+ upower) |
93 |
-+ |
94 |
-+$as_echo "#define SUSPEND_RESUME_UPOWER 1" >>confdefs.h |
95 |
-+ |
96 |
-+ ;; |
97 |
- systemd) |
98 |
- |
99 |
- pkg_failed=no |
100 |
|
101 |
diff --git a/net-misc/networkmanager/files/networkmanager-1.0.12-wifi-wext.patch b/net-misc/networkmanager/files/networkmanager-1.0.12-wifi-wext.patch |
102 |
deleted file mode 100644 |
103 |
index 124cafe..00000000 |
104 |
--- a/net-misc/networkmanager/files/networkmanager-1.0.12-wifi-wext.patch |
105 |
+++ /dev/null |
106 |
@@ -1,24 +0,0 @@ |
107 |
-From 70c0defe753bc98ac75725cc32a84b36f32258e4 Mon Sep 17 00:00:00 2001 |
108 |
-From: Francesco Giudici <fgiudici@××××××.com> |
109 |
-Date: Fri, 11 Mar 2016 09:55:39 +0100 |
110 |
-Subject: wifi: hack for wext devices reporting IW_MODE_AUTO configuration |
111 |
- mode. |
112 |
- |
113 |
-https://bugzilla.gnome.org/show_bug.cgi?id=763388 |
114 |
-(cherry picked from commit 0f6febc6fbeafde62e6e0a8c12f57204d94166fb) |
115 |
- |
116 |
-diff --git a/src/platform/wifi/wifi-utils-wext.c b/src/platform/wifi/wifi-utils-wext.c |
117 |
-index 470b73d..14a16ec 100644 |
118 |
---- a/src/platform/wifi/wifi-utils-wext.c |
119 |
-+++ b/src/platform/wifi/wifi-utils-wext.c |
120 |
-@@ -122,6 +122,7 @@ wifi_wext_get_mode (WifiData *data) |
121 |
- case IW_MODE_MASTER: |
122 |
- return NM_802_11_MODE_AP; |
123 |
- case IW_MODE_INFRA: |
124 |
-+ case IW_MODE_AUTO: /* hack for WEXT devices reporting IW_MODE_AUTO */ |
125 |
- return NM_802_11_MODE_INFRA; |
126 |
- default: |
127 |
- break; |
128 |
--- |
129 |
-cgit v0.10.2 |
130 |
- |
131 |
|
132 |
diff --git a/net-misc/networkmanager/networkmanager-1.0.12-r1.ebuild b/net-misc/networkmanager/networkmanager-1.0.12-r1.ebuild |
133 |
deleted file mode 100644 |
134 |
index 5c4e6b9..00000000 |
135 |
--- a/net-misc/networkmanager/networkmanager-1.0.12-r1.ebuild |
136 |
+++ /dev/null |
137 |
@@ -1,346 +0,0 @@ |
138 |
-# Copyright 1999-2016 Gentoo Foundation |
139 |
-# Distributed under the terms of the GNU General Public License v2 |
140 |
-# $Id$ |
141 |
- |
142 |
-EAPI="5" |
143 |
-GCONF_DEBUG="no" |
144 |
-GNOME_ORG_MODULE="NetworkManager" |
145 |
-GNOME2_LA_PUNT="yes" |
146 |
-VALA_USE_DEPEND="vapigen" |
147 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
148 |
- |
149 |
-inherit autotools bash-completion-r1 eutils gnome2 linux-info multilib python-any-r1 systemd \ |
150 |
- user readme.gentoo toolchain-funcs vala versionator virtualx udev multilib-minimal |
151 |
- |
152 |
-DESCRIPTION="A set of co-operative tools that make networking simple and straightforward" |
153 |
-HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
154 |
- |
155 |
-LICENSE="GPL-2+" |
156 |
-SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version |
157 |
- |
158 |
-IUSE="bluetooth connection-sharing consolekit +dhclient dhcpcd gnutls +introspection \ |
159 |
-kernel_linux +nss +modemmanager ncurses +ppp resolvconf selinux systemd teamd test \ |
160 |
-vala +wext +wifi zeroconf" # wimax |
161 |
- |
162 |
-KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ppc ppc64 ~sparc x86" |
163 |
- |
164 |
-REQUIRED_USE=" |
165 |
- modemmanager? ( ppp ) |
166 |
- wext? ( wifi ) |
167 |
- ^^ ( nss gnutls ) |
168 |
- ^^ ( dhclient dhcpcd ) |
169 |
-" |
170 |
- |
171 |
-# gobject-introspection-0.10.3 is needed due to gnome bug 642300 |
172 |
-# wpa_supplicant-0.7.3-r3 is needed due to bug 359271 |
173 |
-# TODO: Qt support? |
174 |
-COMMON_DEPEND=" |
175 |
- >=sys-apps/dbus-1.2[${MULTILIB_USEDEP}] |
176 |
- >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}] |
177 |
- >=dev-libs/glib-2.37.6:2[${MULTILIB_USEDEP}] |
178 |
- >=dev-libs/libnl-3.2.8:3= |
179 |
- >=sys-auth/polkit-0.106 |
180 |
- net-libs/libndp |
181 |
- >=net-libs/libsoup-2.40:2.4= |
182 |
- net-misc/iputils |
183 |
- sys-libs/readline:0= |
184 |
- >=virtual/libgudev-165:=[${MULTILIB_USEDEP}] |
185 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
186 |
- connection-sharing? ( |
187 |
- net-dns/dnsmasq[dhcp] |
188 |
- net-firewall/iptables ) |
189 |
- gnutls? ( |
190 |
- dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}] |
191 |
- net-libs/gnutls:=[${MULTILIB_USEDEP}] ) |
192 |
- modemmanager? ( >=net-misc/modemmanager-0.7.991 ) |
193 |
- ncurses? ( >=dev-libs/newt-0.52.15 ) |
194 |
- nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] ) |
195 |
- dhclient? ( >=net-misc/dhcp-4[client] ) |
196 |
- dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 ) |
197 |
- introspection? ( >=dev-libs/gobject-introspection-0.10.3:= ) |
198 |
- ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] net-dialup/rp-pppoe ) |
199 |
- resolvconf? ( net-dns/openresolv ) |
200 |
- systemd? ( >=sys-apps/systemd-209:0= ) |
201 |
- !systemd? ( || ( sys-power/upower sys-power/upower-pm-utils ) ) |
202 |
- teamd? ( >=net-misc/libteam-1.9 ) |
203 |
- zeroconf? ( net-dns/avahi:=[autoipd] ) |
204 |
-" |
205 |
-RDEPEND="${COMMON_DEPEND} |
206 |
- consolekit? ( sys-auth/consolekit ) |
207 |
- wifi? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
208 |
-" |
209 |
-DEPEND="${COMMON_DEPEND} |
210 |
- dev-util/gdbus-codegen |
211 |
- dev-util/gtk-doc-am |
212 |
- >=dev-util/intltool-0.40 |
213 |
- >=sys-devel/gettext-0.17 |
214 |
- >=sys-kernel/linux-headers-2.6.29 |
215 |
- virtual/pkgconfig |
216 |
- vala? ( $(vala_depend) ) |
217 |
- test? ( |
218 |
- $(python_gen_any_dep ' |
219 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
220 |
- dev-python/pygobject:2[${PYTHON_USEDEP}]') |
221 |
- ) |
222 |
-" |
223 |
- |
224 |
-sysfs_deprecated_check() { |
225 |
- ebegin "Checking for SYSFS_DEPRECATED support" |
226 |
- |
227 |
- if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
228 |
- eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
229 |
- eerror "or NetworkManager will not work correctly." |
230 |
- eerror "See https://bugs.gentoo.org/333639 for more info." |
231 |
- die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
232 |
- fi |
233 |
- eend $? |
234 |
-} |
235 |
- |
236 |
-pkg_pretend() { |
237 |
- if use kernel_linux; then |
238 |
- get_version |
239 |
- if linux_config_exists; then |
240 |
- sysfs_deprecated_check |
241 |
- else |
242 |
- ewarn "Was unable to determine your kernel .config" |
243 |
- ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
244 |
- ewarn "See https://bugs.gentoo.org/333639 for more info." |
245 |
- fi |
246 |
- |
247 |
- fi |
248 |
-} |
249 |
- |
250 |
-pkg_setup() { |
251 |
- enewgroup plugdev |
252 |
-} |
253 |
- |
254 |
-src_prepare() { |
255 |
- DOC_CONTENTS="To modify system network connections without needing to enter the |
256 |
- root password, add your user account to the 'plugdev' group." |
257 |
- |
258 |
- # wifi: hack for wext devices reporting IW_MODE_AUTO configuration mode. |
259 |
- # (from 1.0 branch) |
260 |
- epatch "${FILESDIR}"/${P}-wifi-wext.patch |
261 |
- |
262 |
- # Force use of /run, avoid eautoreconf, upstream bug #737139, fixed in 'master' |
263 |
- sed -e 's:$localstatedir/run/:/run/:' -i configure || die |
264 |
- |
265 |
- # Don't build examples, they are not needed and can cause build failure |
266 |
- sed -e '/^\s*examples\s*\\/d' -i Makefile.{am,in} || die |
267 |
- |
268 |
- use vala && vala_src_prepare |
269 |
- epatch_user # don't remove, users often want custom patches for NM |
270 |
- eautoreconf |
271 |
- gnome2_src_prepare |
272 |
-} |
273 |
- |
274 |
-multilib_src_configure() { |
275 |
- local myconf=() |
276 |
- |
277 |
- # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
278 |
- if use ppp; then |
279 |
- local PPPD_VER=`best_version net-dialup/ppp` |
280 |
- PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
281 |
- PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
282 |
- myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
283 |
- fi |
284 |
- |
285 |
- # unit files directory needs to be passed only when systemd is enabled, |
286 |
- # otherwise systemd support is not disabled completely, bug #524534 |
287 |
- use systemd && myconf+=( "$(systemd_with_unitdir)" ) |
288 |
- |
289 |
- if multilib_is_native_abi; then |
290 |
- # work-around man out-of-source brokenness, must be done before configure |
291 |
- mkdir man || die |
292 |
- find "${S}"/man -name '*.?' -exec ln -s {} man/ ';' || die |
293 |
- else |
294 |
- # libnl, libndp are only used for executables, not libraries |
295 |
- myconf+=( LIB{NL,NDP}_{CFLAGS,LIBS}=' ' ) |
296 |
- fi |
297 |
- |
298 |
- # TODO: enable wimax when we have a libnl:3 compatible revision of it |
299 |
- # wimax will be removed, bug #522822 |
300 |
- # ifnet plugin always disabled until someone volunteers to actively |
301 |
- # maintain and fix it |
302 |
- ECONF_SOURCE=${S} \ |
303 |
- gnome2_src_configure \ |
304 |
- --disable-more-warnings \ |
305 |
- --disable-static \ |
306 |
- --localstatedir=/var \ |
307 |
- --disable-lto \ |
308 |
- --disable-config-plugin-ibft \ |
309 |
- --disable-ifnet \ |
310 |
- --without-netconfig \ |
311 |
- --with-dbus-sys-dir=/etc/dbus-1/system.d \ |
312 |
- --with-udev-dir="$(get_udevdir)" \ |
313 |
- --with-config-plugins-default=keyfile \ |
314 |
- --with-iptables=/sbin/iptables \ |
315 |
- $(multilib_native_with libsoup) \ |
316 |
- $(multilib_native_enable concheck) \ |
317 |
- --with-crypto=$(usex nss nss gnutls) \ |
318 |
- --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex consolekit consolekit no)) \ |
319 |
- --with-suspend-resume=$(multilib_native_usex systemd systemd upower) \ |
320 |
- $(multilib_native_use_enable bluetooth bluez5-dun) \ |
321 |
- $(multilib_native_use_enable introspection) \ |
322 |
- $(multilib_native_use_enable ppp) \ |
323 |
- --disable-wimax \ |
324 |
- $(use_with dhclient) \ |
325 |
- $(use_with dhcpcd) \ |
326 |
- $(multilib_native_use_with modemmanager modem-manager-1) \ |
327 |
- $(multilib_native_use_with ncurses nmtui) \ |
328 |
- $(multilib_native_use_with resolvconf) \ |
329 |
- $(multilib_native_use_with selinux) \ |
330 |
- $(multilib_native_use_enable teamd teamdctl) \ |
331 |
- $(multilib_native_use_enable test tests) \ |
332 |
- $(multilib_native_use_enable vala) \ |
333 |
- --without-valgrind \ |
334 |
- $(multilib_native_use_with wext) \ |
335 |
- $(multilib_native_use_enable wifi) \ |
336 |
- "${myconf[@]}" |
337 |
- |
338 |
- # work-around gtk-doc out-of-source brokedness |
339 |
- if multilib_is_native_abi; then |
340 |
- local d |
341 |
- for d in api libnm libnm-util libnm-glib; do |
342 |
- ln -s "${S}"/docs/${d}/html docs/${d}/html || die |
343 |
- done |
344 |
- fi |
345 |
-} |
346 |
- |
347 |
-multilib_src_compile() { |
348 |
- if multilib_is_native_abi; then |
349 |
- emake |
350 |
- else |
351 |
- emake all-am |
352 |
- emake -C include |
353 |
- emake -C introspection # generated headers, needed for libnm |
354 |
- emake -C libnm-core |
355 |
- emake -C libnm |
356 |
- emake -C libnm-util |
357 |
- emake -C libnm-glib |
358 |
- fi |
359 |
-} |
360 |
- |
361 |
-multilib_src_test() { |
362 |
- if multilib_is_native_abi; then |
363 |
- python_setup |
364 |
- Xemake check |
365 |
- fi |
366 |
-} |
367 |
- |
368 |
-multilib_src_install() { |
369 |
- if multilib_is_native_abi; then |
370 |
- # Install completions at proper place, bug #465100 |
371 |
- gnome2_src_install completiondir="$(get_bashcompdir)" |
372 |
- else |
373 |
- emake DESTDIR="${D}" install-am |
374 |
- emake DESTDIR="${D}" install -C include |
375 |
- emake DESTDIR="${D}" install -C introspection |
376 |
- emake DESTDIR="${D}" install -C libnm-core |
377 |
- emake DESTDIR="${D}" install -C libnm |
378 |
- emake DESTDIR="${D}" install -C libnm-util |
379 |
- emake DESTDIR="${D}" install -C libnm-glib |
380 |
- fi |
381 |
-} |
382 |
- |
383 |
-multilib_src_install_all() { |
384 |
- ! use systemd && readme.gentoo_create_doc |
385 |
- |
386 |
- newinitd "${FILESDIR}/init.d.NetworkManager" NetworkManager |
387 |
- newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
388 |
- |
389 |
- # /var/run/NetworkManager is used by some distros, but not by Gentoo |
390 |
- rmdir -v "${ED}/var/run/NetworkManager" || die "rmdir failed" |
391 |
- rmdir -v "${ED}/var/run" || die "rmdir failed" |
392 |
- |
393 |
- # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
394 |
- keepdir /etc/NetworkManager/dispatcher.d |
395 |
- |
396 |
- # Provide openrc net dependency only when nm is connected |
397 |
- exeinto /etc/NetworkManager/dispatcher.d |
398 |
- newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status |
399 |
- sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
400 |
- -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
401 |
- |
402 |
- keepdir /etc/NetworkManager/system-connections |
403 |
- chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594 |
404 |
- |
405 |
- # Allow users in plugdev group to modify system connections |
406 |
- insinto /usr/share/polkit-1/rules.d/ |
407 |
- doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
408 |
-} |
409 |
- |
410 |
-pkg_postinst() { |
411 |
- gnome2_pkg_postinst |
412 |
- ! use systemd && readme.gentoo_print_elog |
413 |
- |
414 |
- if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then |
415 |
- ewarn "The ${PN} system configuration file has moved to a new location." |
416 |
- ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
417 |
- ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf" |
418 |
- ewarn |
419 |
- ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf" |
420 |
- fi |
421 |
- |
422 |
- # The polkit rules file moved to /usr/share |
423 |
- old_rules="${EROOT}etc/polkit-1/rules.d/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
424 |
- if [[ -f "${old_rules}" ]]; then |
425 |
- case "$(md5sum ${old_rules})" in |
426 |
- 574d0cfa7e911b1f7792077003060240* ) |
427 |
- # Automatically delete the old rules.d file if the user did not change it |
428 |
- elog |
429 |
- elog "Removing old ${old_rules} ..." |
430 |
- rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually" |
431 |
- ;; |
432 |
- * ) |
433 |
- elog "The ${old_rules}" |
434 |
- elog "file moved to /usr/share/polkit-1/rules.d/ in >=networkmanager-0.9.4.0-r4" |
435 |
- elog "If you edited ${old_rules}" |
436 |
- elog "without changing its behavior, you may want to remove it." |
437 |
- ;; |
438 |
- esac |
439 |
- fi |
440 |
- |
441 |
- # ifnet plugin was disabled for systemd users with 0.9.8.6 version |
442 |
- # and for all people with 0.9.10.0-r1 (see ChangeLog for full explanations) |
443 |
- if use systemd; then |
444 |
- if ! version_is_at_least 0.9.8.6 ${REPLACING_VERSIONS}; then |
445 |
- ewarn "Ifnet plugin won't be used with systemd support enabled" |
446 |
- ewarn "as it is meant to be used with openRC and can cause collisions" |
447 |
- ewarn "(like bug #485658)." |
448 |
- ewarn "Because of this, you will likely need to reconfigure some of" |
449 |
- ewarn "your networks. To do this you can rely on Gnome control center," |
450 |
- ewarn "nm-connection-editor or nmtui tools for example once updated" |
451 |
- ewarn "NetworkManager version is installed." |
452 |
- fi |
453 |
- else |
454 |
- if ! version_is_at_least 0.9.10.0-r1 ${REPLACING_VERSIONS}; then |
455 |
- ewarn "Ifnet plugin is now disabled because of it being unattended" |
456 |
- ewarn "and unmaintained for a long time, leading to some unfixed bugs" |
457 |
- ewarn "and new problems appearing. We will now use upstream 'keyfile'" |
458 |
- ewarn "plugin." |
459 |
- ewarn "Because of this, you will likely need to reconfigure some of" |
460 |
- ewarn "your networks. To do this you can rely on Gnome control center," |
461 |
- ewarn "nm-connection-editor or nmtui tools for example once updated" |
462 |
- ewarn "NetworkManager version is installed." |
463 |
- fi |
464 |
- fi |
465 |
- |
466 |
- # NM fallbacks to plugin specified at compile time (upstream bug #738611) |
467 |
- # but still show a warning to remember people to have cleaner config file |
468 |
- if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then |
469 |
- if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then |
470 |
- ewarn |
471 |
- ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf" |
472 |
- ewarn "Since it won't be used, you will need to stop setting ifnet plugin there." |
473 |
- ewarn |
474 |
- fi |
475 |
- fi |
476 |
- |
477 |
- # NM shows lots of errors making nmcli neither unusable, bug #528748 upstream bug #690457 |
478 |
- if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then |
479 |
- ewarn "You have psk-flags=1 setting in above files, you will need to" |
480 |
- ewarn "either reconfigure affected networks or, at least, set the flag" |
481 |
- ewarn "value to '0'." |
482 |
- fi |
483 |
-} |