1 |
commit: d445151e9bfa99647b96ff500c569f398a5a4779 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 13 22:29:48 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 13 22:33:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d445151e |
7 |
|
8 |
net-misc/networkmanager: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
net-misc/networkmanager/Manifest | 3 - |
13 |
.../networkmanager-1.32.10-r1.ebuild | 382 -------------------- |
14 |
.../networkmanager/networkmanager-1.32.12.ebuild | 392 --------------------- |
15 |
.../networkmanager/networkmanager-1.32.4-r1.ebuild | 349 ------------------ |
16 |
.../networkmanager/networkmanager-1.32.8-r1.ebuild | 349 ------------------ |
17 |
5 files changed, 1475 deletions(-) |
18 |
|
19 |
diff --git a/net-misc/networkmanager/Manifest b/net-misc/networkmanager/Manifest |
20 |
index 7d6ceebeb8c7..f0e10adbc5cc 100644 |
21 |
--- a/net-misc/networkmanager/Manifest |
22 |
+++ b/net-misc/networkmanager/Manifest |
23 |
@@ -1,4 +1 @@ |
24 |
-DIST NetworkManager-1.32.10.tar.xz 5353296 BLAKE2B af176abd4dd8f725741cc8fde10245606d1b00cb6b11cde11b2e3bce74a33980fdf76fab5c6c769a4275c5168098cb2531a0a03909db8eef5fa502d464d59bd1 SHA512 c4eb9114869efba197c3ec1e99d7d5bc54222d9c7118cf699fe61130952a20376a760b86909290d6312a4a23016d51f9ff90ba8eadbbcda84ce811e441293d8d |
25 |
DIST NetworkManager-1.32.12.tar.xz 5373452 BLAKE2B 29ca1f1c2aea60e4ddc7e3d5464604b329c8b740a2a143266c0bc05ec6a16079cfdf67770fc75afe523664e2e4234189031a8ffa2f51c0f02d4760f3ab20e04a SHA512 b8dfa409302781fdab19790afeb7f4396875e282d6983e2c5775294c8c13d3c1036dee69a37bf6e4fb2a2e80504c8e792780b6a9c1262616e57860da5ebc0e61 |
26 |
-DIST NetworkManager-1.32.4.tar.xz 5250412 BLAKE2B 6c0931d50a8666f88865d4ca5281e1570dd230156e30bb27822c9ea3d93b3b3b24f336e154787794e7edd7c00296f9f7c5761136cac0c0eacf142a0371cbfe81 SHA512 95be90d4c8f8f9f58a3c7ad8d8c9b592d2b77f283df58b495fe1b673c4fadd4409f4fc00fc9766343e3ac240dd805583db4f05e6d1f0b367fe22b306227fc684 |
27 |
-DIST NetworkManager-1.32.8.tar.xz 5255076 BLAKE2B 5f1bc55e3b9e6864c05421c8506ac202162deaf5081450e5d50f52699abc2d9bfb6e89b6f48c9874cccdc11fe754a5063a63e830702e211cf178ce7df0d628fb SHA512 328733f3dce9e52e680e464b60112995439f94dfeaea3b6c2082b323e85418483db6c6dc9e43f52176ff7c1291b226db77fe5acab9935dad7735c4397f5e9b83 |
28 |
|
29 |
diff --git a/net-misc/networkmanager/networkmanager-1.32.10-r1.ebuild b/net-misc/networkmanager/networkmanager-1.32.10-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index 5cad0e546759..000000000000 |
32 |
--- a/net-misc/networkmanager/networkmanager-1.32.10-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,382 +0,0 @@ |
35 |
-# Copyright 1999-2022 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=7 |
39 |
-GNOME_ORG_MODULE="NetworkManager" |
40 |
-VALA_USE_DEPEND="vapigen" |
41 |
-PYTHON_COMPAT=( python3_{7..10} ) |
42 |
- |
43 |
-inherit gnome.org linux-info meson-multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev |
44 |
- |
45 |
-DESCRIPTION="A set of co-operative tools that make networking simple and straightforward" |
46 |
-HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
47 |
- |
48 |
-LICENSE="GPL-2+ LGPL-2.1+" |
49 |
-SLOT="0" |
50 |
- |
51 |
-IUSE="audit bluetooth +concheck connection-sharing debug dhclient dhcpcd elogind gnutls +introspection iptables iwd psl lto +nss nftables +modemmanager ofono ovs policykit +ppp resolvconf selinux syslog systemd teamd test +tools vala +wext +wifi" |
52 |
-RESTRICT="!test? ( test )" |
53 |
- |
54 |
-REQUIRED_USE=" |
55 |
- bluetooth? ( modemmanager ) |
56 |
- connection-sharing? ( || ( iptables nftables ) ) |
57 |
- iwd? ( wifi ) |
58 |
- vala? ( introspection ) |
59 |
- wext? ( wifi ) |
60 |
- ^^ ( gnutls nss ) |
61 |
- ?? ( elogind systemd ) |
62 |
- ?? ( dhclient dhcpcd ) |
63 |
- ?? ( syslog systemd ) |
64 |
-" |
65 |
- |
66 |
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86" |
67 |
- |
68 |
-COMMON_DEPEND=" |
69 |
- sys-apps/util-linux[${MULTILIB_USEDEP}] |
70 |
- elogind? ( >=sys-auth/elogind-219 ) |
71 |
- >=virtual/libudev-175:=[${MULTILIB_USEDEP}] |
72 |
- sys-apps/dbus |
73 |
- net-libs/libndp |
74 |
- systemd? ( >=sys-apps/systemd-209:0= ) |
75 |
- >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] |
76 |
- introspection? ( >=dev-libs/gobject-introspection-0.10.3:= ) |
77 |
- selinux? ( sys-libs/libselinux ) |
78 |
- audit? ( sys-process/audit ) |
79 |
- teamd? ( |
80 |
- >=dev-libs/jansson-2.7:= |
81 |
- >=net-misc/libteam-1.9 |
82 |
- ) |
83 |
- policykit? ( >=sys-auth/polkit-0.106 ) |
84 |
- nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] ) |
85 |
- gnutls? ( |
86 |
- >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] |
87 |
- ) |
88 |
- ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] ) |
89 |
- modemmanager? ( |
90 |
- net-misc/mobile-broadband-provider-info |
91 |
- >=net-misc/modemmanager-0.7.991:0= |
92 |
- ) |
93 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
94 |
- ofono? ( net-misc/ofono ) |
95 |
- dhclient? ( >=net-misc/dhcp-4[client] ) |
96 |
- dhcpcd? ( >=net-misc/dhcpcd-9.3.3 ) |
97 |
- ovs? ( >=dev-libs/jansson-2.7:= ) |
98 |
- resolvconf? ( net-dns/openresolv ) |
99 |
- connection-sharing? ( |
100 |
- net-dns/dnsmasq[dbus,dhcp] |
101 |
- iptables? ( net-firewall/iptables ) |
102 |
- nftables? ( net-firewall/nftables ) |
103 |
- ) |
104 |
- psl? ( net-libs/libpsl ) |
105 |
- concheck? ( net-misc/curl ) |
106 |
- tools? ( |
107 |
- sys-libs/readline:0= |
108 |
- >=dev-libs/newt-0.52.15 |
109 |
- ) |
110 |
-" |
111 |
-RDEPEND="${COMMON_DEPEND} |
112 |
- acct-group/plugdev |
113 |
- || ( |
114 |
- net-misc/iputils[arping(+)] |
115 |
- net-analyzer/arping |
116 |
- ) |
117 |
- wifi? ( |
118 |
- !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
119 |
- iwd? ( net-wireless/iwd ) |
120 |
- ) |
121 |
-" |
122 |
-DEPEND="${COMMON_DEPEND} |
123 |
- >=sys-kernel/linux-headers-3.18 |
124 |
- net-libs/libndp[${MULTILIB_USEDEP}] |
125 |
-" |
126 |
-BDEPEND=" |
127 |
- dev-util/gdbus-codegen |
128 |
- dev-util/glib-utils |
129 |
- dev-util/gtk-doc |
130 |
- app-text/docbook-xml-dtd:4.1.2 |
131 |
- >=dev-util/intltool-0.40 |
132 |
- >=sys-devel/gettext-0.17 |
133 |
- virtual/pkgconfig |
134 |
- introspection? ( |
135 |
- $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]') |
136 |
- dev-lang/perl |
137 |
- dev-libs/libxslt |
138 |
- ) |
139 |
- vala? ( $(vala_depend) ) |
140 |
- test? ( |
141 |
- >=dev-libs/jansson-2.7 |
142 |
- $(python_gen_any_dep ' |
143 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
144 |
- dev-python/pygobject:3[${PYTHON_USEDEP}]') |
145 |
- ) |
146 |
-" |
147 |
- |
148 |
-python_check_deps() { |
149 |
- if use introspection; then |
150 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
151 |
- fi |
152 |
- if use test; then |
153 |
- has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
154 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
155 |
- fi |
156 |
-} |
157 |
- |
158 |
-sysfs_deprecated_check() { |
159 |
- ebegin "Checking for SYSFS_DEPRECATED support" |
160 |
- |
161 |
- if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
162 |
- eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
163 |
- eerror "or NetworkManager will not work correctly." |
164 |
- eerror "See https://bugs.gentoo.org/333639 for more info." |
165 |
- die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
166 |
- fi |
167 |
- eend $? |
168 |
-} |
169 |
- |
170 |
-pkg_pretend() { |
171 |
- if use kernel_linux; then |
172 |
- get_version |
173 |
- if linux_config_exists; then |
174 |
- sysfs_deprecated_check |
175 |
- else |
176 |
- ewarn "Was unable to determine your kernel .config" |
177 |
- ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
178 |
- ewarn "See https://bugs.gentoo.org/333639 for more info." |
179 |
- fi |
180 |
- fi |
181 |
-} |
182 |
- |
183 |
-pkg_setup() { |
184 |
- if use connection-sharing; then |
185 |
- if kernel_is lt 5 1; then |
186 |
- CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4" |
187 |
- else |
188 |
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE" |
189 |
- fi |
190 |
- linux-info_pkg_setup |
191 |
- fi |
192 |
- if use introspection || use test; then |
193 |
- python-any-r1_pkg_setup |
194 |
- fi |
195 |
-} |
196 |
- |
197 |
-src_prepare() { |
198 |
- DOC_CONTENTS="To modify system network connections without needing to enter the |
199 |
- root password, add your user account to the 'plugdev' group." |
200 |
- |
201 |
- default |
202 |
- use vala && vala_src_prepare |
203 |
- |
204 |
- sed -i \ |
205 |
- -e 's#/usr/bin/sed#/bin/sed#' \ |
206 |
- data/84-nm-drivers.rules \ |
207 |
- || die |
208 |
-} |
209 |
- |
210 |
-multilib_src_configure() { |
211 |
- local emesonargs=( |
212 |
- --localstatedir="${EPREFIX}/var" |
213 |
- |
214 |
- -Dsystemdsystemunitdir=$(systemd_get_systemunitdir) |
215 |
- -Dsystem_ca_path=/etc/ssl/certs |
216 |
- -Dudev_dir=$(get_udevdir) |
217 |
- -Ddbus_conf_dir=/usr/share/dbus-1/system.d |
218 |
- -Dkernel_firmware_dir=/lib/firmware |
219 |
- -Diptables=/sbin/iptables |
220 |
- -Dnft=/sbin/nft |
221 |
- -Ddnsmasq=/usr/sbin/dnsmasq |
222 |
- #-Ddnssec_trigger= |
223 |
- |
224 |
- -Ddist_version=${PVR} |
225 |
- $(meson_native_use_bool policykit polkit) |
226 |
- $(meson_native_use_bool policykit config_auth_polkit_default) |
227 |
- -Dmodify_system=true |
228 |
- -Dpolkit_agent_helper_1=/usr/lib/polkit-1/polkit-agent-helper-1 |
229 |
- $(meson_native_use_bool selinux) |
230 |
- $(meson_native_use_bool systemd systemd_journal) |
231 |
- -Dhostname_persist=gentoo |
232 |
- -Dlibaudit=$(multilib_native_usex audit) |
233 |
- |
234 |
- $(meson_native_use_bool wext) |
235 |
- $(meson_native_use_bool wifi) |
236 |
- $(meson_native_use_bool iwd) |
237 |
- $(meson_native_use_bool ppp) |
238 |
- -Dpppd=/usr/sbin/pppd |
239 |
- $(meson_native_use_bool modemmanager modem_manager) |
240 |
- $(meson_native_use_bool ofono) |
241 |
- $(meson_native_use_bool concheck) |
242 |
- $(meson_native_use_bool teamd teamdctl) |
243 |
- $(meson_native_use_bool ovs) |
244 |
- $(meson_native_use_bool tools nmcli) |
245 |
- $(meson_native_use_bool tools nmtui) |
246 |
- $(meson_native_use_bool tools nm_cloud_setup) |
247 |
- $(meson_native_use_bool bluetooth bluez5_dun) |
248 |
- -Debpf=true |
249 |
- |
250 |
- -Dconfig_plugins_default=keyfile |
251 |
- -Difcfg_rh=false |
252 |
- -Difupdown=false |
253 |
- |
254 |
- $(meson_native_use_feature resolvconf) |
255 |
- -Dnetconfig=disable |
256 |
- -Dconfig_dns_rc_manager_default=symlink |
257 |
- |
258 |
- $(meson_feature dhclient) |
259 |
- -Ddhcpcanon=disable |
260 |
- $(meson_feature dhcpcd) |
261 |
- |
262 |
- $(meson_native_use_bool introspection) |
263 |
- $(meson_native_use_bool vala vapi) |
264 |
- $(meson_native_true docs) |
265 |
- -Dtests=$(multilib_native_usex test) |
266 |
- $(meson_native_true firewalld_zone) |
267 |
- -Dmore_asserts=0 |
268 |
- $(meson_use debug more_logging) |
269 |
- -Dvalgrind=no |
270 |
- -Dvalgrind_suppressions= |
271 |
- -Dld_gc=false |
272 |
- $(meson_native_use_bool psl libpsl) |
273 |
- -Dqt=false |
274 |
- |
275 |
- $(meson_use lto b_lto) |
276 |
- ) |
277 |
- |
278 |
- if multilib_is_native_abi && use systemd; then |
279 |
- emesonargs+=( -Dsession_tracking_consolekit=false ) |
280 |
- emesonargs+=( -Dsession_tracking=systemd ) |
281 |
- emesonargs+=( -Dsuspend_resume=systemd ) |
282 |
- elif multilib_is_native_abi && use elogind; then |
283 |
- emesonargs+=( -Dsession_tracking_consolekit=false ) |
284 |
- emesonargs+=( -Dsession_tracking=elogind ) |
285 |
- emesonargs+=( -Dsuspend_resume=elogind ) |
286 |
- else |
287 |
- emesonargs+=( -Dsession_tracking_consolekit=false ) |
288 |
- emesonargs+=( -Dsession_tracking=no ) |
289 |
- emesonargs+=( -Dsuspend_resume=auto ) |
290 |
- fi |
291 |
- |
292 |
- if multilib_is_native_abi && use syslog; then |
293 |
- emesonargs+=( -Dconfig_logging_backend_default=syslog ) |
294 |
- elif multilib_is_native_abi && use systemd; then |
295 |
- emesonargs+=( -Dconfig_logging_backend_default=journal ) |
296 |
- else |
297 |
- emesonargs+=( -Dconfig_logging_backend_default=default ) |
298 |
- fi |
299 |
- |
300 |
- if multilib_is_native_abi && use dhclient; then |
301 |
- emesonargs+=( -Dconfig_dhcp_default=dhclient ) |
302 |
- elif multilib_is_native_abi && use dhcpcd; then |
303 |
- emesonargs+=( -Dconfig_dhcp_default=dhcpcd ) |
304 |
- else |
305 |
- emesonargs+=( -Dconfig_dhcp_default=internal ) |
306 |
- fi |
307 |
- |
308 |
- if use nss; then |
309 |
- emesonargs+=( -Dcrypto=nss ) |
310 |
- else |
311 |
- emesonargs+=( -Dcrypto=gnutls ) |
312 |
- fi |
313 |
- |
314 |
- # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
315 |
- if use ppp; then |
316 |
- local PPPD_VER=`best_version net-dialup/ppp` |
317 |
- PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
318 |
- PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
319 |
- emesonargs+=( -Dpppd_plugin_dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
320 |
- fi |
321 |
- |
322 |
- meson_src_configure |
323 |
-} |
324 |
- |
325 |
-multilib_src_test() { |
326 |
- if use test && multilib_is_native_abi; then |
327 |
- python_setup |
328 |
- virtx meson_src_test |
329 |
- fi |
330 |
-} |
331 |
- |
332 |
-multilib_src_install() { |
333 |
- meson_src_install |
334 |
- if ! multilib_is_native_abi; then |
335 |
- rm -rf "${ED}"/{etc,usr/{bin,lib/NetworkManager,share},var} |
336 |
- fi |
337 |
-} |
338 |
- |
339 |
-multilib_src_install_all() { |
340 |
- ! use systemd && readme.gentoo_create_doc |
341 |
- |
342 |
- newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager |
343 |
- newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
344 |
- |
345 |
- # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
346 |
- keepdir /etc/NetworkManager/dispatcher.d |
347 |
- |
348 |
- # Provide openrc net dependency only when nm is connected |
349 |
- exeinto /etc/NetworkManager/dispatcher.d |
350 |
- newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status |
351 |
- sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
352 |
- -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
353 |
- |
354 |
- keepdir /etc/NetworkManager/system-connections |
355 |
- chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594 |
356 |
- |
357 |
- # Allow users in plugdev group to modify system connections |
358 |
- insinto /usr/share/polkit-1/rules.d/ |
359 |
- doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
360 |
- |
361 |
- insinto /usr/lib/NetworkManager/conf.d #702476 |
362 |
- doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf |
363 |
- |
364 |
- if use iwd; then |
365 |
- # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir |
366 |
- cat <<-EOF > "${ED}"/usr/lib/NetworkManager/conf.d/iwd.conf |
367 |
- [device] |
368 |
- wifi.backend=iwd |
369 |
- EOF |
370 |
- fi |
371 |
- |
372 |
- mv "${ED}"/usr/share/doc/{NetworkManager/examples/,${PF}} || die |
373 |
- rmdir "${ED}"/usr/share/doc/NetworkManager || die |
374 |
- |
375 |
- # Empty |
376 |
- rmdir "${ED}"/var{/lib{/NetworkManager,},} || die |
377 |
-} |
378 |
- |
379 |
-pkg_postinst() { |
380 |
- systemd_reenable NetworkManager.service |
381 |
- ! use systemd && readme.gentoo_print_elog |
382 |
- |
383 |
- if [[ -e "${EROOT}/etc/NetworkManager/nm-system-settings.conf" ]]; then |
384 |
- ewarn "The ${PN} system configuration file has moved to a new location." |
385 |
- ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
386 |
- ewarn "to ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
387 |
- ewarn |
388 |
- ewarn "After doing so, you can remove ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
389 |
- fi |
390 |
- |
391 |
- # NM fallbacks to plugin specified at compile time (upstream bug #738611) |
392 |
- # but still show a warning to remember people to have cleaner config file |
393 |
- if [[ -e "${EROOT}/etc/NetworkManager/NetworkManager.conf" ]]; then |
394 |
- if grep plugins "${EROOT}/etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then |
395 |
- ewarn |
396 |
- ewarn "You seem to use 'ifnet' plugin in ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
397 |
- ewarn "Since it won't be used, you will need to stop setting ifnet plugin there." |
398 |
- ewarn |
399 |
- fi |
400 |
- fi |
401 |
- |
402 |
- # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457 |
403 |
- if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then |
404 |
- ewarn "You have psk-flags=1 setting in above files, you will need to" |
405 |
- ewarn "either reconfigure affected networks or, at least, set the flag" |
406 |
- ewarn "value to '0'." |
407 |
- fi |
408 |
- |
409 |
- if use dhclient || use dhcpcd; then |
410 |
- ewarn "You have enabled USE=dhclient and/or USE=dhcpcd, but NetworkManager since" |
411 |
- ewarn "version 1.20 defaults to the internal DHCP client. If the internal client" |
412 |
- ewarn "works for you, and you're happy with, the alternative USE flags can be" |
413 |
- ewarn "disabled. If you want to use dhclient or dhcpcd, then you need to tweak" |
414 |
- ewarn "the main.dhcp configuration option to use one of them instead of internal." |
415 |
- fi |
416 |
-} |
417 |
|
418 |
diff --git a/net-misc/networkmanager/networkmanager-1.32.12.ebuild b/net-misc/networkmanager/networkmanager-1.32.12.ebuild |
419 |
deleted file mode 100644 |
420 |
index 2d35db0f7ea1..000000000000 |
421 |
--- a/net-misc/networkmanager/networkmanager-1.32.12.ebuild |
422 |
+++ /dev/null |
423 |
@@ -1,392 +0,0 @@ |
424 |
-# Copyright 1999-2022 Gentoo Authors |
425 |
-# Distributed under the terms of the GNU General Public License v2 |
426 |
- |
427 |
-EAPI=7 |
428 |
-GNOME_ORG_MODULE="NetworkManager" |
429 |
-VALA_USE_DEPEND="vapigen" |
430 |
-PYTHON_COMPAT=( python3_{7..10} ) |
431 |
- |
432 |
-inherit gnome.org linux-info meson-multilib python-any-r1 readme.gentoo-r1 systemd toolchain-funcs udev vala virtualx |
433 |
- |
434 |
-DESCRIPTION="A set of co-operative tools that make networking simple and straightforward" |
435 |
-HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
436 |
- |
437 |
-LICENSE="GPL-2+ LGPL-2.1+" |
438 |
-SLOT="0" |
439 |
- |
440 |
-IUSE="audit bluetooth +concheck connection-sharing debug dhclient dhcpcd elogind gnutls +gtk-doc +introspection iptables iwd psl lto +nss nftables +modemmanager ofono ovs policykit +ppp resolvconf selinux syslog systemd teamd test +tools vala +wext +wifi" |
441 |
-RESTRICT="!test? ( test )" |
442 |
- |
443 |
-REQUIRED_USE=" |
444 |
- bluetooth? ( modemmanager ) |
445 |
- connection-sharing? ( || ( iptables nftables ) ) |
446 |
- gtk-doc? ( introspection ) |
447 |
- iwd? ( wifi ) |
448 |
- vala? ( introspection ) |
449 |
- wext? ( wifi ) |
450 |
- ^^ ( gnutls nss ) |
451 |
- ?? ( elogind systemd ) |
452 |
- ?? ( dhclient dhcpcd ) |
453 |
- ?? ( syslog systemd ) |
454 |
-" |
455 |
- |
456 |
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86" |
457 |
- |
458 |
-COMMON_DEPEND=" |
459 |
- sys-apps/util-linux[${MULTILIB_USEDEP}] |
460 |
- elogind? ( >=sys-auth/elogind-219 ) |
461 |
- >=virtual/libudev-175:=[${MULTILIB_USEDEP}] |
462 |
- sys-apps/dbus |
463 |
- net-libs/libndp |
464 |
- systemd? ( >=sys-apps/systemd-209:0= ) |
465 |
- >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] |
466 |
- introspection? ( >=dev-libs/gobject-introspection-0.10.3:= ) |
467 |
- selinux? ( sys-libs/libselinux ) |
468 |
- audit? ( sys-process/audit ) |
469 |
- teamd? ( |
470 |
- >=dev-libs/jansson-2.7:= |
471 |
- >=net-misc/libteam-1.9 |
472 |
- ) |
473 |
- policykit? ( >=sys-auth/polkit-0.106 ) |
474 |
- nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] ) |
475 |
- gnutls? ( |
476 |
- >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] |
477 |
- ) |
478 |
- ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] ) |
479 |
- modemmanager? ( |
480 |
- net-misc/mobile-broadband-provider-info |
481 |
- >=net-misc/modemmanager-0.7.991:0= |
482 |
- ) |
483 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
484 |
- ofono? ( net-misc/ofono ) |
485 |
- dhclient? ( >=net-misc/dhcp-4[client] ) |
486 |
- dhcpcd? ( >=net-misc/dhcpcd-9.3.3 ) |
487 |
- ovs? ( >=dev-libs/jansson-2.7:= ) |
488 |
- resolvconf? ( net-dns/openresolv ) |
489 |
- connection-sharing? ( |
490 |
- net-dns/dnsmasq[dbus,dhcp] |
491 |
- iptables? ( net-firewall/iptables ) |
492 |
- nftables? ( net-firewall/nftables ) |
493 |
- ) |
494 |
- psl? ( net-libs/libpsl ) |
495 |
- concheck? ( net-misc/curl ) |
496 |
- tools? ( |
497 |
- sys-libs/readline:0= |
498 |
- >=dev-libs/newt-0.52.15 |
499 |
- ) |
500 |
-" |
501 |
-RDEPEND="${COMMON_DEPEND} |
502 |
- acct-group/plugdev |
503 |
- || ( |
504 |
- net-misc/iputils[arping(+)] |
505 |
- net-analyzer/arping |
506 |
- ) |
507 |
- wifi? ( |
508 |
- !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
509 |
- iwd? ( net-wireless/iwd ) |
510 |
- ) |
511 |
-" |
512 |
-DEPEND="${COMMON_DEPEND} |
513 |
- >=sys-kernel/linux-headers-3.18 |
514 |
- net-libs/libndp[${MULTILIB_USEDEP}] |
515 |
-" |
516 |
-BDEPEND=" |
517 |
- dev-util/gdbus-codegen |
518 |
- dev-util/glib-utils |
519 |
- gtk-doc? ( |
520 |
- dev-util/gtk-doc |
521 |
- app-text/docbook-xml-dtd:4.1.2 |
522 |
- ) |
523 |
- >=dev-util/intltool-0.40 |
524 |
- >=sys-devel/gettext-0.17 |
525 |
- virtual/pkgconfig |
526 |
- introspection? ( |
527 |
- $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]') |
528 |
- dev-lang/perl |
529 |
- dev-libs/libxslt |
530 |
- ) |
531 |
- vala? ( $(vala_depend) ) |
532 |
- test? ( |
533 |
- >=dev-libs/jansson-2.7 |
534 |
- $(python_gen_any_dep ' |
535 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
536 |
- dev-python/pygobject:3[${PYTHON_USEDEP}]') |
537 |
- ) |
538 |
-" |
539 |
- |
540 |
-python_check_deps() { |
541 |
- if use introspection; then |
542 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
543 |
- fi |
544 |
- if use test; then |
545 |
- has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
546 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
547 |
- fi |
548 |
-} |
549 |
- |
550 |
-sysfs_deprecated_check() { |
551 |
- ebegin "Checking for SYSFS_DEPRECATED support" |
552 |
- |
553 |
- if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
554 |
- eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
555 |
- eerror "or NetworkManager will not work correctly." |
556 |
- eerror "See https://bugs.gentoo.org/333639 for more info." |
557 |
- die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
558 |
- fi |
559 |
- eend $? |
560 |
-} |
561 |
- |
562 |
-pkg_pretend() { |
563 |
- if use kernel_linux; then |
564 |
- get_version |
565 |
- if linux_config_exists; then |
566 |
- sysfs_deprecated_check |
567 |
- else |
568 |
- ewarn "Was unable to determine your kernel .config" |
569 |
- ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
570 |
- ewarn "See https://bugs.gentoo.org/333639 for more info." |
571 |
- fi |
572 |
- fi |
573 |
-} |
574 |
- |
575 |
-pkg_setup() { |
576 |
- if use connection-sharing; then |
577 |
- if kernel_is lt 5 1; then |
578 |
- CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4" |
579 |
- else |
580 |
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE" |
581 |
- fi |
582 |
- linux-info_pkg_setup |
583 |
- fi |
584 |
- |
585 |
- if use introspection || use test; then |
586 |
- python-any-r1_pkg_setup |
587 |
- fi |
588 |
- |
589 |
- # bug 809695 |
590 |
- if tc-is-clang && use lto; then |
591 |
- eerror "Clang does not support -flto-partition" |
592 |
- die "Please use gcc or turn off USE=lto flag when building with clang" |
593 |
- fi |
594 |
-} |
595 |
- |
596 |
-src_prepare() { |
597 |
- DOC_CONTENTS="To modify system network connections without needing to enter the |
598 |
- root password, add your user account to the 'plugdev' group." |
599 |
- |
600 |
- default |
601 |
- use vala && vala_src_prepare |
602 |
- |
603 |
- sed -i \ |
604 |
- -e 's#/usr/bin/sed#/bin/sed#' \ |
605 |
- data/84-nm-drivers.rules \ |
606 |
- || die |
607 |
-} |
608 |
- |
609 |
-multilib_src_configure() { |
610 |
- local emesonargs=( |
611 |
- --localstatedir="${EPREFIX}/var" |
612 |
- |
613 |
- -Dsystemdsystemunitdir=$(systemd_get_systemunitdir) |
614 |
- -Dsystem_ca_path=/etc/ssl/certs |
615 |
- -Dudev_dir=$(get_udevdir) |
616 |
- -Ddbus_conf_dir=/usr/share/dbus-1/system.d |
617 |
- -Dkernel_firmware_dir=/lib/firmware |
618 |
- -Diptables=/sbin/iptables |
619 |
- -Dnft=/sbin/nft |
620 |
- -Ddnsmasq=/usr/sbin/dnsmasq |
621 |
- #-Ddnssec_trigger= |
622 |
- |
623 |
- -Ddist_version=${PVR} |
624 |
- $(meson_native_use_bool policykit polkit) |
625 |
- $(meson_native_use_bool policykit config_auth_polkit_default) |
626 |
- -Dmodify_system=true |
627 |
- -Dpolkit_agent_helper_1=/usr/lib/polkit-1/polkit-agent-helper-1 |
628 |
- $(meson_native_use_bool selinux) |
629 |
- $(meson_native_use_bool systemd systemd_journal) |
630 |
- -Dhostname_persist=gentoo |
631 |
- -Dlibaudit=$(multilib_native_usex audit) |
632 |
- |
633 |
- $(meson_native_use_bool wext) |
634 |
- $(meson_native_use_bool wifi) |
635 |
- $(meson_native_use_bool iwd) |
636 |
- $(meson_native_use_bool ppp) |
637 |
- -Dpppd=/usr/sbin/pppd |
638 |
- $(meson_native_use_bool modemmanager modem_manager) |
639 |
- $(meson_native_use_bool ofono) |
640 |
- $(meson_native_use_bool concheck) |
641 |
- $(meson_native_use_bool teamd teamdctl) |
642 |
- $(meson_native_use_bool ovs) |
643 |
- $(meson_native_use_bool tools nmcli) |
644 |
- $(meson_native_use_bool tools nmtui) |
645 |
- $(meson_native_use_bool tools nm_cloud_setup) |
646 |
- $(meson_native_use_bool bluetooth bluez5_dun) |
647 |
- -Debpf=true |
648 |
- |
649 |
- -Dconfig_plugins_default=keyfile |
650 |
- -Difcfg_rh=false |
651 |
- -Difupdown=false |
652 |
- |
653 |
- $(meson_native_use_feature resolvconf) |
654 |
- -Dnetconfig=disable |
655 |
- -Dconfig_dns_rc_manager_default=symlink |
656 |
- |
657 |
- $(meson_feature dhclient) |
658 |
- -Ddhcpcanon=disable |
659 |
- $(meson_feature dhcpcd) |
660 |
- |
661 |
- $(meson_native_use_bool introspection) |
662 |
- $(meson_native_use_bool vala vapi) |
663 |
- $(meson_native_use_bool gtk-doc docs) |
664 |
- -Dtests=$(multilib_native_usex test) |
665 |
- $(meson_native_true firewalld_zone) |
666 |
- -Dmore_asserts=0 |
667 |
- $(meson_use debug more_logging) |
668 |
- -Dvalgrind=no |
669 |
- -Dvalgrind_suppressions= |
670 |
- -Dld_gc=false |
671 |
- $(meson_native_use_bool psl libpsl) |
672 |
- -Dqt=false |
673 |
- |
674 |
- $(meson_use lto b_lto) |
675 |
- ) |
676 |
- |
677 |
- if multilib_is_native_abi && use systemd; then |
678 |
- emesonargs+=( -Dsession_tracking_consolekit=false ) |
679 |
- emesonargs+=( -Dsession_tracking=systemd ) |
680 |
- emesonargs+=( -Dsuspend_resume=systemd ) |
681 |
- elif multilib_is_native_abi && use elogind; then |
682 |
- emesonargs+=( -Dsession_tracking_consolekit=false ) |
683 |
- emesonargs+=( -Dsession_tracking=elogind ) |
684 |
- emesonargs+=( -Dsuspend_resume=elogind ) |
685 |
- else |
686 |
- emesonargs+=( -Dsession_tracking_consolekit=false ) |
687 |
- emesonargs+=( -Dsession_tracking=no ) |
688 |
- emesonargs+=( -Dsuspend_resume=auto ) |
689 |
- fi |
690 |
- |
691 |
- if multilib_is_native_abi && use syslog; then |
692 |
- emesonargs+=( -Dconfig_logging_backend_default=syslog ) |
693 |
- elif multilib_is_native_abi && use systemd; then |
694 |
- emesonargs+=( -Dconfig_logging_backend_default=journal ) |
695 |
- else |
696 |
- emesonargs+=( -Dconfig_logging_backend_default=default ) |
697 |
- fi |
698 |
- |
699 |
- if multilib_is_native_abi && use dhclient; then |
700 |
- emesonargs+=( -Dconfig_dhcp_default=dhclient ) |
701 |
- elif multilib_is_native_abi && use dhcpcd; then |
702 |
- emesonargs+=( -Dconfig_dhcp_default=dhcpcd ) |
703 |
- else |
704 |
- emesonargs+=( -Dconfig_dhcp_default=internal ) |
705 |
- fi |
706 |
- |
707 |
- if use nss; then |
708 |
- emesonargs+=( -Dcrypto=nss ) |
709 |
- else |
710 |
- emesonargs+=( -Dcrypto=gnutls ) |
711 |
- fi |
712 |
- |
713 |
- # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
714 |
- if use ppp; then |
715 |
- local PPPD_VER=`best_version net-dialup/ppp` |
716 |
- PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
717 |
- PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
718 |
- emesonargs+=( -Dpppd_plugin_dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
719 |
- fi |
720 |
- |
721 |
- meson_src_configure |
722 |
-} |
723 |
- |
724 |
-multilib_src_test() { |
725 |
- if use test && multilib_is_native_abi; then |
726 |
- python_setup |
727 |
- virtx meson_src_test |
728 |
- fi |
729 |
-} |
730 |
- |
731 |
-multilib_src_install() { |
732 |
- meson_src_install |
733 |
- if ! multilib_is_native_abi; then |
734 |
- rm -r "${ED}"/{etc,usr/{bin,lib/NetworkManager,share},var} || die |
735 |
- fi |
736 |
-} |
737 |
- |
738 |
-multilib_src_install_all() { |
739 |
- ! use systemd && readme.gentoo_create_doc |
740 |
- |
741 |
- newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager |
742 |
- newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
743 |
- |
744 |
- # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
745 |
- keepdir /etc/NetworkManager/dispatcher.d |
746 |
- |
747 |
- # Provide openrc net dependency only when nm is connected |
748 |
- exeinto /etc/NetworkManager/dispatcher.d |
749 |
- newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status |
750 |
- sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
751 |
- -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
752 |
- |
753 |
- keepdir /etc/NetworkManager/system-connections |
754 |
- chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594 |
755 |
- |
756 |
- # Allow users in plugdev group to modify system connections |
757 |
- insinto /usr/share/polkit-1/rules.d/ |
758 |
- doins "${FILESDIR}"/01-org.freedesktop.NetworkManager.settings.modify.system.rules |
759 |
- |
760 |
- insinto /usr/lib/NetworkManager/conf.d #702476 |
761 |
- doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf |
762 |
- |
763 |
- if use iwd; then |
764 |
- # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir |
765 |
- cat <<-EOF > "${ED}"/usr/lib/NetworkManager/conf.d/iwd.conf || die |
766 |
- [device] |
767 |
- wifi.backend=iwd |
768 |
- EOF |
769 |
- fi |
770 |
- |
771 |
- mv "${ED}"/usr/share/doc/{NetworkManager/examples/,${PF}} || die |
772 |
- rmdir "${ED}"/usr/share/doc/NetworkManager || die |
773 |
- |
774 |
- # Empty |
775 |
- rmdir "${ED}"/var{/lib{/NetworkManager,},} || die |
776 |
-} |
777 |
- |
778 |
-pkg_postinst() { |
779 |
- systemd_reenable NetworkManager.service |
780 |
- ! use systemd && readme.gentoo_print_elog |
781 |
- |
782 |
- if [[ -e "${EROOT}/etc/NetworkManager/nm-system-settings.conf" ]]; then |
783 |
- ewarn "The ${PN} system configuration file has moved to a new location." |
784 |
- ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
785 |
- ewarn "to ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
786 |
- ewarn |
787 |
- ewarn "After doing so, you can remove ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
788 |
- fi |
789 |
- |
790 |
- # NM fallbacks to plugin specified at compile time (upstream bug #738611) |
791 |
- # but still show a warning to remember people to have cleaner config file |
792 |
- if [[ -e "${EROOT}/etc/NetworkManager/NetworkManager.conf" ]]; then |
793 |
- if grep plugins "${EROOT}/etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then |
794 |
- ewarn |
795 |
- ewarn "You seem to use 'ifnet' plugin in ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
796 |
- ewarn "Since it won't be used, you will need to stop setting ifnet plugin there." |
797 |
- ewarn |
798 |
- fi |
799 |
- fi |
800 |
- |
801 |
- # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457 |
802 |
- if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then |
803 |
- ewarn "You have psk-flags=1 setting in above files, you will need to" |
804 |
- ewarn "either reconfigure affected networks or, at least, set the flag" |
805 |
- ewarn "value to '0'." |
806 |
- fi |
807 |
- |
808 |
- if use dhclient || use dhcpcd; then |
809 |
- ewarn "You have enabled USE=dhclient and/or USE=dhcpcd, but NetworkManager since" |
810 |
- ewarn "version 1.20 defaults to the internal DHCP client. If the internal client" |
811 |
- ewarn "works for you, and you're happy with, the alternative USE flags can be" |
812 |
- ewarn "disabled. If you want to use dhclient or dhcpcd, then you need to tweak" |
813 |
- ewarn "the main.dhcp configuration option to use one of them instead of internal." |
814 |
- fi |
815 |
-} |
816 |
|
817 |
diff --git a/net-misc/networkmanager/networkmanager-1.32.4-r1.ebuild b/net-misc/networkmanager/networkmanager-1.32.4-r1.ebuild |
818 |
deleted file mode 100644 |
819 |
index d378b6279029..000000000000 |
820 |
--- a/net-misc/networkmanager/networkmanager-1.32.4-r1.ebuild |
821 |
+++ /dev/null |
822 |
@@ -1,349 +0,0 @@ |
823 |
-# Copyright 1999-2022 Gentoo Authors |
824 |
-# Distributed under the terms of the GNU General Public License v2 |
825 |
- |
826 |
-EAPI=7 |
827 |
-GNOME_ORG_MODULE="NetworkManager" |
828 |
-VALA_USE_DEPEND="vapigen" |
829 |
-PYTHON_COMPAT=( python3_{7..10} ) |
830 |
- |
831 |
-inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal |
832 |
- |
833 |
-DESCRIPTION="A set of co-operative tools that make networking simple and straightforward" |
834 |
-HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
835 |
- |
836 |
-LICENSE="GPL-2+ LGPL-2.1+" |
837 |
-SLOT="0" |
838 |
- |
839 |
-IUSE="audit bluetooth connection-sharing dhclient dhcpcd elogind gnutls +introspection iptables iwd +nss nftables +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi" |
840 |
-RESTRICT="!test? ( test )" |
841 |
- |
842 |
-REQUIRED_USE=" |
843 |
- bluetooth? ( modemmanager ) |
844 |
- connection-sharing? ( || ( iptables nftables ) ) |
845 |
- iwd? ( wifi ) |
846 |
- vala? ( introspection ) |
847 |
- wext? ( wifi ) |
848 |
- || ( nss gnutls ) |
849 |
- ?? ( elogind systemd ) |
850 |
-" |
851 |
- |
852 |
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~sparc x86" |
853 |
- |
854 |
-# gobject-introspection-0.10.3 is needed due to gnome bug 642300 |
855 |
-# wpa_supplicant-0.7.3-r3 is needed due to bug 359271 |
856 |
-COMMON_DEPEND=" |
857 |
- >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] |
858 |
- policykit? ( >=sys-auth/polkit-0.106 ) |
859 |
- net-libs/libndp[${MULTILIB_USEDEP}] |
860 |
- >=net-misc/curl-7.24 |
861 |
- net-misc/iputils |
862 |
- sys-apps/util-linux[${MULTILIB_USEDEP}] |
863 |
- sys-libs/readline:0= |
864 |
- >=virtual/libudev-175:=[${MULTILIB_USEDEP}] |
865 |
- audit? ( sys-process/audit ) |
866 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
867 |
- connection-sharing? ( |
868 |
- net-dns/dnsmasq[dbus,dhcp] |
869 |
- iptables? ( net-firewall/iptables ) |
870 |
- nftables? ( net-firewall/nftables ) |
871 |
- ) |
872 |
- dhclient? ( >=net-misc/dhcp-4[client] ) |
873 |
- dhcpcd? ( >=net-misc/dhcpcd-9.3.3 ) |
874 |
- elogind? ( >=sys-auth/elogind-219 ) |
875 |
- introspection? ( >=dev-libs/gobject-introspection-0.10.3:= ) |
876 |
- modemmanager? ( >=net-misc/modemmanager-0.7.991:0= |
877 |
- net-misc/mobile-broadband-provider-info ) |
878 |
- ncurses? ( >=dev-libs/newt-0.52.15 ) |
879 |
- nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] ) |
880 |
- !nss? ( gnutls? ( |
881 |
- dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}] |
882 |
- >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) ) |
883 |
- ofono? ( net-misc/ofono ) |
884 |
- ovs? ( dev-libs/jansson:= ) |
885 |
- ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] ) |
886 |
- resolvconf? ( net-dns/openresolv ) |
887 |
- selinux? ( sys-libs/libselinux ) |
888 |
- systemd? ( >=sys-apps/systemd-209:0= ) |
889 |
- teamd? ( |
890 |
- dev-libs/jansson:= |
891 |
- >=net-misc/libteam-1.9 |
892 |
- ) |
893 |
-" |
894 |
-RDEPEND="${COMMON_DEPEND} |
895 |
- acct-group/plugdev |
896 |
- || ( |
897 |
- net-misc/iputils[arping(+)] |
898 |
- net-analyzer/arping |
899 |
- ) |
900 |
- wifi? ( |
901 |
- !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
902 |
- iwd? ( net-wireless/iwd ) |
903 |
- ) |
904 |
-" |
905 |
-DEPEND="${COMMON_DEPEND} |
906 |
- >=sys-kernel/linux-headers-3.18 |
907 |
- " |
908 |
-BDEPEND=" |
909 |
- dev-util/gdbus-codegen |
910 |
- dev-util/glib-utils |
911 |
- dev-util/gtk-doc-am |
912 |
- >=dev-util/intltool-0.40 |
913 |
- >=sys-devel/gettext-0.17 |
914 |
- virtual/pkgconfig |
915 |
- introspection? ( |
916 |
- $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]') |
917 |
- dev-lang/perl |
918 |
- dev-libs/libxslt |
919 |
- ) |
920 |
- vala? ( $(vala_depend) ) |
921 |
- test? ( |
922 |
- $(python_gen_any_dep ' |
923 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
924 |
- dev-python/pygobject:3[${PYTHON_USEDEP}]') |
925 |
- ) |
926 |
-" |
927 |
- |
928 |
-python_check_deps() { |
929 |
- if use introspection; then |
930 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
931 |
- fi |
932 |
- if use test; then |
933 |
- has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
934 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
935 |
- fi |
936 |
-} |
937 |
- |
938 |
-sysfs_deprecated_check() { |
939 |
- ebegin "Checking for SYSFS_DEPRECATED support" |
940 |
- |
941 |
- if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
942 |
- eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
943 |
- eerror "or NetworkManager will not work correctly." |
944 |
- eerror "See https://bugs.gentoo.org/333639 for more info." |
945 |
- die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
946 |
- fi |
947 |
- eend $? |
948 |
-} |
949 |
- |
950 |
-pkg_pretend() { |
951 |
- if use kernel_linux; then |
952 |
- get_version |
953 |
- if linux_config_exists; then |
954 |
- sysfs_deprecated_check |
955 |
- else |
956 |
- ewarn "Was unable to determine your kernel .config" |
957 |
- ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
958 |
- ewarn "See https://bugs.gentoo.org/333639 for more info." |
959 |
- fi |
960 |
- |
961 |
- fi |
962 |
-} |
963 |
- |
964 |
-pkg_setup() { |
965 |
- if use connection-sharing; then |
966 |
- if kernel_is lt 5 1; then |
967 |
- CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4" |
968 |
- else |
969 |
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE" |
970 |
- fi |
971 |
- linux-info_pkg_setup |
972 |
- fi |
973 |
- if use introspection || use test; then |
974 |
- python-any-r1_pkg_setup |
975 |
- fi |
976 |
-} |
977 |
- |
978 |
-src_prepare() { |
979 |
- DOC_CONTENTS="To modify system network connections without needing to enter the |
980 |
- root password, add your user account to the 'plugdev' group." |
981 |
- |
982 |
- use vala && vala_src_prepare |
983 |
- gnome2_src_prepare |
984 |
- |
985 |
- sed -i \ |
986 |
- -e 's#/usr/bin/sed#/bin/sed#' \ |
987 |
- data/84-nm-drivers.rules \ |
988 |
- || die |
989 |
-} |
990 |
- |
991 |
-multilib_src_configure() { |
992 |
- local myconf=( |
993 |
- --disable-more-warnings |
994 |
- --disable-static |
995 |
- --localstatedir=/var |
996 |
- --with-runstatedir=/run |
997 |
- --disable-lto |
998 |
- --disable-qt |
999 |
- --without-netconfig |
1000 |
- --with-dbus-sys-dir=/etc/dbus-1/system.d |
1001 |
- $(multilib_native_with nmcli) |
1002 |
- --with-udev-dir="$(get_udevdir)" |
1003 |
- --with-config-plugins-default=keyfile |
1004 |
- --with-iptables=/sbin/iptables |
1005 |
- --with-nft=/sbin/nft |
1006 |
- --with-ebpf=yes |
1007 |
- $(multilib_native_enable concheck) |
1008 |
- --with-nm-cloud-setup=$(multilib_is_native_abi && echo yes || echo no) |
1009 |
- --with-crypto=$(usex nss nss gnutls) |
1010 |
- # elogind lacks multilib for now, and consolekit doesn't require linking against, so we use it as a fake option |
1011 |
- # This SHOULD be removable once elogind has that. We abuse the fact that 'consolekit' does nothing at buildtime. |
1012 |
- # (There is no off switch, and we do not support upower.) |
1013 |
- # bug #747358 |
1014 |
- --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit)) |
1015 |
- --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit)) |
1016 |
- $(multilib_native_use_with audit libaudit) |
1017 |
- $(multilib_native_use_enable bluetooth bluez5-dun) |
1018 |
- --without-dhcpcanon |
1019 |
- $(use_with dhclient) |
1020 |
- $(use_with dhcpcd) |
1021 |
- --with-config-dhcp-default=internal |
1022 |
- $(multilib_native_use_enable introspection) |
1023 |
- $(multilib_native_use_enable ppp) |
1024 |
- --without-libpsl |
1025 |
- $(multilib_native_use_with modemmanager modem-manager-1) |
1026 |
- $(multilib_native_use_with ncurses nmtui) |
1027 |
- $(multilib_native_use_with ofono) |
1028 |
- $(multilib_native_use_enable ovs) |
1029 |
- $(multilib_native_use_enable policykit polkit) |
1030 |
- $(multilib_native_use_with resolvconf) |
1031 |
- $(multilib_native_use_with selinux) |
1032 |
- $(multilib_native_use_with systemd systemd-journal) |
1033 |
- $(multilib_native_use_enable teamd teamdctl) |
1034 |
- $(multilib_native_use_enable test tests) |
1035 |
- $(multilib_native_use_enable vala) |
1036 |
- --without-valgrind |
1037 |
- $(multilib_native_use_with wifi iwd) |
1038 |
- $(multilib_native_use_with wext) |
1039 |
- $(multilib_native_use_enable wifi) |
1040 |
- ) |
1041 |
- |
1042 |
- # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
1043 |
- if use ppp; then |
1044 |
- local PPPD_VER=`best_version net-dialup/ppp` |
1045 |
- PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
1046 |
- PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
1047 |
- myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
1048 |
- fi |
1049 |
- |
1050 |
- # unit files directory needs to be passed only when systemd is enabled, |
1051 |
- # otherwise systemd support is not disabled completely, bug #524534 |
1052 |
- use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" ) |
1053 |
- |
1054 |
- if multilib_is_native_abi; then |
1055 |
- # work-around man out-of-source brokenness, must be done before configure |
1056 |
- ln -s "${S}/docs" docs || die |
1057 |
- ln -s "${S}/man" man || die |
1058 |
- fi |
1059 |
- |
1060 |
- ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" |
1061 |
-} |
1062 |
- |
1063 |
-multilib_src_compile() { |
1064 |
- if multilib_is_native_abi; then |
1065 |
- emake |
1066 |
- else |
1067 |
- local targets=( |
1068 |
- src/libnm-client-impl/libnm.la |
1069 |
- ) |
1070 |
- emake "${targets[@]}" |
1071 |
- fi |
1072 |
-} |
1073 |
- |
1074 |
-multilib_src_test() { |
1075 |
- if use test && multilib_is_native_abi; then |
1076 |
- python_setup |
1077 |
- virtx emake check |
1078 |
- fi |
1079 |
-} |
1080 |
- |
1081 |
-multilib_src_install() { |
1082 |
- if multilib_is_native_abi; then |
1083 |
- # Install completions at proper place, bug #465100 |
1084 |
- gnome2_src_install completiondir="$(get_bashcompdir)" |
1085 |
- insinto /usr/lib/NetworkManager/conf.d #702476 |
1086 |
- doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf |
1087 |
- else |
1088 |
- local targets=( |
1089 |
- install-libLTLIBRARIES |
1090 |
- install-libnmincludeHEADERS |
1091 |
- install-nodist_libnmincludeHEADERS |
1092 |
- install-pkgconfigDATA |
1093 |
- ) |
1094 |
- emake DESTDIR="${D}" "${targets[@]}" |
1095 |
- fi |
1096 |
-} |
1097 |
- |
1098 |
-multilib_src_install_all() { |
1099 |
- einstalldocs |
1100 |
- ! use systemd && readme.gentoo_create_doc |
1101 |
- |
1102 |
- newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager |
1103 |
- newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
1104 |
- |
1105 |
- # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
1106 |
- keepdir /etc/NetworkManager/dispatcher.d |
1107 |
- |
1108 |
- # Provide openrc net dependency only when nm is connected |
1109 |
- exeinto /etc/NetworkManager/dispatcher.d |
1110 |
- newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status |
1111 |
- sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
1112 |
- -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
1113 |
- |
1114 |
- keepdir /etc/NetworkManager/system-connections |
1115 |
- chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594 |
1116 |
- |
1117 |
- # Allow users in plugdev group to modify system connections |
1118 |
- insinto /usr/share/polkit-1/rules.d/ |
1119 |
- doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
1120 |
- |
1121 |
- if use iwd; then |
1122 |
- # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir |
1123 |
- cat <<-EOF > "${ED}"/usr/lib/NetworkManager/conf.d/iwd.conf |
1124 |
- [device] |
1125 |
- wifi.backend=iwd |
1126 |
- EOF |
1127 |
- fi |
1128 |
- |
1129 |
- # Empty |
1130 |
- rmdir "${ED}"/var{/lib{/NetworkManager,},} || die |
1131 |
-} |
1132 |
- |
1133 |
-pkg_postinst() { |
1134 |
- gnome2_pkg_postinst |
1135 |
- systemd_reenable NetworkManager.service |
1136 |
- ! use systemd && readme.gentoo_print_elog |
1137 |
- |
1138 |
- if [[ -e "${EROOT}/etc/NetworkManager/nm-system-settings.conf" ]]; then |
1139 |
- ewarn "The ${PN} system configuration file has moved to a new location." |
1140 |
- ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
1141 |
- ewarn "to ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
1142 |
- ewarn |
1143 |
- ewarn "After doing so, you can remove ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
1144 |
- fi |
1145 |
- |
1146 |
- # NM fallbacks to plugin specified at compile time (upstream bug #738611) |
1147 |
- # but still show a warning to remember people to have cleaner config file |
1148 |
- if [[ -e "${EROOT}/etc/NetworkManager/NetworkManager.conf" ]]; then |
1149 |
- if grep plugins "${EROOT}/etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then |
1150 |
- ewarn |
1151 |
- ewarn "You seem to use 'ifnet' plugin in ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
1152 |
- ewarn "Since it won't be used, you will need to stop setting ifnet plugin there." |
1153 |
- ewarn |
1154 |
- fi |
1155 |
- fi |
1156 |
- |
1157 |
- # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457 |
1158 |
- if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then |
1159 |
- ewarn "You have psk-flags=1 setting in above files, you will need to" |
1160 |
- ewarn "either reconfigure affected networks or, at least, set the flag" |
1161 |
- ewarn "value to '0'." |
1162 |
- fi |
1163 |
- |
1164 |
- if use dhclient || use dhcpcd; then |
1165 |
- ewarn "You have enabled USE=dhclient and/or USE=dhcpcd, but NetworkManager since" |
1166 |
- ewarn "version 1.20 defaults to the internal DHCP client. If the internal client" |
1167 |
- ewarn "works for you, and you're happy with, the alternative USE flags can be" |
1168 |
- ewarn "disabled. If you want to use dhclient or dhcpcd, then you need to tweak" |
1169 |
- ewarn "the main.dhcp configuration option to use one of them instead of internal." |
1170 |
- fi |
1171 |
-} |
1172 |
|
1173 |
diff --git a/net-misc/networkmanager/networkmanager-1.32.8-r1.ebuild b/net-misc/networkmanager/networkmanager-1.32.8-r1.ebuild |
1174 |
deleted file mode 100644 |
1175 |
index 1306142b49e8..000000000000 |
1176 |
--- a/net-misc/networkmanager/networkmanager-1.32.8-r1.ebuild |
1177 |
+++ /dev/null |
1178 |
@@ -1,349 +0,0 @@ |
1179 |
-# Copyright 1999-2022 Gentoo Authors |
1180 |
-# Distributed under the terms of the GNU General Public License v2 |
1181 |
- |
1182 |
-EAPI=7 |
1183 |
-GNOME_ORG_MODULE="NetworkManager" |
1184 |
-VALA_USE_DEPEND="vapigen" |
1185 |
-PYTHON_COMPAT=( python3_{7..10} ) |
1186 |
- |
1187 |
-inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal |
1188 |
- |
1189 |
-DESCRIPTION="A set of co-operative tools that make networking simple and straightforward" |
1190 |
-HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
1191 |
- |
1192 |
-LICENSE="GPL-2+ LGPL-2.1+" |
1193 |
-SLOT="0" |
1194 |
- |
1195 |
-IUSE="audit bluetooth connection-sharing dhclient dhcpcd elogind gnutls +introspection iptables iwd +nss nftables +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi" |
1196 |
-RESTRICT="!test? ( test )" |
1197 |
- |
1198 |
-REQUIRED_USE=" |
1199 |
- bluetooth? ( modemmanager ) |
1200 |
- connection-sharing? ( || ( iptables nftables ) ) |
1201 |
- iwd? ( wifi ) |
1202 |
- vala? ( introspection ) |
1203 |
- wext? ( wifi ) |
1204 |
- || ( nss gnutls ) |
1205 |
- ?? ( elogind systemd ) |
1206 |
-" |
1207 |
- |
1208 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
1209 |
- |
1210 |
-# gobject-introspection-0.10.3 is needed due to gnome bug 642300 |
1211 |
-# wpa_supplicant-0.7.3-r3 is needed due to bug 359271 |
1212 |
-COMMON_DEPEND=" |
1213 |
- >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] |
1214 |
- policykit? ( >=sys-auth/polkit-0.106 ) |
1215 |
- net-libs/libndp[${MULTILIB_USEDEP}] |
1216 |
- >=net-misc/curl-7.24 |
1217 |
- net-misc/iputils |
1218 |
- sys-apps/util-linux[${MULTILIB_USEDEP}] |
1219 |
- sys-libs/readline:0= |
1220 |
- >=virtual/libudev-175:=[${MULTILIB_USEDEP}] |
1221 |
- audit? ( sys-process/audit ) |
1222 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
1223 |
- connection-sharing? ( |
1224 |
- net-dns/dnsmasq[dbus,dhcp] |
1225 |
- iptables? ( net-firewall/iptables ) |
1226 |
- nftables? ( net-firewall/nftables ) |
1227 |
- ) |
1228 |
- dhclient? ( >=net-misc/dhcp-4[client] ) |
1229 |
- dhcpcd? ( >=net-misc/dhcpcd-9.3.3 ) |
1230 |
- elogind? ( >=sys-auth/elogind-219 ) |
1231 |
- introspection? ( >=dev-libs/gobject-introspection-0.10.3:= ) |
1232 |
- modemmanager? ( >=net-misc/modemmanager-0.7.991:0= |
1233 |
- net-misc/mobile-broadband-provider-info ) |
1234 |
- ncurses? ( >=dev-libs/newt-0.52.15 ) |
1235 |
- nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] ) |
1236 |
- !nss? ( gnutls? ( |
1237 |
- dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}] |
1238 |
- >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) ) |
1239 |
- ofono? ( net-misc/ofono ) |
1240 |
- ovs? ( dev-libs/jansson:= ) |
1241 |
- ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] ) |
1242 |
- resolvconf? ( net-dns/openresolv ) |
1243 |
- selinux? ( sys-libs/libselinux ) |
1244 |
- systemd? ( >=sys-apps/systemd-209:0= ) |
1245 |
- teamd? ( |
1246 |
- dev-libs/jansson:= |
1247 |
- >=net-misc/libteam-1.9 |
1248 |
- ) |
1249 |
-" |
1250 |
-RDEPEND="${COMMON_DEPEND} |
1251 |
- acct-group/plugdev |
1252 |
- || ( |
1253 |
- net-misc/iputils[arping(+)] |
1254 |
- net-analyzer/arping |
1255 |
- ) |
1256 |
- wifi? ( |
1257 |
- !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
1258 |
- iwd? ( net-wireless/iwd ) |
1259 |
- ) |
1260 |
-" |
1261 |
-DEPEND="${COMMON_DEPEND} |
1262 |
- >=sys-kernel/linux-headers-3.18 |
1263 |
- " |
1264 |
-BDEPEND=" |
1265 |
- dev-util/gdbus-codegen |
1266 |
- dev-util/glib-utils |
1267 |
- dev-util/gtk-doc-am |
1268 |
- >=dev-util/intltool-0.40 |
1269 |
- >=sys-devel/gettext-0.17 |
1270 |
- virtual/pkgconfig |
1271 |
- introspection? ( |
1272 |
- $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]') |
1273 |
- dev-lang/perl |
1274 |
- dev-libs/libxslt |
1275 |
- ) |
1276 |
- vala? ( $(vala_depend) ) |
1277 |
- test? ( |
1278 |
- $(python_gen_any_dep ' |
1279 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
1280 |
- dev-python/pygobject:3[${PYTHON_USEDEP}]') |
1281 |
- ) |
1282 |
-" |
1283 |
- |
1284 |
-python_check_deps() { |
1285 |
- if use introspection; then |
1286 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
1287 |
- fi |
1288 |
- if use test; then |
1289 |
- has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
1290 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
1291 |
- fi |
1292 |
-} |
1293 |
- |
1294 |
-sysfs_deprecated_check() { |
1295 |
- ebegin "Checking for SYSFS_DEPRECATED support" |
1296 |
- |
1297 |
- if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
1298 |
- eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
1299 |
- eerror "or NetworkManager will not work correctly." |
1300 |
- eerror "See https://bugs.gentoo.org/333639 for more info." |
1301 |
- die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
1302 |
- fi |
1303 |
- eend $? |
1304 |
-} |
1305 |
- |
1306 |
-pkg_pretend() { |
1307 |
- if use kernel_linux; then |
1308 |
- get_version |
1309 |
- if linux_config_exists; then |
1310 |
- sysfs_deprecated_check |
1311 |
- else |
1312 |
- ewarn "Was unable to determine your kernel .config" |
1313 |
- ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
1314 |
- ewarn "See https://bugs.gentoo.org/333639 for more info." |
1315 |
- fi |
1316 |
- |
1317 |
- fi |
1318 |
-} |
1319 |
- |
1320 |
-pkg_setup() { |
1321 |
- if use connection-sharing; then |
1322 |
- if kernel_is lt 5 1; then |
1323 |
- CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4" |
1324 |
- else |
1325 |
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE" |
1326 |
- fi |
1327 |
- linux-info_pkg_setup |
1328 |
- fi |
1329 |
- if use introspection || use test; then |
1330 |
- python-any-r1_pkg_setup |
1331 |
- fi |
1332 |
-} |
1333 |
- |
1334 |
-src_prepare() { |
1335 |
- DOC_CONTENTS="To modify system network connections without needing to enter the |
1336 |
- root password, add your user account to the 'plugdev' group." |
1337 |
- |
1338 |
- use vala && vala_src_prepare |
1339 |
- gnome2_src_prepare |
1340 |
- |
1341 |
- sed -i \ |
1342 |
- -e 's#/usr/bin/sed#/bin/sed#' \ |
1343 |
- data/84-nm-drivers.rules \ |
1344 |
- || die |
1345 |
-} |
1346 |
- |
1347 |
-multilib_src_configure() { |
1348 |
- local myconf=( |
1349 |
- --disable-more-warnings |
1350 |
- --disable-static |
1351 |
- --localstatedir=/var |
1352 |
- --with-runstatedir=/run |
1353 |
- --disable-lto |
1354 |
- --disable-qt |
1355 |
- --without-netconfig |
1356 |
- --with-dbus-sys-dir=/etc/dbus-1/system.d |
1357 |
- $(multilib_native_with nmcli) |
1358 |
- --with-udev-dir="$(get_udevdir)" |
1359 |
- --with-config-plugins-default=keyfile |
1360 |
- --with-iptables=/sbin/iptables |
1361 |
- --with-nft=/sbin/nft |
1362 |
- --with-ebpf=yes |
1363 |
- $(multilib_native_enable concheck) |
1364 |
- --with-nm-cloud-setup=$(multilib_is_native_abi && echo yes || echo no) |
1365 |
- --with-crypto=$(usex nss nss gnutls) |
1366 |
- # elogind lacks multilib for now, and consolekit doesn't require linking against, so we use it as a fake option |
1367 |
- # This SHOULD be removable once elogind has that. We abuse the fact that 'consolekit' does nothing at buildtime. |
1368 |
- # (There is no off switch, and we do not support upower.) |
1369 |
- # bug #747358 |
1370 |
- --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit)) |
1371 |
- --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit)) |
1372 |
- $(multilib_native_use_with audit libaudit) |
1373 |
- $(multilib_native_use_enable bluetooth bluez5-dun) |
1374 |
- --without-dhcpcanon |
1375 |
- $(use_with dhclient) |
1376 |
- $(use_with dhcpcd) |
1377 |
- --with-config-dhcp-default=internal |
1378 |
- $(multilib_native_use_enable introspection) |
1379 |
- $(multilib_native_use_enable ppp) |
1380 |
- --without-libpsl |
1381 |
- $(multilib_native_use_with modemmanager modem-manager-1) |
1382 |
- $(multilib_native_use_with ncurses nmtui) |
1383 |
- $(multilib_native_use_with ofono) |
1384 |
- $(multilib_native_use_enable ovs) |
1385 |
- $(multilib_native_use_enable policykit polkit) |
1386 |
- $(multilib_native_use_with resolvconf) |
1387 |
- $(multilib_native_use_with selinux) |
1388 |
- $(multilib_native_use_with systemd systemd-journal) |
1389 |
- $(multilib_native_use_enable teamd teamdctl) |
1390 |
- $(multilib_native_use_enable test tests) |
1391 |
- $(multilib_native_use_enable vala) |
1392 |
- --without-valgrind |
1393 |
- $(multilib_native_use_with wifi iwd) |
1394 |
- $(multilib_native_use_with wext) |
1395 |
- $(multilib_native_use_enable wifi) |
1396 |
- ) |
1397 |
- |
1398 |
- # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
1399 |
- if use ppp; then |
1400 |
- local PPPD_VER=`best_version net-dialup/ppp` |
1401 |
- PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
1402 |
- PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
1403 |
- myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
1404 |
- fi |
1405 |
- |
1406 |
- # unit files directory needs to be passed only when systemd is enabled, |
1407 |
- # otherwise systemd support is not disabled completely, bug #524534 |
1408 |
- use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" ) |
1409 |
- |
1410 |
- if multilib_is_native_abi; then |
1411 |
- # work-around man out-of-source brokenness, must be done before configure |
1412 |
- ln -s "${S}/docs" docs || die |
1413 |
- ln -s "${S}/man" man || die |
1414 |
- fi |
1415 |
- |
1416 |
- ECONF_SOURCE=${S} gnome2_src_configure "${myconf[@]}" |
1417 |
-} |
1418 |
- |
1419 |
-multilib_src_compile() { |
1420 |
- if multilib_is_native_abi; then |
1421 |
- emake |
1422 |
- else |
1423 |
- local targets=( |
1424 |
- src/libnm-client-impl/libnm.la |
1425 |
- ) |
1426 |
- emake "${targets[@]}" |
1427 |
- fi |
1428 |
-} |
1429 |
- |
1430 |
-multilib_src_test() { |
1431 |
- if use test && multilib_is_native_abi; then |
1432 |
- python_setup |
1433 |
- virtx emake check |
1434 |
- fi |
1435 |
-} |
1436 |
- |
1437 |
-multilib_src_install() { |
1438 |
- if multilib_is_native_abi; then |
1439 |
- # Install completions at proper place, bug #465100 |
1440 |
- gnome2_src_install completiondir="$(get_bashcompdir)" |
1441 |
- insinto /usr/lib/NetworkManager/conf.d #702476 |
1442 |
- doins "${S}"/examples/nm-conf.d/31-mac-addr-change.conf |
1443 |
- else |
1444 |
- local targets=( |
1445 |
- install-libLTLIBRARIES |
1446 |
- install-libnmincludeHEADERS |
1447 |
- install-nodist_libnmincludeHEADERS |
1448 |
- install-pkgconfigDATA |
1449 |
- ) |
1450 |
- emake DESTDIR="${D}" "${targets[@]}" |
1451 |
- fi |
1452 |
-} |
1453 |
- |
1454 |
-multilib_src_install_all() { |
1455 |
- einstalldocs |
1456 |
- ! use systemd && readme.gentoo_create_doc |
1457 |
- |
1458 |
- newinitd "${FILESDIR}/init.d.NetworkManager-r2" NetworkManager |
1459 |
- newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
1460 |
- |
1461 |
- # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
1462 |
- keepdir /etc/NetworkManager/dispatcher.d |
1463 |
- |
1464 |
- # Provide openrc net dependency only when nm is connected |
1465 |
- exeinto /etc/NetworkManager/dispatcher.d |
1466 |
- newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status |
1467 |
- sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
1468 |
- -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
1469 |
- |
1470 |
- keepdir /etc/NetworkManager/system-connections |
1471 |
- chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594 |
1472 |
- |
1473 |
- # Allow users in plugdev group to modify system connections |
1474 |
- insinto /usr/share/polkit-1/rules.d/ |
1475 |
- doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
1476 |
- |
1477 |
- if use iwd; then |
1478 |
- # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir |
1479 |
- cat <<-EOF > "${ED}"/usr/lib/NetworkManager/conf.d/iwd.conf |
1480 |
- [device] |
1481 |
- wifi.backend=iwd |
1482 |
- EOF |
1483 |
- fi |
1484 |
- |
1485 |
- # Empty |
1486 |
- rmdir "${ED}"/var{/lib{/NetworkManager,},} || die |
1487 |
-} |
1488 |
- |
1489 |
-pkg_postinst() { |
1490 |
- gnome2_pkg_postinst |
1491 |
- systemd_reenable NetworkManager.service |
1492 |
- ! use systemd && readme.gentoo_print_elog |
1493 |
- |
1494 |
- if [[ -e "${EROOT}/etc/NetworkManager/nm-system-settings.conf" ]]; then |
1495 |
- ewarn "The ${PN} system configuration file has moved to a new location." |
1496 |
- ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
1497 |
- ewarn "to ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
1498 |
- ewarn |
1499 |
- ewarn "After doing so, you can remove ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
1500 |
- fi |
1501 |
- |
1502 |
- # NM fallbacks to plugin specified at compile time (upstream bug #738611) |
1503 |
- # but still show a warning to remember people to have cleaner config file |
1504 |
- if [[ -e "${EROOT}/etc/NetworkManager/NetworkManager.conf" ]]; then |
1505 |
- if grep plugins "${EROOT}/etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then |
1506 |
- ewarn |
1507 |
- ewarn "You seem to use 'ifnet' plugin in ${EROOT}/etc/NetworkManager/NetworkManager.conf" |
1508 |
- ewarn "Since it won't be used, you will need to stop setting ifnet plugin there." |
1509 |
- ewarn |
1510 |
- fi |
1511 |
- fi |
1512 |
- |
1513 |
- # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457 |
1514 |
- if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then |
1515 |
- ewarn "You have psk-flags=1 setting in above files, you will need to" |
1516 |
- ewarn "either reconfigure affected networks or, at least, set the flag" |
1517 |
- ewarn "value to '0'." |
1518 |
- fi |
1519 |
- |
1520 |
- if use dhclient || use dhcpcd; then |
1521 |
- ewarn "You have enabled USE=dhclient and/or USE=dhcpcd, but NetworkManager since" |
1522 |
- ewarn "version 1.20 defaults to the internal DHCP client. If the internal client" |
1523 |
- ewarn "works for you, and you're happy with, the alternative USE flags can be" |
1524 |
- ewarn "disabled. If you want to use dhclient or dhcpcd, then you need to tweak" |
1525 |
- ewarn "the main.dhcp configuration option to use one of them instead of internal." |
1526 |
- fi |
1527 |
-} |