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