--- cdtool-2.1.8-release.orig/debian/dirs +++ cdtool-2.1.8-release/debian/dirs @@ -0,0 +1,3 @@ +/usr/bin +/usr/lib/cdtool +/usr/share/man/man1 --- cdtool-2.1.8-release.orig/debian/copyright +++ cdtool-2.1.8-release/debian/copyright @@ -0,0 +1,51 @@ +This package was created from the cdtool sources distributed at: + http://hinterhof.net/cdtool/dist/ + +The maintainer of this package is Max Vozeler . +Martin Mitchell maintained this package before. + +Copyright: + + CDTOOL 1.0 is Copyright 1994 Thomas Insel. It may be distributed +freely under the terms of the GPL. For more information, read the files +"COPYING" and "main.c". + + CDTOOL 1.0 contains some code from XPlaycd (mainly in hardware.c) +which is by Olav Woelfelschneider. Per the CREDITS file with XPlaycd, this +code was originally from WdorkBone and/or WorkMan. Thanks for OpenSource! + + CDTOOL 2.0 is Copyright 1995,96 Sven Oliver Moll. Since it was GPL, +it still is GPL. + + CDTOOL 2.1 is Copyright 1997,98 Wade Hampton, Dan Risacher, Lin Zhe Min, +Byron Ellacott, and the original authors. Since it was GPL, it is still GPL. + + CDTOOL 2.1.6 is Copyright 2004 Max Vozeler, Copyright 2003 Josh Buhl, +Copyright 1999 Roland Rosenfeld, Copyright 1999 Mike Coleman and Copyright +2001 Richard Kettlewell. + + CDTOOL 2.1.7 is Copyright 2004 Max Vozeler and Copyright 2000 +Peter Samuelson. + +EMAIL: + Byron Ellacott + Daniel R. Risacher + Josh Buhl + Lin Zhe Min + Max Vozeler + Mike Coleman + Olav Woelfelschneider + Peter Samuelson + Richard Kettlewell + Roland Rosenfeld + Sven Oliver Moll + Thomas Insel + Wade Hampton + + See also PEOPLE and CHANGES for detailed attributions. + +You are free to distribute this software under the terms of +the GNU General Public License. + +On Debian systems, the complete text of the GNU General Public +License can be found in the file '/usr/share/common-licenses/GPL-2'. --- cdtool-2.1.8-release.orig/debian/README.source +++ cdtool-2.1.8-release/debian/README.source @@ -0,0 +1,58 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To configure quilt to use debian/patches instead of patches, you want +either to export QUILT_PATCHES=debian/patches in your environment +or use this snippet in your ~/.quiltrc: + + for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do + if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then + export QUILT_PATCHES=debian/patches + break + fi + done + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- cdtool-2.1.8-release.orig/debian/changelog +++ cdtool-2.1.8-release/debian/changelog @@ -0,0 +1,280 @@ +cdtool (2.1.8-release-2) unstable; urgency=low + + * QA upload. + + Set maintainer to Debian QA Group . + * 01_local_getline.diff - Rename local getline to local_getline. + + Change simple-patch-sys to quilt patch system. (Closes: #552831). + * Remove Homepage from package description as it's no longer valid. + * Add ${misc:Depends} for debhelper package. + * Bump debhelper build-dep and compat to 5. + * Bump Standards Version to 3.8.3. + + -- Barry deFreese Tue, 03 Nov 2009 14:40:37 -0500 + +cdtool (2.1.8-release-1) unstable; urgency=low + + * New upstream version + * Update to standards version 3.7.2 (no changes) + + -- Max Vozeler Wed, 9 Aug 2006 10:33:58 +0200 + +cdtool (2.1.8-pre4-1) unstable; urgency=low + + * New upstream release + - Fixes problems with some drives that return CDROM_AUDIO_INVALID + and cdplay aborting with an error when no track range was given. + + -- Max Vozeler Wed, 9 Nov 2005 22:43:30 +0100 + +cdtool (2.1.8-pre3-1) unstable; urgency=low + + * New upstream release + + -- Max Vozeler Tue, 18 Oct 2005 18:33:44 +0200 + +cdtool (2.1.8-pre2-1) unstable; urgency=low + + * New upstream release + - Includes all Debian changes + - Includes cdtool2cddb, thanks Peter Samuelson. (Closes: #79306) + * Rebuilt from scratch using CDBS + + -- Max Vozeler Mon, 3 Oct 2005 16:50:23 +0200 + +cdtool (2.1.5-15) unstable; urgency=low + + * Drop the debconf question about /dev/cdrom symlink; The symlink is + created by udev or discover on new installations. Existing systems + should have the symlink by now. + * Bump standards version to 3.6.2 (no changes) + + -- Max Vozeler Thu, 4 Aug 2005 16:05:05 +0200 + +cdtool (2.1.5-14) unstable; urgency=low + + * New translation + - Vietnamese, thanks Clytie Siddall. (Closes: #309622) + + -- Max Vozeler Thu, 19 May 2005 23:32:58 +0200 + +cdtool (2.1.5-13) unstable; urgency=low + + * Updated translations + - Russian, typo fix (Closes: #299887) + + -- Max Vozeler Tue, 5 Apr 2005 23:14:03 +0200 + +cdtool (2.1.5-12) unstable; urgency=low + + * New translation + - Russian, thanks Basil Shubin. (Closes: #299887) + * Change maintainer's address + * Fix cdtool and cdown man page .IP typos + - Thanks Kevin Ryde. (Closes: #285385) + + -- Max Vozeler Fri, 18 Mar 2005 15:23:53 +0100 + +cdtool (2.1.5-11) unstable; urgency=medium + + * Include new upstream URL in the long description + * Fix typo in cdown.1 + - Thanks Nicolas Francois + (Closes: #274453) + * Fix .TH in cdctrl.1 + - Thanks Graham Wilson + * New translation + - Brazilian, thanks Tiago Bortoletto Vaz. + (Closes: #271335) + + -- Max Vozeler Thu, 7 Oct 2004 00:43:40 +0200 + +cdtool (2.1.5-10) unstable; urgency=medium + + * Applied patch to fix playing the last track. (Closes: #262661) + Thanks Jakob Bratkovic. + + -- Max Vozeler Tue, 17 Aug 2004 11:30:20 +0200 + +cdtool (2.1.5-9) unstable; urgency=low + + * Check that the number of tracks from TOC header doesn't exceed 99. + (Closes: #81703) + * Remove unused file altcdloop.txt from the source package. + * New translations + - Danish, thanks Michael Kristensen. + (Closes: #253039) + - Czech, thanks Marcel Sebek. + (Closes: #247558) + + -- Max Vozeler Tue, 22 Jun 2004 00:00:30 +0200 + +cdtool (2.1.5-8) unstable; urgency=low + + * Applied patch to handle mixed audio and data CDs correctly. + - Thanks Mike Coleman. + (Closes: #48359) + * Applied patch adding -r for raw CDDB output to cdown. + - Thanks Peter Samuelson. + (Closes: #78737) + * Disable broken /etc/mtab check. The error message it gives now is + just as informative. (Closes: #45155) + * Fixes to the clean target + - Don't remove editor backups + - Remove debian/templates.merged + * New translations + - Japanese, thanks Hideki Yamane. + (Closes: #239223) + - Dutch, thanks Luk Claes + (Closes: #241418) + + -- Max Vozeler Thu, 11 Mar 2004 23:12:55 +0100 + +cdtool (2.1.5-7) unstable; urgency=low + + * New maintainer + * Added utility 'cdclose' by Josh Buhl. (closes: #188867) + * Converted the package to use po-debconf + - Added Build-Depends on po-debconf + - Added a translation into German + - Made debian/rules merge translations using po2debconf + * Reworded the package descriptions and debconf templates + * Dont create the /dev/cdrom symlink on devfs systems + * Respects the debconf seen flag now + * Update debian/copyright + * Remove commands.c.orig + * Added -Wall to CFLAGS, which turned up a few bugs: + shuffle.c: + - Include string.h for strlen() + - Fix use of uninitialized pointer when there is no CD inserted. + (Closes: #198131) + hardware.c: + - Fix missing strerror in error fprintf arguments + - Removed excess comma between format string literals + * Updated French debconf translation by Christian Perrier. + + -- Max Vozeler Thu, 11 Mar 2004 22:25:17 +0100 + +cdtool (2.1.5-6) unstable; urgency=low + + * Debian QA upload + * Swith to gettext for debconf templates. Closes: #235831 + Martin patch slightly corrected + * French debconf templates translation + + -- Christian Perrier Sat, 6 Mar 2004 10:08:46 +0100 + +cdtool (2.1.5-5) unstable; urgency=low + + * Debian QA upload + * Updated to Standards Version 3.6.1 + * Changed Maintainer to Debian QA + * Fixed typo in a cdown.c error message. (Closes: #139402) + * Documented problems with 2.2.16-17 (Closes: #67216) + * Updated the license path to common-licenses/GPL-2 + * Changed postinst to ask with debconf. (Closes: #186445) + * Moved cdtool binary to /usr/lib/cdtool. (Closes: #197912) + * Tell dpkg-gencontrol to generate Priority and Section + * Strip .note and .comment from the binaries + + -- Max Vozeler Wed, 20 Jan 2004 23:19:59 +0100 + +cdtool (2.1.5-4.1) unstable; urgency=low + + * Non-maintainer upload + * Changed cdown.c and cdown.1 to default to freedb.freedb.org + (Closes: #105578) + * Applied patch from #53347 to remove spurios whitespace from cdown + output (Closes: #53347) + * Fixed debian/rules to compile cdtool with -DSCSI (Closes: #57817) + * Appiled patch from #82977 to improve error reporting when cdtool is + unable to access the CD-ROM drive (Closes: #82977) + * Bug #67216, #71527, #76316 appear to be kernel issues, fixed in + kernels >= 2.2.18 and >= 2.4.0. Altough a workaround for older kernels + could be added to cdtool, I don't think that would be justifyable. + * While here, removed the Emacs local variables from debian/changelog + + -- Gergely Nagy Tue, 22 Jan 2002 14:08:28 +0100 + +cdtool (2.1.5-4) unstable; urgency=high + + * Fix potential /tmp exploit in cdshuffle. + Thanks to Andrea Fanfani + + -- Martin Mitchell Thu, 14 Oct 1999 23:27:52 +1000 + +cdtool (2.1.5-3) unstable; urgency=low + + * Update to Standards Version 3.0.1. + * Compile with enhanced SCSI support. (closes: #44449, #39880) + * Apply patch to improve linefeed handling. (closes: #29875) + Thanks to Peter Samuelson + * Closes old bugs no longer reproducible. (closes: #33945, #22510) + * Include new manpages for cdloop and changecdaudiodev. (closes: #39493) + Thanks to Roland Rosenfeld + * Include patch to commands.c for Plextor SCSI drives. (closes: #40113) + Thanks to Ingo Wilken + * Improve error message when cdrom device can't be opened. (closes: #42090) + * Change all cd device opens to nonblocking. (closes: #43052) + * Add symlink for cdshuffle manpage. (closes: #44661) + * Reject cdloop patch since it would create a dependency + on awk. (closes: #29000) + * Include patch reintroducing cdvolume. (closes: #17722) + Thanks to Peter Samuelson + + -- Martin Mitchell Sun, 12 Sep 1999 21:46:53 +1000 + +cdtool (2.1.5-2) frozen unstable; urgency=low + + * Fix uninitialized buffer in cdir database code. (#28239) + (Thanks Peter Samuelson + + -- Martin Mitchell Tue, 20 Oct 1998 19:00:48 +1000 + +cdtool (2.1.5-1) unstable; urgency=low + + * New upstream release. + + -- Martin Mitchell Mon, 5 Oct 1998 23:28:01 +1000 + +cdtool (2.1.4-2) frozen unstable; urgency=low + + * Fix upstream bug stopping cdir from working. (#22171) + * Transfer uninitialized variables code for database.c from 2.0. (#20117) + + -- Martin Mitchell Mon, 11 May 1998 04:18:12 +1000 + +cdtool (2.1.4-1) frozen unstable; urgency=medium + + * New upstream bugfix release. + * Remove obsolete README.debian and tidy up copyright file. + * Updated to standards version 2.4.1. + * Fix typo in package description. (#18881) + * Modify cdadd not to use files in /tmp. + * Install proper upstream changelog, and name debian changelog correctly. + * Change cdadd to use editor, not vi as the default editor. (#19103) + + -- Martin Mitchell Sat, 2 May 1998 01:48:04 +1000 + +cdtool (2.0-2) unstable; urgency=low + + * Fix path to cdir used by cdadd. (#15055) + + -- Martin Mitchell Fri, 21 Nov 1997 00:51:53 +1100 + +cdtool (2.0-1) unstable; urgency=low + + * New upstream release. (#11194) + * Libc6 compile. (#11667) + * Add links for manpages. (#6354, #13923, #13924, #14114) + * Fix uninitialized variables in cdir command. (#2450, #11600) + * New maintainer. + + -- Martin Mitchell Mon, 10 Nov 1997 14:48:41 +1100 + +cdtool (1.01-1) unstable; urgency=low + + * Fixed and closed all outstanding bug reports + * Version number changed because of dpkg's questionable handling of epochs + * New maintainer + + -- Stephen Pitts Sat, 16 Nov 1996 14:48:57 -0600 --- cdtool-2.1.8-release.orig/debian/compat +++ cdtool-2.1.8-release/debian/compat @@ -0,0 +1 @@ +5 --- cdtool-2.1.8-release.orig/debian/rules +++ cdtool-2.1.8-release/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk + --- cdtool-2.1.8-release.orig/debian/control +++ cdtool-2.1.8-release/debian/control @@ -0,0 +1,19 @@ +Source: cdtool +Section: sound +Priority: optional +Maintainer: Debian QA Group +Build-Depends: cdbs, debhelper (>= 5.0.0), quilt, autotools-dev +Standards-Version: 3.8.3 + +Package: cdtool +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: text-based audio CD player and CD-ROM control commands + cdtool contains cdplay, cdeject, cdstop, cdpause, and several other + programs for playing audio CDs and controlling a CD-ROM drive from + the command line and in a quick and scriptable way. + . + cdown reads track info and queries a CDDB database for info on + the current CD. cdctrl is a command line utility for controlling a + CD-ROM drive interactively and from scripts. cdir keeps track of the + contents of different CDs using a workman-compatible database. --- cdtool-2.1.8-release.orig/debian/patches/series +++ cdtool-2.1.8-release/debian/patches/series @@ -0,0 +1 @@ +01_local_getline.diff --- cdtool-2.1.8-release.orig/debian/patches/01_local_getline.diff +++ cdtool-2.1.8-release/debian/patches/01_local_getline.diff @@ -0,0 +1,111 @@ +#Description: Replace local getline func with local_getline. +Index: cdtool-2.1.8-release/cdown.c +=================================================================== +--- cdtool-2.1.8-release.orig/cdown.c 2009-11-03 14:52:01.000000000 -0500 ++++ cdtool-2.1.8-release/cdown.c 2009-11-03 14:52:58.000000000 -0500 +@@ -325,7 +325,7 @@ + } + + /************************************************************************/ +-/* Procedure: getline ++/* Procedure: local_getline + * Purpose: read a line of text from the CDDB server + * + * Inputs: +@@ -333,14 +333,14 @@ + * Returns: The line of text + * Notes: + * 1. The CDDB databases use \r\n to end lines. All lines returned +- * by getline() have the \r and \n stripped. ++ * by local_getline() have the \r and \n stripped. + * 2. Non-reentrant: the memory buffer returned previously is + * recycled + * 3. Do NOT modify the contents of the returned buffer past the + * NULL - data from the network is stored there + */ + /************************************************************************/ +-char *getline(void) { ++char *local_getline(void) { + static char *buffer = NULL; + static char *lastline = NULL; + static int buffered = 0; +@@ -451,7 +451,7 @@ + char *cdtitle; + + netprintf(sock, "cddb read %s %s\n", categ, discid); +- message = getline(); ++ message = local_getline(); + switch (atoi(message)) { + case 401: fprintf(stderr, "error: entry not found\n"); return; + case 402: fprintf(stderr, "error: server error\n"); return; +@@ -461,13 +461,13 @@ + default: fprintf(stderr, "error: bad message: %s\n", message); return; + } + while (iRawMode) { /* infinite loop, or skip if !iRawMode */ +- message = getline(); ++ message = local_getline(); + if (!strcmp (message, ".")) + return; + printf ("%s\r\n", message); + } + do { +- message = getline(); ++ message = local_getline(); + firstword = strchr(message, '='); + if (firstword != NULL) { + *firstword = '\0'; +@@ -511,7 +511,7 @@ + int input = 0; + int exact = 1; + +- message = getline(); ++ message = local_getline(); + switch (atoi(message)) { + case 403: fprintf(stderr, "error: database entry is corrupt\n"); return; + case 409: fprintf(stderr, "error: no handshake\n"); return; +@@ -523,7 +523,7 @@ + if (!exact) { + fprintf(stderr, "CD has no exact match\n 0: None\n"); + do { +- message = getline(); ++ message = local_getline(); + if (strcmp(message, ".") != 0) { + matches = realloc(matches, sizeof(char*) * (++count)); + fprintf(stderr, " %d: ", count); printcd(message); +@@ -628,15 +628,15 @@ + void parsesites(void) { + char *buffer; + +- buffer = getline(); ++ buffer = local_getline(); + switch (atoi(buffer)) { + case 210: break; /* OK */ + case 401: fprintf(stderr, "error: no site list available\n"); return; + } +- buffer = getline(); ++ buffer = local_getline(); + do { + printf("%s\n", buffer); +- } while (strcmp(buffer = getline(), ".") != 0); ++ } while (strcmp(buffer = local_getline(), ".") != 0); + } + + /************************************************************************/ +@@ -755,7 +755,7 @@ + exit(3); + } + +- bleh = getline(); ++ bleh = local_getline(); + if (!signon(bleh)) { + errormsg("%s: signon error on host %s", progname, pszHost); + close(sock); +@@ -773,7 +773,7 @@ + getuname(), gethname(), progname, VERSIONSTRING); + + /* get welcome message */ +- bleh = getline(); ++ bleh = local_getline(); + if (!welcome(bleh)) { + errormsg("%s: bad welcome message [%s]", progname, bleh); + close(sock);