From c0be929c8072b39ca081386c131a5f3896246093 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 24 Sep 2007 14:07:28 +0000 Subject: Add network-manager-applet git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2775 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- .../networkmanager/files/applet-no-gnome.diff | 66 ++++++++++++++++++++++ .../networkmanager/networkmanager-applet_svn.bb | 17 ++++++ 2 files changed, 83 insertions(+) create mode 100644 meta-extras/packages/networkmanager/files/applet-no-gnome.diff create mode 100644 meta-extras/packages/networkmanager/networkmanager-applet_svn.bb (limited to 'meta-extras') diff --git a/meta-extras/packages/networkmanager/files/applet-no-gnome.diff b/meta-extras/packages/networkmanager/files/applet-no-gnome.diff new file mode 100644 index 0000000000..761c3ab7a7 --- /dev/null +++ b/meta-extras/packages/networkmanager/files/applet-no-gnome.diff @@ -0,0 +1,66 @@ +Index: src/main.c +=================================================================== +--- src/main.c (revision 193) ++++ src/main.c (working copy) +@@ -27,7 +27,9 @@ + + #include + #include ++#if 0 + #include ++#endif + #include + + #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 @@ + gtk_main (); + + g_object_unref (applet); ++#if 0 + g_object_unref (program); ++#endif + + exit (0); + } +Index: configure.ac +=================================================================== +--- configure.ac (revision 193) ++++ configure.ac (working copy) +@@ -65,8 +65,7 @@ + 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` +@@ -124,11 +123,6 @@ + fi + fi + +-PKG_CHECK_EXISTS([libgnome-2.0 >= 2.14.0],[have_libgnome_2_14=yes],[have_libgnome_2_14=no]) +-if test "$have_libgnome_2_14" = "yes"; then +- AC_DEFINE([HAVE_LIBGNOME_2_14],[1],[Define if we have libgnome 2.14]) +-fi +- + AM_CONDITIONAL(WITH_NOTIFY, test x"$enable_notify" != xno) # can't do it from inside 'if' + AM_CONDITIONAL([HAVE_GTK_2_10],[test "$have_gtk_2_10" = "yes"]) + diff --git a/meta-extras/packages/networkmanager/networkmanager-applet_svn.bb b/meta-extras/packages/networkmanager/networkmanager-applet_svn.bb new file mode 100644 index 0000000000..5a340d6867 --- /dev/null +++ b/meta-extras/packages/networkmanager/networkmanager-applet_svn.bb @@ -0,0 +1,17 @@ +DESCRIPTION = "GTK+ applet for NetworkManager" +LICENSE = "GPL" +DEPENDS = "networkmanager dbus-glib libglade gconf gnome-keyring" +#TODO DEPENDS libnotify +RDEPENDS = "networkmanager" + +inherit gnome gtk-icon-cache + +SRC_URI = "svn://svn.gnome.org/svn/network-manager-applet/;module=trunk;proto=http \ + file://applet-no-gnome.diff;patch=1;pnum=0" + +S = "${WORKDIR}/trunk" + +FILES_${PN} += "${datadir}/nm-applet/ \ + ${datadir}/gnome-vpn-properties/ \ + ${datadir}/gnome/autostart/ \ + " -- cgit v1.2.3