1 |
commit: dfe3eb0e98d3f6ae817cc5a9bad2556d51a36bc7 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 29 07:55:11 2019 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 30 13:25:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfe3eb0e |
7 |
|
8 |
net-misc/networkmanager: remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.12 |
11 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
12 |
|
13 |
net-misc/networkmanager/Manifest | 1 - |
14 |
.../networkmanager/networkmanager-1.18.2.ebuild | 345 --------------------- |
15 |
2 files changed, 346 deletions(-) |
16 |
|
17 |
diff --git a/net-misc/networkmanager/Manifest b/net-misc/networkmanager/Manifest |
18 |
index a8d5397736c..28743c16f9f 100644 |
19 |
--- a/net-misc/networkmanager/Manifest |
20 |
+++ b/net-misc/networkmanager/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST NetworkManager-1.18.2.tar.xz 4872252 BLAKE2B 8a3fa74837a6cf2a09af807b9bd164c949d31efb81fc212485f49e24f0a215ff06db10c4259712f6c51d7480bda1b53457bf50bda9b2df8330891e8c8ba394c8 SHA512 a220d856632693298af0bd23ae4393ee597684fcae400c8ed35bae5e543bcdbd0b0e879f4a7587b674ae86c5fdfbee955acd0fb6226cb95ed31372cb7c222814 |
23 |
DIST NetworkManager-1.18.4.tar.xz 4875196 BLAKE2B 9c58d6d7317562332dfa9639f8e236a0a7f6b58e7dad5af83916b1c6178899a6bcf12bc289fb401d84fd6420306364b4c4c0a25eda2a08eef812acde1862a18a SHA512 9fd22775a400ee8d20c75ebddfee842bfbd8780966444dd537e371a65918f41640e921d2c441853afe8f72d693e9b4c1415435136a07004666a6af4799fd3350 |
24 |
|
25 |
diff --git a/net-misc/networkmanager/networkmanager-1.18.2.ebuild b/net-misc/networkmanager/networkmanager-1.18.2.ebuild |
26 |
deleted file mode 100644 |
27 |
index 2c4f15a72ad..00000000000 |
28 |
--- a/net-misc/networkmanager/networkmanager-1.18.2.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,345 +0,0 @@ |
31 |
-# Copyright 1999-2019 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=6 |
35 |
-GNOME_ORG_MODULE="NetworkManager" |
36 |
-GNOME2_LA_PUNT="yes" |
37 |
-VALA_USE_DEPEND="vapigen" |
38 |
-PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
39 |
- |
40 |
-inherit bash-completion-r1 gnome2 linux-info multilib python-any-r1 systemd readme.gentoo-r1 vala virtualx udev multilib-minimal |
41 |
- |
42 |
-DESCRIPTION="A set of co-operative tools that make networking simple and straightforward" |
43 |
-HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
44 |
- |
45 |
-LICENSE="GPL-2+" |
46 |
-SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version |
47 |
- |
48 |
-IUSE="audit bluetooth connection-sharing consolekit +dhclient dhcpcd elogind gnutls +introspection iwd json kernel_linux +nss +modemmanager ncurses ofono ovs policykit +ppp resolvconf selinux systemd teamd test vala +wext +wifi" |
49 |
- |
50 |
-REQUIRED_USE=" |
51 |
- bluetooth? ( modemmanager ) |
52 |
- iwd? ( wifi ) |
53 |
- vala? ( introspection ) |
54 |
- wext? ( wifi ) |
55 |
- || ( nss gnutls ) |
56 |
- ?? ( consolekit elogind systemd ) |
57 |
-" |
58 |
- |
59 |
-KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~sparc x86" |
60 |
- |
61 |
-# gobject-introspection-0.10.3 is needed due to gnome bug 642300 |
62 |
-# wpa_supplicant-0.7.3-r3 is needed due to bug 359271 |
63 |
-COMMON_DEPEND=" |
64 |
- >=sys-apps/dbus-1.2[${MULTILIB_USEDEP}] |
65 |
- >=dev-libs/dbus-glib-0.100[${MULTILIB_USEDEP}] |
66 |
- >=dev-libs/glib-2.40:2[${MULTILIB_USEDEP}] |
67 |
- policykit? ( >=sys-auth/polkit-0.106 ) |
68 |
- net-libs/libndp[${MULTILIB_USEDEP}] |
69 |
- >=net-misc/curl-7.24 |
70 |
- net-misc/iputils |
71 |
- sys-apps/util-linux[${MULTILIB_USEDEP}] |
72 |
- sys-libs/readline:0= |
73 |
- >=virtual/libudev-175:=[${MULTILIB_USEDEP}] |
74 |
- audit? ( sys-process/audit ) |
75 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
76 |
- connection-sharing? ( |
77 |
- net-dns/dnsmasq[dbus,dhcp] |
78 |
- net-firewall/iptables ) |
79 |
- consolekit? ( >=sys-auth/consolekit-1.0.0 ) |
80 |
- dhclient? ( >=net-misc/dhcp-4[client] ) |
81 |
- dhcpcd? ( net-misc/dhcpcd ) |
82 |
- elogind? ( >=sys-auth/elogind-219 ) |
83 |
- introspection? ( >=dev-libs/gobject-introspection-0.10.3:= ) |
84 |
- json? ( >=dev-libs/jansson-2.5[${MULTILIB_USEDEP}] ) |
85 |
- modemmanager? ( >=net-misc/modemmanager-0.7.991:0= ) |
86 |
- ncurses? ( >=dev-libs/newt-0.52.15 ) |
87 |
- nss? ( >=dev-libs/nss-3.11:=[${MULTILIB_USEDEP}] ) |
88 |
- !nss? ( gnutls? ( |
89 |
- dev-libs/libgcrypt:0=[${MULTILIB_USEDEP}] |
90 |
- >=net-libs/gnutls-2.12:=[${MULTILIB_USEDEP}] ) ) |
91 |
- ofono? ( net-misc/ofono ) |
92 |
- ovs? ( dev-libs/jansson ) |
93 |
- ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] ) |
94 |
- resolvconf? ( net-dns/openresolv ) |
95 |
- selinux? ( sys-libs/libselinux ) |
96 |
- systemd? ( >=sys-apps/systemd-209:0= ) |
97 |
- teamd? ( |
98 |
- dev-libs/jansson |
99 |
- >=net-misc/libteam-1.9 |
100 |
- ) |
101 |
-" |
102 |
-RDEPEND="${COMMON_DEPEND} |
103 |
- acct-group/plugdev |
104 |
- || ( |
105 |
- net-misc/iputils[arping(+)] |
106 |
- net-analyzer/arping |
107 |
- ) |
108 |
- wifi? ( |
109 |
- !iwd? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
110 |
- iwd? ( net-wireless/iwd ) |
111 |
- ) |
112 |
-" |
113 |
-DEPEND="${COMMON_DEPEND} |
114 |
- dev-util/gdbus-codegen |
115 |
- dev-util/glib-utils |
116 |
- dev-util/gtk-doc-am |
117 |
- >=dev-util/intltool-0.40 |
118 |
- >=sys-devel/gettext-0.17 |
119 |
- >=sys-kernel/linux-headers-3.18 |
120 |
- virtual/pkgconfig[${MULTILIB_USEDEP}] |
121 |
- introspection? ( |
122 |
- $(python_gen_any_dep 'dev-python/pygobject:3[${PYTHON_USEDEP}]') |
123 |
- dev-lang/perl |
124 |
- dev-libs/libxslt |
125 |
- ) |
126 |
- vala? ( $(vala_depend) ) |
127 |
- test? ( |
128 |
- $(python_gen_any_dep ' |
129 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
130 |
- dev-python/pygobject:3[${PYTHON_USEDEP}]') |
131 |
- ) |
132 |
-" |
133 |
- |
134 |
-python_check_deps() { |
135 |
- if use introspection; then |
136 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" || return |
137 |
- fi |
138 |
- if use test; then |
139 |
- has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" && |
140 |
- has_version "dev-python/pygobject:3[${PYTHON_USEDEP}]" |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-sysfs_deprecated_check() { |
145 |
- ebegin "Checking for SYSFS_DEPRECATED support" |
146 |
- |
147 |
- if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
148 |
- eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
149 |
- eerror "or NetworkManager will not work correctly." |
150 |
- eerror "See https://bugs.gentoo.org/333639 for more info." |
151 |
- die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
152 |
- fi |
153 |
- eend $? |
154 |
-} |
155 |
- |
156 |
-pkg_pretend() { |
157 |
- if use kernel_linux; then |
158 |
- get_version |
159 |
- if linux_config_exists; then |
160 |
- sysfs_deprecated_check |
161 |
- else |
162 |
- ewarn "Was unable to determine your kernel .config" |
163 |
- ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
164 |
- ewarn "See https://bugs.gentoo.org/333639 for more info." |
165 |
- fi |
166 |
- |
167 |
- fi |
168 |
-} |
169 |
- |
170 |
-pkg_setup() { |
171 |
- if use connection-sharing; then |
172 |
- if kernel_is lt 5 1; then |
173 |
- CONFIG_CHECK="~NF_NAT_IPV4 ~NF_NAT_MASQUERADE_IPV4" |
174 |
- else |
175 |
- CONFIG_CHECK="~NF_NAT ~NF_NAT_MASQUERADE" |
176 |
- fi |
177 |
- linux-info_pkg_setup |
178 |
- fi |
179 |
- if use introspection || use test; then |
180 |
- python-any-r1_pkg_setup |
181 |
- fi |
182 |
-} |
183 |
- |
184 |
-src_prepare() { |
185 |
- DOC_CONTENTS="To modify system network connections without needing to enter the |
186 |
- root password, add your user account to the 'plugdev' group." |
187 |
- |
188 |
- use vala && vala_src_prepare |
189 |
- gnome2_src_prepare |
190 |
-} |
191 |
- |
192 |
-multilib_src_configure() { |
193 |
- local myconf=( |
194 |
- --disable-more-warnings |
195 |
- --disable-static |
196 |
- --localstatedir=/var |
197 |
- --disable-lto |
198 |
- --disable-config-plugin-ibft |
199 |
- --disable-qt |
200 |
- --without-netconfig |
201 |
- --with-dbus-sys-dir=/etc/dbus-1/system.d |
202 |
- # We need --with-libnm-glib (and dbus-glib dep) as reverse deps are |
203 |
- # still not ready for removing that lib, bug #665338 |
204 |
- --with-libnm-glib |
205 |
- $(multilib_native_with nmcli) |
206 |
- --with-udev-dir="$(get_udevdir)" |
207 |
- --with-config-plugins-default=keyfile |
208 |
- --with-iptables=/sbin/iptables |
209 |
- --with-ebpf=yes |
210 |
- $(multilib_native_enable concheck) |
211 |
- --with-crypto=$(usex nss nss gnutls) |
212 |
- --with-session-tracking=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind $(multilib_native_usex consolekit consolekit no))) |
213 |
- # ConsoleKit has no build-time dependency, so use it as the default case. |
214 |
- # There is no off switch, and we do not support upower. |
215 |
- --with-suspend-resume=$(multilib_native_usex systemd systemd $(multilib_native_usex elogind elogind consolekit)) |
216 |
- $(multilib_native_use_with audit libaudit) |
217 |
- $(multilib_native_use_enable bluetooth bluez5-dun) |
218 |
- $(use_with dhclient) |
219 |
- $(use_with dhcpcd) |
220 |
- $(multilib_native_use_enable introspection) |
221 |
- $(use_enable json json-validation) |
222 |
- $(multilib_native_use_enable ppp) |
223 |
- --without-libpsl |
224 |
- $(multilib_native_use_with modemmanager modem-manager-1) |
225 |
- $(multilib_native_use_with ncurses nmtui) |
226 |
- $(multilib_native_use_with ofono) |
227 |
- $(multilib_native_use_enable ovs) |
228 |
- $(multilib_native_use_with resolvconf) |
229 |
- $(multilib_native_use_with selinux) |
230 |
- $(multilib_native_use_with systemd systemd-journal) |
231 |
- $(multilib_native_use_enable teamd teamdctl) |
232 |
- $(multilib_native_use_enable test tests) |
233 |
- $(multilib_native_use_enable vala) |
234 |
- --without-valgrind |
235 |
- $(multilib_native_use_with wifi iwd) |
236 |
- $(multilib_native_use_with wext) |
237 |
- $(multilib_native_use_enable wifi) |
238 |
- ) |
239 |
- |
240 |
- if multilib_is_native_abi && use policykit; then |
241 |
- myconf+=( --enable-polkit=yes ) |
242 |
- else |
243 |
- myconf+=( --enable-polkit=disabled ) |
244 |
- fi |
245 |
- |
246 |
- # Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
247 |
- if use ppp; then |
248 |
- local PPPD_VER=`best_version net-dialup/ppp` |
249 |
- PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
250 |
- PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
251 |
- myconf+=( --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER} ) |
252 |
- fi |
253 |
- |
254 |
- # unit files directory needs to be passed only when systemd is enabled, |
255 |
- # otherwise systemd support is not disabled completely, bug #524534 |
256 |
- use systemd && myconf+=( --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" ) |
257 |
- |
258 |
- if multilib_is_native_abi; then |
259 |
- # work-around man out-of-source brokenness, must be done before configure |
260 |
- ln -s "${S}/docs" docs || die |
261 |
- ln -s "${S}/man" man || die |
262 |
- fi |
263 |
- |
264 |
- ECONF_SOURCE=${S} runstatedir="/run" gnome2_src_configure "${myconf[@]}" |
265 |
-} |
266 |
- |
267 |
-multilib_src_compile() { |
268 |
- if multilib_is_native_abi; then |
269 |
- emake |
270 |
- else |
271 |
- local targets=( |
272 |
- libnm/libnm.la |
273 |
- libnm-util/libnm-util.la |
274 |
- libnm-glib/libnm-glib.la |
275 |
- libnm-glib/libnm-glib-vpn.la |
276 |
- ) |
277 |
- emake "${targets[@]}" |
278 |
- fi |
279 |
-} |
280 |
- |
281 |
-multilib_src_test() { |
282 |
- if use test && multilib_is_native_abi; then |
283 |
- python_setup |
284 |
- virtx emake check |
285 |
- fi |
286 |
-} |
287 |
- |
288 |
-multilib_src_install() { |
289 |
- if multilib_is_native_abi; then |
290 |
- # Install completions at proper place, bug #465100 |
291 |
- gnome2_src_install completiondir="$(get_bashcompdir)" |
292 |
- else |
293 |
- local targets=( |
294 |
- install-libLTLIBRARIES |
295 |
- install-libdeprecatedHEADERS |
296 |
- install-libnm_glib_libnmvpnHEADERS |
297 |
- install-libnm_glib_libnmincludeHEADERS |
298 |
- install-libnm_util_libnm_util_includeHEADERS |
299 |
- install-libnmincludeHEADERS |
300 |
- install-nodist_libnm_glib_libnmincludeHEADERS |
301 |
- install-nodist_libnm_glib_libnmvpnHEADERS |
302 |
- install-nodist_libnm_util_libnm_util_includeHEADERS |
303 |
- install-nodist_libnmincludeHEADERS |
304 |
- install-pkgconfigDATA |
305 |
- ) |
306 |
- emake DESTDIR="${D}" "${targets[@]}" |
307 |
- fi |
308 |
-} |
309 |
- |
310 |
-multilib_src_install_all() { |
311 |
- einstalldocs |
312 |
- ! use systemd && readme.gentoo_create_doc |
313 |
- |
314 |
- newinitd "${FILESDIR}/init.d.NetworkManager-r1" NetworkManager |
315 |
- newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
316 |
- |
317 |
- # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
318 |
- keepdir /etc/NetworkManager/dispatcher.d |
319 |
- |
320 |
- # Provide openrc net dependency only when nm is connected |
321 |
- exeinto /etc/NetworkManager/dispatcher.d |
322 |
- newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status |
323 |
- sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
324 |
- -i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
325 |
- |
326 |
- keepdir /etc/NetworkManager/system-connections |
327 |
- chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765, upstream bug #754594 |
328 |
- |
329 |
- # Allow users in plugdev group to modify system connections |
330 |
- insinto /usr/share/polkit-1/rules.d/ |
331 |
- doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
332 |
- |
333 |
- if use iwd; then |
334 |
- # This goes to $nmlibdir/conf.d/ and $nmlibdir is '${prefix}'/lib/$PACKAGE, thus always lib, not get_libdir |
335 |
- cat <<-EOF > "${ED%/}"/usr/lib/NetworkManager/conf.d/iwd.conf |
336 |
- [device] |
337 |
- wifi.backend=iwd |
338 |
- EOF |
339 |
- fi |
340 |
- |
341 |
- # Empty |
342 |
- rmdir "${ED%/}"/var{/lib{/NetworkManager,},} || die |
343 |
-} |
344 |
- |
345 |
-pkg_postinst() { |
346 |
- gnome2_pkg_postinst |
347 |
- systemd_reenable NetworkManager.service |
348 |
- ! use systemd && readme.gentoo_print_elog |
349 |
- |
350 |
- if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then |
351 |
- ewarn "The ${PN} system configuration file has moved to a new location." |
352 |
- ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
353 |
- ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf" |
354 |
- ewarn |
355 |
- ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf" |
356 |
- fi |
357 |
- |
358 |
- # NM fallbacks to plugin specified at compile time (upstream bug #738611) |
359 |
- # but still show a warning to remember people to have cleaner config file |
360 |
- if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then |
361 |
- if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then |
362 |
- ewarn |
363 |
- ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf" |
364 |
- ewarn "Since it won't be used, you will need to stop setting ifnet plugin there." |
365 |
- ewarn |
366 |
- fi |
367 |
- fi |
368 |
- |
369 |
- # NM shows lots of errors making nmcli almost unusable, bug #528748 upstream bug #690457 |
370 |
- if grep -r "psk-flags=1" "${EROOT}"/etc/NetworkManager/; then |
371 |
- ewarn "You have psk-flags=1 setting in above files, you will need to" |
372 |
- ewarn "either reconfigure affected networks or, at least, set the flag" |
373 |
- ewarn "value to '0'." |
374 |
- fi |
375 |
-} |