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/
Date: Thu, 29 Nov 2018 20:24:38
Message-Id: 1543522919.0d72a7c64e11d27b088dafd645cdc330d40aa78f.leio@gentoo
1 commit: 0d72a7c64e11d27b088dafd645cdc330d40aa78f
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 29 19:27:58 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 29 20:21:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d72a7c6
7
8 net-misc/networkmanager: remove old
9
10 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
11 Package-Manager: Portage-2.3.52, Repoman-2.3.11
12
13 net-misc/networkmanager/Manifest | 3 -
14 .../networkmanager/networkmanager-1.14.0.ebuild | 338 ---------------------
15 .../networkmanager/networkmanager-1.14.2.ebuild | 338 ---------------------
16 .../networkmanager/networkmanager-1.8.4.ebuild | 324 --------------------
17 4 files changed, 1003 deletions(-)
18
19 diff --git a/net-misc/networkmanager/Manifest b/net-misc/networkmanager/Manifest
20 index 85b1534e590..40fa6f6c689 100644
21 --- a/net-misc/networkmanager/Manifest
22 +++ b/net-misc/networkmanager/Manifest
23 @@ -1,6 +1,3 @@
24 DIST NetworkManager-1.10.10.tar.xz 4038552 BLAKE2B a0a3c2a74dd641d25267ec7932f0801e30720334cb905c86abfaeb9bc3c60a2c1e9372b738b1eb43c55a34edf952905d94e3513cef653ea62e470d56bc575b65 SHA512 e536598b19064e0ab7fe3e92362de9c380281ff53a1481438216c2247b2d5287244e735be41c56c53040a5861bf36bbb979e36578244fabd6448a50ea42c4645
25 DIST NetworkManager-1.12.4.tar.xz 4195812 BLAKE2B 11c59da430cdf6f70cc841d980e0bc0280244a1a1ee52311946f27c1f61ae23b14e115caba02c80738ef35d67eab6f1fadc1a0dee3250510d05fd1e90aed5ac1 SHA512 6fc891a6f8c3b4cc43449dabf0c025a9e706b723f602085f34cc93bda885c300de293004390c4926b95e26201b86d97ecd23160f82ef03e4d2b680f822c827c3
26 -DIST NetworkManager-1.14.0.tar.xz 4389692 BLAKE2B 1d1b12764503d5f56d27f11449f3a0149491887312ed735c5cd25c0eeb6928fead30544d32cdd65262e00c4bdaed55dfb6dbc731c82de41ff8c49ff85937211e SHA512 cb0add2585c586ad36b4fb986a654de30047dc77f038927437156227f42622ac1045c58b76573f4e1acef22aa9f695da417f392a50fde70f4a086504701cecf1
27 -DIST NetworkManager-1.14.2.tar.xz 4415068 BLAKE2B e33d385f907feb6ca7cae51aaa4a0c64e9f33d7f3c9ba11ca19ba71d0d9f1f9b05ab99eb10debb65d4d0bf9d76be7d1610d23dfe84a2718be353725d8d0a7c70 SHA512 f2c45138daf8124704d4f8ee3966da8a2b6c9a18bc51332d19c36d6d5bbd795c6f85f182c7816604fa5e8be7e6ee1daa62b26a868b731e7bc4d4b72e543d3646
28 DIST NetworkManager-1.14.4.tar.xz 4414196 BLAKE2B 31b236ee143892725cccccfe26a83bc75f938e19f52c5d09fb6ea3635f517feb5bab428eec4ee5e617920a8a8dd6bfe72bf9b760ecf16dec0bac4bb8663c58e4 SHA512 4199d6d7bbbee318b0f69cf2c1bf46cc3721c764121634751753c3cc833c4c5ac0856467896536e3d403ba8783fe452aaa79bfcd71a5ec324a4274989fb656c7
29 -DIST NetworkManager-1.8.4.tar.xz 3821500 BLAKE2B 7db1c95af5b8006cd3b7e1d960f9763c05caf5aadcc139bbe349a12ef996821afc38250afe4b078fd4d1953be19c1f16c6813562c5f4792e6c17f28ee0521c06 SHA512 e9aa26e2abe4537c6cbba53e281493e32be8a9f0624d5323212848f286d1279ad2ab79a39de34ad0ea188c888b1b61c4ba4d4d053c4d227e68f9236955f69bb1
30
31 diff --git a/net-misc/networkmanager/networkmanager-1.14.0.ebuild b/net-misc/networkmanager/networkmanager-1.14.0.ebuild
32 deleted file mode 100644
33 index 3f8a4080c5b..00000000000
34 --- a/net-misc/networkmanager/networkmanager-1.14.0.ebuild
35 +++ /dev/null
36 @@ -1,338 +0,0 @@
37 -# Copyright 1999-2018 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=6
41 -GNOME_ORG_MODULE="NetworkManager"
42 -GNOME2_LA_PUNT="yes"
43 -VALA_USE_DEPEND="vapigen"
44 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
45 -
46 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd \
47 - user readme.gentoo-r1 vala virtualx udev multilib-minimal
48 -
49 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
50 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
51 -
52 -LICENSE="GPL-2+"
53 -SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version
54 -
55 -IUSE="audit bluetooth connection-sharing consolekit +dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
56 -
57 -REQUIRED_USE="
58 - iwd? ( wifi )
59 - modemmanager? ( ppp )
60 - vala? ( introspection )
61 - wext? ( wifi )
62 - ^^ ( nss gnutls )
63 - ?? ( consolekit elogind systemd )
64 -"
65 -
66 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
67 -
68 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
69 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
70 -COMMON_DEPEND="
71 - >=sys-apps/dbus-1.2[${MULTILIB_USEDEP}]
72 - >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
73 - >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
74 - policykit? ( >=sys-auth/polkit-0.106 )
75 - net-libs/libndp[${MULTILIB_USEDEP}]
76 - >=net-misc/curl-7.24
77 - net-misc/iputils
78 - sys-apps/util-linux[${MULTILIB_USEDEP}]
79 - sys-libs/readline:0=
80 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
81 - audit? ( sys-process/audit )
82 - bluetooth? ( >=net-wireless/bluez-5 )
83 - connection-sharing? (
84 - net-dns/dnsmasq[dbus,dhcp]
85 - net-firewall/iptables )
86 - consolekit? ( >=sys-auth/consolekit-1.0.0 )
87 - dhclient? ( >=net-misc/dhcp-4[client] )
88 - dhcpcd? ( net-misc/dhcpcd )
89 - elogind? ( >=sys-auth/elogind-219 )
90 - gnutls? (
91 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
92 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] )
93 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
94 - json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] )
95 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0= )
96 - ncurses? ( >=dev-libs/newt-0.52.15 )
97 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
98 - ofono? ( net-misc/ofono )
99 - ovs? ( dev-libs/jansson )
100 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
101 - resolvconf? ( net-dns/openresolv )
102 - selinux? ( sys-libs/libselinux )
103 - systemd? ( >=sys-apps/systemd-209:0= )
104 - teamd? (
105 - dev-libs/jansson
106 - >=net-misc/libteam-1.9
107 - )
108 -"
109 -RDEPEND="${COMMON_DEPEND}
110 - || (
111 - net-misc/iputils[arping(+)]
112 - net-analyzer/arping
113 - )
114 - wifi? (
115 - !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
116 - iwd? ( net-wireless/iwd )
117 - )
118 -"
119 -DEPEND="${COMMON_DEPEND}
120 - dev-util/gdbus-codegen
121 - dev-util/glib-utils
122 - dev-util/gtk-doc-am
123 - >=dev-util/intltool-0.40
124 - >=sys-devel/gettext-0.17
125 - >=sys-kernel/linux-headers-2.6.29
126 - virtual/pkgconfig[${MULTILIB_USEDEP}]
127 - introspection? (
128 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
129 - dev-lang/perl
130 - dev-libs/libxslt
131 - )
132 - vala? ( $(vala_depend) )
133 - test? (
134 - $(python_gen_any_dep '
135 - dev-python/dbus-python[${PYTHON_USEDEP}]
136 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
137 - )
138 -"
139 -
140 -python_check_deps() {
141 - if use introspection; then
142 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
143 - fi
144 - if use test; then
145 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
146 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
147 - fi
148 -}
149 -
150 -sysfs_deprecated_check() {
151 - ebegin "Checking for SYSFS_DEPRECATED support"
152 -
153 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
154 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
155 - eerror "or NetworkManager will not work correctly."
156 - eerror "See https://bugs.gentoo.org/333639 for more info."
157 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
158 - fi
159 - eend $?
160 -}
161 -
162 -pkg_pretend() {
163 - if use kernel_linux; then
164 - get_version
165 - if linux_config_exists; then
166 - sysfs_deprecated_check
167 - else
168 - ewarn "Was unable to determine your kernel .config"
169 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
170 - ewarn "See https://bugs.gentoo.org/333639 for more info."
171 - fi
172 -
173 - fi
174 -}
175 -
176 -pkg_setup() {
177 - if use connection-sharing; then
178 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
179 - linux-info_pkg_setup
180 - fi
181 - enewgroup plugdev
182 - if use introspection || use test; then
183 - python-any-r1_pkg_setup
184 - fi
185 -}
186 -
187 -src_prepare() {
188 - DOC_CONTENTS="To modify system network connections without needing to enter the
189 - root password, add your user account to the 'plugdev' group."
190 -
191 - use vala && vala_src_prepare
192 - gnome2_src_prepare
193 -}
194 -
195 -multilib_src_configure() {
196 - local myconf=(
197 - --disable-more-warnings
198 - --disable-static
199 - --localstatedir=/var
200 - --disable-lto
201 - --disable-config-plugin-ibft
202 - --disable-qt
203 - --without-netconfig
204 - --with-dbus-sys-dir=/etc/dbus-1/system.d
205 - # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are
206 - # still not ready for removing that lib, bug #665338
207 - --with-libnm-glib
208 - --with-nmcli=yes
209 - --with-udev-dir="$(get_udevdir)"
210 - --with-config-plugins-default=keyfile
211 - --with-iptables=/sbin/iptables
212 - $(multilib_native_enable concheck)
213 - --with-crypto=$(usex nss nss gnutls)
214 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind $(multilib_native_usex consolekit consolekit no)))
215 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
216 - $(multilib_native_use_with audit libaudit)
217 - $(multilib_native_use_enable bluetooth bluez5-dun)
218 - $(use_with dhclient)
219 - $(use_with dhcpcd)
220 - $(multilib_native_use_enable introspection)
221 - $(use_enable json json-validation)
222 - $(multilib_native_use_enable ppp)
223 - --without-libpsl
224 - $(multilib_native_use_with modemmanager modem-manager-1)
225 - $(multilib_native_use_with ncurses nmtui)
226 - $(multilib_native_use_with ofono)
227 - $(multilib_native_use_enable ovs)
228 - $(multilib_native_use_with resolvconf)
229 - $(multilib_native_use_with selinux)
230 - $(multilib_native_use_with systemd systemd-journal)
231 - $(multilib_native_use_enable teamd teamdctl)
232 - $(multilib_native_use_enable test tests)
233 - $(multilib_native_use_enable vala)
234 - --without-valgrind
235 - $(multilib_native_use_with wifi iwd)
236 - $(multilib_native_use_with wext)
237 - $(multilib_native_use_enable wifi)
238 - )
239 -
240 - if multilib_is_native_abi && use policykit; then
241 - myconf+=( --enable-polkit=yes )
242 - else
243 - myconf+=( --enable-polkit=disabled )
244 - fi
245 -
246 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
247 - if use ppp; then
248 - local PPPD_VER=`best_version net-dialup/ppp`
249 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
250 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
251 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
252 - fi
253 -
254 - # unit files directory needs to be passed only when systemd is enabled,
255 - # otherwise systemd support is not disabled completely, bug #524534
256 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
257 -
258 - if multilib_is_native_abi; then
259 - # work-around man out-of-source brokenness, must be done before configure
260 - ln -s "${S}/docs" docs || die
261 - ln -s "${S}/man" man || die
262 - fi
263 -
264 - ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}"
265 -}
266 -
267 -multilib_src_compile() {
268 - if multilib_is_native_abi; then
269 - emake
270 - else
271 - local targets=(
272 - libnm/libnm.la
273 - libnm-util/libnm-util.la
274 - libnm-glib/libnm-glib.la
275 - libnm-glib/libnm-glib-vpn.la
276 - )
277 - emake "${targets[@]}"
278 - fi
279 -}
280 -
281 -multilib_src_test() {
282 - if use test && multilib_is_native_abi; then
283 - python_setup
284 - virtx emake check
285 - fi
286 -}
287 -
288 -multilib_src_install() {
289 - if multilib_is_native_abi; then
290 - # Install completions at proper place, bug #465100
291 - gnome2_src_install completiondir="$(get_bashcompdir)"
292 - else
293 - local targets=(
294 - install-libLTLIBRARIES
295 - install-libdeprecatedHEADERS
296 - install-libnm_glib_libnmvpnHEADERS
297 - install-libnm_glib_libnmincludeHEADERS
298 - install-libnm_util_libnm_util_includeHEADERS
299 - install-libnmincludeHEADERS
300 - install-nodist_libnm_glib_libnmincludeHEADERS
301 - install-nodist_libnm_glib_libnmvpnHEADERS
302 - install-nodist_libnm_util_libnm_util_includeHEADERS
303 - install-nodist_libnmincludeHEADERS
304 - install-pkgconfigDATA
305 - )
306 - emake DESTDIR="${D}" "${targets[@]}"
307 - fi
308 -}
309 -
310 -multilib_src_install_all() {
311 - ! use systemd && readme.gentoo_create_doc
312 -
313 - newinitd "${FILESDIR}/init.d.NetworkManager-r1" NetworkManager
314 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
315 -
316 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
317 - keepdir /etc/NetworkManager/dispatcher.d
318 -
319 - # Provide openrc net dependency only when nm is connected
320 - exeinto /etc/NetworkManager/dispatcher.d
321 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
322 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
323 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
324 -
325 - keepdir /etc/NetworkManager/system-connections
326 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
327 -
328 - # Allow users in plugdev group to modify system connections
329 - insinto /usr/share/polkit-1/rules.d/
330 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
331 -
332 - if use iwd; then
333 - # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir
334 - cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf
335 - [device]
336 - wifi.backend=iwd
337 - EOF
338 - fi
339 -
340 - # Empty
341 - rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die
342 -}
343 -
344 -pkg_postinst() {
345 - gnome2_pkg_postinst
346 - systemd_reenable NetworkManager.service
347 - ! use systemd && readme.gentoo_print_elog
348 -
349 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
350 - ewarn "The ${PN} system configuration file has moved to a new location."
351 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
352 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
353 - ewarn
354 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
355 - fi
356 -
357 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
358 - # but still show a warning to remember people to have cleaner config file
359 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
360 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
361 - ewarn
362 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
363 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
364 - ewarn
365 - fi
366 - fi
367 -
368 - # NM shows lots of errors making nmcli neither unusable, bug #528748 upstream bug #690457
369 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
370 - ewarn "You have psk-flags=1 setting in above files, you will need to"
371 - ewarn "either reconfigure affected networks or, at least, set the flag"
372 - ewarn "value to '0'."
373 - fi
374 -}
375
376 diff --git a/net-misc/networkmanager/networkmanager-1.14.2.ebuild b/net-misc/networkmanager/networkmanager-1.14.2.ebuild
377 deleted file mode 100644
378 index 4c5162b6508..00000000000
379 --- a/net-misc/networkmanager/networkmanager-1.14.2.ebuild
380 +++ /dev/null
381 @@ -1,338 +0,0 @@
382 -# Copyright 1999-2018 Gentoo Authors
383 -# Distributed under the terms of the GNU General Public License v2
384 -
385 -EAPI=6
386 -GNOME_ORG_MODULE="NetworkManager"
387 -GNOME2_LA_PUNT="yes"
388 -VALA_USE_DEPEND="vapigen"
389 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
390 -
391 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd \
392 - user readme.gentoo-r1 vala virtualx udev multilib-minimal
393 -
394 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
395 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
396 -
397 -LICENSE="GPL-2+"
398 -SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version
399 -
400 -IUSE="audit bluetooth connection-sharing consolekit +dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
401 -
402 -REQUIRED_USE="
403 - iwd? ( wifi )
404 - modemmanager? ( ppp )
405 - vala? ( introspection )
406 - wext? ( wifi )
407 - ^^ ( nss gnutls )
408 - ?? ( consolekit elogind systemd )
409 -"
410 -
411 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
412 -
413 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
414 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
415 -COMMON_DEPEND="
416 - >=sys-apps/dbus-1.2[${MULTILIB_USEDEP}]
417 - >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
418 - >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}]
419 - policykit? ( >=sys-auth/polkit-0.106 )
420 - net-libs/libndp[${MULTILIB_USEDEP}]
421 - >=net-misc/curl-7.24
422 - net-misc/iputils
423 - sys-apps/util-linux[${MULTILIB_USEDEP}]
424 - sys-libs/readline:0=
425 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
426 - audit? ( sys-process/audit )
427 - bluetooth? ( >=net-wireless/bluez-5 )
428 - connection-sharing? (
429 - net-dns/dnsmasq[dbus,dhcp]
430 - net-firewall/iptables )
431 - consolekit? ( >=sys-auth/consolekit-1.0.0 )
432 - dhclient? ( >=net-misc/dhcp-4[client] )
433 - dhcpcd? ( net-misc/dhcpcd )
434 - elogind? ( >=sys-auth/elogind-219 )
435 - gnutls? (
436 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
437 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] )
438 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
439 - json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] )
440 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0= )
441 - ncurses? ( >=dev-libs/newt-0.52.15 )
442 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
443 - ofono? ( net-misc/ofono )
444 - ovs? ( dev-libs/jansson )
445 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
446 - resolvconf? ( net-dns/openresolv )
447 - selinux? ( sys-libs/libselinux )
448 - systemd? ( >=sys-apps/systemd-209:0= )
449 - teamd? (
450 - dev-libs/jansson
451 - >=net-misc/libteam-1.9
452 - )
453 -"
454 -RDEPEND="${COMMON_DEPEND}
455 - || (
456 - net-misc/iputils[arping(+)]
457 - net-analyzer/arping
458 - )
459 - wifi? (
460 - !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
461 - iwd? ( net-wireless/iwd )
462 - )
463 -"
464 -DEPEND="${COMMON_DEPEND}
465 - dev-util/gdbus-codegen
466 - dev-util/glib-utils
467 - dev-util/gtk-doc-am
468 - >=dev-util/intltool-0.40
469 - >=sys-devel/gettext-0.17
470 - >=sys-kernel/linux-headers-2.6.29
471 - virtual/pkgconfig[${MULTILIB_USEDEP}]
472 - introspection? (
473 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
474 - dev-lang/perl
475 - dev-libs/libxslt
476 - )
477 - vala? ( $(vala_depend) )
478 - test? (
479 - $(python_gen_any_dep '
480 - dev-python/dbus-python[${PYTHON_USEDEP}]
481 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
482 - )
483 -"
484 -
485 -python_check_deps() {
486 - if use introspection; then
487 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
488 - fi
489 - if use test; then
490 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
491 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
492 - fi
493 -}
494 -
495 -sysfs_deprecated_check() {
496 - ebegin "Checking for SYSFS_DEPRECATED support"
497 -
498 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
499 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
500 - eerror "or NetworkManager will not work correctly."
501 - eerror "See https://bugs.gentoo.org/333639 for more info."
502 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
503 - fi
504 - eend $?
505 -}
506 -
507 -pkg_pretend() {
508 - if use kernel_linux; then
509 - get_version
510 - if linux_config_exists; then
511 - sysfs_deprecated_check
512 - else
513 - ewarn "Was unable to determine your kernel .config"
514 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
515 - ewarn "See https://bugs.gentoo.org/333639 for more info."
516 - fi
517 -
518 - fi
519 -}
520 -
521 -pkg_setup() {
522 - if use connection-sharing; then
523 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
524 - linux-info_pkg_setup
525 - fi
526 - enewgroup plugdev
527 - if use introspection || use test; then
528 - python-any-r1_pkg_setup
529 - fi
530 -}
531 -
532 -src_prepare() {
533 - DOC_CONTENTS="To modify system network connections without needing to enter the
534 - root password, add your user account to the 'plugdev' group."
535 -
536 - use vala && vala_src_prepare
537 - gnome2_src_prepare
538 -}
539 -
540 -multilib_src_configure() {
541 - local myconf=(
542 - --disable-more-warnings
543 - --disable-static
544 - --localstatedir=/var
545 - --disable-lto
546 - --disable-config-plugin-ibft
547 - --disable-qt
548 - --without-netconfig
549 - --with-dbus-sys-dir=/etc/dbus-1/system.d
550 - # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are
551 - # still not ready for removing that lib, bug #665338
552 - --with-libnm-glib
553 - --with-nmcli=yes
554 - --with-udev-dir="$(get_udevdir)"
555 - --with-config-plugins-default=keyfile
556 - --with-iptables=/sbin/iptables
557 - $(multilib_native_enable concheck)
558 - --with-crypto=$(usex nss nss gnutls)
559 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind $(multilib_native_usex consolekit consolekit no)))
560 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
561 - $(multilib_native_use_with audit libaudit)
562 - $(multilib_native_use_enable bluetooth bluez5-dun)
563 - $(use_with dhclient)
564 - $(use_with dhcpcd)
565 - $(multilib_native_use_enable introspection)
566 - $(use_enable json json-validation)
567 - $(multilib_native_use_enable ppp)
568 - --without-libpsl
569 - $(multilib_native_use_with modemmanager modem-manager-1)
570 - $(multilib_native_use_with ncurses nmtui)
571 - $(multilib_native_use_with ofono)
572 - $(multilib_native_use_enable ovs)
573 - $(multilib_native_use_with resolvconf)
574 - $(multilib_native_use_with selinux)
575 - $(multilib_native_use_with systemd systemd-journal)
576 - $(multilib_native_use_enable teamd teamdctl)
577 - $(multilib_native_use_enable test tests)
578 - $(multilib_native_use_enable vala)
579 - --without-valgrind
580 - $(multilib_native_use_with wifi iwd)
581 - $(multilib_native_use_with wext)
582 - $(multilib_native_use_enable wifi)
583 - )
584 -
585 - if multilib_is_native_abi && use policykit; then
586 - myconf+=( --enable-polkit=yes )
587 - else
588 - myconf+=( --enable-polkit=disabled )
589 - fi
590 -
591 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
592 - if use ppp; then
593 - local PPPD_VER=`best_version net-dialup/ppp`
594 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
595 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
596 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
597 - fi
598 -
599 - # unit files directory needs to be passed only when systemd is enabled,
600 - # otherwise systemd support is not disabled completely, bug #524534
601 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
602 -
603 - if multilib_is_native_abi; then
604 - # work-around man out-of-source brokenness, must be done before configure
605 - ln -s "${S}/docs" docs || die
606 - ln -s "${S}/man" man || die
607 - fi
608 -
609 - ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}"
610 -}
611 -
612 -multilib_src_compile() {
613 - if multilib_is_native_abi; then
614 - emake
615 - else
616 - local targets=(
617 - libnm/libnm.la
618 - libnm-util/libnm-util.la
619 - libnm-glib/libnm-glib.la
620 - libnm-glib/libnm-glib-vpn.la
621 - )
622 - emake "${targets[@]}"
623 - fi
624 -}
625 -
626 -multilib_src_test() {
627 - if use test && multilib_is_native_abi; then
628 - python_setup
629 - virtx emake check
630 - fi
631 -}
632 -
633 -multilib_src_install() {
634 - if multilib_is_native_abi; then
635 - # Install completions at proper place, bug #465100
636 - gnome2_src_install completiondir="$(get_bashcompdir)"
637 - else
638 - local targets=(
639 - install-libLTLIBRARIES
640 - install-libdeprecatedHEADERS
641 - install-libnm_glib_libnmvpnHEADERS
642 - install-libnm_glib_libnmincludeHEADERS
643 - install-libnm_util_libnm_util_includeHEADERS
644 - install-libnmincludeHEADERS
645 - install-nodist_libnm_glib_libnmincludeHEADERS
646 - install-nodist_libnm_glib_libnmvpnHEADERS
647 - install-nodist_libnm_util_libnm_util_includeHEADERS
648 - install-nodist_libnmincludeHEADERS
649 - install-pkgconfigDATA
650 - )
651 - emake DESTDIR="${D}" "${targets[@]}"
652 - fi
653 -}
654 -
655 -multilib_src_install_all() {
656 - ! use systemd && readme.gentoo_create_doc
657 -
658 - newinitd "${FILESDIR}/init.d.NetworkManager-r1" NetworkManager
659 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
660 -
661 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
662 - keepdir /etc/NetworkManager/dispatcher.d
663 -
664 - # Provide openrc net dependency only when nm is connected
665 - exeinto /etc/NetworkManager/dispatcher.d
666 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
667 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
668 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
669 -
670 - keepdir /etc/NetworkManager/system-connections
671 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
672 -
673 - # Allow users in plugdev group to modify system connections
674 - insinto /usr/share/polkit-1/rules.d/
675 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
676 -
677 - if use iwd; then
678 - # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir
679 - cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf
680 - [device]
681 - wifi.backend=iwd
682 - EOF
683 - fi
684 -
685 - # Empty
686 - rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die
687 -}
688 -
689 -pkg_postinst() {
690 - gnome2_pkg_postinst
691 - systemd_reenable NetworkManager.service
692 - ! use systemd && readme.gentoo_print_elog
693 -
694 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
695 - ewarn "The ${PN} system configuration file has moved to a new location."
696 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
697 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
698 - ewarn
699 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
700 - fi
701 -
702 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
703 - # but still show a warning to remember people to have cleaner config file
704 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
705 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
706 - ewarn
707 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
708 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
709 - ewarn
710 - fi
711 - fi
712 -
713 - # NM shows lots of errors making nmcli neither unusable, bug #528748 upstream bug #690457
714 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
715 - ewarn "You have psk-flags=1 setting in above files, you will need to"
716 - ewarn "either reconfigure affected networks or, at least, set the flag"
717 - ewarn "value to '0'."
718 - fi
719 -}
720
721 diff --git a/net-misc/networkmanager/networkmanager-1.8.4.ebuild b/net-misc/networkmanager/networkmanager-1.8.4.ebuild
722 deleted file mode 100644
723 index 329d3ef3ade..00000000000
724 --- a/net-misc/networkmanager/networkmanager-1.8.4.ebuild
725 +++ /dev/null
726 @@ -1,324 +0,0 @@
727 -# Copyright 1999-2018 Gentoo Foundation
728 -# Distributed under the terms of the GNU General Public License v2
729 -
730 -EAPI=6
731 -GNOME_ORG_MODULE="NetworkManager"
732 -GNOME2_LA_PUNT="yes"
733 -VALA_USE_DEPEND="vapigen"
734 -PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
735 -
736 -inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd \
737 - user readme.gentoo-r1 toolchain-funcs vala versionator virtualx udev multilib-minimal
738 -
739 -DESCRIPTION="A set of co-operative tools that make networking simple and straightforward"
740 -HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
741 -
742 -LICENSE="GPL-2+"
743 -SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version
744 -
745 -IUSE="audit bluetooth connection-sharing consolekit +dhclient dhcpcd elogind gnutls +introspection json kernel_linux +nss +modemmanager ncurses ofono policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi"
746 -
747 -REQUIRED_USE="
748 - modemmanager? ( ppp )
749 - vala? ( introspection )
750 - wext? ( wifi )
751 - ^^ ( nss gnutls )
752 - ?? ( consolekit elogind systemd )
753 -"
754 -
755 -KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ppc ppc64 ~sparc x86"
756 -
757 -# gobject-introspection-0.10.3 is needed due to gnome bug 642300
758 -# wpa_supplicant-0.7.3-r3 is needed due to bug 359271
759 -# TODO: need multilib janson (linked to libnm.so)
760 -COMMON_DEPEND="
761 - >=sys-apps/dbus-1.2[${MULTILIB_USEDEP}]
762 - >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}]
763 - >=dev-libs/glib-2.37.6:2[${MULTILIB_USEDEP}]
764 - >=dev-libs/libnl-3.2.8:3=[${MULTILIB_USEDEP}]
765 - policykit? ( >=sys-auth/polkit-0.106 )
766 - net-libs/libndp[${MULTILIB_USEDEP}]
767 - >=net-misc/curl-7.24
768 - net-misc/iputils
769 - sys-apps/util-linux[${MULTILIB_USEDEP}]
770 - sys-libs/readline:0=
771 - >=virtual/libudev-175:=[${MULTILIB_USEDEP}]
772 - audit? ( sys-process/audit )
773 - bluetooth? ( >=net-wireless/bluez-5 )
774 - connection-sharing? (
775 - net-dns/dnsmasq[dbus,dhcp]
776 - net-firewall/iptables )
777 - consolekit? ( >=sys-auth/consolekit-1.0.0 )
778 - dhclient? ( >=net-misc/dhcp-4[client] )
779 - dhcpcd? ( net-misc/dhcpcd )
780 - elogind? ( >=sys-auth/elogind-219 )
781 - gnutls? (
782 - dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}]
783 - >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] )
784 - introspection? ( >=dev-libs/gobject-introspection-0.10.3:= )
785 - json? ( dev-libs/jansson )
786 - modemmanager? ( >=net-misc/modemmanager-0.7.991:0= )
787 - ncurses? ( >=dev-libs/newt-0.52.15 )
788 - nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] )
789 - ofono? ( net-misc/ofono )
790 - ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] )
791 - resolvconf? ( net-dns/openresolv )
792 - selinux? ( sys-libs/libselinux )
793 - systemd? ( >=sys-apps/systemd-209:0= )
794 - teamd? (
795 - dev-libs/jansson
796 - >=net-misc/libteam-1.9
797 - )
798 -"
799 -RDEPEND="${COMMON_DEPEND}
800 - || (
801 - net-misc/iputils[arping(+)]
802 - net-analyzer/arping
803 - )
804 - wifi? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] )
805 -"
806 -DEPEND="${COMMON_DEPEND}
807 - dev-util/gdbus-codegen
808 - dev-util/gtk-doc-am
809 - >=dev-util/intltool-0.40
810 - >=sys-devel/gettext-0.17
811 - >=sys-kernel/linux-headers-2.6.29
812 - virtual/pkgconfig[${MULTILIB_USEDEP}]
813 - introspection? (
814 - $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]')
815 - dev-lang/perl
816 - dev-libs/libxslt
817 - )
818 - vala? ( $(vala_depend) )
819 - test? (
820 - $(python_gen_any_dep '
821 - dev-python/dbus-python[${PYTHON_USEDEP}]
822 - dev-python/pygobject:3[${PYTHON_USEDEP}]')
823 - )
824 -"
825 -
826 -python_check_deps() {
827 - if use introspection; then
828 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return
829 - fi
830 - if use test; then
831 - has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
832 - has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]"
833 - fi
834 -}
835 -
836 -sysfs_deprecated_check() {
837 - ebegin "Checking for SYSFS_DEPRECATED support"
838 -
839 - if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
840 - eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
841 - eerror "or NetworkManager will not work correctly."
842 - eerror "See https://bugs.gentoo.org/333639 for more info."
843 - die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
844 - fi
845 - eend $?
846 -}
847 -
848 -pkg_pretend() {
849 - if use kernel_linux; then
850 - get_version
851 - if linux_config_exists; then
852 - sysfs_deprecated_check
853 - else
854 - ewarn "Was unable to determine your kernel .config"
855 - ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
856 - ewarn "See https://bugs.gentoo.org/333639 for more info."
857 - fi
858 -
859 - fi
860 -}
861 -
862 -pkg_setup() {
863 - if use connection-sharing; then
864 - CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4"
865 - linux-info_pkg_setup
866 - fi
867 - enewgroup plugdev
868 - if use introspection || use test; then
869 - python-any-r1_pkg_setup
870 - fi
871 -}
872 -
873 -src_prepare() {
874 - DOC_CONTENTS="To modify system network connections without needing to enter the
875 - root password, add your user account to the 'plugdev' group."
876 -
877 - use vala && vala_src_prepare
878 - gnome2_src_prepare
879 -}
880 -
881 -multilib_src_configure() {
882 - local myconf=(
883 - --disable-more-warnings
884 - --disable-static
885 - --localstatedir=/var
886 - --disable-lto
887 - --disable-config-plugin-ibft
888 - # ifnet plugin always disabled until someone volunteers to actively
889 - # maintain and fix it
890 - --disable-ifnet
891 - --disable-qt
892 - --without-netconfig
893 - --with-dbus-sys-dir=/etc/dbus-1/system.d
894 - # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are
895 - # still not ready for removing that lib
896 - --with-libnm-glib
897 - --with-nmcli=yes
898 - --with-udev-dir="$(get_udevdir)"
899 - --with-config-plugins-default=keyfile
900 - --with-iptables=/sbin/iptables
901 - $(multilib_native_enable concheck)
902 - --with-crypto=$(usex nss nss gnutls)
903 - --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind $(multilib_native_usex consolekit consolekit no)))
904 - --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit))
905 - $(multilib_native_use_with audit libaudit)
906 - $(multilib_native_use_enable bluetooth bluez5-dun)
907 - $(use_with dhclient)
908 - $(use_with dhcpcd)
909 - $(multilib_native_use_enable introspection)
910 - $(multilib_native_use_enable json json-validation)
911 - $(multilib_native_use_enable ppp)
912 - --without-libpsl
913 - $(multilib_native_use_with modemmanager modem-manager-1)
914 - $(multilib_native_use_with ncurses nmtui)
915 - $(multilib_native_use_with ofono)
916 - $(multilib_native_use_with resolvconf)
917 - $(multilib_native_use_with selinux)
918 - $(multilib_native_use_with systemd systemd-journal)
919 - $(multilib_native_use_enable teamd teamdctl)
920 - $(multilib_native_use_enable test tests)
921 - $(multilib_native_use_enable vala)
922 - --without-valgrind
923 - $(multilib_native_use_with wext)
924 - $(multilib_native_use_enable wifi)
925 - )
926 -
927 - if multilib_is_native_abi && use policykit; then
928 - myconf+=( --enable-polkit=yes )
929 - else
930 - myconf+=( --enable-polkit=disabled )
931 - fi
932 -
933 - # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986
934 - if use ppp; then
935 - local PPPD_VER=`best_version net-dialup/ppp`
936 - PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR}
937 - PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision
938 - myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} )
939 - fi
940 -
941 - # unit files directory needs to be passed only when systemd is enabled,
942 - # otherwise systemd support is not disabled completely, bug #524534
943 - use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" )
944 -
945 - if multilib_is_native_abi; then
946 - # work-around man out-of-source brokenness, must be done before configure
947 - ln -s "${S}/docs" docs || die
948 - ln -s "${S}/man" man || die
949 - fi
950 -
951 - ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}"
952 -}
953 -
954 -multilib_src_compile() {
955 - if multilib_is_native_abi; then
956 - emake
957 - else
958 - local targets=(
959 - libnm/libnm.la
960 - libnm-util/libnm-util.la
961 - libnm-glib/libnm-glib.la
962 - libnm-glib/libnm-glib-vpn.la
963 - )
964 - emake "${targets[@]}"
965 - fi
966 -}
967 -
968 -multilib_src_test() {
969 - if use test && multilib_is_native_abi; then
970 - python_setup
971 - virtx emake check
972 - fi
973 -}
974 -
975 -multilib_src_install() {
976 - if multilib_is_native_abi; then
977 - # Install completions at proper place, bug #465100
978 - gnome2_src_install completiondir="$(get_bashcompdir)"
979 - else
980 - local targets=(
981 - install-libLTLIBRARIES
982 - install-libdeprecatedHEADERS
983 - install-libnm_glib_libnmvpnHEADERS
984 - install-libnm_glib_libnmincludeHEADERS
985 - install-libnm_util_libnm_util_includeHEADERS
986 - install-libnmincludeHEADERS
987 - install-nodist_libnm_glib_libnmincludeHEADERS
988 - install-nodist_libnm_glib_libnmvpnHEADERS
989 - install-nodist_libnm_util_libnm_util_includeHEADERS
990 - install-nodist_libnmincludeHEADERS
991 - install-pkgconfigDATA
992 - )
993 - emake DESTDIR="${D}" "${targets[@]}"
994 - fi
995 -}
996 -
997 -multilib_src_install_all() {
998 - ! use systemd && readme.gentoo_create_doc
999 -
1000 - newinitd "${FILESDIR}/init.d.NetworkManager-r1" NetworkManager
1001 - newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager
1002 -
1003 - # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
1004 - keepdir /etc/NetworkManager/dispatcher.d
1005 -
1006 - # Provide openrc net dependency only when nm is connected
1007 - exeinto /etc/NetworkManager/dispatcher.d
1008 - newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status
1009 - sed -e "s:@EPREFIX@:${EPREFIX}:g" \
1010 - -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die
1011 -
1012 - keepdir /etc/NetworkManager/system-connections
1013 - chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594
1014 -
1015 - # Allow users in plugdev group to modify system connections
1016 - insinto /usr/share/polkit-1/rules.d/
1017 - doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules"
1018 -}
1019 -
1020 -pkg_postinst() {
1021 - gnome2_pkg_postinst
1022 - systemd_reenable NetworkManager.service
1023 - ! use systemd && readme.gentoo_print_elog
1024 -
1025 - if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then
1026 - ewarn "The ${PN} system configuration file has moved to a new location."
1027 - ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf"
1028 - ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf"
1029 - ewarn
1030 - ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf"
1031 - fi
1032 -
1033 - # NM fallbacks to plugin specified at compile time (upstream bug #738611)
1034 - # but still show a warning to remember people to have cleaner config file
1035 - if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then
1036 - if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then
1037 - ewarn
1038 - ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf"
1039 - ewarn "Since it won't be used, you will need to stop setting ifnet plugin there."
1040 - ewarn
1041 - fi
1042 - fi
1043 -
1044 - # NM shows lots of errors making nmcli neither unusable, bug #528748 upstream bug #690457
1045 - if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then
1046 - ewarn "You have psk-flags=1 setting in above files, you will need to"
1047 - ewarn "either reconfigure affected networks or, at least, set the flag"
1048 - ewarn "value to '0'."
1049 - fi
1050 -}