summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-14 10:52:17 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-14 10:52:17 +0800
commitdca2c4d7badec583d8706ad693efb3ea9e3495ea (patch)
treea64bf8908f64bde52e7d90a5f891d645567007ab /sysutils
parenta3e7a3072989d9792b413bed1dcf670183360b22 (diff)
downloadmarcuscom-ports-dca2c4d7badec583d8706ad693efb3ea9e3495ea.tar
marcuscom-ports-dca2c4d7badec583d8706ad693efb3ea9e3495ea.tar.gz
marcuscom-ports-dca2c4d7badec583d8706ad693efb3ea9e3495ea.tar.bz2
marcuscom-ports-dca2c4d7badec583d8706ad693efb3ea9e3495ea.tar.lz
marcuscom-ports-dca2c4d7badec583d8706ad693efb3ea9e3495ea.tar.xz
marcuscom-ports-dca2c4d7badec583d8706ad693efb3ea9e3495ea.tar.zst
marcuscom-ports-dca2c4d7badec583d8706ad693efb3ea9e3495ea.zip
Try and make the Eject button work even if gnome-mount is not installed.
Reported by: mezz git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6587 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/nautilus-cd-burner/Makefile3
-rw-r--r--sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c14
2 files changed, 16 insertions, 1 deletions
diff --git a/sysutils/nautilus-cd-burner/Makefile b/sysutils/nautilus-cd-burner/Makefile
index d8e096510..5bc5d7035 100644
--- a/sysutils/nautilus-cd-burner/Makefile
+++ b/sysutils/nautilus-cd-burner/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/sysutils/nautilus-cd-burner/Makefile,v 1.101 2006/06/19 05:40:48 marcus Exp $
+# $MCom: ports/sysutils/nautilus-cd-burner/Makefile,v 1.102 2006/07/11 13:04:52 ahze Exp $
#
PORTNAME= nautilus-cd-burner
PORTVERSION= 2.15.4
+PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c b/sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c
new file mode 100644
index 000000000..9d3ce89ec
--- /dev/null
+++ b/sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c
@@ -0,0 +1,14 @@
+--- src/nautilus-burn-drive.c.orig Thu Jul 13 22:51:49 2006
++++ src/nautilus-burn-drive.c Thu Jul 13 22:52:25 2006
+@@ -806,7 +806,11 @@ nautilus_burn_drive_eject (NautilusBurnD
+ #ifdef USE_GNOME_MOUNT
+ cmd = g_strdup_printf ("gnome-mount --eject --no-ui --device=%s", drive->priv->device);
+ #else
++#ifdef __FreeBSD_
++ cmd = g_strdup_printf ("cdcontrol -f %s eject", drive->priv->device);
++#else
+ cmd = g_strdup_printf ("eject %s", drive->priv->device);
++#endif
+ #endif
+
+ res = g_spawn_command_line_sync (cmd, NULL, NULL, NULL, NULL);