summaryrefslogtreecommitdiffstats
path: root/devel/gnome-vfs
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-12-14 13:24:13 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-12-14 13:24:13 +0800
commitdca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779 (patch)
treeebfaf287026ad073268da4140193b062123a9f92 /devel/gnome-vfs
parent3c04564809bb7b66a66e497f560cc62841885ca2 (diff)
downloadmarcuscom-ports-dca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779.tar
marcuscom-ports-dca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779.tar.gz
marcuscom-ports-dca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779.tar.bz2
marcuscom-ports-dca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779.tar.lz
marcuscom-ports-dca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779.tar.xz
marcuscom-ports-dca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779.tar.zst
marcuscom-ports-dca6ebd4dbe0f3cde4a78eefe87e1c55bf7f9779.zip
Update to 2.13.2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5271 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gnome-vfs')
-rw-r--r--devel/gnome-vfs/Makefile5
-rw-r--r--devel/gnome-vfs/distinfo6
-rw-r--r--devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-address.c21
-rw-r--r--devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-dns-sd.c591
-rw-r--r--devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-resolve.c15
-rw-r--r--devel/gnome-vfs/files/patch-modules_bzip2-method.c11
-rw-r--r--devel/gnome-vfs/files/patch-modules_dns-sd-method.c58
-rw-r--r--devel/gnome-vfs/pkg-plist1
8 files changed, 27 insertions, 681 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile
index 387078aec..800108c20 100644
--- a/devel/gnome-vfs/Makefile
+++ b/devel/gnome-vfs/Makefile
@@ -3,12 +3,11 @@
# Whom: Ade Lovett <ade@FreeBSD.org>
#
# $FreeBSD: ports/devel/gnomevfs2/Makefile,v 1.102 2005/11/05 04:53:17 marcus Exp $
-# $MCom: ports/devel/gnomevfs2/Makefile,v 1.119 2005/11/28 14:28:30 jylefort Exp $
+# $MCom: ports/devel/gnomevfs2/Makefile,v 1.120 2005/12/04 03:38:45 marcus Exp $
#
PORTNAME= gnomevfs2
-PORTVERSION= 2.13.1
-PORTREVISION= 3
+PORTVERSION= 2.13.2
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.13
diff --git a/devel/gnome-vfs/distinfo b/devel/gnome-vfs/distinfo
index 0e57c1704..2bbff7852 100644
--- a/devel/gnome-vfs/distinfo
+++ b/devel/gnome-vfs/distinfo
@@ -1,3 +1,3 @@
-MD5 (gnome2/gnome-vfs-2.13.1.tar.bz2) = 8d960dbfe1eb8d920a13f4f24d7add86
-SHA256 (gnome2/gnome-vfs-2.13.1.tar.bz2) = 35ff58900e29c633fa268fe3eb79a215e4daa1d136bc15efd10678d0d41c3999
-SIZE (gnome2/gnome-vfs-2.13.1.tar.bz2) = 1759057
+MD5 (gnome2/gnome-vfs-2.13.2.tar.bz2) = 8fe939dc68f3b640e086b69c21481609
+SHA256 (gnome2/gnome-vfs-2.13.2.tar.bz2) = a1a591c8f86623037e6679473694c4c4bb3380539a0e75d44585be45696806f5
+SIZE (gnome2/gnome-vfs-2.13.2.tar.bz2) = 1789318
diff --git a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-address.c b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-address.c
new file mode 100644
index 000000000..da97640a1
--- /dev/null
+++ b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-address.c
@@ -0,0 +1,21 @@
+--- libgnomevfs/gnome-vfs-address.c.orig Tue Dec 13 21:41:32 2005
++++ libgnomevfs/gnome-vfs-address.c Wed Dec 14 00:15:32 2005
+@@ -32,6 +32,7 @@
+ #include <sys/types.h>
+
+ #ifndef G_OS_WIN32
++#include <sys/socket.h>
+ #include <sys/select.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+@@ -388,8 +389,8 @@ static gboolean
+ v6_v6_equal (const struct sockaddr_in6 *a,
+ const struct sockaddr_in6 *b)
+ {
+- return IN6_ARE_ADDR_EQUAL (a->sin6_addr.s6_addr,
+- b->sin6_addr.s6_addr);
++ return IN6_ARE_ADDR_EQUAL (&a->sin6_addr,
++ &b->sin6_addr);
+ }
+
+ static gboolean
diff --git a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-dns-sd.c b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-dns-sd.c
deleted file mode 100644
index 38820afa7..000000000
--- a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-dns-sd.c
+++ /dev/null
@@ -1,591 +0,0 @@
---- libgnomevfs/gnome-vfs-dns-sd.c 2005/11/14 11:41:13 1.16
-+++ libgnomevfs/gnome-vfs-dns-sd.c 2005/11/22 10:55:30 1.18
-@@ -36,6 +36,15 @@
- #include <gconf/gconf-client.h>
- #include <unistd.h>
-
-+#ifdef HAVE_AVAHI
-+#include <avahi-client/client.h>
-+#include <avahi-client/lookup.h>
-+#include <avahi-common/error.h>
-+#include <avahi-common/simple-watch.h>
-+#include <avahi-common/timeval.h>
-+#include <avahi-glib/glib-watch.h>
-+#endif
-+
- #ifdef HAVE_HOWL
- /* Need to work around howl exporting its config file... */
- #undef PACKAGE
-@@ -722,6 +731,60 @@
-
- /* multicast DNS functions */
-
-+#ifdef HAVE_AVAHI
-+static AvahiClient *global_client = NULL;
-+static gboolean avahi_initialized = FALSE;
-+
-+static AvahiClient *get_global_avahi_client (void);
-+
-+/* Callback for state changes on the Client */
-+static void
-+avahi_client_callback (AvahiClient *client, AvahiClientState state, void *userdata)
-+{
-+ if (state == AVAHI_CLIENT_FAILURE) {
-+ if (avahi_client_errno (client) == AVAHI_ERR_DISCONNECTED) {
-+ /* Destroy old client */
-+ avahi_client_free (client);
-+ global_client = NULL;
-+ avahi_initialized = FALSE;
-+
-+ /* Reconnect */
-+ get_global_avahi_client ();
-+ }
-+ }
-+}
-+
-+static AvahiClient *
-+get_global_avahi_client (void) {
-+ static AvahiGLibPoll *glib_poll = NULL;
-+ int error;
-+
-+ if (!avahi_initialized) {
-+ if (glib_poll == NULL) {
-+ glib_poll = avahi_glib_poll_new (NULL, G_PRIORITY_DEFAULT);
-+ }
-+
-+ /* Create a new AvahiClient instance */
-+ global_client = avahi_client_new (avahi_glib_poll_get (glib_poll),
-+ AVAHI_CLIENT_NO_FAIL,
-+ avahi_client_callback,
-+ glib_poll,
-+ &error);
-+
-+ if (global_client == NULL) {
-+ /* Print out the error string */
-+ g_warning ("Error initializing Avahi: %s", avahi_strerror (error));
-+ avahi_glib_poll_free (glib_poll);
-+ glib_poll = NULL;
-+ return NULL;
-+ }
-+ avahi_initialized = TRUE;
-+ }
-+
-+ return global_client;
-+}
-+#endif
-+
- #ifdef HAVE_HOWL
-
- static gboolean
-@@ -788,6 +851,10 @@
-
- /* multicast: */
-
-+#ifdef HAVE_AVAHI
-+ AvahiServiceBrowser *avahi_sb;
-+#endif
-+
- #ifdef HAVE_HOWL
- sw_discovery_oid howl_id;
- #endif
-@@ -864,6 +931,41 @@
- return NULL;
- }
-
-+#ifdef HAVE_AVAHI
-+static void
-+avahi_browse_callback (AvahiServiceBrowser *b,
-+ AvahiIfIndex interface,
-+ AvahiProtocol protocol,
-+ AvahiBrowserEvent event,
-+ const char *name,
-+ const char *type,
-+ const char *domain,
-+ AvahiLookupResultFlags flags,
-+ void *userdata)
-+{
-+ GnomeVFSDNSSDBrowseHandle *handle;
-+ GnomeVFSDNSSDService service;
-+ handle = userdata;
-+
-+ service.name = (char *)name;
-+ service.type = (char *)type;
-+ service.domain = (char *)domain;
-+
-+ if (event == AVAHI_BROWSER_FAILURE ||
-+ event == AVAHI_BROWSER_ALL_FOR_NOW ||
-+ event == AVAHI_BROWSER_CACHE_EXHAUSTED) {
-+ return;
-+ }
-+
-+ if (!handle->cancelled) {
-+ handle->callback (handle,
-+ (event == AVAHI_BROWSER_NEW) ? GNOME_VFS_DNS_SD_SERVICE_ADDED : GNOME_VFS_DNS_SD_SERVICE_REMOVED,
-+ &service,
-+ handle->callback_data);
-+ }
-+}
-+#endif
-+
- #ifdef HAVE_HOWL
-
- struct howl_browse_idle_data {
-@@ -1012,7 +1114,25 @@
- handle->callback_data_destroy_func = callback_data_destroy_func;
-
- if (strcmp (domain, "local") == 0) {
--#ifdef HAVE_HOWL
-+#ifdef HAVE_AVAHI
-+ AvahiClient *client;
-+ AvahiServiceBrowser *sb;
-+
-+ handle->is_local = TRUE;
-+ client = get_global_avahi_client ();
-+ if (client) {
-+ sb = avahi_service_browser_new (client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, type, NULL,
-+ AVAHI_LOOKUP_USE_MULTICAST,
-+ avahi_browse_callback, handle);
-+ if (sb != NULL) {
-+ handle->avahi_sb = sb;
-+ *handle_out = handle;
-+ return GNOME_VFS_OK;
-+ }
-+ g_warning ("Failed to create service browser: %s\n", avahi_strerror( avahi_client_errno (client)));
-+ }
-+ return GNOME_VFS_ERROR_GENERIC;
-+#elif defined (HAVE_HOWL)
- sw_result res;
- sw_discovery session;
-
-@@ -1063,6 +1183,11 @@
- gnome_vfs_dns_sd_stop_browse (GnomeVFSDNSSDBrowseHandle *handle)
- {
- if (handle->is_local) {
-+#ifdef HAVE_AVAHI
-+ handle->cancelled = TRUE;
-+ avahi_service_browser_free (handle->avahi_sb);
-+ free_browse_handle (handle);
-+#endif
- #ifdef HAVE_HOWL
- handle->cancelled = TRUE;
- sw_discovery_cancel (get_global_howl_session (), handle->howl_id);
-@@ -1093,6 +1218,10 @@
- int text_len;
-
- /* multicast: */
-+#ifdef HAVE_AVAHI
-+ AvahiServiceResolver *avahi_sr;
-+#endif
-+
- #ifdef HAVE_HOWL
- sw_discovery_oid howl_id;
- guint timeout_tag;
-@@ -1174,6 +1303,71 @@
- return NULL;
- }
-
-+#ifdef HAVE_AVAHI
-+static void
-+avahi_resolve_async_callback (AvahiServiceResolver *r,
-+ AvahiIfIndex interface,
-+ AvahiProtocol protocol,
-+ AvahiResolverEvent event,
-+ const char *name,
-+ const char *type,
-+ const char *domain,
-+ const char *host_name,
-+ const AvahiAddress *address,
-+ uint16_t port,
-+ AvahiStringList *txt,
-+ AvahiLookupResultFlags flags,
-+ void *user_data)
-+{
-+ GnomeVFSDNSSDResolveHandle *handle;
-+ GnomeVFSDNSSDService service;
-+ GHashTable *hash;
-+ size_t text_len;
-+ char *text;
-+ char host[128];
-+
-+ handle = user_data;
-+ if (event == AVAHI_RESOLVER_FOUND) {
-+ text_len = avahi_string_list_serialize (txt, NULL, 0);
-+ text = g_malloc (text_len);
-+ text_len = avahi_string_list_serialize (txt, text, text_len);
-+
-+ hash = decode_txt_record (text, text_len);
-+
-+ service.name = (char *)name;
-+ service.type = (char *)type;
-+ service.domain = (char *)domain;
-+
-+ avahi_address_snprint (host, sizeof(host), address);
-+ handle->callback (handle,
-+ GNOME_VFS_OK,
-+ &service,
-+ host,
-+ port,
-+ hash,
-+ handle->text_len,
-+ handle->text,
-+ handle->callback_data);
-+ if (hash) {
-+ g_hash_table_destroy (hash);
-+ }
-+ g_free (text);
-+
-+ } else if (event == AVAHI_RESOLVER_FAILURE) {
-+ handle->callback (handle,
-+ GNOME_VFS_ERROR_HOST_NOT_FOUND,
-+ NULL,
-+ NULL, 0,
-+ NULL, 0, NULL,
-+ handle->callback_data);
-+ }
-+
-+ avahi_service_resolver_free (r);
-+ free_resolve_handle (handle);
-+}
-+
-+#endif
-+
-
- #ifdef HAVE_HOWL
- static gboolean
-@@ -1329,7 +1523,25 @@
- handle->callback_data_destroy_func = callback_data_destroy_func;
-
- if (strcmp (domain, "local") == 0) {
--#ifdef HAVE_HOWL
-+#ifdef HAVE_AVAHI
-+ AvahiClient *client;
-+ AvahiServiceResolver *sr;
-+
-+ handle->is_local = TRUE;
-+ client = get_global_avahi_client ();
-+ if (client) {
-+ sr = avahi_service_resolver_new (client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC,
-+ name, type, domain, AVAHI_PROTO_UNSPEC,
-+ AVAHI_LOOKUP_USE_MULTICAST,
-+ avahi_resolve_async_callback, handle);
-+ if (sr != NULL) {
-+ handle->avahi_sr = sr;
-+ *handle_out = handle;
-+ return GNOME_VFS_OK;
-+ }
-+ }
-+ return GNOME_VFS_ERROR_GENERIC;
-+#elif defined (HAVE_HOWL)
- sw_result res;
- sw_discovery session;
-
-@@ -1386,6 +1598,10 @@
- gnome_vfs_dns_sd_cancel_resolve (GnomeVFSDNSSDResolveHandle *handle)
- {
- if (handle->is_local) {
-+#ifdef HAVE_AVAHI
-+ avahi_service_resolver_free (handle->avahi_sr);
-+ free_resolve_handle (handle);
-+#endif
- #ifdef HAVE_HOWL
- g_source_remove (handle->timeout_tag);
- if (handle->idle_tag) {
-@@ -1408,8 +1624,7 @@
- }
- }
-
--
--#ifdef HAVE_HOWL
-+#if defined(HAVE_AVAHI) || defined(HAVE_HOWL)
- static int
- find_existing_service (GArray *array,
- const char *name,
-@@ -1430,6 +1645,89 @@
- return -1;
-
- }
-+#endif
-+
-+
-+#ifdef HAVE_AVAHI
-+struct sync_browse_data {
-+ AvahiSimplePoll *poll;
-+ GArray *array;
-+};
-+
-+static void
-+avahi_browse_sync_client_callback (AvahiClient *client, AvahiClientState state, void *user_data)
-+{
-+ struct sync_browse_data *data;
-+
-+ data = user_data;
-+ if (state == AVAHI_CLIENT_FAILURE) {
-+ avahi_simple_poll_quit (data->poll);
-+ }
-+}
-+
-+static void
-+avahi_browse_sync_callback (AvahiServiceBrowser *b,
-+ AvahiIfIndex interface,
-+ AvahiProtocol protocol,
-+ AvahiBrowserEvent event,
-+ const char *name,
-+ const char *type,
-+ const char *domain,
-+ AvahiLookupResultFlags flags,
-+ void *user_data)
-+{
-+ struct sync_browse_data *data;
-+ GnomeVFSDNSSDService service, *existing;
-+ int i;
-+ gboolean free_service;
-+
-+ data = user_data;
-+
-+ free_service = TRUE;
-+ service.name = g_strdup (name);
-+ service.type = g_strdup (type);
-+ service.domain = g_strdup (domain);
-+
-+ if (event == AVAHI_BROWSER_NEW) {
-+ if (find_existing_service (data->array, service.name, service.type,
-+ service.domain) == -1) {
-+ free_service = FALSE;
-+ g_array_append_val (data->array, service);
-+ }
-+ } else if (event == AVAHI_BROWSER_REMOVE) {
-+ i = find_existing_service (data->array, service.name, service.type,
-+ service.domain);
-+ if (i != -1) {
-+ existing = &g_array_index (data->array, GnomeVFSDNSSDService, i);
-+ g_free (existing->name);
-+ g_free (existing->type);
-+ g_free (existing->domain);
-+ g_array_remove_index (data->array, i);
-+ }
-+ } else if (event == AVAHI_BROWSER_ALL_FOR_NOW) {
-+ avahi_simple_poll_quit (data->poll);
-+ }
-+
-+
-+ if (free_service) {
-+ g_free (service.name);
-+ g_free (service.type);
-+ g_free (service.domain);
-+ }
-+}
-+
-+static void
-+stop_poll_timeout (AvahiTimeout *timeout, void *user_data)
-+{
-+ AvahiSimplePoll *poll = user_data;
-+
-+ avahi_simple_poll_quit (poll);
-+}
-+
-+#endif
-+
-+
-+#ifdef HAVE_HOWL
-
-
- static sw_result
-@@ -1530,7 +1828,66 @@
- *services = NULL;
-
- if (strcmp (domain, "local") == 0) {
--#ifdef HAVE_HOWL
-+#ifdef HAVE_AVAHI
-+ AvahiSimplePoll *simple_poll;
-+ const AvahiPoll *poll;
-+ AvahiClient *client = NULL;
-+ AvahiServiceBrowser *sb;
-+ int error;
-+ GArray *array;
-+ struct sync_browse_data data;
-+ struct timeval tv;
-+
-+ simple_poll = avahi_simple_poll_new ();
-+ data.poll = simple_poll;
-+ if (simple_poll == NULL) {
-+ g_warning ("Failed to create simple poll object");
-+ return GNOME_VFS_ERROR_GENERIC;
-+ }
-+
-+ poll = avahi_simple_poll_get (simple_poll);
-+ client = avahi_client_new (poll, 0,
-+ avahi_browse_sync_client_callback, &data, &error);
-+
-+ /* Check wether creating the client object succeeded */
-+ if (client == NULL) {
-+ g_warning ("Failed to create client: %s\n", avahi_strerror (error));
-+ avahi_simple_poll_free (simple_poll);
-+ return GNOME_VFS_ERROR_GENERIC;
-+ }
-+
-+
-+ array = g_array_new (FALSE, FALSE, sizeof (GnomeVFSDNSSDService));
-+ data.array = array;
-+ sb = avahi_service_browser_new (client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, type, NULL,
-+ AVAHI_LOOKUP_USE_MULTICAST, avahi_browse_sync_callback, &data);
-+ if (sb == NULL) {
-+ g_warning ("Failed to create service browser: %s\n", avahi_strerror (avahi_client_errno (client)));
-+ g_array_free (array, TRUE);
-+ avahi_client_free (client);
-+ avahi_simple_poll_free (simple_poll);
-+ return GNOME_VFS_ERROR_GENERIC;
-+ }
-+
-+
-+ avahi_elapse_time (&tv, timeout_msec, 0);
-+ poll->timeout_new (poll, &tv, stop_poll_timeout, (void *)simple_poll);
-+
-+ /* Run the main loop util reply or timeout */
-+ for (;;)
-+ if (avahi_simple_poll_iterate (simple_poll, -1) != 0)
-+ break;
-+
-+
-+ avahi_service_browser_free (sb);
-+ avahi_client_free (client);
-+ avahi_simple_poll_free (simple_poll);
-+
-+ *n_services = array->len;
-+ *services = (GnomeVFSDNSSDService *)g_array_free (array, FALSE);
-+
-+ return GNOME_VFS_OK;
-+#elif defined (HAVE_HOWL)
- sw_discovery session;
- sw_salt salt;
- sw_result res;
-@@ -1599,6 +1956,63 @@
- }
- }
-
-+#ifdef HAVE_AVAHI
-+struct sync_resolve_data {
-+ AvahiSimplePoll *poll;
-+ gboolean got_data;
-+ char *host;
-+ int port;
-+ char *text;
-+ int text_len;
-+};
-+
-+
-+static void
-+avahi_resolve_sync_client_callback (AvahiClient *c, AvahiClientState state, void *user_data)
-+{
-+ struct sync_resolve_data *data;
-+
-+ data = user_data;
-+ if (state == AVAHI_CLIENT_FAILURE) {
-+ avahi_simple_poll_quit (data->poll);
-+ }
-+}
-+
-+static void
-+avahi_resolve_sync_callback (AvahiServiceResolver *r,
-+ AvahiIfIndex interface,
-+ AvahiProtocol protocol,
-+ AvahiResolverEvent event,
-+ const char *name,
-+ const char *type,
-+ const char *domain,
-+ const char *host_name,
-+ const AvahiAddress *address,
-+ uint16_t port,
-+ AvahiStringList *txt,
-+ AvahiLookupResultFlags flags,
-+ void *user_data)
-+{
-+ struct sync_resolve_data *data;
-+ char a[128];
-+
-+ data = user_data;
-+ if (event == AVAHI_RESOLVER_FOUND) {
-+ data->got_data = TRUE;
-+ avahi_address_snprint (a, sizeof(a), address);
-+ data->host = g_strdup (a);
-+ data->port = port;
-+ data->text_len = avahi_string_list_serialize (txt, NULL, 0);
-+ data->text = g_malloc (data->text_len);
-+ avahi_string_list_serialize (txt, data->text, data->text_len);
-+ }
-+
-+ avahi_service_resolver_free (r);
-+ avahi_simple_poll_quit (data->poll);
-+}
-+
-+#endif
-+
- #ifdef HAVE_HOWL
- struct sync_resolve_data {
- gboolean got_data;
-@@ -1672,7 +2086,65 @@
- GnomeVFSResult res;
-
- if (strcmp (domain, "local") == 0) {
--#ifdef HAVE_HOWL
-+#ifdef HAVE_AVAHI
-+ AvahiSimplePoll *simple_poll;
-+ AvahiClient *client = NULL;
-+ AvahiServiceResolver *sr;
-+ int error;
-+ struct sync_resolve_data resolve_data = {0};
-+
-+ simple_poll = avahi_simple_poll_new ();
-+ resolve_data.poll = simple_poll;
-+ if (simple_poll == NULL) {
-+ g_warning ("Failed to create simple poll object");
-+ return GNOME_VFS_ERROR_GENERIC;
-+ }
-+
-+ client = avahi_client_new (avahi_simple_poll_get (simple_poll), 0,
-+ avahi_resolve_sync_client_callback, &resolve_data, &error);
-+
-+ /* Check wether creating the client object succeeded */
-+ if (client == NULL) {
-+ g_warning ("Failed to create client: %s\n", avahi_strerror (error));
-+ avahi_simple_poll_free (simple_poll);
-+ return GNOME_VFS_ERROR_GENERIC;
-+ }
-+
-+ sr = avahi_service_resolver_new (client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC,
-+ name, type, domain, AVAHI_PROTO_UNSPEC,
-+ AVAHI_LOOKUP_USE_MULTICAST,
-+ avahi_resolve_sync_callback, &resolve_data);
-+ if (sr == NULL) {
-+ g_warning ("Failed to resolve service '%s': %s\n", name, avahi_strerror (avahi_client_errno (client)));
-+ avahi_client_free (client);
-+ avahi_simple_poll_free (simple_poll);
-+ return GNOME_VFS_ERROR_GENERIC;
-+ }
-+
-+ /* Run the main loop util reply or timeout */
-+ for (;;)
-+ if (avahi_simple_poll_iterate (simple_poll, -1) != 0)
-+ break;
-+
-+ avahi_client_free (client);
-+ avahi_simple_poll_free (simple_poll);
-+
-+ if (resolve_data.got_data) {
-+ *host = resolve_data.host;
-+ *port = resolve_data.port;
-+ if (text != NULL)
-+ *text = decode_txt_record (resolve_data.text, resolve_data.text_len);
-+ if (text_raw_len_out != NULL && text_raw_out) {
-+ *text_raw_len_out = resolve_data.text_len;
-+ *text_raw_out = resolve_data.text;
-+ } else {
-+ g_free (resolve_data.text);
-+ }
-+ return GNOME_VFS_OK;
-+ }
-+
-+ return GNOME_VFS_ERROR_HOST_NOT_FOUND;
-+#elif defined (HAVE_HOWL)
- sw_discovery session;
- sw_salt salt;
- sw_result res;
diff --git a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-resolve.c b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-resolve.c
deleted file mode 100644
index 6e3660c84..000000000
--- a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-resolve.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- libgnomevfs/gnome-vfs-resolve.c.orig Tue Apr 19 07:54:52 2005
-+++ libgnomevfs/gnome-vfs-resolve.c Sun May 22 23:25:22 2005
-@@ -171,10 +171,12 @@ _gnome_vfs_result_from_gai_error (int er
- switch (error) {
-
- case EAI_NONAME: return GNOME_VFS_ERROR_HOST_NOT_FOUND;
-+#ifdef EAI_NODATA
- #ifdef EAI_ADDRFAMILY
- case EAI_ADDRFAMILY:
- #endif
- case EAI_NODATA: return GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS;
-+#endif
- #ifdef EAI_SYSTEM
- case EAI_SYSTEM: return gnome_vfs_result_from_errno ();
- #endif
diff --git a/devel/gnome-vfs/files/patch-modules_bzip2-method.c b/devel/gnome-vfs/files/patch-modules_bzip2-method.c
deleted file mode 100644
index a1fd982c2..000000000
--- a/devel/gnome-vfs/files/patch-modules_bzip2-method.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- modules/bzip2-method.c.orig Wed Apr 13 21:58:54 2005
-+++ modules/bzip2-method.c Mon Nov 28 15:09:59 2005
-@@ -435,7 +435,7 @@
-
- if (bzip2_handle->last_bz_result != BZ_OK) {
- if (bzip2_handle->last_bz_result == BZ_STREAM_END)
-- return GNOME_VFS_OK;
-+ return GNOME_VFS_ERROR_EOF;
- else
- return result_from_bz_result (bzip2_handle->last_bz_result);
- } else if (bzip2_handle->last_vfs_result != GNOME_VFS_OK) {
diff --git a/devel/gnome-vfs/files/patch-modules_dns-sd-method.c b/devel/gnome-vfs/files/patch-modules_dns-sd-method.c
deleted file mode 100644
index 3a14e2144..000000000
--- a/devel/gnome-vfs/files/patch-modules_dns-sd-method.c
+++ /dev/null
@@ -1,58 +0,0 @@
---- modules/dns-sd-method.c.orig Sun Dec 4 16:49:28 2005
-+++ modules/dns-sd-method.c Sun Dec 4 16:51:37 2005
-@@ -31,7 +31,9 @@
-
- #ifdef HAVE_AVAHI
- #include <avahi-client/client.h>
-+#include <avahi-client/lookup.h>
- #include <avahi-common/error.h>
-+#include <avahi-common/timeval.h>
- #include <avahi-common/simple-watch.h>
- #include <avahi-glib/glib-watch.h>
- #endif
-@@ -320,7 +322,7 @@ avahi_client_callback (AvahiClient *clie
- AvahiSimplePoll *poll;
-
- poll = user_data;
-- if (state == AVAHI_CLIENT_DISCONNECTED) {
-+ if (state == AVAHI_CLIENT_FAILURE) {
- avahi_simple_poll_quit (poll);
- }
- }
-@@ -333,12 +335,17 @@ local_browse_callback_sync (AvahiService
- const char *name,
- const char *type,
- const char *domain,
-+ AvahiLookupResultFlags flags,
- void *user_data)
- {
-+ AvahiSimplePoll *poll = user_data;
-+
- if (event == AVAHI_BROWSER_NEW)
- local_browse (TRUE, name, type, domain);
- else if (event == AVAHI_BROWSER_REMOVE)
- local_browse (FALSE, name, type, domain);
-+ else if (event == AVAHI_BROWSER_ALL_FOR_NOW)
-+ avahi_simple_poll_quit (poll);
- }
-
- static void
-@@ -385,7 +392,7 @@ init_local (void)
- }
-
- poll = avahi_simple_poll_get (simple_poll);
-- client = avahi_client_new (poll,
-+ client = avahi_client_new (poll, 0,
- avahi_client_callback, simple_poll, &error);
-
- /* Check wether creating the client object succeeded */
-@@ -400,7 +407,8 @@ init_local (void)
- for (i = 0; i < G_N_ELEMENTS (dns_sd_types); i++) {
- sb[i] = avahi_service_browser_new (client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC,
- dns_sd_types[i].type, "local",
-- local_browse_callback_sync, NULL);
-+ AVAHI_LOOKUP_USE_MULTICAST,
-+ local_browse_callback_sync, simple_poll);
- }
-
-
diff --git a/devel/gnome-vfs/pkg-plist b/devel/gnome-vfs/pkg-plist
index e3505b507..bee4f18cb 100644
--- a/devel/gnome-vfs/pkg-plist
+++ b/devel/gnome-vfs/pkg-plist
@@ -52,6 +52,7 @@ include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-module-callback-module-api.h
include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-module-shared.h
include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-module.h
include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-parse-ls.h
+include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-pty.h
include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-socket-buffer.h
include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-socket.h
include/gnome-vfs-module-2.0/libgnomevfs/gnome-vfs-ssl.h