pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/cdparanoia Add DragonFlyBSD support, from Joerg ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1efe79347671
branches: trunk
changeset: 496783:1efe79347671
user: wiz <wiz%pkgsrc.org@localhost>
date: Wed Jul 13 09:07:10 2005 +0000
description:
Add DragonFlyBSD support, from Joerg Sonnenberger in private mail.
diffstat:
audio/cdparanoia/distinfo | 10 +++-
audio/cdparanoia/patches/patch-da | 31 +++++++++++
audio/cdparanoia/patches/patch-db | 22 ++++++++
audio/cdparanoia/patches/patch-dc | 31 +++++++++++
audio/cdparanoia/patches/patch-dd | 13 ++++
audio/cdparanoia/patches/patch-de | 31 +++++++++++
audio/cdparanoia/patches/patch-df | 58 +++++++++++++++++++++
audio/cdparanoia/patches/patch-dg | 103 ++++++++++++++++++++++++++++++++++++++
audio/cdparanoia/patches/patch-dh | 13 ++++
9 files changed, 311 insertions(+), 1 deletions(-)
diffs (truncated from 355 to 300 lines):
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/distinfo
--- a/audio/cdparanoia/distinfo Wed Jul 13 07:20:44 2005 +0000
+++ b/audio/cdparanoia/distinfo Wed Jul 13 09:07:10 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2005/02/23 20:39:43 agc Exp $
+$NetBSD: distinfo,v 1.11 2005/07/13 09:07:10 wiz Exp $
SHA1 (cdparanoia-III-alpha9.8.src.tgz) = 04cc33a7d22d6255f6239e3e74195506b3bdde06
RMD160 (cdparanoia-III-alpha9.8.src.tgz) = d9225165f83b5386c58db263d6918a7006df1481
@@ -18,3 +18,11 @@
SHA1 (patch-cg) = d57b8019fd14baf0701a9a9f824a4f4bd64ab3ad
SHA1 (patch-ch) = 73c38418cd7ab5fa5a072abfc78479fdd1d87787
SHA1 (patch-ci) = cff3eaff31ea324d7bde5d0d840df57453085bec
+SHA1 (patch-da) = 41636b882727e101980915a59382f2dc07ce2250
+SHA1 (patch-db) = ae806ddbc2fc8cfc6c2a911ea187715991ae2ea3
+SHA1 (patch-dc) = f1538a89f93fad029f2285370f74fa6899568452
+SHA1 (patch-dd) = 227a9092cf4896ce3f4fe0aa19460f4769bec033
+SHA1 (patch-de) = 7ef3e0a2286ee8a35794667b4123235382afe7a0
+SHA1 (patch-df) = 9312bf37493cfd3a1d67c94f495089f832514df3
+SHA1 (patch-dg) = 1dd22bf1b3525a43fa029e11e807088a877f236e
+SHA1 (patch-dh) = 979db75fc97e3403eca01f524bfad14e22f6f6dc
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/patches/patch-da
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-da Wed Jul 13 09:07:10 2005 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-da,v 1.1 2005/07/13 09:07:10 wiz Exp $
+
+--- interface/cdda_interface.h.orig 2005-05-31 16:03:04.000000000 +0200
++++ interface/cdda_interface.h
+@@ -21,7 +21,7 @@
+ #include <sys/types.h>
+ #include <signal.h>
+
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__) || defined(__DragonFly__)
+ #include <stdio.h>
+ #include <camlib.h>
+ #endif
+@@ -51,7 +51,7 @@ typedef struct cdrom_drive{
+
+ int opened; /* This struct may just represent a candidate for opening */
+
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ char *cdda_device_name;
+ char *ioctl_device_name;
+
+@@ -94,7 +94,7 @@ typedef struct cdrom_drive{
+ int is_mmc;
+
+ /* SCSI command buffer and offset pointers */
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ unsigned char *sg;
+ unsigned char *sg_buffer;
+ unsigned char inqbytes[4];
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/patches/patch-db
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-db Wed Jul 13 09:07:10 2005 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-db,v 1.1 2005/07/13 09:07:10 wiz Exp $
+
+--- interface/common_interface.c.orig 2005-05-31 16:03:00.000000000 +0200
++++ interface/common_interface.c
+@@ -23,7 +23,7 @@ int ioctl_ping_cdrom(int fd){
+ struct cdrom_volctrl volctl;
+ if (ioctl(fd, CDROMVOLREAD, &volctl))
+ return(1); /* failure */
+-#elif defined(__FreeBSD__) || defined(__NetBSD__)
++#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ struct ioc_vol volctl;
+ if (ioctl(fd, CDIOCGETVOL, &volctl))
+ return(1); /* failure */
+@@ -220,7 +220,7 @@ int FixupTOC(cdrom_drive *d,int tracks){
+ /* For a scsi device, the ioctl must go to the specialized SCSI
+ CDROM device, not the generic device. */
+
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ if (d->ioctl_fd != -1) {
+ #ifdef __linux__
+ int result;
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/patches/patch-dc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-dc Wed Jul 13 09:07:10 2005 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-dc,v 1.1 2005/07/13 09:07:10 wiz Exp $
+
+--- interface/cooked_interface.c.orig 2005-05-31 16:02:58.000000000 +0200
++++ interface/cooked_interface.c
+@@ -10,7 +10,7 @@
+ #include "common_interface.h"
+ #include "utils.h"
+
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ static int cooked_readtoc (cdrom_drive *d){
+ int i;
+ int tracks;
+@@ -179,7 +179,7 @@ static long cooked_read (cdrom_drive *d,
+ errx(1, "cooked_read: not implemented");
+ #endif
+ }
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ static int
+ cooked_readtoc(cdrom_drive *d)
+ {
+@@ -419,7 +419,7 @@ int cooked_init_drive (cdrom_drive *d){
+ default:
+ d->nsectors=40;
+ }
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ d->nsectors = 26; /* FreeBSD only supports 64K I/O transfer size */
+ #endif
+ d->enable_cdda = Dummy;
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/patches/patch-dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-dd Wed Jul 13 09:07:10 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-dd,v 1.1 2005/07/13 09:07:10 wiz Exp $
+
+--- interface/interface.c.orig 2005-05-31 16:02:55.000000000 +0200
++++ interface/interface.c
+@@ -29,7 +29,7 @@ int cdda_close(cdrom_drive *d){
+ d->enable_cdda(d,0);
+
+ _clean_messages(d);
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ if(d->cdda_device_name)free(d->cdda_device_name);
+ if(d->ioctl_device_name)free(d->ioctl_device_name);
+ if(d->drive_model)free(d->drive_model);
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/patches/patch-de
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-de Wed Jul 13 09:07:10 2005 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-de,v 1.1 2005/07/13 09:07:10 wiz Exp $
+
+--- interface/low_interface.h.orig 2005-05-31 16:02:53.000000000 +0200
++++ interface/low_interface.h
+@@ -49,7 +49,7 @@
+ #include <linux/cdrom.h>
+ #include <linux/major.h>
+
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+
+ #include <sys/cdio.h>
+ #include <sys/cdrio.h>
+@@ -70,7 +70,7 @@
+ #define MIN_BIG_BUFF_SIZE 4096
+ #ifdef __linux__
+ #define SG_OFF sizeof(struct sg_header)
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ #define SG_OFF (0)
+ #elif defined(__NetBSD__)
+ #define SG_OFF sizeof(scsireq_t)
+@@ -85,7 +85,7 @@
+ #endif
+
+ extern int cooked_init_drive (cdrom_drive *d);
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ extern unsigned char *scsi_inquiry (cdrom_drive *d);
+ #endif
+ extern int scsi_init_drive (cdrom_drive *d);
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/patches/patch-df
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-df Wed Jul 13 09:07:10 2005 +0000
@@ -0,0 +1,58 @@
+$NetBSD: patch-df,v 1.1 2005/07/13 09:07:10 wiz Exp $
+
+--- interface/scan_devices.c.orig 2005-05-31 16:02:48.000000000 +0200
++++ interface/scan_devices.c
+@@ -51,7 +51,7 @@ static char *cdrom_devices[]={
+ "/dev/cm206cd",
+ "/dev/gscd",
+ "/dev/optcd",NULL};
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ static char *cdrom_devices[] = {
+ "/dev/cd?c",
+ "/dev/acd?c",
+@@ -62,7 +62,7 @@ static char *cdrom_devices[] = {
+ /* Functions here look for a cdrom drive; full init of a drive type
+ happens in interface.c */
+
+-#if defined(__linux__) || defined(__FreeBSD__)
++#if defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)
+ cdrom_drive *cdda_find_a_cdrom(int messagedest,char **messages){
+ /* Brute force... */
+
+@@ -142,7 +142,7 @@ cdrom_drive *cdda_identify(const char *d
+ #if defined(__linux__) || defined(__NetBSD__)
+ d=cdda_identify_cooked(device,messagedest,messages);
+ if(!d)d=cdda_identify_scsi(device,NULL,messagedest,messages);
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ d = cdda_identify_scsi(device, NULL, messagedest, messages);
+ if (d == NULL)
+ d = cdda_identify_cooked(device, messagedest, messages);
+@@ -305,7 +305,7 @@ cdrom_drive *cdda_identify_cooked(const
+ #elif defined(__NetBSD__)
+ /* no kernel support for CD-DA */
+ return NULL;
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ cdrom_drive *d;
+ struct stat st;
+
+@@ -354,7 +354,7 @@ cdda_identify_cooked_fail:
+ #endif
+ }
+
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ struct sg_id {
+ long l1; /* target | lun << 8 | channel << 16 | low_ino << 24 */
+ long l2; /* Unique id */
+@@ -778,7 +778,7 @@ cdda_identify_scsi_fail:
+ if(g_fd!=-1)close(g_fd);
+ return(NULL);
+ }
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ cdrom_drive *cdda_identify_scsi(const char *device,
+ const char *dummy,
+ int messagedest,
diff -r 06b99b99db63 -r 1efe79347671 audio/cdparanoia/patches/patch-dg
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/cdparanoia/patches/patch-dg Wed Jul 13 09:07:10 2005 +0000
@@ -0,0 +1,103 @@
+$NetBSD: patch-dg,v 1.1 2005/07/13 09:07:10 wiz Exp $
+
+--- interface/scsi_interface.c.orig 2005-05-31 16:02:45.000000000 +0200
++++ interface/scsi_interface.c
+@@ -23,7 +23,7 @@ static void tweak_SG_buffer(cdrom_drive
+ int table,reserved;
+ char buffer[256];
+
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ #ifdef __linux__
+ /* maximum transfer size? */
+ if(ioctl(d->cdda_fd,SG_GET_RESERVED_SIZE,&reserved)){
+@@ -66,7 +66,7 @@ static void tweak_SG_buffer(cdrom_drive
+ cdmessage(d,"\tCouldn't disable command queue! Continuing anyway...\n");
+ }
+ #endif
+-#else /* FreeBSD */
++#else /* FreeBSD || DragonFly */
+ d->nsectors = 26; /* FreeBSD only supports 64K I/O transfer size */
+ d->bigbuff = d->nsectors * CD_FRAMESIZE_RAW;
+
+@@ -104,7 +104,7 @@ static void reset_scsi(cdrom_drive *d){
+ d->enable_cdda(d,1);
+ }
+
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ static void reset_scsi(cdrom_drive *d) {
+ d->enable_cdda(d,0);
+
+@@ -161,7 +161,7 @@ static void clear_garbage(cdrom_drive *d
+ #endif
+
+ /* process a complete scsi command. */
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ static int handle_scsi_cmd(cdrom_drive *d,
+ unsigned int cmd_len,
+ unsigned int in_size,
+@@ -400,7 +400,7 @@ static int handle_scsi_cmd(cdrom_drive *
+ return(0);
+ }
+
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ static int handle_scsi_cmd(cdrom_drive *d,
+ unsigned int cmd_len,
+ unsigned int out_size,
+@@ -1060,7 +1060,7 @@ static long scsi_read_map (cdrom_drive *
+ (int)(sg_hd->sense_buffer[2]&0xf),
+ (int)(sg_hd->sense_buffer[12]),
+ (int)(sg_hd->sense_buffer[13]));
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__DragonFly__)
+ d->ccb->csio.sense_data.flags & SSD_KEY,
+ d->ccb->csio.sense_data.add_sense_code,
+ d->ccb->csio.sense_data.add_sense_code_qual);
+@@ -1078,7 +1078,7 @@ static long scsi_read_map (cdrom_drive *
+ fputs(b, stderr);
+ cdmessage(d,b);
+
+-#ifndef __FreeBSD__
++#if !defined(__FreeBSD__) && !defined(__DragonFly__)
+ fprintf(stderr,"scsi_read error: sector=%ld length=%ld retry=%d\n",
Home |
Main Index |
Thread Index |
Old Index