debian/0000755000000000000000000000000011734613351007172 5ustar debian/bchunk.dirs0000644000000000000000000000003511726360561011330 0ustar /usr/bin /usr/share/man/man1 debian/copyright0000644000000000000000000000356711726360561011143 0ustar Author: Heikki Hannikainen Download: http://he.fi/bchunk/ Files: * Copyright: (C) 1998-2004 Heikki Hannikainen License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. Files: debian/* Copyright: (C) 2006-2009 Daniel Baumann License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/compat0000644000000000000000000000000211734260372010371 0ustar 9 debian/control0000644000000000000000000000141311734261456010601 0ustar Source: bchunk Section: otherosfs Priority: optional Maintainer: Praveen Arimbrathodiyil Build-Depends: debhelper (>= 9.0~) Standards-Version: 3.9.3 Homepage: http://he.fi/bchunk/ Vcs-Git: git://git.debian.org/git/collab-maint/bchunk.git Vcs-Browser: http://git.debian.org/?p=collab-maint/bchunk.git Package: bchunk Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: CD image format conversion from bin/cue to iso/cdr The bchunk package contains a UNIX/C rewrite of the BinChunker program. BinChunker converts a CD image in a .bin/.cue format (sometimes .raw/.cue) into a set of .iso and .cdr/.wav tracks. The .bin/.cue format is used by some non-UNIX CD-writing software, but is not supported on most other CD-writing programs. debian/bchunk.docs0000644000000000000000000000000711726360561011316 0ustar README debian/source/0000755000000000000000000000000011727041112010462 5ustar debian/source/format0000644000000000000000000000001411727041112011670 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001075211734260735011055 0ustar bchunk (1.2.0-12) unstable; urgency=low * New maintainer. (Closes: #540585) * Clarify input and output formats. (Closes: #503151) - Thanks to Reuben Thomas for the suggestion. * Add versioned dependency for debhelper (>= 7.0.50~). * Remove quilt dependency and make source format '3.0 (quilt)'. * make debhelper compatibility to 9 for hardened build flags. * Add vcs fields. * Add watch file. -- Praveen Arimbrathodiyil Fri, 09 Mar 2012 16:28:08 +0530 bchunk (1.2.0-11) unstable; urgency=low * Removing vcs fields. * Orphaning package. -- Daniel Baumann Sun, 09 Aug 2009 01:24:35 +0200 bchunk (1.2.0-10) unstable; urgency=low * Sorting depends. * Minimizing rules file. -- Daniel Baumann Mon, 03 Aug 2009 02:11:29 +0200 bchunk (1.2.0-9) unstable; urgency=low * Updating vcs fields in control file. * Using patch-stamp rather than patch in rules file. * Replacing obsolete dh_clean -k with dh_prep. * Using correct rfc-2822 date formats in changelog. * Updating package to standards version 3.8.2. * Using quilt rather than dpatch. * Updating year in copyright. * Prefixing debhelper files with package name. * Tidy rules file. -- Daniel Baumann Fri, 17 Jul 2009 00:17:59 +0200 bchunk (1.2.0-8) unstable; urgency=low * Reordering rules file. * Rewriting copyright file in machine-interpretable format. * Adding vcs fields to control file. * Upgrading package to debhelper 7. * Updating to standards 3.8.0. -- Daniel Baumann Thu, 03 Jul 2008 15:41:00 +0200 bchunk (1.2.0-7) unstable; urgency=low * Bumped to new policy. * Using new homepage field in control. * Don't hide make errors in clean target of rules. -- Daniel Baumann Sun, 23 Dec 2007 11:40:00 +0100 bchunk (1.2.0-6) unstable; urgency=low * Fixed lintian warning. -- Daniel Baumann Tue, 15 May 2007 14:17:00 +0200 bchunk (1.2.0-5) unstable; urgency=low * Minor cleanups. -- Daniel Baumann Mon, 22 Jan 2007 11:53:00 +0100 bchunk (1.2.0-4) unstable; urgency=low * Piotr Kaczuba provided a simpler patch, hence replaced 01-track-size.dpatch with the new one. -- Daniel Baumann Fri, 08 Sep 2006 20:18:00 +0200 bchunk (1.2.0-3) unstable; urgency=low * Added 01-track-size.dpatch from Piotr Kaczuba to fix wrong track size calculation when having multiple tracks in one image (Closes: #261274). -- Daniel Baumann Fri, 08 Sep 2006 14:45:00 +0200 bchunk (1.2.0-2) unstable; urgency=low * New maintainer (Closes: #385964). * Redone debian directory based on new debhelper templates, additionally: - correcting debian/copyright, it's GPL2+, not GPL2. - using the common debian/copyright order (Closes: #290072). -- Daniel Baumann Tue, 05 Sep 2006 07:17:00 +0200 bchunk (1.2.0-1) unstable; urgency=low * New upstream version 1.2.0. (Closes: #259785, #254397) - Included a man page patch from the openbsd port of bchunk (adding a note about ISO/VCD), and s/ISO9110/ISO9660/. The changes were for openbsd by Dave Watson . - Patch from Matthew Green for a new option -r, which makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. (Closes: #259798) -- Sam Powers Mon, 05 Jul 2004 16:00:03 -0700 bchunk (1.1.1-2) unstable; urgency=low * Updated upstream email in debian/copyright * Updated a thinko in the manpage -- Sam Powers Fri, 12 Apr 2002 21:12:04 -0700 bchunk (1.1.1-1) unstable; urgency=low * New upstream release! - Error checking while reading the bin file [This was #104280] - psxtruncate was always enabled by default - made -p work - Fixed .spec file to compile on other distributions * This also includes upstream's real live manual page.. -- Sam Powers Tue, 07 Aug 2001 16:47:03 -0700 bchunk (1.0.0-2) unstable; urgency=low * Fixed man page, mandb shouldn't complain anymore (Closes: #103710) * Removed built bchunk binary from package, duhh.. * Now handles read errors. Thanks, Oskar! (Closes: #104280) -- Sam Powers Wed, 11 Jul 2001 09:35:31 -0700 bchunk (1.0.0-1) unstable; urgency=low * Initial Release. (Closes #99362.) -- Sam Powers Thu, 31 May 2001 04:19:37 -0700 debian/rules0000755000000000000000000000024211727041444010250 0ustar #!/usr/bin/make -f %: dh ${@} override_dh_auto_install: $(MAKE) BIN_DIR=$(CURDIR)/debian/bchunk/usr/bin MAN_DIR=$(CURDIR)/debian/bchunk/usr/share/man install debian/watch0000644000000000000000000000006411727050525010223 0ustar version=3 http://he.fi/bchunk/ bchunk-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000011734132422010614 5ustar debian/patches/01-track-size.patch0000644000000000000000000000155011726360561014140 0ustar Author: Piotr Kaczuba Description: Fix wrong track size calculation when having multiple tracks in one image (Closes: #261274). diff -Naurp bchunk.orig/bchunk.c bchunk/bchunk.c --- bchunk.orig/bchunk.c 2009-07-16 22:13:58.000000000 +0000 +++ bchunk/bchunk.c 2009-07-16 22:16:33.000000000 +0000 @@ -476,7 +476,7 @@ int main(int argc, char **argv) if (verbose) printf(" (startsect %ld ofs %ld)", track->startsect, track->start); if ((prevtrack) && (prevtrack->stopsect < 0)) { - prevtrack->stopsect = track->startsect; + prevtrack->stopsect = track->startsect - 1; prevtrack->stop = track->start - 1; } } @@ -484,7 +484,7 @@ int main(int argc, char **argv) if (track) { fseek(binf, 0, SEEK_END); - track->stop = ftell(binf); + track->stop = ftell(binf) - 1; track->stopsect = track->stop / SECTLEN; } debian/patches/series0000644000000000000000000000006511727033720012035 0ustar 01-track-size.patch 02-clarify-formats-in-help.patch debian/patches/02-clarify-formats-in-help.patch0000644000000000000000000000634511734132422016520 0ustar Description: Man page is a bit confusing. (Closes: #503151) . Updated README and man page as per suggestion in the bug report. Origin: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;bug=503151 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503151 Author: Reuben Thomas --- a/README +++ b/README @@ -71,6 +71,11 @@ to WAV (or any other sound format for that matter) using sox ('sox track.cdr track.wav'). Audio tracks can be written in WAV format by using the -w switch. + + The output type depends on the input type (data is just copied). + If the input is in ISO format, the output will be. On the other + hand, if the input is raw audio data, the output will be CDR or + WAV (the latter if -w is given). --- @@ -125,6 +130,10 @@ The -r flag makes binchunker output MODE2/2352 tracks in raw format, from offset 0 for 2352 bytes. Good for MPEG/VCD. + The -p and -r flags works only with MODE2/2352 input (if input + is in PSX mode pass -p flag or if it is in raw format pass + -r flag). + The -w flag makes binchunker write audio tracks in WAV format. The -s flag makes binchunker swap byte order in the samples of --- a/bchunk.1 +++ b/bchunk.1 @@ -22,10 +22,15 @@ mounted through a loop device on Linux systems, or written on a CD-R using cdrecord. The .cdr tracks are in the native CD audio format. They can -be either written on a CD-R using cdrecord -audio, or converted +be either written on a CD-R using cdrecord \(hyaudio, or converted to WAV (or any other sound format for that matter) using sox. .LP +The output type depends on the input type (data is just copied). +If the input is in ISO format, the output will be. On the other +hand, if the input is raw audio data, the output will be CDR or +WAV (the latter if \(hyw is given). +.LP It is advisable to edit the .cue file to either MODE2/2352/2048 or MODE2/2352/2324 depending on whether an ISO filesystem or a VCD is desired, respectively. @@ -46,10 +51,12 @@ .BI \-p Makes binchunker go into PSX mode and truncate MODE2/2352 tracks to 2336 bytes at offset 0 instead of normal 2048 bytes at offset 24. +Use this option if input is in PSX mode. .TP 10 .BI \-r Makes binchunker output MODE2/2352 tracks in raw format, from offset -0 for 2352 bytes. Good for MPEG/VCD. +0 for 2352 bytes. Good for MPEG/VCD. Use this option if input is in +raw format. .SH FILES .LP .TP 5 @@ -62,11 +69,11 @@ .B *.iso Tracks in ISO9660 CD filesystem format. Can be either written on a CD-R using cdrecord, or mounted (on Linux platforms at least) -through a loop device ('mount track.iso /mnt/cdrom -o loop=/dev/loop0,blocksize=1024'). +through a loop device ('mount track.iso /mnt/cdrom \(hyo loop=/dev/loop0,blocksize=1024'). .TP 5 .B *.cdr Audio tracks in native CD audio format. They can be either written on a -CD-R using 'cdrecord -audio', or converted to WAV (or any other sound +CD-R using 'cdrecord \(hyaudio', or converted to WAV (or any other sound format for that matter) using sox ('sox track.cdr track.wav'). .TP 5 .B *.wav @@ -78,7 +85,6 @@ .BR cdrdao (1) .SH AUTHORS .LP -.NF Heikki Hannikainen .br Bob Marietta @@ -89,4 +95,3 @@ .br Matthew Green .br -.FI