Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/networkmanager: networkmanager-0.9.1.90-r3.ebuild ChangeLog
Date: Sat, 29 Oct 2011 06:31:00
Message-Id: 20111029063047.AB3F92004B@flycatcher.gentoo.org
1 tetromino 11/10/29 06:30:47
2
3 Modified: ChangeLog
4 Added: networkmanager-0.9.1.90-r3.ebuild
5 Log:
6 Bump to 0.9.1.90 from the gnome overlay. Allow users in plugdev group to modify system connections (so dropped wireless connections no longer bring up a modal root password prompt), thanks to Samuli Suominen for the solution. Numerous code changes.
7
8 (Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.117 net-misc/networkmanager/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.117&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?rev=1.117&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/ChangeLog?r1=1.116&r2=1.117
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v
20 retrieving revision 1.116
21 retrieving revision 1.117
22 diff -u -r1.116 -r1.117
23 --- ChangeLog 27 Oct 2011 05:50:07 -0000 1.116
24 +++ ChangeLog 29 Oct 2011 06:30:47 -0000 1.117
25 @@ -1,6 +1,19 @@
26 # ChangeLog for net-misc/networkmanager
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.116 2011/10/27 05:50:07 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.117 2011/10/29 06:30:47 tetromino Exp $
30 +
31 +*networkmanager-0.9.1.90-r3 (29 Oct 2011)
32 +
33 + 29 Oct 2011; Alexandre Rostovtsev <tetromino@g.o>
34 + +files/01-org.freedesktop.NetworkManager.settings.modify.system.pkla,
35 + +networkmanager-0.9.1.90-r3.ebuild,
36 + +files/networkmanager-0.9.1.90-force-libnl1.1.patch,
37 + +files/networkmanager-0.9.1.90-if.h.patch,
38 + +files/networkmanager-0.9.1.90-rfkill.patch:
39 + Bump to 0.9.1.90 from the gnome overlay. Allow users in plugdev group to
40 + modify system connections (so dropped wireless connections no longer bring up
41 + a modal root password prompt), thanks to Samuli Suominen for the solution.
42 + Numerous code changes.
43
44 27 Oct 2011; Alexandre Rostovtsev <tetromino@g.o>
45 networkmanager-0.8-r1.ebuild, networkmanager-0.8.4.0-r2.ebuild,
46
47
48
49 1.1 net-misc/networkmanager/networkmanager-0.9.1.90-r3.ebuild
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.1.90-r3.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/networkmanager-0.9.1.90-r3.ebuild?rev=1.1&content-type=text/plain
53
54 Index: networkmanager-0.9.1.90-r3.ebuild
55 ===================================================================
56 # Copyright 1999-2011 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.1.90-r3.ebuild,v 1.1 2011/10/29 06:30:47 tetromino Exp $
59
60 EAPI="4"
61 GNOME_ORG_MODULE="NetworkManager"
62
63 inherit autotools eutils gnome.org linux-info systemd
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 doc +nss gnutls dhclient +dhcpcd +introspection
71 kernel_linux +ppp resolvconf connection-sharing wimax"
72 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
73
74 REQUIRED_USE="
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 >=net-wireless/wireless-tools-28_pre9
86 || ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-147[extras] )
87 >=dev-libs/glib-2.26
88 >=sys-auth/polkit-0.97
89 dev-libs/libnl:1.1
90 >=net-wireless/wpa_supplicant-0.7.3-r3[dbus]
91 bluetooth? ( >=net-wireless/bluez-4.82 )
92 avahi? ( net-dns/avahi[autoipd] )
93 gnutls? (
94 dev-libs/libgcrypt
95 net-libs/gnutls )
96 nss? ( >=dev-libs/nss-3.11 )
97 dhclient? ( net-misc/dhcp )
98 dhcpcd? ( >=net-misc/dhcpcd-4.0.0_rc3 )
99 introspection? ( >=dev-libs/gobject-introspection-0.10.3 )
100 ppp? (
101 >=net-misc/modemmanager-0.4
102 >=net-dialup/ppp-2.4.5 )
103 resolvconf? ( net-dns/openresolv )
104 connection-sharing? (
105 net-dns/dnsmasq
106 net-firewall/iptables )
107 wimax? ( >=net-wireless/wimax-1.5.1 )"
108
109 RDEPEND="${COMMON_DEPEND}
110 sys-auth/consolekit"
111
112 DEPEND="${COMMON_DEPEND}
113 dev-util/pkgconfig
114 >=dev-util/intltool-0.40
115 >=sys-devel/gettext-0.17
116 doc? ( >=dev-util/gtk-doc-1.8 )"
117
118 sysfs_deprecated_check() {
119 ebegin "Checking for SYSFS_DEPRECATED support"
120
121 if { linux_chkconfig_present SYSFS_DEPRECATED_V2; }; then
122 eerror "Please disable SYSFS_DEPRECATED_V2 support in your kernel config and recompile your kernel"
123 eerror "or NetworkManager will not work correctly."
124 eerror "See http://bugs.gentoo.org/333639 for more info."
125 die "CONFIG_SYSFS_DEPRECATED_V2 support detected!"
126 fi
127 eend $?
128 }
129
130 pkg_pretend() {
131 if use kernel_linux; then
132 get_version
133 if linux_config_exists; then
134 sysfs_deprecated_check
135 else
136 ewarn "Was unable to determine your kernel .config"
137 ewarn "Please note that if CONFIG_SYSFS_DEPRECATED_V2 is set in your kernel .config, NetworkManager will not work correctly."
138 ewarn "See http://bugs.gentoo.org/333639 for more info."
139 fi
140
141 fi
142 }
143
144 pkg_setup() {
145 enewgroup plugdev
146 }
147
148 src_prepare() {
149 # Don't build tests
150 epatch "${FILESDIR}/${PN}-0.9_rc3-fix-tests.patch"
151 # Build against libnl:1.1 for net-wireless/wimax-1.5.2 compatibility
152 epatch "${FILESDIR}/${P}-force-libnl1.1.patch"
153 # Fix <linux/if.h> & <net/if.h> conflict, in next release (bug #388609)
154 epatch "${FILESDIR}/${P}-if.h.patch"
155 # Fix rfkill handling, will be in next release
156 epatch "${FILESDIR}/${P}-rfkill.patch"
157 eautoreconf
158 default
159 }
160
161 src_configure() {
162 ECONF="--disable-more-warnings
163 --disable-static
164 --localstatedir=/var
165 --with-distro=gentoo
166 --with-dbus-sys-dir=/etc/dbus-1/system.d
167 --with-udev-dir=/lib/udev
168 --with-iptables=/sbin/iptables
169 $(use_enable doc gtk-doc)
170 $(use_enable introspection)
171 $(use_enable ppp)
172 $(use_enable wimax)
173 $(use_with dhclient)
174 $(use_with dhcpcd)
175 $(use_with doc docs)
176 $(use_with resolvconf)
177 $(systemd_with_unitdir)"
178
179 if use nss ; then
180 ECONF="${ECONF} $(use_with nss crypto=nss)"
181 else
182 ECONF="${ECONF} $(use_with gnutls crypto=gnutls)"
183 fi
184
185 econf ${ECONF}
186 }
187
188 src_install() {
189 default
190 # Need to keep the /var/run/NetworkManager directory
191 keepdir /var/run/NetworkManager
192
193 # Need to keep the /etc/NetworkManager/dispatched.d for dispatcher scripts
194 keepdir /etc/NetworkManager/dispatcher.d
195
196 # Add keyfile plugin support
197 keepdir /etc/NetworkManager/system-connections
198 insinto /etc/NetworkManager
199 newins "${FILESDIR}/nm-system-settings.conf-ifnet" nm-system-settings.conf
200
201 # Allow users in plugdev group to modify system connections
202 insinto /etc/polkit-1/localauthority/10-vendor.d
203 doins "${FILESDIR}/01-org.freedesktop.NetworkManager.settings.modify.system.pkla"
204
205 # Remove useless .la files
206 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
207 }
208
209 pkg_postinst() {
210 elog "To modify system network connections without needing to enter the"
211 elog "root password, add your user account to the 'plugdev' group."
212 }