summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-02-26 08:13:31 +0000
committerMu Qiao <qiaomuf@gentoo.org>2011-02-26 08:13:31 +0000
commit5e1cffec15add920197b6e7a9d110c1d5870e148 (patch)
tree1d498ff7bfef6c5e9069f047a58a682c5106bcc2 /net-misc/networkmanager
parentInclude upstream patch. (diff)
downloadgentoo-2-5e1cffec15add920197b6e7a9d110c1d5870e148.tar.gz
gentoo-2-5e1cffec15add920197b6e7a9d110c1d5870e148.tar.bz2
gentoo-2-5e1cffec15add920197b6e7a9d110c1d5870e148.zip
Display printable conn_name in nm-applet (bug #356337)
(Portage version: 2.1.9.41/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/networkmanager')
-rw-r--r--net-misc/networkmanager/ChangeLog9
-rw-r--r--net-misc/networkmanager/files/networkmanager-0.8.2-ifnet-smarter-write.patch38
-rw-r--r--net-misc/networkmanager/networkmanager-0.8.2-r9.ebuild (renamed from net-misc/networkmanager/networkmanager-0.8.2-r8.ebuild)2
3 files changed, 37 insertions, 12 deletions
diff --git a/net-misc/networkmanager/ChangeLog b/net-misc/networkmanager/ChangeLog
index ec9687cb43b2..23e4fd3df93e 100644
--- a/net-misc/networkmanager/ChangeLog
+++ b/net-misc/networkmanager/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/networkmanager
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.99 2011/02/26 05:59:00 qiaomuf Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/ChangeLog,v 1.100 2011/02/26 08:13:31 qiaomuf Exp $
+
+*networkmanager-0.8.2-r9 (26 Feb 2011)
+
+ 26 Feb 2011; Mu Qiao <qiaomuf@gentoo.org> -networkmanager-0.8.2-r8.ebuild,
+ +networkmanager-0.8.2-r9.ebuild,
+ files/networkmanager-0.8.2-ifnet-smarter-write.patch:
+ Display printable conn_name in nm-applet. (bug #356337)
*networkmanager-0.8.2-r8 (26 Feb 2011)
diff --git a/net-misc/networkmanager/files/networkmanager-0.8.2-ifnet-smarter-write.patch b/net-misc/networkmanager/files/networkmanager-0.8.2-ifnet-smarter-write.patch
index a1f589d0062b..ff4c1f253677 100644
--- a/net-misc/networkmanager/files/networkmanager-0.8.2-ifnet-smarter-write.patch
+++ b/net-misc/networkmanager/files/networkmanager-0.8.2-ifnet-smarter-write.patch
@@ -1,4 +1,4 @@
-From 5b018326db5c9ebad8a63e1e231f49d2ca65e28c Mon Sep 17 00:00:00 2001
+From 776fafc133e18df48dc92a717c662e1b2858567e Mon Sep 17 00:00:00 2001
From: Mu Qiao <qiaomuf@gentoo.org>
Date: Fri, 25 Feb 2011 16:25:07 +0000
Subject: [PATCH 3/3] Won't write when nothing changed
@@ -7,17 +7,35 @@ Subject: [PATCH 3/3] Won't write when nothing changed
Signed-off-by: Mu Qiao <qiaomuf@gentoo.org>
---
- system-settings/plugins/ifnet/connection_parser.c | 24 ++++++--------------
- system-settings/plugins/ifnet/net_parser.c | 8 +++++-
- system-settings/plugins/ifnet/plugin.c | 4 ---
- system-settings/plugins/ifnet/wpa_parser.c | 7 ++++-
- 4 files changed, 18 insertions(+), 25 deletions(-)
+ system-settings/plugins/ifnet/connection_parser.c | 33 +++++++++-----------
+ system-settings/plugins/ifnet/net_parser.c | 8 ++++-
+ system-settings/plugins/ifnet/plugin.c | 4 --
+ system-settings/plugins/ifnet/wpa_parser.c | 7 +++-
+ 4 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/system-settings/plugins/ifnet/connection_parser.c b/system-settings/plugins/ifnet/connection_parser.c
-index 9b5ddc1..8600142 100644
+index 9b5ddc1..4ac2173 100644
--- a/system-settings/plugins/ifnet/connection_parser.c
+++ b/system-settings/plugins/ifnet/connection_parser.c
-@@ -627,23 +627,13 @@ make_ip4_setting (NMConnection * connection, gchar * conn_name, GError ** error)
+@@ -55,9 +55,16 @@ update_connection_id (NMConnection * connection, gchar * conn_name)
+ gchar *idstr = NULL;
+ gchar *uuid_base = NULL;
+ gchar *uuid = NULL;
++ int name_len;
+ NMSettingConnection *setting;
+
+- idstr = g_strdup_printf ("%s (%s)", get_prefix (), conn_name);
++ name_len = strlen (conn_name);
++ if ((name_len > 2) && (g_str_has_prefix (conn_name, "0x"))) {
++ gchar * conn_name_printable = utils_hexstr2bin (conn_name + 2, name_len - 2);
++ idstr = g_strdup_printf ("%s (%s)", get_prefix (), conn_name_printable);
++ g_free (conn_name_printable);
++ } else
++ idstr = g_strdup_printf ("%s (%s)", get_prefix (), conn_name);
+ uuid_base = idstr;
+ uuid = nm_utils_uuid_generate_from_string (uuid_base);
+ setting =
+@@ -627,23 +634,13 @@ make_ip4_setting (NMConnection * connection, gchar * conn_name, GError ** error)
g_object_set (ip4_setting,
NM_SETTING_IP4_CONFIG_IGNORE_AUTO_ROUTES,
TRUE, NULL);
@@ -44,7 +62,7 @@ index 9b5ddc1..8600142 100644
}
g_object_set (ip4_setting,
NM_SETTING_IP4_CONFIG_METHOD,
-@@ -2276,11 +2266,12 @@ write_wireless_setting (NMConnection * connection,
+@@ -2276,11 +2273,12 @@ write_wireless_setting (NMConnection * connection,
return FALSE;
}
@@ -60,7 +78,7 @@ index 9b5ddc1..8600142 100644
hex_ssid = TRUE;
break;
}
-@@ -2487,7 +2478,6 @@ write_ip4_setting (NMConnection * connection, gchar * conn_name,
+@@ -2487,7 +2485,6 @@ write_ip4_setting (NMConnection * connection, gchar * conn_name,
ifnet_set_data (conn_name, "config", "dhcp");
/* DNS Servers */
diff --git a/net-misc/networkmanager/networkmanager-0.8.2-r8.ebuild b/net-misc/networkmanager/networkmanager-0.8.2-r9.ebuild
index 7c1c488f662d..bc12243522bd 100644
--- a/net-misc/networkmanager/networkmanager-0.8.2-r8.ebuild
+++ b/net-misc/networkmanager/networkmanager-0.8.2-r9.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.8.2-r8.ebuild,v 1.1 2011/02/26 05:59:00 qiaomuf Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/networkmanager/networkmanager-0.8.2-r9.ebuild,v 1.1 2011/02/26 08:13:31 qiaomuf Exp $
EAPI="2"