1 |
pacho 14/11/01 15:50:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: networkmanager-0.9.10.1_pre20141101.ebuild |
5 |
Log: |
6 |
Add new snapshot including a ton of bugfixes, also this won't fail to start if ifnet plugin is not found and, then, migration will be less painful. |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.211 net-misc/networkmanager/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.211&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.211&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?r1=1.210&r2=1.211 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v |
20 |
retrieving revision 1.210 |
21 |
retrieving revision 1.211 |
22 |
diff -u -r1.210 -r1.211 |
23 |
--- ChangeLog 31 Oct 2014 21:05:46 -0000 1.210 |
24 |
+++ ChangeLog 1 Nov 2014 15:50:50 -0000 1.211 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for net-misc/networkmanager |
27 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.210 2014/10/31 21:05:46 pacho Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.211 2014/11/01 15:50:50 pacho Exp $ |
30 |
+ |
31 |
+*networkmanager-0.9.10.1_pre20141101 (01 Nov 2014) |
32 |
+ |
33 |
+ 01 Nov 2014; Pacho Ramos <pacho@g.o> |
34 |
+ +networkmanager-0.9.10.1_pre20141101.ebuild: |
35 |
+ Add new snapshot including a ton of bugfixes, also this won't fail to start if |
36 |
+ ifnet plugin is not found and, then, migration will be less painful. |
37 |
|
38 |
31 Oct 2014; Pacho Ramos <pacho@g.o> networkmanager-0.9.10.0-r1.ebuild: |
39 |
Add reference to upstream bug report |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-misc/networkmanager/networkmanager-0.9.10.1_pre20141101.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.10.1_pre20141101.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.10.1_pre20141101.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: networkmanager-0.9.10.1_pre20141101.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.10.1_pre20141101.ebuild,v 1.1 2014/11/01 15:50:50 pacho Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
GCONF_DEBUG="no" |
56 |
GNOME_ORG_MODULE="NetworkManager" |
57 |
GNOME2_LA_PUNT="yes" |
58 |
VALA_MIN_API_VERSION="0.18" |
59 |
VALA_USE_DEPEND="vapigen" |
60 |
|
61 |
inherit bash-completion-r1 eutils gnome2 linux-info multilib systemd user readme.gentoo toolchain-funcs vala versionator virtualx udev |
62 |
|
63 |
DESCRIPTION="Universal network configuration daemon for laptops, desktops, servers and virtualization hosts" |
64 |
HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" |
65 |
|
66 |
SRC_URI="http://dev.gentoo.org/~pacho/gnome/${GNOME_ORG_MODULE}-${PV}.tar.xz" |
67 |
|
68 |
LICENSE="GPL-2+" |
69 |
SLOT="0" # add subslot if libnm-util.so.2 or libnm-glib.so.4 bumps soname version |
70 |
|
71 |
IUSE="bluetooth connection-sharing consolekit +dhclient dhcpcd gnutls +introspection \ |
72 |
kernel_linux +nss +modemmanager ncurses +ppp resolvconf selinux systemd teamd test \ |
73 |
vala +wext +wifi zeroconf" # wimax |
74 |
|
75 |
KEYWORDS="~amd64 ~arm ~x86" |
76 |
|
77 |
REQUIRED_USE=" |
78 |
modemmanager? ( ppp ) |
79 |
^^ ( nss gnutls ) |
80 |
^^ ( dhclient dhcpcd ) |
81 |
" |
82 |
|
83 |
S="${WORKDIR}/${GNOME_ORG_MODULE}-0.9.10.1" |
84 |
|
85 |
# gobject-introspection-0.10.3 is needed due to gnome bug 642300 |
86 |
# wpa_supplicant-0.7.3-r3 is needed due to bug 359271 |
87 |
# TODO: Qt support? |
88 |
# |
89 |
# iputils version needed due path changes (#523632). Upstream fixed |
90 |
# it with a major refactor committed to 'master' for handling different |
91 |
# paths for arping and other tools and, then, the version requirement |
92 |
# will be able to be dropped on next major NM version |
93 |
COMMON_DEPEND=" |
94 |
>=sys-apps/dbus-1.2 |
95 |
>=dev-libs/dbus-glib-0.100 |
96 |
>=dev-libs/glib-2.32:2 |
97 |
>=dev-libs/libnl-3.2.8:3= |
98 |
>=sys-auth/polkit-0.106 |
99 |
net-libs/libndp |
100 |
>=net-libs/libsoup-2.26:2.4= |
101 |
>=net-misc/iputils-20121221-r1 |
102 |
sys-libs/readline |
103 |
>=virtual/libgudev-165:= |
104 |
bluetooth? ( >=net-wireless/bluez-5 ) |
105 |
connection-sharing? ( |
106 |
net-dns/dnsmasq[dhcp] |
107 |
net-firewall/iptables ) |
108 |
gnutls? ( |
109 |
dev-libs/libgcrypt:0= |
110 |
net-libs/gnutls:= ) |
111 |
modemmanager? ( >=net-misc/modemmanager-0.7.991 ) |
112 |
ncurses? ( >=dev-libs/newt-0.52.15 ) |
113 |
nss? ( >=dev-libs/nss-3.11:= ) |
114 |
dhclient? ( =net-misc/dhcp-4*[client] ) |
115 |
dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 ) |
116 |
introspection? ( >=dev-libs/gobject-introspection-0.10.3 ) |
117 |
ppp? ( >=net-dialup/ppp-2.4.5:=[ipv6] ) |
118 |
resolvconf? ( net-dns/openresolv ) |
119 |
systemd? ( >=sys-apps/systemd-183:0= ) |
120 |
teamd? ( >=net-misc/libteam-1.9 ) |
121 |
zeroconf? ( net-dns/avahi:=[autoipd] ) |
122 |
|| ( sys-power/upower sys-power/upower-pm-utils >=sys-apps/systemd-183 ) |
123 |
" |
124 |
RDEPEND="${COMMON_DEPEND} |
125 |
consolekit? ( sys-auth/consolekit ) |
126 |
wifi? ( >=net-wireless/wpa_supplicant-0.7.3-r3[dbus] ) |
127 |
" |
128 |
DEPEND="${COMMON_DEPEND} |
129 |
dev-util/gtk-doc-am |
130 |
>=dev-util/intltool-0.40 |
131 |
>=sys-devel/gettext-0.17 |
132 |
>=sys-kernel/linux-headers-2.6.29 |
133 |
virtual/pkgconfig |
134 |
vala? ( $(vala_depend) ) |
135 |
test? ( |
136 |
dev-lang/python:2.7 |
137 |
dev-python/dbus-python[python_targets_python2_7] |
138 |
dev-python/pygobject:2[python_targets_python2_7] ) |
139 |
" |
140 |
|
141 |
sysfs_deprecated_check() { |
142 |
ebegin "Checking for SYSFS_DEPRECATED support" |
143 |
|
144 |
if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
145 |
eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
146 |
eerror "or NetworkManager will not work correctly." |
147 |
eerror "See http://bugs.gentoo.org/333639 for more info." |
148 |
die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
149 |
fi |
150 |
eend $? |
151 |
} |
152 |
|
153 |
pkg_pretend() { |
154 |
if use kernel_linux; then |
155 |
get_version |
156 |
if linux_config_exists; then |
157 |
sysfs_deprecated_check |
158 |
else |
159 |
ewarn "Was unable to determine your kernel .config" |
160 |
ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
161 |
ewarn "See http://bugs.gentoo.org/333639 for more info." |
162 |
fi |
163 |
|
164 |
fi |
165 |
} |
166 |
|
167 |
pkg_setup() { |
168 |
enewgroup plugdev |
169 |
} |
170 |
|
171 |
src_prepare() { |
172 |
DOC_CONTENTS="To modify system network connections without needing to enter the |
173 |
root password, add your user account to the 'plugdev' group." |
174 |
|
175 |
# Find arping at proper place, bug #523632 |
176 |
epatch "${FILESDIR}/${PN}-0.9.10.0-arpingpath.patch" |
177 |
|
178 |
# Use python2.7 shebangs for test scripts, upstream bug #739448 |
179 |
sed -e 's@\(^#!.*python\)@\12.7@' \ |
180 |
-i */tests/*.py || die |
181 |
|
182 |
# Force use of /run, avoid eautoreconf, upstream bug #737139 |
183 |
sed -e 's:$localstatedir/run/:/run/:' -i configure || die |
184 |
|
185 |
use vala && vala_src_prepare |
186 |
|
187 |
epatch_user # don't remove, users often want custom patches for NM |
188 |
|
189 |
gnome2_src_prepare |
190 |
} |
191 |
|
192 |
src_configure() { |
193 |
local myconf |
194 |
|
195 |
# Same hack as net-dialup/pptpd to get proper plugin dir for ppp, bug #519986 |
196 |
if use ppp; then |
197 |
local PPPD_VER=`best_version net-dialup/ppp` |
198 |
PPPD_VER=${PPPD_VER#*/*-} #reduce it to ${PV}-${PR} |
199 |
PPPD_VER=${PPPD_VER%%[_-]*} # main version without beta/pre/patch/revision |
200 |
myconf="${myconf} --with-pppd-plugin-dir=/usr/$(get_libdir)/pppd/${PPPD_VER}" |
201 |
fi |
202 |
|
203 |
# unit files directory needs to be passed only when systemd is enabled, |
204 |
# otherwise systemd support is not disabled completely, bug #524534 |
205 |
use systemd && myconf="${myconf} "$(systemd_with_unitdir)"" |
206 |
|
207 |
# TODO: enable wimax when we have a libnl:3 compatible revision of it |
208 |
# wimax will be removed, bug #522822 |
209 |
# ifnet plugin always disabled until someone volunteers to actively |
210 |
# maintain and fix it |
211 |
gnome2_src_configure \ |
212 |
--disable-more-warnings \ |
213 |
--disable-static \ |
214 |
--localstatedir=/var \ |
215 |
--disable-ifnet \ |
216 |
--without-netconfig \ |
217 |
--with-dbus-sys-dir=/etc/dbus-1/system.d \ |
218 |
--with-udev-dir="$(get_udevdir)" \ |
219 |
--with-config-plugins-default=keyfile \ |
220 |
--with-iptables=/sbin/iptables \ |
221 |
--with-libsoup=yes \ |
222 |
--enable-concheck \ |
223 |
--with-crypto=$(usex nss nss gnutls) \ |
224 |
--with-session-tracking=$(usex systemd systemd $(usex consolekit consolekit no)) \ |
225 |
--with-suspend-resume=$(usex systemd systemd upower) \ |
226 |
$(use_enable bluetooth bluez5-dun) \ |
227 |
$(use_enable introspection) \ |
228 |
$(use_enable ppp) \ |
229 |
--disable-wimax \ |
230 |
$(use_with dhclient) \ |
231 |
$(use_with dhcpcd) \ |
232 |
$(use_with modemmanager modem-manager-1) \ |
233 |
$(use_with ncurses nmtui) \ |
234 |
$(use_with resolvconf) \ |
235 |
$(use_with selinux) \ |
236 |
$(use_enable teamd teamdctl) \ |
237 |
$(use_enable test tests) \ |
238 |
$(use_enable vala) \ |
239 |
--without-valgrind \ |
240 |
$(use_with wext) \ |
241 |
${myconf} |
242 |
} |
243 |
|
244 |
src_test() { |
245 |
Xemake check |
246 |
} |
247 |
|
248 |
src_install() { |
249 |
# Install completions at proper place, bug #465100 |
250 |
gnome2_src_install completiondir="$(get_bashcompdir)" |
251 |
|
252 |
readme.gentoo_create_doc |
253 |
|
254 |
newinitd "${FILESDIR}/init.d.NetworkManager" NetworkManager |
255 |
newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
256 |
|
257 |
# /var/run/NetworkManager is used by some distros, but not by Gentoo |
258 |
rmdir -v "${ED}/var/run/NetworkManager" || die "rmdir failed" |
259 |
|
260 |
# Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
261 |
keepdir /etc/NetworkManager/dispatcher.d |
262 |
|
263 |
# Provide openrc net dependency only when nm is connected |
264 |
exeinto /etc/NetworkManager/dispatcher.d |
265 |
newexe "${FILESDIR}/10-openrc-status-r4" 10-openrc-status |
266 |
sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
267 |
-i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
268 |
|
269 |
keepdir /etc/NetworkManager/system-connections |
270 |
chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765 |
271 |
|
272 |
# Allow users in plugdev group to modify system connections |
273 |
insinto /usr/share/polkit-1/rules.d/ |
274 |
doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
275 |
} |
276 |
|
277 |
pkg_postinst() { |
278 |
gnome2_pkg_postinst |
279 |
readme.gentoo_print_elog |
280 |
|
281 |
if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then |
282 |
ewarn "The ${PN} system configuration file has moved to a new location." |
283 |
ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
284 |
ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf" |
285 |
ewarn |
286 |
ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf" |
287 |
fi |
288 |
|
289 |
# The polkit rules file moved to /usr/share |
290 |
old_rules="${EROOT}etc/polkit-1/rules.d/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
291 |
if [[ -f "${old_rules}" ]]; then |
292 |
case "$(md5sum ${old_rules})" in |
293 |
574d0cfa7e911b1f7792077003060240* ) |
294 |
# Automatically delete the old rules.d file if the user did not change it |
295 |
elog |
296 |
elog "Removing old ${old_rules} ..." |
297 |
rm -f "${old_rules}" || eerror "Failed, please remove ${old_rules} manually" |
298 |
;; |
299 |
* ) |
300 |
elog "The ${old_rules}" |
301 |
elog "file moved to /usr/share/polkit-1/rules.d/ in >=networkmanager-0.9.4.0-r4" |
302 |
elog "If you edited ${old_rules}" |
303 |
elog "without changing its behavior, you may want to remove it." |
304 |
;; |
305 |
esac |
306 |
fi |
307 |
|
308 |
# ifnet plugin was disabled for systemd users with 0.9.8.6 version |
309 |
# and for all people with 0.9.10.0-r1 (see ChangeLog for full explanations) |
310 |
if use systemd; then |
311 |
if ! version_is_at_least 0.9.8.6 ${REPLACING_VERSIONS}; then |
312 |
ewarn "Ifnet plugin won't be used with systemd support enabled" |
313 |
ewarn "as it is meant to be used with openRC and can cause collisions" |
314 |
ewarn "(like bug #485658)." |
315 |
ewarn "Because of this, you will likely need to reconfigure some of" |
316 |
ewarn "your networks. To do this you can rely on Gnome control center," |
317 |
ewarn "nm-connection-editor or nmtui tools for example." |
318 |
fi |
319 |
else |
320 |
if ! version_is_at_least 0.9.10.0-r1 ${REPLACING_VERSIONS}; then |
321 |
ewarn "Ifnet plugin is now disabled because of it being unattended" |
322 |
ewarn "and unmaintained for a long time, leading to some unfixed bugs" |
323 |
ewarn "and new problems appearing. We will now use upstream 'keyfile'" |
324 |
ewarn "plugin." |
325 |
ewarn "Because of this, you will likely need to reconfigure some of" |
326 |
ewarn "your networks. To do this you can rely on Gnome control center," |
327 |
ewarn "nm-connection-editor or nmtui tools for example." |
328 |
fi |
329 |
fi |
330 |
|
331 |
# NM fallbacks to plugin specified at compile time (upstream bug #738611) |
332 |
# but still show a warning to remember people to have cleaner config file |
333 |
if [[ -e "${EROOT}etc/NetworkManager/NetworkManager.conf" ]]; then |
334 |
if grep plugins "${EROOT}etc/NetworkManager/NetworkManager.conf" | grep -q ifnet; then |
335 |
ewarn |
336 |
ewarn "You seem to use 'ifnet' plugin in ${EROOT}etc/NetworkManager/NetworkManager.conf" |
337 |
ewarn "Since it won't be used when running under Systemd, you will need to stop setting" |
338 |
ewarn "ifnet plugin there to allow NetworkManager to work." |
339 |
ewarn |
340 |
fi |
341 |
fi |
342 |
} |