ports/126635: [maintainer update] palm/synce-trayicon: update to 0.12

Alexander Logvinov ports at logvinov.com
Mon Aug 18 22:40:02 UTC 2008


>Number:         126635
>Category:       ports
>Synopsis:       [maintainer update] palm/synce-trayicon: update to 0.12
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 18 22:40:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.3-RELEASE-p1 i386
>Organization:
>Environment:

>Description:

  Update to 0.12.
	
>How-To-Repeat:

>Fix:

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/palm/synce-trayicon/Makefile,v
retrieving revision 1.19
diff -u -r1.19 Makefile
--- Makefile	27 Jul 2008 14:42:34 -0000	1.19
+++ Makefile	29 Jul 2008 03:44:08 -0000
@@ -5,16 +5,19 @@
 # $FreeBSD: ports/palm/synce-trayicon/Makefile,v 1.19 2008/07/27 14:42:34 miwi Exp $
 
 PORTNAME=	synce-trayicon
-PORTVERSION=	0.11
+PORTVERSION=	0.12
 CATEGORIES=	palm
 MASTER_SITES=	SF
 MASTER_SITE_SUBDIR=	synce
 
 MAINTAINER=	ports at 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_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 @@
 	@${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}
 
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/palm/synce-trayicon/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo	27 Jul 2008 14:42:34 -0000	1.5
+++ distinfo	27 Jul 2008 21:55:42 -0000
@@ -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
Index: files/patch-data_synce-trayicon.schemas.in
===================================================================
RCS file: /home/pcvs/ports/palm/synce-trayicon/files/patch-data_synce-trayicon.schemas.in,v
retrieving revision 1.1
diff -u -r1.1 patch-data_synce-trayicon.schemas.in
--- files/patch-data_synce-trayicon.schemas.in	27 Jul 2008 14:42:34 -0000	1.1
+++ files/patch-data_synce-trayicon.schemas.in	28 Jul 2008 00:01:59 -0000
@@ -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>
Index: files/patch-device-info.c
===================================================================
RCS file: files/patch-device-info.c
diff -N files/patch-device-info.c
--- files/patch-device-info.c	27 Jul 2008 14:42:34 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -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);
- }
Index: files/patch-gtop_stuff.c
===================================================================
RCS file: files/patch-gtop_stuff.c
diff -N files/patch-gtop_stuff.c
--- files/patch-gtop_stuff.c	27 Jul 2008 14:42:34 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -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++;
-     }
Index: files/patch-po_Makefile.in
===================================================================
RCS file: files/patch-po_Makefile.in
diff -N files/patch-po_Makefile.in
--- files/patch-po_Makefile.in	27 Jul 2008 14:42:34 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -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 at gnu.ai.mit.edu>
--# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns at 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 at 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 at ximian.com> to install
- #   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
- #
--# - Modified by Rodney Dawes <dobey.pwns at gmail.com> for use with intltool
-+# - Modified by Rodney Dawes <dobey at 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
- 
Index: files/patch-src_hal-client.c
===================================================================
RCS file: files/patch-src_hal-client.c
diff -N files/patch-src_hal-client.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src_hal-client.c	27 Jul 2008 23:59:43 -0000
@@ -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))
Index: files/patch-src_synce-trayicon.c
===================================================================
RCS file: files/patch-src_synce-trayicon.c
diff -N files/patch-src_synce-trayicon.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src_synce-trayicon.c	18 Aug 2008 22:21:08 -0000
@@ -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);
Index: files/patch-synce-trayicon.1
===================================================================
RCS file: files/patch-synce-trayicon.1
diff -N files/patch-synce-trayicon.1
--- files/patch-synce-trayicon.1	27 Jul 2008 14:42:34 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -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.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list