2
## 30_kfreebsd_gnu.dpatch by Joe Marcus Clarke <marcus@marcuscom.com>
3
## and Aurelien Jarno <aurel32@debian.org>
5
## All lines beginning with `## DP:' are a description of the patch.
9
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
13
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
17
-patch) patch -p1 ${patch_opts} < $0;;
18
-unpatch) patch -R -p1 ${patch_opts} < $0;;
20
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
27
diff -urNad totem-2.16.2~/src/plparse/totem-disc.c totem-2.16.2/src/plparse/totem-disc.c
28
--- totem-2.16.2~/src/plparse/totem-disc.c 2006-08-16 20:28:18.000000000 +0200
29
+++ totem-2.16.2/src/plparse/totem-disc.c 2006-11-06 18:24:13.000000000 +0100
31
#include <glib/gi18n.h>
32
#include <libgnomevfs/gnome-vfs.h>
34
+#if defined (__linux__)
36
+#include <linux/cdrom.h>
37
+#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)
38
+#include <sys/cdio.h>
39
+#include <sys/disklabel.h>
40
+#include <sys/cdio.h>
41
+#include <sys/disklabel.h>
43
+#define CDROM_DRIVE_STATUS 0x5326
44
+#define CDROM_DISC_STATUS 0x5327
45
+#define CDS_AUDIO 100
46
+#define CDS_MIXED 105
47
+#define CDS_DATA_1 101
48
+#define CDS_DATA_2 102
49
+#define CDS_NO_INFO 0 /* if not implemented */
50
+#define CDS_NO_DISC 1
51
+#define CDS_TRAY_OPEN 2
52
+#define CDS_DRIVE_NOT_READY 3
53
+#define CDS_DISC_OK 4
54
+#define CDS_XA_2_1 103
55
+#define CDS_XA_2_2 104
56
+#define CDC_DVD 0x8000
57
+#define ENOMEDIUM ENODEV
58
+#define CDROM_GET_CAPABILITY CDIOCCLRDEBUG
60
+# error "Unknown system"
65
#include <dbus/dbus.h>
66
diff -urNad totem-2.16.2~/src/plparse/totem-disc.c.rej totem-2.16.2/src/plparse/totem-disc.c.rej
67
--- totem-2.16.2~/src/plparse/totem-disc.c.rej 1970-01-01 01:00:00.000000000 +0100
68
+++ totem-2.16.2/src/plparse/totem-disc.c.rej 2006-11-06 18:22:34.000000000 +0100
72
+ #include <glib/gi18n.h>
73
+ #include <libgnomevfs/gnome-vfs.h>
75
+ #include <linux/cdrom.h>
77
+ #include "totem-disc.h"
80
+ #include <glib/gi18n.h>
81
+ #include <libgnomevfs/gnome-vfs.h>
83
+ #include <linux/cdrom.h>
85
+ #include "totem-disc.h"