summaryrefslogtreecommitdiffstats
path: root/devel/gnome-vfs
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-12-25 03:13:31 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-12-25 03:13:31 +0800
commiteecd8869750a4bff5c2f21ab842bbdc1fc952672 (patch)
tree2d908fcabb1e8e678a31081ad91d4ea194ce4ff8 /devel/gnome-vfs
parentbc1503bd9393f28e25b4d25069b665cfa2729dc7 (diff)
downloadmarcuscom-ports-eecd8869750a4bff5c2f21ab842bbdc1fc952672.tar
marcuscom-ports-eecd8869750a4bff5c2f21ab842bbdc1fc952672.tar.gz
marcuscom-ports-eecd8869750a4bff5c2f21ab842bbdc1fc952672.tar.bz2
marcuscom-ports-eecd8869750a4bff5c2f21ab842bbdc1fc952672.tar.lz
marcuscom-ports-eecd8869750a4bff5c2f21ab842bbdc1fc952672.tar.xz
marcuscom-ports-eecd8869750a4bff5c2f21ab842bbdc1fc952672.tar.zst
marcuscom-ports-eecd8869750a4bff5c2f21ab842bbdc1fc952672.zip
Use cdcontrol -f <dev> eject instead of the eject command to eject CD
media. Thanks to Tom McLaughlin <tmclaugh@sdf.lonestar.org> for pointing out that this command works with all types of CD-ROMs. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1526 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gnome-vfs')
-rw-r--r--devel/gnome-vfs/Makefile1
-rw-r--r--devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-volume-ops.c26
2 files changed, 27 insertions, 0 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile
index aba86ec71..44e393c4b 100644
--- a/devel/gnome-vfs/Makefile
+++ b/devel/gnome-vfs/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.5.3
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.5
diff --git a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-volume-ops.c b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-volume-ops.c
new file mode 100644
index 000000000..87e2eca65
--- /dev/null
+++ b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-volume-ops.c
@@ -0,0 +1,26 @@
+--- libgnomevfs/gnome-vfs-volume-ops.c.orig Wed Dec 24 13:53:43 2003
++++ libgnomevfs/gnome-vfs-volume-ops.c Wed Dec 24 13:56:15 2003
+@@ -224,12 +224,23 @@
+ }
+
+ if (info->should_eject) {
++#ifdef __FreeBSD__
++ char *argv[5] = {
++ "cdcontrol",
++ "-f",
++ NULL,
++ "eject",
++ NULL
++ };
++ argv[2] = info->device_path?info->device_path:info->mount_point;
++#else
+ char *argv[3] = {
+ "eject",
+ NULL,
+ NULL
+ };
+ argv[1] = info->device_path?info->device_path:info->mount_point;
++#endif
+
+ if (g_spawn_sync (NULL,
+ argv,