1 |
tetromino 12/07/04 07:56:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: networkmanager-0.9.4.0-r3.ebuild |
5 |
Removed: networkmanager-0.9.4.0-r1.ebuild |
6 |
Log: |
7 |
Fix default ipv6 route issue on some networks (bug #417529, thanks to Marien Zwart). Install polkit-1/rules.d file for polkit-0.106 support (bug #421577, thanks to Samuli Suominen). Add epatch_user to make it easier for users to locally patch networkmanager. Drop old. |
8 |
|
9 |
(Portage version: 2.2.0_alpha115/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.137 net-misc/networkmanager/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.137&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.137&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?r1=1.136&r2=1.137 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v |
21 |
retrieving revision 1.136 |
22 |
retrieving revision 1.137 |
23 |
diff -u -r1.136 -r1.137 |
24 |
--- ChangeLog 27 Jun 2012 14:41:17 -0000 1.136 |
25 |
+++ ChangeLog 4 Jul 2012 07:56:22 -0000 1.137 |
26 |
@@ -1,6 +1,18 @@ |
27 |
# ChangeLog for net-misc/networkmanager |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.136 2012/06/27 14:41:17 ssuominen Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.137 2012/07/04 07:56:22 tetromino Exp $ |
31 |
+ |
32 |
+*networkmanager-0.9.4.0-r3 (04 Jul 2012) |
33 |
+ |
34 |
+ 04 Jul 2012; Alexandre Rostovtsev <tetromino@g.o> |
35 |
+ +files/01-org.freedesktop.NetworkManager.settings.modify.system.rules, |
36 |
+ -networkmanager-0.9.4.0-r1.ebuild, +networkmanager-0.9.4.0-r3.ebuild, |
37 |
+ -files/networkmanager-0.9.4.0-force-libnl1.1.patch, |
38 |
+ +files/networkmanager-0.9.4.0-ipv6-route.patch: |
39 |
+ Fix default ipv6 route issue on some networks (bug #417529, thanks to Marien |
40 |
+ Zwart). Install polkit-1/rules.d file for polkit-0.106 support (bug #421577, |
41 |
+ thanks to Samuli Suominen). Add epatch_user to make it easier for users to |
42 |
+ locally patch networkmanager. Drop old. |
43 |
|
44 |
27 Jun 2012; Samuli Suominen <ssuominen@g.o> |
45 |
networkmanager-0.8-r1.ebuild, networkmanager-0.9.2.0-r3.ebuild, |
46 |
|
47 |
|
48 |
|
49 |
1.1 net-misc/networkmanager/networkmanager-0.9.4.0-r3.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.4.0-r3.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.4.0-r3.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: networkmanager-0.9.4.0-r3.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2012 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.4.0-r3.ebuild,v 1.1 2012/07/04 07:56:22 tetromino Exp $ |
59 |
|
60 |
EAPI="4" |
61 |
GNOME_ORG_MODULE="NetworkManager" |
62 |
|
63 |
inherit autotools eutils gnome.org linux-info systemd user |
64 |
|
65 |
DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent." |
66 |
HOMEPAGE="http://www.gnome.org/projects/NetworkManager/" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
IUSE="avahi bluetooth connection-sharing dhclient +dhcpcd doc gnutls +introspection kernel_linux +nss modemmanager +ppp resolvconf systemd +wext wimax" |
71 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
72 |
|
73 |
REQUIRED_USE=" |
74 |
modemmanager? ( ppp ) |
75 |
^^ ( nss gnutls ) |
76 |
^^ ( dhclient dhcpcd )" |
77 |
|
78 |
# gobject-introspection-0.10.3 is needed due to gnome bug 642300 |
79 |
# wpa_supplicant-0.7.3-r3 is needed due to bug 359271 |
80 |
# libnl:1.1 is needed for linking to net-wireless/wimax libraries |
81 |
# XXX: on bump, check that net-wireless/wimax is still using libnl:1.1 ! |
82 |
# TODO: Qt support? |
83 |
COMMON_DEPEND=">=sys-apps/dbus-1.2 |
84 |
>=dev-libs/dbus-glib-0.75 |
85 |
|| ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-147[extras] ) |
86 |
>=dev-libs/glib-2.26 |
87 |
>=sys-auth/polkit-0.97 |
88 |
>=net-libs/libsoup-2.26:2.4 |
89 |
>=net-wireless/wpa_supplicant-0.7.3-r3[dbus] |
90 |
bluetooth? ( >=net-wireless/bluez-4.82 ) |
91 |
avahi? ( net-dns/avahi[autoipd] ) |
92 |
gnutls? ( |
93 |
dev-libs/libgcrypt |
94 |
net-libs/gnutls ) |
95 |
nss? ( >=dev-libs/nss-3.11 ) |
96 |
dhclient? ( net-misc/dhcp ) |
97 |
dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 ) |
98 |
introspection? ( >=dev-libs/gobject-introspection-0.10.3 ) |
99 |
ppp? ( >=net-dialup/ppp-2.4.5 ) |
100 |
resolvconf? ( net-dns/openresolv ) |
101 |
connection-sharing? ( |
102 |
net-dns/dnsmasq |
103 |
net-firewall/iptables ) |
104 |
wimax? ( |
105 |
dev-libs/libnl:1.1 |
106 |
>=net-wireless/wimax-1.5.1 ) |
107 |
!wimax? ( dev-libs/libnl:3 )" |
108 |
|
109 |
RDEPEND="${COMMON_DEPEND} |
110 |
modemmanager? ( >=net-misc/modemmanager-0.4 ) |
111 |
systemd? ( >=sys-apps/systemd-31 ) |
112 |
!systemd? ( sys-auth/consolekit )" |
113 |
|
114 |
DEPEND="${COMMON_DEPEND} |
115 |
virtual/pkgconfig |
116 |
>=dev-util/intltool-0.40 |
117 |
>=sys-devel/gettext-0.17 |
118 |
>=sys-kernel/linux-headers-2.6.29 |
119 |
doc? ( >=dev-util/gtk-doc-1.8 )" |
120 |
|
121 |
sysfs_deprecated_check() { |
122 |
ebegin "Checking for SYSFS_DEPRECATED support" |
123 |
|
124 |
if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
125 |
eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
126 |
eerror "or NetworkManager will not work correctly." |
127 |
eerror "See http://bugs.gentoo.org/333639 for more info." |
128 |
die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
129 |
fi |
130 |
eend $? |
131 |
} |
132 |
|
133 |
pkg_pretend() { |
134 |
if use kernel_linux; then |
135 |
get_version |
136 |
if linux_config_exists; then |
137 |
sysfs_deprecated_check |
138 |
else |
139 |
ewarn "Was unable to determine your kernel .config" |
140 |
ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
141 |
ewarn "See http://bugs.gentoo.org/333639 for more info." |
142 |
fi |
143 |
|
144 |
fi |
145 |
} |
146 |
|
147 |
pkg_setup() { |
148 |
enewgroup plugdev |
149 |
} |
150 |
|
151 |
src_prepare() { |
152 |
# Don't build tests |
153 |
epatch "${FILESDIR}/${PN}-0.9_rc3-fix-tests.patch" |
154 |
# Build against libnl:1.1 for net-wireless/wimax-1.5.2 compatibility |
155 |
epatch "${FILESDIR}/${PN}-0.9.4.0-force-libnl1.1-r1.patch" |
156 |
# Update init.d script to provide net and use inactive status if not connected |
157 |
epatch "${FILESDIR}/${PN}-0.9.2.0-init-provide-net-r1.patch" |
158 |
# Bug #402085, https://bugzilla.gnome.org/show_bug.cgi?id=387832 |
159 |
epatch "${FILESDIR}/${PN}-0.9.2.0-pre-sleep.patch" |
160 |
# Fix quote handling for global data (Bug #410821) |
161 |
epatch "${FILESDIR}/${PN}-0.9.4.0-fix-quote-handling.patch" |
162 |
# Fix uninitialized variables in libnm-glib |
163 |
epatch "${FILESDIR}/${P}-libnm-glib-ensure_inited.patch" |
164 |
epatch "${FILESDIR}/${P}-libnm-glib-init-gerror.patch" |
165 |
# Fix building against linux-headers-3.4, #417055 |
166 |
epatch "${FILESDIR}/${P}-ip_ppp.h.patch" |
167 |
# Fix ipv6 default route bug, #417529 |
168 |
epatch "${FILESDIR}/${P}-ipv6-route.patch" |
169 |
|
170 |
epatch_user |
171 |
|
172 |
eautoreconf |
173 |
default |
174 |
} |
175 |
|
176 |
src_configure() { |
177 |
ECONF="--disable-more-warnings |
178 |
--disable-static |
179 |
--localstatedir=/var |
180 |
--with-distro=gentoo |
181 |
--with-dbus-sys-dir=/etc/dbus-1/system.d |
182 |
--with-udev-dir=/lib/udev |
183 |
--with-iptables=/sbin/iptables |
184 |
--enable-concheck |
185 |
$(use_enable doc gtk-doc) |
186 |
$(use_enable introspection) |
187 |
$(use_enable ppp) |
188 |
$(use_enable wimax) |
189 |
$(use_with dhclient) |
190 |
$(use_with dhcpcd) |
191 |
$(use_with doc docs) |
192 |
$(use_with resolvconf) |
193 |
$(use_with wext) |
194 |
$(use_with wimax libnl-1) |
195 |
$(systemd_with_unitdir)" |
196 |
|
197 |
if use nss ; then |
198 |
ECONF="${ECONF} $(use_with nss crypto=nss)" |
199 |
else |
200 |
ECONF="${ECONF} $(use_with gnutls crypto=gnutls)" |
201 |
fi |
202 |
|
203 |
if use systemd; then |
204 |
ECONF="${ECONF} --with-session-tracking=systemd" |
205 |
else |
206 |
ECONF="${ECONF} --with-session-tracking=ck" |
207 |
fi |
208 |
|
209 |
econf ${ECONF} |
210 |
} |
211 |
|
212 |
src_install() { |
213 |
default |
214 |
# /var/run/NetworkManager is used by some distros, but not by Gentoo |
215 |
rmdir -v "${ED}/var/run/NetworkManager" || die "rmdir failed" |
216 |
|
217 |
# Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
218 |
keepdir /etc/NetworkManager/dispatcher.d |
219 |
|
220 |
# Provide openrc net dependency only when nm is connected |
221 |
exeinto /etc/NetworkManager/dispatcher.d |
222 |
newexe "${FILESDIR}/10-openrc-status-r1" 10-openrc-status |
223 |
sed -e "s:@EPREFIX@:${EPREFIX}:g" \ |
224 |
-i "${ED}/etc/NetworkManager/dispatcher.d/10-openrc-status" || die |
225 |
|
226 |
# Add keyfile plugin support |
227 |
keepdir /etc/NetworkManager/system-connections |
228 |
chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765 |
229 |
insinto /etc/NetworkManager |
230 |
newins "${FILESDIR}/nm-system-settings.conf-ifnet" NetworkManager.conf |
231 |
|
232 |
# Allow users in plugdev group to modify system connections |
233 |
insinto /etc/polkit-1/rules.d |
234 |
doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.rules" |
235 |
if has_version '<sys-auth/polkit-0.106'; then |
236 |
insinto /etc/polkit-1/localauthority/10-vendor.d |
237 |
doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.pkla" |
238 |
fi |
239 |
|
240 |
# Default conf.d file |
241 |
newconfd "${FILESDIR}/conf.d.NetworkManager" NetworkManager |
242 |
|
243 |
# Remove useless .la files |
244 |
find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" |
245 |
} |
246 |
|
247 |
pkg_postinst() { |
248 |
elog "To modify system network connections without needing to enter the" |
249 |
elog "root password, add your user account to the 'plugdev' group." |
250 |
|
251 |
if [[ -e "${EROOT}etc/NetworkManager/nm-system-settings.conf" ]]; then |
252 |
ewarn "The ${PN} system configuration file has moved to a new location." |
253 |
ewarn "You must migrate your settings from ${EROOT}/etc/NetworkManager/nm-system-settings.conf" |
254 |
ewarn "to ${EROOT}etc/NetworkManager/NetworkManager.conf" |
255 |
ewarn |
256 |
ewarn "After doing so, you can remove ${EROOT}etc/NetworkManager/nm-system-settings.conf" |
257 |
fi |
258 |
} |