1 |
qiaomuf 12/01/05 01:56:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: networkmanager-0.9.2.0-r2.ebuild |
5 |
Removed: networkmanager-0.9.2.0-r1.ebuild |
6 |
Log: |
7 |
Make ifnet ignore user connections (bug #392409) |
8 |
|
9 |
Thanks to David Narvaez for his great help on this problem. |
10 |
|
11 |
(Portage version: 2.1.10.43/cvs/Linux x86_64) |
12 |
|
13 |
Revision Changes Path |
14 |
1.124 net-misc/networkmanager/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.124&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.124&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?r1=1.123&r2=1.124 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v |
23 |
retrieving revision 1.123 |
24 |
retrieving revision 1.124 |
25 |
diff -u -r1.123 -r1.124 |
26 |
--- ChangeLog 16 Dec 2011 20:36:08 -0000 1.123 |
27 |
+++ ChangeLog 5 Jan 2012 01:56:32 -0000 1.124 |
28 |
@@ -1,6 +1,16 @@ |
29 |
# ChangeLog for net-misc/networkmanager |
30 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.123 2011/12/16 20:36:08 tetromino Exp $ |
32 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
33 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.124 2012/01/05 01:56:32 qiaomuf Exp $ |
34 |
+ |
35 |
+*networkmanager-0.9.2.0-r2 (05 Jan 2012) |
36 |
+ |
37 |
+ 05 Jan 2012; Mu Qiao <qiaomuf@g.o> -networkmanager-0.9.2.0-r1.ebuild, |
38 |
+ +networkmanager-0.9.2.0-r2.ebuild, |
39 |
+ +files/networkmanager-0.9.2.0-ifnet-ignore-user-connections.patch, |
40 |
+ +files/networkmanager-0.9.2.0-ifnet-remove-system-prefix.patch: |
41 |
+ Make ifnet ignore user connections (bug #392409) |
42 |
+ |
43 |
+ Thanks to David Narvaez for his great help on this problem. |
44 |
|
45 |
16 Dec 2011; Alexandre Rostovtsev <tetromino@g.o> metadata.xml: |
46 |
s/steev/tetromino/ in maintainers. Acked by Nirbheek and Steev. |
47 |
|
48 |
|
49 |
|
50 |
1.1 net-misc/networkmanager/networkmanager-0.9.2.0-r2.ebuild |
51 |
|
52 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.2.0-r2.ebuild?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.2.0-r2.ebuild?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: networkmanager-0.9.2.0-r2.ebuild |
56 |
=================================================================== |
57 |
# Copyright 1999-2012 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.2.0-r2.ebuild,v 1.1 2012/01/05 01:56:32 qiaomuf Exp $ |
60 |
|
61 |
EAPI="4" |
62 |
GNOME_ORG_MODULE="NetworkManager" |
63 |
|
64 |
inherit autotools eutils gnome.org linux-info systemd |
65 |
|
66 |
DESCRIPTION="Network configuration and management in an easy way. Desktop environment independent." |
67 |
HOMEPAGE="http://www.gnome.org/projects/NetworkManager/" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
SLOT="0" |
71 |
IUSE="avahi bluetooth doc +nss gnutls dhclient +dhcpcd +introspection |
72 |
kernel_linux +ppp resolvconf connection-sharing wimax" |
73 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
74 |
|
75 |
REQUIRED_USE=" |
76 |
^^ ( nss gnutls ) |
77 |
^^ ( dhclient dhcpcd )" |
78 |
|
79 |
# gobject-introspection-0.10.3 is needed due to gnome bug 642300 |
80 |
# wpa_supplicant-0.7.3-r3 is needed due to bug 359271 |
81 |
# libnl:1.1 is needed for linking to net-wireless/wimax libraries |
82 |
# XXX: on bump, check that net-wireless/wimax is still using libnl:1.1 ! |
83 |
# TODO: Qt support? |
84 |
COMMON_DEPEND=">=sys-apps/dbus-1.2 |
85 |
>=dev-libs/dbus-glib-0.75 |
86 |
>=net-wireless/wireless-tools-28_pre9 |
87 |
|| ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-147[extras] ) |
88 |
>=dev-libs/glib-2.26 |
89 |
>=sys-auth/polkit-0.97 |
90 |
dev-libs/libnl:1.1 |
91 |
>=net-wireless/wpa_supplicant-0.7.3-r3[dbus] |
92 |
bluetooth? ( >=net-wireless/bluez-4.82 ) |
93 |
avahi? ( net-dns/avahi[autoipd] ) |
94 |
gnutls? ( |
95 |
dev-libs/libgcrypt |
96 |
net-libs/gnutls ) |
97 |
nss? ( >=dev-libs/nss-3.11 ) |
98 |
dhclient? ( net-misc/dhcp ) |
99 |
dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 ) |
100 |
introspection? ( >=dev-libs/gobject-introspection-0.10.3 ) |
101 |
ppp? ( |
102 |
>=net-misc/modemmanager-0.4 |
103 |
>=net-dialup/ppp-2.4.5 ) |
104 |
resolvconf? ( net-dns/openresolv ) |
105 |
connection-sharing? ( |
106 |
net-dns/dnsmasq |
107 |
net-firewall/iptables ) |
108 |
wimax? ( >=net-wireless/wimax-1.5.1 )" |
109 |
|
110 |
RDEPEND="${COMMON_DEPEND} |
111 |
sys-auth/consolekit" |
112 |
|
113 |
DEPEND="${COMMON_DEPEND} |
114 |
dev-util/pkgconfig |
115 |
>=dev-util/intltool-0.40 |
116 |
>=sys-devel/gettext-0.17 |
117 |
doc? ( >=dev-util/gtk-doc-1.8 )" |
118 |
|
119 |
sysfs_deprecated_check() { |
120 |
ebegin "Checking for SYSFS_DEPRECATED support" |
121 |
|
122 |
if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then |
123 |
eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel" |
124 |
eerror "or NetworkManager will not work correctly." |
125 |
eerror "See http://bugs.gentoo.org/333639 for more info." |
126 |
die "CONFIG_SYSFS_DEPRECATED_V2 support detected!" |
127 |
fi |
128 |
eend $? |
129 |
} |
130 |
|
131 |
pkg_pretend() { |
132 |
if use kernel_linux; then |
133 |
get_version |
134 |
if linux_config_exists; then |
135 |
sysfs_deprecated_check |
136 |
else |
137 |
ewarn "Was unable to determine your kernel .config" |
138 |
ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly." |
139 |
ewarn "See http://bugs.gentoo.org/333639 for more info." |
140 |
fi |
141 |
|
142 |
fi |
143 |
} |
144 |
|
145 |
pkg_setup() { |
146 |
enewgroup plugdev |
147 |
} |
148 |
|
149 |
src_prepare() { |
150 |
# Don't build tests |
151 |
epatch "${FILESDIR}/${PN}-0.9_rc3-fix-tests.patch" |
152 |
# Build against libnl:1.1 for net-wireless/wimax-1.5.2 compatibility |
153 |
epatch "${FILESDIR}/${PN}-0.9.1.95-force-libnl1.1.patch" |
154 |
# Migrate to openrc style |
155 |
epatch "${FILESDIR}/${P}-ifnet-openrc-style.patch" |
156 |
# Ignore per-user connections |
157 |
epatch "${FILESDIR}/${P}-ifnet-ignore-user-connections.patch" |
158 |
# Remove system prefix |
159 |
epatch "${FILESDIR}/${P}-ifnet-remove-system-prefix.patch" |
160 |
|
161 |
eautoreconf |
162 |
default |
163 |
} |
164 |
|
165 |
src_configure() { |
166 |
ECONF="--disable-more-warnings |
167 |
--disable-static |
168 |
--localstatedir=/var |
169 |
--with-distro=gentoo |
170 |
--with-dbus-sys-dir=/etc/dbus-1/system.d |
171 |
--with-udev-dir=/lib/udev |
172 |
--with-iptables=/sbin/iptables |
173 |
$(use_enable doc gtk-doc) |
174 |
$(use_enable introspection) |
175 |
$(use_enable ppp) |
176 |
$(use_enable wimax) |
177 |
$(use_with dhclient) |
178 |
$(use_with dhcpcd) |
179 |
$(use_with doc docs) |
180 |
$(use_with resolvconf) |
181 |
$(systemd_with_unitdir)" |
182 |
|
183 |
if use nss ; then |
184 |
ECONF="${ECONF} $(use_with nss crypto=nss)" |
185 |
else |
186 |
ECONF="${ECONF} $(use_with gnutls crypto=gnutls)" |
187 |
fi |
188 |
|
189 |
econf ${ECONF} |
190 |
} |
191 |
|
192 |
src_install() { |
193 |
default |
194 |
# Need to keep the /var/run/NetworkManager directory |
195 |
keepdir /var/run/NetworkManager |
196 |
|
197 |
# Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts |
198 |
keepdir /etc/NetworkManager/dispatcher.d |
199 |
|
200 |
# Add keyfile plugin support |
201 |
keepdir /etc/NetworkManager/system-connections |
202 |
chmod 0600 "${ED}"/etc/NetworkManager/system-connections/.keep* # bug #383765 |
203 |
insinto /etc/NetworkManager |
204 |
newins "${FILESDIR}/nm-system-settings.conf-ifnet" nm-system-settings.conf |
205 |
|
206 |
# Allow users in plugdev group to modify system connections |
207 |
insinto /etc/polkit-1/localauthority/10-vendor.d |
208 |
doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.pkla" |
209 |
|
210 |
# Remove useless .la files |
211 |
find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" |
212 |
} |
213 |
|
214 |
pkg_postinst() { |
215 |
elog "To modify system network connections without needing to enter the" |
216 |
elog "root password, add your user account to the 'plugdev' group." |
217 |
} |