diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-08-19 23:00:30 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-08-19 23:00:30 +0000 |
commit | 0f201658aee50d436773ec405c2c506c77de097f (patch) | |
tree | c73dfa0d1b958c29acb7532d69ce59212a3196ea /palm | |
parent | - Update to 0.8 (diff) |
- Update to 0.12
PR: 126635
Submitted by: Alexander Logvinov <ports@logvinov.com> (maintainer)
Diffstat (limited to 'palm')
-rw-r--r-- | palm/synce-trayicon/Makefile | 25 | ||||
-rw-r--r-- | palm/synce-trayicon/distinfo | 6 | ||||
-rw-r--r-- | palm/synce-trayicon/files/patch-data_synce-trayicon.schemas.in | 6 | ||||
-rw-r--r-- | palm/synce-trayicon/files/patch-device-info.c | 387 | ||||
-rw-r--r-- | palm/synce-trayicon/files/patch-gtop_stuff.c | 26 | ||||
-rw-r--r-- | palm/synce-trayicon/files/patch-po_Makefile.in | 122 | ||||
-rw-r--r-- | palm/synce-trayicon/files/patch-src_hal-client.c | 11 | ||||
-rw-r--r-- | palm/synce-trayicon/files/patch-src_synce-trayicon.c | 42 | ||||
-rw-r--r-- | palm/synce-trayicon/files/patch-synce-trayicon.1 | 11 |
9 files changed, 80 insertions, 556 deletions
diff --git a/palm/synce-trayicon/Makefile b/palm/synce-trayicon/Makefile index 3917e8f8d9a5..4be66b4c8944 100644 --- a/palm/synce-trayicon/Makefile +++ b/palm/synce-trayicon/Makefile @@ -5,16 +5,19 @@ # $FreeBSD$ PORTNAME= synce-trayicon -PORTVERSION= 0.11 +PORTVERSION= 0.12 CATEGORIES= palm MASTER_SITES= SF MASTER_SITE_SUBDIR= synce MAINTAINER= ports@logvinov.com -COMMENT= GNOME tray icon showing battery and storage status of a WinCE device +COMMENT= GNOME system tray app for monitoring connected WinCE based devices LIB_DEPENDS= rra.0:${PORTSDIR}/palm/synce-librra \ - gtop-2.0.7:${PORTSDIR}/devel/libgtop + gtop-2.0.7:${PORTSDIR}/devel/libgtop \ + unshield.0:${PORTSDIR}/archivers/unshield \ + orange.0:${PORTSDIR}/archivers/liborange +RUN_DEPENDS= ${LOCALBASE}/libexec/gvfsd-synce:${PORTSDIR}/palm/synce-gvfs OPTIONS= NOTIFY "Enable libnotify support" on @@ -24,7 +27,7 @@ USE_GETTEXT= yes USE_GNOME= gnomeprefix gnomehack gnometarget libgnomeui INSTALLS_ICONS= yes GCONF_SCHEMAS= ${PORTNAME}.schemas -LDFLAGS+= -L${LOCALBASE}/lib -lsynce +LDFLAGS+= -L${LOCALBASE}/lib CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \ LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}" @@ -44,6 +47,20 @@ post-patch: @${REINPLACE_CMD} -e 's|enable_notify=yes|enable_notify=no|' ${WRKSRC}/configure .endif +pre-configure: + @if [ -z "`${GREP} libsynce ${LOCALBASE}/libdata/pkgconfig/liborange.pc`" ]; then \ + ${ECHO_MSG} ; \ + ${ECHO_MSG} "${PKGNAME} requires archivers/liborange built with LIBSYNCE option ON" ; \ + ${ECHO_MSG} ; \ + ${FALSE}; \ + fi + @if [ -z "`${GREP} libunshield ${LOCALBASE}/libdata/pkgconfig/liborange.pc`" ]; then \ + ${ECHO_MSG} ; \ + ${ECHO_MSG} "${PKGNAME} requires archivers/liborange built with LIBUNSHIELD option ON" ; \ + ${ECHO_MSG} ; \ + ${FALSE}; \ + fi + post-install: @${CAT} ${PKGMESSAGE} diff --git a/palm/synce-trayicon/distinfo b/palm/synce-trayicon/distinfo index d506d33fa7e6..3abe7c7bd09c 100644 --- a/palm/synce-trayicon/distinfo +++ b/palm/synce-trayicon/distinfo @@ -1,3 +1,3 @@ -MD5 (synce-trayicon-0.11.tar.gz) = dc24b3260d25ace872f1f5f8fab87714 -SHA256 (synce-trayicon-0.11.tar.gz) = 77c3da9f9b1e030580f7637b6f4cd464d7be77786a5b591c9b49c9092f8a23d0 -SIZE (synce-trayicon-0.11.tar.gz) = 457128 +MD5 (synce-trayicon-0.12.tar.gz) = 46da7e0de59645a4272a106f718a0f0a +SHA256 (synce-trayicon-0.12.tar.gz) = 5bfea3a88bba1656b6e72dea1ef20277be8a1e8fdf1c3805cf9c40037bd6e7d6 +SIZE (synce-trayicon-0.12.tar.gz) = 459329 diff --git a/palm/synce-trayicon/files/patch-data_synce-trayicon.schemas.in b/palm/synce-trayicon/files/patch-data_synce-trayicon.schemas.in index ffe70c983d99..e5e0d643603a 100644 --- a/palm/synce-trayicon/files/patch-data_synce-trayicon.schemas.in +++ b/palm/synce-trayicon/files/patch-data_synce-trayicon.schemas.in @@ -1,5 +1,5 @@ ---- data/synce-trayicon.schemas.in.orig 2008-07-26 22:21:11.000000000 +1000 -+++ data/synce-trayicon.schemas.in 2008-07-26 22:22:37.000000000 +1000 +--- data/synce-trayicon.schemas.in.orig 2008-07-28 10:01:15.000000000 +1000 ++++ data/synce-trayicon.schemas.in 2008-07-28 10:01:39.000000000 +1000 @@ -19,10 +19,10 @@ <applyto>/apps/synce/trayicon/dccm</applyto> <owner>synce-trayicon</owner> @@ -8,7 +8,7 @@ + <default>h</default> <locale name="C"> <short>The dccm implementation used</short> -- <long>The dccm implementation used, 'o' for odccm (the default), 'v' for vdccm.</long> +- <long>The dccm implementation used, 'o' for odccm (the default), 'h' for synce-hal, 'v' for vdccm.</long> + <long>The dccm implementation used, 'h' for synce-hal (the default), 'v' for vdccm.</long> </locale> </schema> diff --git a/palm/synce-trayicon/files/patch-device-info.c b/palm/synce-trayicon/files/patch-device-info.c deleted file mode 100644 index dedcffdf5895..000000000000 --- a/palm/synce-trayicon/files/patch-device-info.c +++ /dev/null @@ -1,387 +0,0 @@ ---- src/device-info.c.orig 2008-04-16 05:17:47.000000000 +1000 -+++ src/device-info.c 2008-06-11 20:59:44.000000000 +1000 -@@ -356,12 +356,12 @@ - } - - gint response; -- guint32 index, item; -+ guint32 item; - gboolean active, result; - guint id; - gchar *name = NULL; -+ GtkListStore *store = NULL; - GtkTreeIter iter; -- GtkTreeModel *model; - GtkCellRenderer *renderer; - GtkTreeViewColumn *column; - GtkWidget *device_info_dialog = priv->dialog; -@@ -369,7 +369,6 @@ - GtkWidget *create_pship_dialog = glade_xml_get_widget (xml, "create_partnership_dialog"); - GtkWidget *pship_name_entry = glade_xml_get_widget (xml, "pship_name_entry"); - GtkWidget *sync_items_listview = glade_xml_get_widget (xml, "sync_items_listview"); -- GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (sync_items_listview)); - GArray *sync_items_required = NULL; - GHashTable *sync_items = NULL; - GError *error = NULL; -@@ -433,10 +432,10 @@ - goto exit; - } - -- GtkListStore *store = gtk_list_store_new (SYNCITEM_N_COLUMNS, -- G_TYPE_INT, /* index */ -- G_TYPE_BOOLEAN, /* selected */ -- G_TYPE_STRING); /* program name */ -+ store = gtk_list_store_new (SYNCITEM_N_COLUMNS, -+ G_TYPE_INT, /* index */ -+ G_TYPE_BOOLEAN, /* selected */ -+ G_TYPE_STRING); /* program name */ - - g_hash_table_foreach(sync_items, setup_sync_item_store, store); - g_hash_table_destroy(sync_items); -@@ -529,6 +528,256 @@ - } - - -+#if GLIB_MINOR_VERSION < 14 -+static void -+get_sync_item_keys(gpointer key, -+ gpointer value, -+ gpointer user_data) -+{ -+ *(GList **)user_data = g_list_append(*(GList **)user_data, key); -+} -+#endif -+ -+ -+static gboolean -+check_delete_orphans(WmDeviceInfo *self, guint id, gchar *guid) -+{ -+ WmDeviceInfoPrivate *priv = WM_DEVICE_INFO_GET_PRIVATE (self); -+ if (priv->disposed) { -+ g_warning("%s: Disposed object passed", G_STRFUNC); -+ return FALSE; -+ } -+ -+ GError *error = NULL; -+ DBusGConnection *dbus_connection = NULL; -+ DBusGProxy *sync_engine_proxy = NULL; -+ gboolean result = FALSE; -+ -+ GPtrArray* partnership_list = NULL; -+ GValueArray *partnership = NULL; -+ GHashTable *sync_items = NULL; -+ gboolean show_extra_warning; -+ GArray *orphaned_items = NULL; -+ GArray *sync_items_active = NULL; -+ GHashTable *pship_connections = NULL; -+ GList *item_keys = NULL, *tmp_list = NULL; -+ guint *sync_item_key = NULL; -+ guint index; -+ -+ dbus_connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); -+ if (dbus_connection == NULL) { -+ g_critical("%s: Failed to open connection to bus: %s", G_STRFUNC, error->message); -+ -+ GtkWidget *failed_dialog = gtk_message_dialog_new(GTK_WINDOW(priv->dialog), -+ GTK_DIALOG_DESTROY_WITH_PARENT, -+ GTK_MESSAGE_WARNING, -+ GTK_BUTTONS_OK, -+ "Deletion of partnership was unsuccessful: %s", -+ error->message); -+ -+ gtk_dialog_run(GTK_DIALOG(failed_dialog)); -+ gtk_widget_destroy (failed_dialog); -+ -+ g_error_free (error); -+ goto exit; -+ } -+ -+ sync_engine_proxy = dbus_g_proxy_new_for_name (dbus_connection, -+ "org.synce.SyncEngine", -+ "/org/synce/SyncEngine", -+ "org.synce.SyncEngine"); -+ if (sync_engine_proxy == NULL) { -+ g_critical("%s: Failed to create proxy to sync engine", G_STRFUNC); -+ -+ GtkWidget *failed_dialog = gtk_message_dialog_new(GTK_WINDOW(priv->dialog), -+ GTK_DIALOG_DESTROY_WITH_PARENT, -+ GTK_MESSAGE_WARNING, -+ GTK_BUTTONS_OK, -+ "Deletion of partnership was unsuccessful: Failed to connect to SyncEngine"); -+ -+ gtk_dialog_run(GTK_DIALOG(failed_dialog)); -+ gtk_widget_destroy (failed_dialog); -+ -+ goto exit; -+ } -+ -+ result = org_synce_syncengine_get_partnerships (sync_engine_proxy, &partnership_list, &error); -+ if (!result) { -+ g_critical("%s: Error getting partnership list from sync-engine: %s", G_STRFUNC, error->message); -+ -+ GtkWidget *failed_dialog = gtk_message_dialog_new(GTK_WINDOW(priv->dialog), -+ GTK_DIALOG_DESTROY_WITH_PARENT, -+ GTK_MESSAGE_WARNING, -+ GTK_BUTTONS_OK, -+ "Failed to retrieve partnership information: %s", -+ error->message); -+ -+ gtk_dialog_run(GTK_DIALOG(failed_dialog)); -+ gtk_widget_destroy (failed_dialog); -+ -+ g_error_free(error); -+ goto exit; -+ } -+ -+ result = org_synce_syncengine_get_item_types(sync_engine_proxy, &sync_items, &error); -+ if (!result) { -+ g_critical("%s: Error fetching sync item list: %s", G_STRFUNC, error->message); -+ -+ GtkWidget *failed_dialog = gtk_message_dialog_new(GTK_WINDOW(priv->dialog), -+ GTK_DIALOG_DESTROY_WITH_PARENT, -+ GTK_MESSAGE_WARNING, -+ GTK_BUTTONS_OK, -+ "Failed to retrieve partnership information: %s", -+ error->message); -+ -+ gtk_dialog_run(GTK_DIALOG(failed_dialog)); -+ gtk_widget_destroy (failed_dialog); -+ -+ g_error_free(error); -+ goto exit; -+ } -+ -+#if GLIB_MINOR_VERSION < 14 -+ g_hash_table_foreach(sync_items, -+ get_sync_item_keys, -+ &item_keys); -+#else -+ item_keys = g_hash_table_get_keys(sync_items); -+#endif -+ -+ pship_connections = g_hash_table_new_full(g_int_hash, g_int_equal, g_free, NULL); -+ -+ tmp_list = item_keys; -+ -+ while (tmp_list) { -+ sync_item_key = (guint *) g_malloc (sizeof (guint)); -+ *sync_item_key = GPOINTER_TO_UINT(tmp_list->data); -+ -+ g_hash_table_insert(pship_connections, sync_item_key, GUINT_TO_POINTER(0)); -+ -+ tmp_list = g_list_next(tmp_list); -+ } -+ -+ g_list_free(item_keys); -+ -+ index = 0; -+ while(index < partnership_list->len) -+ { -+ partnership = g_ptr_array_index(partnership_list, index); -+ -+ /* an array of sync item ids - au - array of uint32 */ -+ sync_items_active = g_value_get_boxed(g_value_array_get_nth (partnership, 6)); -+ -+ guint i; -+ guint active_item; -+ guint current_count; -+ for (i = 0; i < sync_items_active->len; i++) { -+ active_item = g_array_index(sync_items_active, guint, i); -+ current_count = GPOINTER_TO_UINT(g_hash_table_lookup(pship_connections, &active_item)); -+ current_count++; -+ -+ sync_item_key = (guint *) g_malloc (sizeof (guint)); -+ *sync_item_key = active_item; -+ -+ g_hash_table_insert(pship_connections, sync_item_key, GUINT_TO_POINTER(current_count)); -+ } -+ -+ index++; -+ } -+ -+ show_extra_warning = FALSE; -+ orphaned_items = g_array_new(FALSE, TRUE, sizeof(guint)); -+ index = 0; -+ while(index < partnership_list->len) -+ { -+ partnership = g_ptr_array_index(partnership_list, index); -+ -+ guint partnership_id = g_value_get_uint(g_value_array_get_nth (partnership, 0)); -+ const gchar *partnership_guid = g_value_get_string(g_value_array_get_nth (partnership, 1)); -+ -+ if ((partnership_id == id) && (strcmp(partnership_guid, guid) == 0)) { -+ sync_items_active = g_value_get_boxed(g_value_array_get_nth (partnership, 6)); -+ -+ guint i; -+ guint active_item; -+ guint current_count; -+ for (i = 0; i < sync_items_active->len; i++) { -+ active_item = g_array_index(sync_items_active, guint, i); -+ current_count = GPOINTER_TO_UINT(g_hash_table_lookup(pship_connections, &active_item)); -+ -+ if (current_count == 1) { -+ show_extra_warning = TRUE; -+ g_array_append_val(orphaned_items, active_item); -+ } -+ } -+ -+ break; -+ } -+ index++; -+ } -+ -+ g_hash_table_destroy(pship_connections); -+ -+ if (show_extra_warning) { -+ GString *orphaned_str = NULL; -+ guint i; -+ guint item; -+ gint reply; -+ -+ for (i = 0; i < orphaned_items->len; i++) { -+ item = g_array_index(orphaned_items, guint, i); -+ -+ if (!orphaned_str) -+ orphaned_str = g_string_new(g_hash_table_lookup(sync_items, GUINT_TO_POINTER(item))); -+ else -+ g_string_append_printf(orphaned_str, ", %s", (gchar *)g_hash_table_lookup(sync_items, GUINT_TO_POINTER(item))); -+ } -+ -+ g_array_free(orphaned_items, TRUE); -+ -+ GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(priv->dialog), -+ GTK_DIALOG_DESTROY_WITH_PARENT, -+ GTK_MESSAGE_WARNING, -+ GTK_BUTTONS_YES_NO, -+ "It appears you are using a Windows Mobile 6 device. Deleting this partnership might result in all items of types %s being deleted from the device because no other partnership is connected with them. Are you really sure you want to delete this partnership?", -+ orphaned_str->str); -+ -+ gtk_window_set_title(GTK_WINDOW(dialog), "Possible deletion of 'orphaned' items"); -+ reply = gtk_dialog_run(GTK_DIALOG(dialog)); -+ gtk_widget_destroy (dialog); -+ -+ g_string_free(orphaned_str, TRUE); -+ -+ if (reply != GTK_RESPONSE_YES) -+ result = FALSE; -+ else -+ result = TRUE; -+ -+ } else -+ result = TRUE; -+ -+exit: -+ -+ if (partnership_list) { -+ index = 0; -+ while(index < partnership_list->len) { -+ partnership = g_ptr_array_index(partnership_list, index); -+ g_value_array_free(partnership); -+ -+ index++; -+ } -+ g_ptr_array_free(partnership_list, TRUE); -+ } -+ -+ if (sync_items) g_hash_table_destroy(sync_items); -+ -+ if (sync_engine_proxy) g_object_unref(sync_engine_proxy); -+ if (dbus_connection) dbus_g_connection_unref(dbus_connection); -+ -+ return result; -+} -+ -+ - static void - partners_remove_button_clicked_synceng_cb (GtkWidget *widget, gpointer data) - { -@@ -544,9 +793,10 @@ - } - - guint index, id; -+ guint os_major, os_minor; - gchar *guid = NULL; - gchar *name; -- GtkTreeIter iter; -+ GtkTreeIter iter, parent_iter; - GtkTreeModel *model; - GtkWidget *partners_list_view = glade_xml_get_widget (priv->xml, "partners_list"); - GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (partners_list_view)); -@@ -572,6 +822,20 @@ - return; - } - -+ /* if the user selected one of the subitems */ -+ -+ if (gtk_tree_model_iter_parent(model, &parent_iter, &iter)) { -+ g_free(guid); -+ g_free(name); -+ gtk_tree_model_get (model, -+ &parent_iter, -+ SYNCENG_INDEX_COLUMN, &index, -+ SYNCENG_ID_COLUMN, &id, -+ SYNCENG_GUID_COLUMN, &guid, -+ SYNCENG_NAME_COLUMN, &name, -+ -1); -+ } -+ - GtkWidget *device_info_dialog = priv->dialog; - GtkWidget *confirm_dialog = gtk_message_dialog_new(GTK_WINDOW(device_info_dialog), - GTK_DIALOG_DESTROY_WITH_PARENT, -@@ -628,6 +892,21 @@ - goto exit; - } - -+ /* -+ Check whether the removal of this particular partnership would result -+ in orphaned itemtypes, that would be deleted by wm6 -+ */ -+ -+ g_object_get(priv->device, -+ "os-major", &os_major, -+ "os-minor", &os_minor, -+ NULL); -+ -+ if ((os_major > 4) && (os_minor > 1)) { -+ if (!check_delete_orphans(self, id, guid)) -+ goto exit; -+ } -+ - result = org_synce_syncengine_delete_partnership(sync_engine_proxy, id, guid, &error); - if (!result) { - g_critical("%s: Error deleting partnership via sync-engine: %s", G_STRFUNC, error->message); -@@ -673,7 +952,7 @@ - GtkTreeModel *model; - gint index, id; - gchar *name; -- GtkWidget *partners_create_button, *partners_remove_button; -+ GtkWidget *partners_remove_button; - - partners_remove_button = glade_xml_get_widget (priv->xml, "partners_remove_button"); - -@@ -701,15 +980,6 @@ - } - - --#if GLIB_MINOR_VERSION < 14 --get_sync_item_keys(gpointer key, -- gpointer value, -- gpointer user_data) --{ -- *(GList **)user_data = g_list_append(*(GList **)user_data, key); --} --#endif -- - static void - partners_setup_view_store_synceng(WmDeviceInfo *self) - { -@@ -1765,9 +2035,6 @@ - static void - wm_device_info_finalize (GObject *obj) - { -- WmDeviceInfo *self = WM_DEVICE_INFO(obj); -- WmDeviceInfoPrivate *priv = WM_DEVICE_INFO_GET_PRIVATE (self); -- - if (G_OBJECT_CLASS (wm_device_info_parent_class)->finalize) - G_OBJECT_CLASS (wm_device_info_parent_class)->finalize (obj); - } diff --git a/palm/synce-trayicon/files/patch-gtop_stuff.c b/palm/synce-trayicon/files/patch-gtop_stuff.c deleted file mode 100644 index c33b9c68b158..000000000000 --- a/palm/synce-trayicon/files/patch-gtop_stuff.c +++ /dev/null @@ -1,26 +0,0 @@ ---- src/gtop_stuff.c.orig 2008-04-16 05:17:47.000000000 +1000 -+++ src/gtop_stuff.c 2008-06-11 20:59:54.000000000 +1000 -@@ -63,12 +63,12 @@ - static GArray * - find_dccm () { - glibtop_proclist proclist; -- unsigned *pid_list; -+ pid_t *pid_list; - gint i = 0; - gint n = 0; - gint which, arg; - -- GArray *dccm_list = g_array_new(FALSE, FALSE, sizeof(unsigned)); -+ GArray *dccm_list = g_array_new(FALSE, FALSE, sizeof(pid_t)); - - glibtop_init (); - -@@ -134,7 +134,7 @@ - num = 0; - while (num < dccm_list->len) - { -- if (kill(g_array_index(dccm_list, unsigned, num), sig) != 0) -+ if (kill(g_array_index(dccm_list, pid_t, num), sig) != 0) - result = FALSE; - num++; - } diff --git a/palm/synce-trayicon/files/patch-po_Makefile.in b/palm/synce-trayicon/files/patch-po_Makefile.in deleted file mode 100644 index 904e67a2ff94..000000000000 --- a/palm/synce-trayicon/files/patch-po_Makefile.in +++ /dev/null @@ -1,122 +0,0 @@ ---- po/Makefile.in.in.orig 2008-04-16 05:18:16.000000000 +1000 -+++ po/Makefile.in.in 2008-06-11 20:59:30.000000000 +1000 -@@ -1,10 +1,10 @@ - # Makefile for program source directory in GNU NLS utilities package. - # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu> --# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns@gmail.com> - # --# This file may be copied and used freely without restrictions. It may --# be used in projects which are not available under a GNU Public License, -+# This file file be copied and used freely without restrictions. It can -+# be used in projects which are not available under the GNU Public License - # but which still want to provide support for the GNU gettext functionality. -+# Please note that the actual code is *not* freely available. - # - # - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE - # instead of PACKAGE and to look for po2tbl in ./ not in intl/ -@@ -12,7 +12,7 @@ - # - Modified by jacob berkman <jacob@ximian.com> to install - # Makefile.in.in and po2tbl.sed.in for use with glib-gettextize - # --# - Modified by Rodney Dawes <dobey.pwns@gmail.com> for use with intltool -+# - Modified by Rodney Dawes <dobey@novell.com> for use with intltool - # - # We have the following line for use by intltoolize: - # INTLTOOL_MAKEFILE -@@ -25,7 +25,7 @@ - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ --top_builddir = @top_builddir@ -+top_builddir = .. - VPATH = @srcdir@ - - prefix = @prefix@ -@@ -56,19 +56,15 @@ - - PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi) - --USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi) -- --USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done) -- --POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done) -+POFILES=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.po "; done) - - DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES) - EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS - - POTFILES = \ --# This comment gets stripped out -+#This Gets Replace for some reason - --CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) -+CATALOGS=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.gmo "; done) - - .SUFFIXES: - .SUFFIXES: .po .pox .gmo .mo .msg .cat -@@ -102,7 +98,11 @@ - install-data-no: all - install-data-yes: all - $(mkdir_p) $(DESTDIR)$(itlocaledir) -- linguas="$(USE_LINGUAS)"; \ -+ if test -n "$(PO_LINGUAS)"; then \ -+ linguas="$(PO_LINGUAS)"; \ -+ else \ -+ linguas="$(ALL_LINGUAS)"; \ -+ fi; \ - for lang in $$linguas; do \ - dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ - $(mkdir_p) $$dir; \ -@@ -133,21 +133,20 @@ - dvi info tags TAGS ID: - - # Define this as empty until I found a useful application. --install-exec installcheck: -+installcheck: - - uninstall: -- linguas="$(USE_LINGUAS)"; \ -+ if test -n "$(PO_LINGUAS)"; then \ -+ linguas="$(PO_LINGUAS)"; \ -+ else \ -+ linguas="$(ALL_LINGUAS)"; \ -+ fi; \ - for lang in $$linguas; do \ - rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ - rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ - done - - check: all $(GETTEXT_PACKAGE).pot -- rm -f missing notexist -- srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m -- if [ -r missing -o -r notexist ]; then \ -- exit 1; \ -- fi - - mostlyclean: - rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp -@@ -180,7 +179,11 @@ - update-po: Makefile - $(MAKE) $(GETTEXT_PACKAGE).pot - tmpdir=`pwd`; \ -- linguas="$(USE_LINGUAS)"; \ -+ if test -n "$(PO_LINGUAS)"; then \ -+ linguas="$(PO_LINGUAS)"; \ -+ else \ -+ linguas="$(ALL_LINGUAS)"; \ -+ fi; \ - for lang in $$linguas; do \ - echo "$$lang:"; \ - result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \ -@@ -208,8 +211,8 @@ - $(MAKE) stamp-it; \ - fi - --stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in -- cd $(top_builddir) \ -+stamp-it: Makefile.in.in ../config.status POTFILES.in -+ cd .. \ - && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \ - $(SHELL) ./config.status - diff --git a/palm/synce-trayicon/files/patch-src_hal-client.c b/palm/synce-trayicon/files/patch-src_hal-client.c new file mode 100644 index 000000000000..6b8357c3f5d2 --- /dev/null +++ b/palm/synce-trayicon/files/patch-src_hal-client.c @@ -0,0 +1,11 @@ +--- src/hal-client.c.orig 2008-07-28 09:58:40.000000000 +1000 ++++ src/hal-client.c 2008-07-28 09:59:09.000000000 +1000 +@@ -188,7 +188,7 @@ + goto exit; + } + +- if ( (strcmp(pw_status, "unset") == 0) || (strcmp(pw_status, "unlocked")) ) { ++ if ( (strcmp(pw_status, "unset") == 0) || (strcmp(pw_status, "unlocked") == 0) ) { + g_ptr_array_remove_index(priv->pending_devices, i); + + if (!libhal_device_remove_property_watch(priv->hal_ctx, udi, &dbus_error)) diff --git a/palm/synce-trayicon/files/patch-src_synce-trayicon.c b/palm/synce-trayicon/files/patch-src_synce-trayicon.c new file mode 100644 index 000000000000..5f8400043c63 --- /dev/null +++ b/palm/synce-trayicon/files/patch-src_synce-trayicon.c @@ -0,0 +1,42 @@ +--- src/synce-trayicon.c 2008/07/12 13:00:38 3510 ++++ src/synce-trayicon.c 2008/08/12 20:40:23 3551 +@@ -229,7 +229,21 @@ + static void + password_required_on_device_cb(DccmClient *comms_client, gchar *pdaname, gpointer user_data) + { ++#ifdef ENABLE_NOTIFY ++ ++ SynceTrayIcon *self = SYNCE_TRAYICON(user_data); ++ gchar *notify_string = NULL; ++ ++ notify_string = g_strdup_printf("The device %s is locked. Please unlock it by following instructions on the device", pdaname); ++ event_notification(self, "Device locked", notify_string); ++ g_free(notify_string); ++ ++#else /* ENABLE_NOTIFY */ ++ + device_do_password_on_device_dialog(pdaname); ++ ++#endif /* ENABLE_NOTIFY */ ++ + } + + static void +@@ -471,17 +485,6 @@ + } + + static void +-menu_software (GtkWidget *button, SynceTrayIcon *self) +-{ +- char *argv[1] = { +- SYNCE_SOFTWARE_MANAGER +- }; +- if (gnome_execute_async(NULL,1, argv) == -1) { +- synce_error_dialog(_("Can't open the software manager\nmake sure you have synce-software-manager installed")); +- } +-} +- +-static void + menu_preferences (GtkWidget *button, SynceTrayIcon *self) + { + run_prefs_dialog(self); diff --git a/palm/synce-trayicon/files/patch-synce-trayicon.1 b/palm/synce-trayicon/files/patch-synce-trayicon.1 deleted file mode 100644 index 3695c56bd47f..000000000000 --- a/palm/synce-trayicon/files/patch-synce-trayicon.1 +++ /dev/null @@ -1,11 +0,0 @@ ---- man/synce-trayicon.1.orig 2008-04-16 05:17:48.000000000 +1000 -+++ man/synce-trayicon.1 2008-06-11 20:59:11.000000000 +1000 -@@ -3,7 +3,7 @@ - synce-trayicon \- Gnome system tray app for SynCE - .SH SYNOPSIS - .B synce-trayicon --[-f] [-d level] -+[\-f] [\-d level] - .SH DESCRIPTION - \fBsynce-trayicon\fP is a Gnome system tray application for synCE, for - monitoring connected Windows CE based devices. |