From 086df239513d7ddaf0bd3c2d5e0b695f74ea1d05 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Wed, 11 Sep 2002 14:32:13 +0000 Subject: Since FreeBSD doesn't have unified eject command which works for all types of removable media, use `cdcontrol eject' instead, because it will at least make the most popular removable media working. --- x11-fm/nautilus2/Makefile | 2 +- .../patch-libnautilus-private::nautilus-volume-monitor.c | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'x11-fm/nautilus2') diff --git a/x11-fm/nautilus2/Makefile b/x11-fm/nautilus2/Makefile index 6106194f50d6..899f14b73cc7 100644 --- a/x11-fm/nautilus2/Makefile +++ b/x11-fm/nautilus2/Makefile @@ -7,7 +7,7 @@ PORTNAME= nautilus2 PORTVERSION= 2.0.6 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11-fm gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= 2.0.1/sources/${PORTNAME:S/2$//} diff --git a/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c index 3d1bca830ca0..fbb9b3b47b47 100644 --- a/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c +++ b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c @@ -1,5 +1,8 @@ ---- libnautilus-private/nautilus-volume-monitor.c.orig Wed Aug 28 09:37:20 2002 -+++ libnautilus-private/nautilus-volume-monitor.c Wed Sep 11 02:04:23 2002 + +$FreeBSD$ + +--- libnautilus-private/nautilus-volume-monitor.c.orig Wed Aug 28 16:37:20 2002 ++++ libnautilus-private/nautilus-volume-monitor.c Wed Sep 11 16:39:15 2002 @@ -59,6 +59,18 @@ #include #include @@ -135,6 +138,15 @@ static gboolean volume_is_removable (const NautilusVolume *volume) +@@ -885,7 +924,7 @@ + char *command; + + if (path != NULL) { +- command = g_strdup_printf ("eject %s", path); ++ command = g_strdup_printf ("/usr/sbin/cdcontrol -f %s eject", path); + eel_gnome_shell_execute (command); + g_free (command); + } @@ -963,23 +1002,34 @@ -- cgit v1.2.3