summaryrefslogtreecommitdiff
path: root/packages/networkmanager/files
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/networkmanager/files
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/networkmanager/files')
-rw-r--r--packages/networkmanager/files/008-BACKEND-debian-fallback-to-generic-loopback.loom.patch64
-rw-r--r--packages/networkmanager/files/02-dbus_access_network_manager.patch14
-rw-r--r--packages/networkmanager/files/25NetworkManager30
-rw-r--r--packages/networkmanager/files/99_networkmanager1
-rwxr-xr-xpackages/networkmanager/files/NetworkManager28
-rw-r--r--packages/networkmanager/files/add_probe_for_v250_modems.patch342
-rw-r--r--packages/networkmanager/files/adding_no_scan_by_default.patch12
-rw-r--r--packages/networkmanager/files/applet-no-gnome.diff59
-rw-r--r--packages/networkmanager/files/avoid_frequent_scan.patch226
-rw-r--r--packages/networkmanager/files/cx3110_bring_up.patch19
-rw-r--r--packages/networkmanager/files/dbus-1.0-fix.patch11
-rw-r--r--packages/networkmanager/files/dbus-api-fix.patch20
-rw-r--r--packages/networkmanager/files/define_kernel_types_for_old_linux_headers.patch15
-rw-r--r--packages/networkmanager/files/define_kernel_types_for_old_linux_headers_and_warn_functions_from_glib_2_16.patch57
-rw-r--r--packages/networkmanager/files/fix_seg_fault.patch13
-rw-r--r--packages/networkmanager/files/mamona/25NetworkManager30
-rw-r--r--packages/networkmanager/files/nm-applet.desktop9
-rw-r--r--packages/networkmanager/files/no-restarts.diff21
-rw-r--r--packages/networkmanager/files/remove-gtk-doc-make.patch11
19 files changed, 0 insertions, 982 deletions
diff --git a/packages/networkmanager/files/008-BACKEND-debian-fallback-to-generic-loopback.loom.patch b/packages/networkmanager/files/008-BACKEND-debian-fallback-to-generic-loopback.loom.patch
deleted file mode 100644
index f29fa77979..0000000000
--- a/packages/networkmanager/files/008-BACKEND-debian-fallback-to-generic-loopback.loom.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-=== modified file 'ChangeLog'
----
- ChangeLog | 10 ++++++++++
- src/backends/NetworkManagerDebian.c | 6 +++++-
- 2 files changed, 15 insertions(+), 1 deletion(-)
-
-Index: network-manager-0.7~~svn20081015t024626/ChangeLog
-===================================================================
---- network-manager-0.7~~svn20081015t024626.orig/ChangeLog
-+++ network-manager-0.7~~svn20081015t024626/ChangeLog
-@@ -120,16 +120,26 @@
-
- 2008-10-10 Tambet Ingo <tambet@gmail.com>
-
- * src/nm-logging.c (nm_logging_setup): Don't use LOG_CONS when running as
- a daemon to prevent NM logging spew on console on startup and shutdown (due
- to dependency loop between NM and syslog).
-
- 2008-10-10 Alexander Sack <asac@ubuntu.com>
-+
-+ Fallback to generic enable_loopback if /sbin/ifup isnt installed or
-+ fails.
-+ * src/backends/NetworkManagerDebian.c
-+ - (nm_system_enable_loopback): test for /sbin/ifconfig binary
-+ and fallback to nm_generic_enable_loopback if it
-+ doesnt exist or when /sbin/ifconfig lo up fails for
-+ whatever reason.
-+
-+2008-10-10 Alexander Sack <asac@ubuntu.com>
-
- Implement managed mode. We bind devices configured in /etc/network/interfaces
- to their connections by updating wired/wireless setting with the
- mac address of the device.
-
- * system-settings/plugins/ifupdown/plugin.c
- - (get_net_address_for_udi): implement function to retrieve MAC
- address of udi from hal in GByteArray format
-Index: network-manager-0.7~~svn20081015t024626/src/backends/NetworkManagerDebian.c
-===================================================================
---- network-manager-0.7~~svn20081015t024626.orig/src/backends/NetworkManagerDebian.c
-+++ network-manager-0.7~~svn20081015t024626/src/backends/NetworkManagerDebian.c
-@@ -39,17 +39,21 @@
- /*
- * nm_system_enable_loopback
- *
- * Bring up the loopback interface
- *
- */
- void nm_system_enable_loopback (void)
- {
-- nm_spawn_process ("/sbin/ifup lo");
-+ // if wrapper fails we gonna try our own
-+ if(!g_file_test ("/sbin/ifconfig", G_FILE_TEST_IS_EXECUTABLE) ||
-+ nm_spawn_process ("/sbin/ifconfig lo up") != 0) {
-+ nm_generic_enable_loopback ();
-+ }
- }
-
- /*
- * nm_system_update_dns
- *
- * Invalidate the nscd host cache, if it exists, since
- * we changed resolv.conf.
- *
diff --git a/packages/networkmanager/files/02-dbus_access_network_manager.patch b/packages/networkmanager/files/02-dbus_access_network_manager.patch
deleted file mode 100644
index 7dc2ddd0eb..0000000000
--- a/packages/networkmanager/files/02-dbus_access_network_manager.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -Nur bzr.debian.0.9.4.patchupdate/src/NetworkManager.conf bzr.debian.0.9.4.patchupdate.new/src/NetworkManager.conf
---- bzr.debian.0.9.4.patchupdate/src/NetworkManager.conf 2007-06-25 17:14:46.000000000 +0200
-+++ bzr.debian.0.9.4.patchupdate.new/src/NetworkManager.conf 2007-06-25 17:15:51.000000000 +0200
-@@ -8,6 +8,10 @@
- <allow send_destination="org.freedesktop.NetworkManager"/>
- <allow send_interface="org.freedesktop.NetworkManager"/>
- </policy>
-+ <policy user="haldaemon">
-+ <allow send_destination="org.freedesktop.NetworkManager"/>
-+ <allow send_interface="org.freedesktop.NetworkManager"/>
-+ </policy>
- <policy at_console="true">
- <allow send_destination="org.freedesktop.NetworkManager"/>
- <allow send_interface="org.freedesktop.NetworkManager"/>
diff --git a/packages/networkmanager/files/25NetworkManager b/packages/networkmanager/files/25NetworkManager
deleted file mode 100644
index 6b51bfa843..0000000000
--- a/packages/networkmanager/files/25NetworkManager
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# NetworkManager startup script
-
-. /etc/profile
-
-case $1 in
- 'start')
- echo -n "Starting NetworkManager daemon: NetworkManager"
- /usr/sbin/NetworkManager
- /usr/sbin/NetworkManagerDispatcher
- echo "."
- ;;
-
- 'stop')
- echo -n "Stopping NetworkManager daemon: NetworkManager"
- kill `pidof NetworkManagerDispatcher`
- kill `pidof NetworkManager`
- echo "."
- ;;
-
- 'restart')
- $0 stop
- $0 start
- ;;
-
- *)
- echo "Usage: $0 { start | stop | restart }"
- ;;
-esac
diff --git a/packages/networkmanager/files/99_networkmanager b/packages/networkmanager/files/99_networkmanager
deleted file mode 100644
index 20cbcc1bca..0000000000
--- a/packages/networkmanager/files/99_networkmanager
+++ /dev/null
@@ -1 +0,0 @@
-d root root 0700 /var/run/NetworkManager none
diff --git a/packages/networkmanager/files/NetworkManager b/packages/networkmanager/files/NetworkManager
deleted file mode 100755
index 0beff63081..0000000000
--- a/packages/networkmanager/files/NetworkManager
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#
-# NetworkManager startup script
-
-. /etc/profile
-
-case $1 in
- 'start')
- echo -n "Starting NetworkManager daemon: NetworkManager"
- /usr/sbin/NetworkManager
- echo "."
- ;;
-
- 'stop')
- echo -n "Stopping NetworkManager daemon: NetworkManager"
- kill `ps |grep /usr/sbin/NetworkManager | grep -v grep | cut "-d " -f2`
- echo "."
- ;;
-
- 'restart')
- $0 stop
- $0 start
- ;;
-
- *)
- echo "Usage: $0 { start | stop | restart }"
- ;;
-esac
diff --git a/packages/networkmanager/files/add_probe_for_v250_modems.patch b/packages/networkmanager/files/add_probe_for_v250_modems.patch
deleted file mode 100644
index 011bf93d9d..0000000000
--- a/packages/networkmanager/files/add_probe_for_v250_modems.patch
+++ /dev/null
@@ -1,342 +0,0 @@
-=== modified file 'src/Makefile.am'
----
- src/Makefile.am | 4 -
- src/nm-hal-manager.c | 24 ++++++-
- src/probe-modem.c | 166 +++++++++++++++++++++++++++++++++++++++++++++++++++
- src/probe-modem.h | 29 ++++++++
- 4 files changed, 220 insertions(+), 3 deletions(-)
-
-Index: network-manager.07.ubuntu/src/Makefile.am
-===================================================================
---- network-manager.07.ubuntu.orig/src/Makefile.am
-+++ network-manager.07.ubuntu/src/Makefile.am
-@@ -67,17 +67,19 @@
- nm-cdma-device.h \
- nm-hso-gsm-device.c \
- nm-hso-gsm-device.h \
- wpa.c \
- wpa.h \
- nm-netlink.c \
- nm-netlink.h \
- nm-dhcp4-config.c \
-- nm-dhcp4-config.h
-+ nm-dhcp4-config.h \
-+ probe-modem.c \
-+ probe-modem.h
-
- nm-access-point-glue.h: $(top_srcdir)/introspection/nm-access-point.xml
- dbus-binding-tool --prefix=nm_access_point --mode=glib-server --output=$@ $<
-
- nm-manager-glue.h: $(top_srcdir)/introspection/nm-manager.xml
- dbus-binding-tool --prefix=nm_manager --mode=glib-server --output=$@ $<
-
- nm-device-interface-glue.h: $(top_srcdir)/introspection/nm-device.xml
-Index: network-manager.07.ubuntu/src/nm-hal-manager.c
-===================================================================
---- network-manager.07.ubuntu.orig/src/nm-hal-manager.c
-+++ network-manager.07.ubuntu/src/nm-hal-manager.c
-@@ -12,16 +12,19 @@
- #include "nm-dbus-manager.h"
- #include "nm-utils.h"
- #include "nm-device-wifi.h"
- #include "nm-device-ethernet.h"
- #include "nm-gsm-device.h"
- #include "nm-hso-gsm-device.h"
- #include "nm-cdma-device.h"
-
-+#include "probe-modem.h"
-+
-+
- /* Killswitch poll frequency in seconds */
- #define RFKILL_POLL_FREQUENCY 6
-
- #define HAL_DBUS_SERVICE "org.freedesktop.Hal"
-
- typedef struct {
- LibHalContext *hal_ctx;
- NMDBusManager *dbus_mgr;
-@@ -269,43 +272,51 @@
- modem_device_creator (NMHalManager *self, const char *udi, gboolean managed)
- {
- NMHalManagerPrivate *priv = NM_HAL_MANAGER_GET_PRIVATE (self);
- char *serial_device;
- char *parent_udi;
- char *driver_name = NULL;
- GObject *device = NULL;
- char **capabilities, **iter;
-- gboolean type_gsm = FALSE;
-- gboolean type_cdma = FALSE;
-+ gboolean type_gsm;
-+ gboolean type_cdma;
-+ gboolean type_v250;
- char *netdev = NULL;
-
- serial_device = libhal_device_get_property_string (priv->hal_ctx, udi, "serial.device", NULL);
-
- /* Get the driver */
- parent_udi = libhal_device_get_property_string (priv->hal_ctx, udi, "info.parent", NULL);
- if (parent_udi) {
- driver_name = libhal_device_get_property_string (priv->hal_ctx, parent_udi, "info.linux.driver", NULL);
- libhal_free_string (parent_udi);
- }
-
- if (!serial_device || !driver_name)
- goto out;
-
-+ type_gsm = FALSE;
-+ type_cdma = FALSE;
-+ type_v250 = FALSE;
- capabilities = libhal_device_get_property_strlist (priv->hal_ctx, udi, "modem.command_sets", NULL);
- /* 'capabilites' may be NULL */
- for (iter = capabilities; iter && *iter; iter++) {
- if (!strcmp (*iter, "GSM-07.07")) {
- type_gsm = TRUE;
- break;
- }
- if (!strcmp (*iter, "IS-707-A")) {
- type_cdma = TRUE;
- break;
- }
-+ if (!strcmp (*iter, "V.250")) {
-+ type_v250 = TRUE;
-+ /* no break here! */
-+ }
- }
- g_strfreev (capabilities);
-
- /* Compatiblity with the pre-specification bits */
- if (!type_gsm && !type_cdma) {
- capabilities = libhal_device_get_property_strlist (priv->hal_ctx, udi, "info.capabilities", NULL);
- for (iter = capabilities; *iter; iter++) {
- if (!strcmp (*iter, "gsm")) {
-@@ -315,16 +326,25 @@
- if (!strcmp (*iter, "cdma")) {
- type_cdma = TRUE;
- break;
- }
- }
- g_strfreev (capabilities);
- }
-
-+ /* V.250 probe */
-+ if (!type_gsm && !type_cdma && type_v250) {
-+ gint probed_type = probe_modem (serial_device, udi, priv->hal_ctx);
-+ if (probed_type == 1)
-+ type_gsm = TRUE;
-+ else if (probed_type == 2)
-+ type_cdma = TRUE;
-+ }
-+
- /* Special handling of 'hso' cards (until punted out to a modem manager) */
- if (type_gsm && !strcmp (driver_name, "hso"))
- netdev = get_hso_netdev (priv->hal_ctx, udi);
-
- if (type_gsm) {
- if (netdev)
- device = (GObject *) nm_hso_gsm_device_new (udi, serial_device + strlen ("/dev/"), NULL, netdev, driver_name, managed);
- else
-Index: network-manager.07.ubuntu/src/probe-modem.c
-===================================================================
---- /dev/null
-+++ network-manager.07.ubuntu/src/probe-modem.c
-@@ -0,0 +1,166 @@
-+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
-+/* Probe modem capabilities
-+ *
-+ * Copyright (c) 2008 Vitja Makarov, <vitja.makarov@gmail.com>
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+ *
-+ */
-+
-+#include <termios.h>
-+#include <unistd.h>
-+#include <fcntl.h>
-+#include <errno.h>
-+
-+#include <stdio.h>
-+#include <string.h>
-+#include <stdlib.h>
-+
-+#include "nm-utils.h"
-+#include "probe-modem.h"
-+
-+
-+#define MODEM_CAP_GSM 0x0001 /* GSM commands */
-+#define MODEM_CAP_IS707_A 0x0002 /* CDMA circuit switched data commands */
-+#define MODEM_CAP_DS 0x0004 /* data compression */
-+#define MODEM_CAP_ES 0x0008 /* error control */
-+#define MODEM_CAP_FCLASS 0x0010 /* Fax commands */
-+#define MODEM_CAP_MS 0x0020 /* Modulation control commands */
-+#define MODEM_CAP_W 0x0040 /* Wireless commands */
-+
-+struct modem_caps {
-+ char *name;
-+ int bits;
-+};
-+
-+static struct modem_caps modem_caps[] = {
-+ {"+CGSM", MODEM_CAP_GSM},
-+ /* TODO: are they the same? */
-+ {"+CIS707-A", MODEM_CAP_IS707_A},
-+ {"+CIS707", MODEM_CAP_IS707_A},
-+ {"+CIS707P", MODEM_CAP_IS707_A},
-+ {NULL}
-+} ;
-+
-+#define AT_CAPS_PROBE "AT+GCAP\r\n"
-+
-+static int modem_probe_caps(int fd)
-+{
-+ char buf[200];
-+ char *ptr, *field = NULL;
-+ int err, ret = 0;
-+
-+ err = write(fd, AT_CAPS_PROBE, sizeof(AT_CAPS_PROBE) - 1);
-+
-+ if (err != sizeof(AT_CAPS_PROBE) - 1)
-+ return -1;
-+
-+ /* 100ms is enough for modem to send all the data */
-+ usleep(100000);
-+
-+ err = read(fd, buf, sizeof(buf) - 1);
-+ if (err <= 0)
-+ return -1;
-+ buf[err] = 0;
-+
-+ /* check okay reply */
-+ ptr = strstr(buf, "\r\nOK\r\n");
-+ if (!ptr)
-+ return -1;
-+ *ptr = 0;
-+
-+ /* find +GCAP: string */
-+ ptr = strstr(buf, "\r\n+GCAP:");
-+
-+ if (ptr == NULL)
-+ return -1;
-+ ptr += 8;
-+
-+ /* and parse it */
-+ do {
-+ err = *ptr == '\0' || *ptr == '\r' || *ptr == '\n';
-+ if (*ptr == ' ' || *ptr == ',' || err) {
-+ *ptr = 0;
-+ if (field) {
-+ struct modem_caps *cap = modem_caps;
-+
-+ while (cap->name) {
-+ if (!strcmp(cap->name, field))
-+ ret |= cap->bits;
-+ cap++;
-+ }
-+ }
-+ field = NULL;
-+ } else if (NULL == field) {
-+ field = ptr;
-+ }
-+ ptr++;
-+ } while (!err);
-+
-+ return ret;
-+}
-+
-+int probe_modem (const char* device, const char *udi, LibHalContext *ctx)
-+{
-+ struct termios orig, attrs;
-+ int fd, caps;
-+ int rv = -1;
-+
-+ fd = open(device, O_RDWR|O_NDELAY);
-+
-+ if (-1 == fd) {
-+ nm_warning ("open(%s): %s", device, strerror(errno));
-+ return rv;
-+ }
-+
-+ if (tcgetattr(fd, &orig))
-+ goto close_and_out;
-+
-+ memcpy(&attrs, &orig, sizeof(attrs));
-+ attrs.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY | IGNPAR);
-+ attrs.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
-+ attrs.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
-+ attrs.c_lflag &= ~(ECHO | ECHOE);
-+ attrs.c_cc[VMIN] = 1;
-+ attrs.c_cc[VTIME] = 0;
-+ attrs.c_cc[VEOF] = 1;
-+
-+ tcsetattr(fd, TCSANOW, &attrs);
-+ caps = modem_probe_caps(fd);
-+ tcsetattr(fd, TCSANOW, &orig);
-+
-+ if (caps < 0) {
-+ nm_debug("Couldn't get caps");
-+ goto close_and_out;
-+ }
-+
-+ if (caps & MODEM_CAP_GSM) {
-+ nm_debug("Found GSM modem");
-+ rv = 1;
-+ goto close_and_out;
-+ }
-+
-+ if (caps & MODEM_CAP_IS707_A) {
-+ nm_debug("Found CDMA modem");
-+ rv = 2;
-+ goto close_and_out;
-+ }
-+
-+ rv = 0;
-+
-+close_and_out:
-+ close (fd);
-+ return rv;
-+}
-Index: network-manager.07.ubuntu/src/probe-modem.h
-===================================================================
---- /dev/null
-+++ network-manager.07.ubuntu/src/probe-modem.h
-@@ -0,0 +1,29 @@
-+/* Copyright (c) 2008 Antti Kaijanmäki, <antti@kaijanmaki.net>
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License
-+ * along with this program; if not, write to the Free Software
-+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+ *
-+ */
-+
-+#ifndef PROBE_MODEM_H
-+#define PROBE_MODEM_H
-+
-+
-+#include <glib.h>
-+#include <libhal.h>
-+
-+/* returns '1' if properties were changed */
-+int probe_modem (const char* device, const char* udi, LibHalContext *ctx);
-+
-+#endif /* PROBE_MODEM_H */
diff --git a/packages/networkmanager/files/adding_no_scan_by_default.patch b/packages/networkmanager/files/adding_no_scan_by_default.patch
deleted file mode 100644
index 31682c5c29..0000000000
--- a/packages/networkmanager/files/adding_no_scan_by_default.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: NetworkManager-0.6.6/initscript/Debian/NetworkManager
-===================================================================
---- NetworkManager-0.6.6.orig/initscript/Debian/NetworkManager 2008-09-03 17:44:23.000000000 -0300
-+++ NetworkManager-0.6.6/initscript/Debian/NetworkManager 2008-09-03 18:01:35.000000000 -0300
-@@ -18,6 +18,7 @@
- DESC="Network connection manager daemon"
- NAME="NetworkManager"
- DAEMON=/usr/sbin/$NAME
-+DAEMON_OPTS=--no-scan
- PIDFILE=/var/run/$NAME.pid
- SCRIPTNAME=/etc/init.d/$NAME
- USER=root
diff --git a/packages/networkmanager/files/applet-no-gnome.diff b/packages/networkmanager/files/applet-no-gnome.diff
deleted file mode 100644
index e098e8c9ed..0000000000
--- a/packages/networkmanager/files/applet-no-gnome.diff
+++ /dev/null
@@ -1,59 +0,0 @@
----
- configure.ac | 3 +--
- src/main.c | 8 ++++++++
- 2 files changed, 9 insertions(+), 2 deletions(-)
-
-Index: src/main.c
-===================================================================
---- src/main.c.orig 2007-09-26 10:39:16.000000000 +0100
-+++ src/main.c 2007-09-26 10:39:37.000000000 +0100
-@@ -27,7 +27,9 @@
-
- #include <string.h>
- #include <gtk/gtk.h>
-+#if 0
- #include <libgnomeui/libgnomeui.h>
-+#endif
- #include <glib/gi18n-lib.h>
-
- #include "applet.h"
-@@ -36,11 +38,15 @@
- int main (int argc, char *argv[])
- {
- NMApplet * applet;
-+#if 0
- GnomeProgram * program;
-
- program = gnome_program_init ("nm-applet", VERSION, LIBGNOMEUI_MODULE,
- argc, argv,
- GNOME_PARAM_NONE, GNOME_PARAM_NONE);
-+#else
-+ gtk_init (&argc, &argv);
-+#endif
-
- bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
- bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
-@@ -53,7 +59,9 @@ int main (int argc, char *argv[])
- gtk_main ();
-
- g_object_unref (applet);
-+#if 0
- g_object_unref (program);
-+#endif
-
- exit (0);
- }
-Index: configure.ac
-===================================================================
---- configure.ac.orig 2007-09-26 10:39:30.000000000 +0100
-+++ configure.ac 2007-09-26 10:39:37.000000000 +0100
-@@ -65,8 +65,7 @@ PKG_CHECK_MODULES(NMA,
- gtk+-2.0 >= 2.6
- libglade-2.0
- gconf-2.0
-- gnome-keyring-1
-- libgnomeui-2.0])
-+ gnome-keyring-1])
-
- ##### Find out the version of DBUS we're using
- dbus_version=`pkg-config --modversion dbus-1`
diff --git a/packages/networkmanager/files/avoid_frequent_scan.patch b/packages/networkmanager/files/avoid_frequent_scan.patch
deleted file mode 100644
index 43f84f7674..0000000000
--- a/packages/networkmanager/files/avoid_frequent_scan.patch
+++ /dev/null
@@ -1,226 +0,0 @@
-Index: NetworkManager-0.6.6/src/nm-device-802-11-wireless.c
-===================================================================
---- NetworkManager-0.6.6.orig/src/nm-device-802-11-wireless.c 2008-09-05 15:01:32.000000000 -0300
-+++ NetworkManager-0.6.6/src/nm-device-802-11-wireless.c 2008-09-08 11:37:23.000000000 -0300
-@@ -624,9 +624,12 @@
- NMDevice80211Wireless * self = NM_DEVICE_802_11_WIRELESS (dev);
- GSource * source;
- guint source_id;
-+ NMData * app_data;
-+
-+ app_data = nm_device_get_app_data (NM_DEVICE (self));
-
- /* Start the scanning timeout for devices that can do scanning */
-- if (nm_device_get_capabilities (dev) & NM_DEVICE_CAP_WIRELESS_SCAN) {
-+ if (!app_data->no_scan && nm_device_get_capabilities (dev) & NM_DEVICE_CAP_WIRELESS_SCAN) {
- /* Stupid orinoco has problems scanning immediately after being up,
- * so wait a bit before triggering a scan.
- */
-@@ -1063,9 +1066,14 @@
- NMWirelessScanInterval interval)
- {
- guint8 seconds = nm_wireless_scan_interval_to_seconds (interval);
-+ NMData *app_data;
-
- g_return_if_fail (self != NULL);
-
-+ app_data = nm_device_get_app_data (NM_DEVICE (self));
-+ if (app_data->no_scan)
-+ return;
-+
- self->priv->scan_interval = seconds;
-
- if (interval == NM_WIRELESS_SCAN_INTERVAL_ACTIVE && !self->priv->scanning) {
-@@ -1974,9 +1982,13 @@
- scan_results_timeout (NMDevice80211Wireless *self)
- {
- GTimeVal cur_time;
-+ NMData * app_data;
-
- g_return_val_if_fail (self != NULL, FALSE);
-
-+ app_data = nm_device_get_app_data (NM_DEVICE (self));
-+ g_assert (app_data);
-+
- request_and_convert_scan_results (self);
-
- self->priv->scanning = FALSE;
-@@ -1984,11 +1996,39 @@
- g_get_current_time (&cur_time);
- self->priv->last_scan = cur_time.tv_sec;
-
-- /* After the first successful scan back down to the ACTIVE scan interval */
-- if (self->priv->scan_interval == nm_wireless_scan_interval_to_seconds (NM_WIRELESS_SCAN_INTERVAL_INIT))
-- nm_device_802_11_wireless_set_scan_interval (self, NM_WIRELESS_SCAN_INTERVAL_ACTIVE);
-- else
-- schedule_scan (self, 0);
-+ if (!app_data->no_scan)
-+ {
-+ /* After the first successful scan back down to the ACTIVE scan interval */
-+ if (self->priv->scan_interval == nm_wireless_scan_interval_to_seconds (NM_WIRELESS_SCAN_INTERVAL_INIT))
-+ nm_device_802_11_wireless_set_scan_interval (self, NM_WIRELESS_SCAN_INTERVAL_ACTIVE);
-+ else
-+ schedule_scan (self, 0);
-+ }
-+ else
-+ {
-+ /* If we're in "no scan" mode, lets always signalize that we've performed a scan */
-+ DBusMessage *message;
-+ char *dev_path = NULL;
-+
-+ if (!(dev_path = nm_dbus_get_object_path_for_device (NM_DEVICE (self))))
-+ goto out;
-+
-+ if (!(message = dbus_message_new_signal (NM_DBUS_PATH, NM_DBUS_INTERFACE, "ScanPerformed")))
-+ {
-+ nm_warning ("scan_results_timeout(): Not enough memory for new dbus message!");
-+ goto out;
-+ }
-+
-+ dbus_message_append_args (message, DBUS_TYPE_OBJECT_PATH, &dev_path, DBUS_TYPE_INVALID);
-+
-+ if (!dbus_connection_send (app_data->dbus_connection, message, NULL))
-+ nm_warning ("scan_results_timeout(): Could not raise the ScanPerformed signal!");
-+
-+ dbus_message_unref (message);
-+
-+out:
-+ g_free (dev_path);
-+ }
-
- return FALSE;
- }
-@@ -2134,7 +2174,7 @@
- }
- schedule_scan_results_timeout (self, 10);
- }
-- return FALSE;
-+ return TRUE;
-
- reschedule:
- schedule_scan (self, 0);
-@@ -2156,6 +2196,13 @@
- }
-
-
-+gboolean
-+nm_device_802_11_wireless_perform_scan (NMDevice80211Wireless *self)
-+{
-+ return nm_device_802_11_wireless_scan ((gpointer) self);
-+}
-+
-+
- /*
- * schedule_scan
- *
-Index: NetworkManager-0.6.6/src/NetworkManager.c
-===================================================================
---- NetworkManager-0.6.6.orig/src/NetworkManager.c 2008-03-06 17:14:39.000000000 -0300
-+++ NetworkManager-0.6.6/src/NetworkManager.c 2008-09-05 15:01:32.000000000 -0300
-@@ -929,6 +929,7 @@
- gboolean become_daemon = FALSE;
- gboolean enable_test_devices = FALSE;
- gboolean show_usage = FALSE;
-+ gboolean no_scan = FALSE;
- char * owner;
- char * pidfile = NULL;
- char * user_pidfile = NULL;
-@@ -951,6 +952,7 @@
- {"pid-file", 0, 0, G_OPTION_ARG_STRING, &user_pidfile, "Specify the location of a PID file", NULL},
- {"enable-test-devices", 0, 0, G_OPTION_ARG_NONE, &enable_test_devices, "Allow dummy devices to be created via DBUS methods [DEBUG]", NULL},
- {"info", 0, 0, G_OPTION_ARG_NONE, &show_usage, "Show application information", NULL},
-+ {"no-scan", 0, 0, G_OPTION_ARG_NONE, &no_scan, "Prevent background scan", NULL},
- {NULL}
- };
- opt_ctx = g_option_context_new("");
-@@ -1009,6 +1011,8 @@
- exit (EXIT_FAILURE);
- }
-
-+ nm_data->no_scan = no_scan;
-+
- /* Create our dbus service */
- nm_data->dbus_connection = nm_dbus_init (nm_data);
- if (!nm_data->dbus_connection)
-Index: NetworkManager-0.6.6/src/NetworkManagerMain.h
-===================================================================
---- NetworkManager-0.6.6.orig/src/NetworkManagerMain.h 2008-03-06 17:14:39.000000000 -0300
-+++ NetworkManager-0.6.6/src/NetworkManagerMain.h 2008-09-05 15:01:32.000000000 -0300
-@@ -87,6 +87,7 @@
- gboolean modem_active;
- gboolean asleep;
- gboolean disconnected;
-+ gboolean no_scan;
-
- GSList * dialup_list;
- GMutex * dialup_list_mutex;
-Index: NetworkManager-0.6.6/src/nm-dbus-device.c
-===================================================================
---- NetworkManager-0.6.6.orig/src/nm-dbus-device.c 2008-03-06 17:14:39.000000000 -0300
-+++ NetworkManager-0.6.6/src/nm-dbus-device.c 2008-09-08 15:12:43.000000000 -0300
-@@ -500,6 +500,44 @@
- }
-
-
-+static DBusMessage *nm_dbus_device_perform_scan (DBusConnection *connection, DBusMessage *message, NMDbusCBData *data)
-+{
-+ NMDevice *dev;
-+ DBusMessage *reply = NULL;
-+ NMData * app_data;
-+
-+ g_return_val_if_fail (data && data->data && data->dev && connection && message, NULL);
-+
-+ dev = data->dev;
-+
-+ app_data = nm_device_get_app_data (NM_DEVICE (dev));
-+ if (!app_data->no_scan)
-+ {
-+ nm_warning ("You cannot ask for a scan if you're not in 'No scan' mode");
-+ reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE, "Cannot perform scan", "You cannot ask for a scan if you're not in 'No scan' mode");
-+ goto out;
-+ }
-+
-+ if (!nm_device_is_802_11_wireless (dev))
-+ {
-+ reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE, "DeviceNotWireless",
-+ "Wired devices cannot scan for wireless networks.");
-+ goto out;
-+ }
-+
-+ if (nm_device_802_11_wireless_perform_scan ((NMDevice80211Wireless *) dev))
-+ reply = dbus_message_new_method_return (message); /* Success */
-+ else
-+ reply = nm_dbus_create_error_message (message, NM_DBUS_INTERFACE, "Cannot perform scan", "The device cannot perform network scanning.");
-+
-+out:
-+ if (!reply)
-+ nm_warning ("Could not allocate dbus message.");
-+
-+ return reply;
-+}
-+
-+
- /*
- * nm_dbus_device_methods_setup
- *
-@@ -523,6 +561,7 @@
- nm_dbus_method_list_add_method (list, "setLinkActive", nm_dbus_device_set_link_active);
- nm_dbus_method_list_add_method (list, "getCapabilities", nm_dbus_device_get_capabilities);
- nm_dbus_method_list_add_method (list, "getDriver", nm_dbus_device_get_driver);
-+ nm_dbus_method_list_add_method (list, "performScan", nm_dbus_device_perform_scan);
-
- return (list);
- }
-Index: NetworkManager-0.6.6/src/nm-device-802-11-wireless.h
-===================================================================
---- NetworkManager-0.6.6.orig/src/nm-device-802-11-wireless.h 2008-03-06 17:14:39.000000000 -0300
-+++ NetworkManager-0.6.6/src/nm-device-802-11-wireless.h 2008-09-05 15:01:32.000000000 -0300
-@@ -110,6 +110,8 @@
-
- gint8 nm_device_802_11_wireless_get_signal_strength (NMDevice80211Wireless *self);
-
-+gboolean nm_device_802_11_wireless_perform_scan (NMDevice80211Wireless *self);
-+
-
- G_END_DECLS
-
diff --git a/packages/networkmanager/files/cx3110_bring_up.patch b/packages/networkmanager/files/cx3110_bring_up.patch
deleted file mode 100644
index 3317ff6479..0000000000
--- a/packages/networkmanager/files/cx3110_bring_up.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-Index: NetworkManager-0.6.6/src/nm-device-802-11-wireless.c
-===================================================================
---- NetworkManager-0.6.6.orig/src/nm-device-802-11-wireless.c 2008-09-03 15:10:43.000000000 -0300
-+++ NetworkManager-0.6.6/src/nm-device-802-11-wireless.c 2008-09-03 15:27:23.000000000 -0300
-@@ -295,6 +295,14 @@
- guint32 caps = NM_DEVICE_CAP_NONE;
- iwrange range;
- struct iwreq wrq;
-+ NMDevice80211Wireless *self = NM_DEVICE_802_11_WIRELESS (dev);
-+
-+ /* The cx3110 driver has to be UP in order to get its capabilities. */
-+ if (!self->priv->is_initialized) {
-+ const char *kernel_driver = nm_device_get_driver (dev);
-+ if (nm_null_safe_strcmp("cx3110", kernel_driver))
-+ nm_device_bring_up (dev);
-+ }
-
- /* Check for Wireless Extensions support >= 16 for wireless devices */
-
diff --git a/packages/networkmanager/files/dbus-1.0-fix.patch b/packages/networkmanager/files/dbus-1.0-fix.patch
deleted file mode 100644
index 29edc255f0..0000000000
--- a/packages/networkmanager/files/dbus-1.0-fix.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- /tmp/NetworkManagerDbus.c 2006-11-21 11:07:35.000000000 +0100
-+++ NetworkManager-0.6.4/src/NetworkManagerDbus.c 2006-11-21 11:08:35.748554000 +0100
-@@ -833,7 +833,7 @@
- }
-
- dbus_error_init (&error);
--#if (DBUS_VERSION_MAJOR == 0) && (DBUS_VERSION_MINOR >= 60)
-+#if (DBUS_VERSION_MAJOR == 0) && (DBUS_VERSION_MINOR >= 60) || DBUS_VERSION_MAJOR > 0
- flags = DBUS_NAME_FLAG_DO_NOT_QUEUE; /* Prohibit replacement is now the default */
- #else
- flags = DBUS_NAME_FLAG_PROHIBIT_REPLACEMENT;
diff --git a/packages/networkmanager/files/dbus-api-fix.patch b/packages/networkmanager/files/dbus-api-fix.patch
deleted file mode 100644
index 64e60f961b..0000000000
--- a/packages/networkmanager/files/dbus-api-fix.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- /tmp/libnm_glib.c 2006-08-24 22:21:01.000000000 +0200
-+++ NetworkManager-0.6.4/gnome/libnm_glib/libnm_glib.c 2006-08-24 22:21:47.888306000 +0200
-@@ -230,7 +230,7 @@
- {
- /* Try to reactivate our connection to dbus on the next pass through the event loop */
- ctx->nm_state = LIBNM_NO_DBUS;
-- dbus_connection_disconnect (ctx->dbus_con);
-+ dbus_connection_close (ctx->dbus_con);
- libnm_glib_schedule_dbus_watcher (ctx);
- }
- else if (dbus_message_is_signal (message, DBUS_INTERFACE_DBUS, "NameOwnerChanged"))
-@@ -444,7 +444,7 @@
- g_main_loop_unref (ctx->g_main_loop);
-
- if (ctx->dbus_con)
-- dbus_connection_disconnect (ctx->dbus_con);
-+ dbus_connection_close (ctx->dbus_con);
-
- if (ctx->callbacks_lock)
- g_mutex_free (ctx->callbacks_lock);
diff --git a/packages/networkmanager/files/define_kernel_types_for_old_linux_headers.patch b/packages/networkmanager/files/define_kernel_types_for_old_linux_headers.patch
deleted file mode 100644
index cc966f453d..0000000000
--- a/packages/networkmanager/files/define_kernel_types_for_old_linux_headers.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-Index: trunk/src/nm-device-802-3-ethernet.c
-===================================================================
---- trunk.orig/src/nm-device-802-3-ethernet.c 2008-05-07 11:06:53.000000000 -0300
-+++ trunk/src/nm-device-802-3-ethernet.c 2008-09-04 15:03:11.000000000 -0300
-@@ -28,6 +28,10 @@
- #include <net/ethernet.h>
- #include <stdlib.h>
- #include <linux/sockios.h>
-+typedef unsigned long long u64;
-+typedef unsigned int u32;
-+typedef unsigned short u16;
-+typedef unsigned char u8;
- #include <linux/ethtool.h>
- #include <sys/ioctl.h>
- #include <unistd.h>
diff --git a/packages/networkmanager/files/define_kernel_types_for_old_linux_headers_and_warn_functions_from_glib_2_16.patch b/packages/networkmanager/files/define_kernel_types_for_old_linux_headers_and_warn_functions_from_glib_2_16.patch
deleted file mode 100644
index e6a2a537ce..0000000000
--- a/packages/networkmanager/files/define_kernel_types_for_old_linux_headers_and_warn_functions_from_glib_2_16.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-Index: trunk/src/nm-device-ethernet.c
-===================================================================
---- trunk.orig/src/nm-device-ethernet.c 2008-08-21 18:44:59.000000000 -0300
-+++ trunk/src/nm-device-ethernet.c 2008-08-21 18:44:59.000000000 -0300
-@@ -28,6 +28,10 @@
- #include <net/ethernet.h>
- #include <stdlib.h>
- #include <linux/sockios.h>
-+typedef unsigned long long u64;
-+typedef unsigned int u32;
-+typedef unsigned short u16;
-+typedef unsigned char u8;
- #include <linux/ethtool.h>
- #include <sys/ioctl.h>
- #include <unistd.h>
-Index: trunk/src/nm-device-wifi.c
-===================================================================
---- trunk.orig/src/nm-device-wifi.c 2008-08-21 18:54:24.000000000 -0300
-+++ trunk/src/nm-device-wifi.c 2008-08-21 19:17:17.000000000 -0300
-@@ -165,6 +165,9 @@
- gboolean has_scan_capa_ssid;
- };
-
-+#define g_warn_if_fail(expr) do { if G_LIKELY (expr) ; else \
-+ g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, #expr); } while (0)
-+
- static guint32 nm_device_wifi_get_frequency (NMDeviceWifi *self);
-
- static void nm_device_wifi_set_ssid (NMDeviceWifi *self, const GByteArray * ssid);
-@@ -220,6 +223,27 @@
- const GValue *handler_return,
- gpointer data);
-
-+void
-+g_warn_message (const char *domain,
-+ const char *file,
-+ int line,
-+ const char *func,
-+ const char *warnexpr)
-+{
-+ char *s, lstr[32];
-+ g_snprintf (lstr, 32, "%d", line);
-+ if (warnexpr)
-+ s = g_strconcat ("(", file, ":", lstr, "):",
-+ func, func[0] ? ":" : "",
-+ " runtime check failed: (", warnexpr, ")", NULL);
-+ else
-+ s = g_strconcat ("(", file, ":", lstr, "):",
-+ func, func[0] ? ":" : "",
-+ " ", "code should not be reached", NULL);
-+ g_log (domain, G_LOG_LEVEL_WARNING, "%s", s);
-+ g_free (s);
-+}
-+
- static GQuark
- nm_wifi_error_quark (void)
- {
diff --git a/packages/networkmanager/files/fix_seg_fault.patch b/packages/networkmanager/files/fix_seg_fault.patch
deleted file mode 100644
index 679ca8e172..0000000000
--- a/packages/networkmanager/files/fix_seg_fault.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: NetworkManager-0.6.6/src/nm-device-802-11-wireless.c
-===================================================================
---- NetworkManager-0.6.6.orig/src/nm-device-802-11-wireless.c 2008-03-06 17:14:39.000000000 -0300
-+++ NetworkManager-0.6.6/src/nm-device-802-11-wireless.c 2008-08-26 13:53:22.000000000 -0300
-@@ -944,6 +944,8 @@
- /* If we didn't get any security info, make some up. */
- if (!security)
- security = nm_ap_security_new_from_ap (ap);
-+ else
-+ g_object_ref (security);
- }
- g_assert (security);
- nm_ap_set_security (ap, security);
diff --git a/packages/networkmanager/files/mamona/25NetworkManager b/packages/networkmanager/files/mamona/25NetworkManager
deleted file mode 100644
index 606d2bc33d..0000000000
--- a/packages/networkmanager/files/mamona/25NetworkManager
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# NetworkManager startup script
-
-. /etc/profile
-
-case $1 in
- 'start')
- echo -n "Starting NetworkManager daemon: NetworkManager"
- /usr/sbin/NetworkManager --no-scan
- /usr/sbin/NetworkManagerDispatcher
- echo "."
- ;;
-
- 'stop')
- echo -n "Stopping NetworkManager daemon: NetworkManager"
- kill `pidof NetworkManagerDispatcher`
- kill `pidof NetworkManager`
- echo "."
- ;;
-
- 'restart')
- $0 stop
- $0 start
- ;;
-
- *)
- echo "Usage: $0 { start | stop | restart }"
- ;;
-esac
diff --git a/packages/networkmanager/files/nm-applet.desktop b/packages/networkmanager/files/nm-applet.desktop
deleted file mode 100644
index 3d99df5cfe..0000000000
--- a/packages/networkmanager/files/nm-applet.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-Name=Network Manager
-Comment=NetworkManager control applet
-Exec=nm-applet
-Type=PanelApp
-Icon=none
-Categories=Panel;Utility;
-
diff --git a/packages/networkmanager/files/no-restarts.diff b/packages/networkmanager/files/no-restarts.diff
deleted file mode 100644
index 20bdf82aab..0000000000
--- a/packages/networkmanager/files/no-restarts.diff
+++ /dev/null
@@ -1,21 +0,0 @@
-Index: src/backends/NetworkManagerDebian.c
-===================================================================
---- src/backends/NetworkManagerDebian.c (revision 2881)
-+++ src/backends/NetworkManagerDebian.c (working copy)
-@@ -204,8 +204,6 @@
- */
- void nm_system_update_dns (void)
- {
-- nm_spawn_process ("/usr/sbin/invoke-rc.d nscd restart");
--
- }
-
-
-@@ -218,7 +216,6 @@
- */
- void nm_system_restart_mdns_responder (void)
- {
-- nm_spawn_process ("/usr/bin/killall -q -USR1 mDNSResponder");
- }
-
-
diff --git a/packages/networkmanager/files/remove-gtk-doc-make.patch b/packages/networkmanager/files/remove-gtk-doc-make.patch
deleted file mode 100644
index b4137c69a7..0000000000
--- a/packages/networkmanager/files/remove-gtk-doc-make.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-Index: trunk/docs/libnm-glib/Makefile.am
-===================================================================
---- trunk.orig/docs/libnm-glib/Makefile.am 2008-11-17 19:37:20.000000000 -0300
-+++ trunk/docs/libnm-glib/Makefile.am 2008-11-17 19:37:30.000000000 -0300
-@@ -75,5 +75,5 @@
-
-
- # include common portion ...
--include $(top_srcdir)/gtk-doc.make
-+#include $(top_srcdir)/gtk-doc.make
-