--- udftools-1.0.0b3.orig/deb/config +++ udftools-1.0.0b3/deb/config @@ -4,7 +4,7 @@ db_version 2.0 prio=low -if test ! -e /dev/.devfsd -a ! -b /dev/pktcdvd0; then +if test ! -e /dev/.devfsd && test ! -b /dev/pktcdvd0; then db_input $prio udftools/makedev-ask || true fi db_go || true --- udftools-1.0.0b3.orig/deb/rules +++ udftools-1.0.0b3/deb/rules @@ -8,7 +8,7 @@ # Non-standard default goal: build-deb: - if test ! -d debian -a ! -h debian; then ln -s deb debian; fi + if test ! -d debian && test ! -h debian; then ln -s deb debian; fi printf "udftools (%s) unstable; urgency=low\n\n * This version was built directly from upstream sources. It is not\n an official Debian package.\n\n -- Ben Fennema %s\n" "`pwd | sed 's%^.*/udftools-\([^/]\+\)$$%\1%'`" "`date -R`" >deb/changelog dpkg-buildpackage -rfakeroot -us -uc -b rm -f debian deb/changelog --- udftools-1.0.0b3.orig/debian/README.Debian +++ udftools-1.0.0b3/debian/README.Debian @@ -0,0 +1,132 @@ +udftools for Debian +=================== + +Kernel support for packet writing +--------------------------------- + +Packet writing is a technique by which a writable medium (typically a +CD or DVD) can be used just like a USB stick or a directory on the +hard disc: Files and directories can be created/renamed/removed +freely, and no separate "burning" step is necessary to write the data +to the medium. Packet writing is possible both with write-once media +(CD-R, DVD+R, DVD-R) and rewritable media (CD-RW, DVD+RW, +DVD-RW). Obviously, with write-once media the free space on the +filesystem will not increase if you delete files. + +In order to do packet writing under Debian Linux, your kernel needs +both support for UDF (Universal Disc Format) filesystems and for +packet writing. This is the case for kernels later than about 2.6.10. +For earlier kernels, you may have to apply patches from Peter +Osterlund . That site +also has patches for udftools to make them work with recent kernels - +they have been applied to this package. This package tries to support +both old-style packet writing (kernel <2.6.8), and the newer variant +(>=2.6.10), with and without udev. Use a recent 2.6 kernel for optimal +results! + + +Formatting and using a UDF DVD-RW or CD-RW for packet writing +------------------------------------------------------------- + +The commands differ depending on whether you are using DVD or CD +media. + +1) Edit /etc/default/udftools and add your drive for packet writing. +For example, if your CD/DVD writer is /dev/hdc and you want it +available as the default /dev/pktcdvd/0, then use the setting +"DEVICES=/dev/hdc". Execute "/etc/init.d/udftools start" afterwards to +register the device. + +If the device name /dev/hdc differs on your system, adjust the +following commands as appropriate. + +2) Prepare the medium in restricted overwrite mode: + +DVD-RW: dvd+rw-format -force /dev/hdc + CD-RW: Do nothing, skip this step! + +3) Write an empty session spanning the whole medium. It seems that +without this step, any attempt to create the UDF filesystem will fail. + +DVD-RW: growisofs -Z /dev/hdc=/dev/zero + CD-RW: cdrwtool -d /dev/hdc -q + +4) Format the packet device in UDF format. + +DVD-RW: mkudffs --udfrev=0x0150 --spartable=2 --media-type=dvdrw /dev/pktcdvd/0 + CD-RW: mkudffs --udfrev=0x0150 --spartable=2 --media-type=cdrw /dev/pktcdvd/0 + +The parameters require some more explanation: For --udfrev, use either +0x0150 for UDF version 1.50, or 0x0201 for UDF version 2.01. The +version decision has mostly to do with compatibility: + - Windows 98/ME can read up to v1.02 + - Windows 2000, Mac OS 9, Linux 2.4 can read up to v1.50 + - Windows 2003/XP can read up to v2.01 + - Linux 2.6 can read up to v2.60 +For normal data, UDF 1.50 is OK. UDF 2.00 and 2.01 introduce +additional functionality for streaming audio/video. + +Possible values for --media-type are: hd dvdram dvdrw worm mo cdrw cdr. +Use the one appropriate for your medium/device. + +5) Mount the disc. The "noatime" option is important: It will reduce +the amount of writes to the device and thus increase its lifetime. You +may first have to create the mount directory using "mkdir +/media/dvd0": + + mount -t udf -o rw,noatime /dev/pktcdvd/0 /media/dvd0 + +The "sync" mount option might also be useful, but will typically cause +an increased number of write accesses to the medium. From now on, the +root user can access the filesystem under /media/dvd0 using read and +write operations. + +6) If regular users should also have write access, modify the +permissions as follows _while the filesystem is mounted_: + + chgrp plugdev /media/dvd0 # Set group ownership to "plugdev" + chmod g+rwx /media/dvd0 # Give full read/write access to group + +Now all users who should have access to the disc need to be added to +the "plugdev" group using "adduser plugdev". + +To also allow these users to mount and unmount/eject the medium, you +can use either of these two routes: + + - Install the "pmount" package and add the device to the list of + allowed devices using "echo /dev/pktcdvd/0 >>/etc/pmount.allow". + All members of the group "plugdev" will then be able to mount the + disc using "pmount /dev/pktcdvd/0 dvd0" and unmount it using + "pumount /media/dvd0". + + - Add a line like the following to /etc/fstab: + /dev/pktcdvd/0 /media/dvd0 udf rw,noatime,users,noauto 0 0 + This will enable _all_ users to mount the disc using + "mount /media/dvd0" and unmount it with + "umount /media/dvd0". However, with the permissions from step 5) + above, only the members of group "plugdev" ought to be able to + write to it. + + +Support for UDF filesystems +--------------------------- + +UDF (not packet writing) support in Linux 2.4 and later kernels is +sufficient to read from and write to UDF filesystems. For example, you +can create a regular file, "format" it using mkudffs, and then +loop-mount it. To do this, execute the following commands as root: +(After "count=", supply the required size in MB of the filesystem.) + + dd if=/dev/zero of=udfimage bs=1M count=10 + mkudffs udfimage + mkdir udfmnt + mount -o loop -t udf udfimage udfmnt + +You need Linux 2.4+ with UDF read *and* write support enabled. Now you +can copy data to the "udfmnt" directory. After an "umount udfmnt", the +file "udfimage" could theoretically be written to a CD-R(W) or +DVD-R(W). In practice, you will not want to do that, as the whole +point of using UDF is to do packet writing. + + + -- Richard Atterer Wed, 22 Nov 2006 23:38:16 +0100 --- udftools-1.0.0b3.orig/debian/changelog +++ udftools-1.0.0b3/debian/changelog @@ -0,0 +1,288 @@ +udftools (1.0.0b3-14.4) unstable; urgency=medium + + * Non-maintainer upload. + * Fix "ftbfs with GCC-5": add patch from Jakub Wilk: + changed semantics of inline keyword. + (Closes: #778153) + + -- gregor herrmann Sun, 19 Jul 2015 17:03:35 +0200 + +udftools (1.0.0b3-14.3) unstable; urgency=medium + + * Non-maintainer upload. + * Remove autoconf related files from diff.gz + * Use dh-autoreconf at build time (Closes: #735964, #759449). + + -- Aurelien Jarno Sat, 20 Sep 2014 21:46:10 +0200 + +udftools (1.0.0b3-14.2) unstable; urgency=medium + + * Non-maintainer upload. + * Add Daniel T Chen's patch to prevent usage of ncurses as + debian/patch-14-no-curses.diff (Closes: #646159) + * Set urgency to medium due to rc bug fix + + -- Alexander Reichle-Schmehl Fri, 02 Dec 2011 21:51:55 +0100 + +udftools (1.0.0b3-14.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix "replacing libreadline5-dev build dependency with libreadline-dev": + do as the bug report requests. + Closes: #553867 + LP: #832812 + * Fix "[FTBFS] open() needs mode if O_CREAT to compile in GCC 4.4": add + patch patch-13-open-mode.diff from Alfonso Cepeda Caballos / Ubuntu. + Closes: #560308 + LP: #495004 + + -- gregor herrmann Sun, 18 Sep 2011 16:20:30 +0200 + +udftools (1.0.0b3-14) unstable; urgency=medium + + * Added $remote_fs as dependency to LSB init header. Closes: #476112 + * Removed useless /etc/modutils/udftools file. Closes: #455087 + * Lintian cleanups: Proper copyright info, "Homepage:" in debian/control + + -- Richard Atterer Mon, 28 Apr 2008 00:20:10 +0200 + +udftools (1.0.0b3-13.1) unstable; urgency=high + + * Non-maintainer upload. + * limits.h included. (Closes: #456102) + + -- Adrian Friedli Sat, 12 Jan 2008 13:22:01 +0100 + +udftools (1.0.0b3-13) unstable; urgency=low + + * Fixed wrudf build failure with newer GCC. Closes: #453629, #453667 + * pktsetup: Return meaningful exit status on errors. Closes: #223266 + * Output error message if opening device fails. Closes: #285313 + * Recommends: udev. Closes: #405821 + * Updated pktsetup manpage. Closes: #414801 + * Added "Homepage:" field to debian/control + * Got rid of devfs and makedev support, no longer depend on makedev. + No longer attempt to create devices. No longer depend on debconf. + Closes: #434164, #407144 + * Updated default /etc/default/udftools to be suitable for most people + (Though they still need to uncomment DEVICES themselves.) + Closes: #413625 + * Added info on defaults of cdrwtool -l -w -p in manpage. Closes: #372093 + * Added a few #include to avoid compiler warnings + * Documented -q switch in cdrwtool manpage (though it's already described + in the Description section). Closes: #288355 + * Re-libtoolized + + -- Richard Atterer Fri, 30 Nov 2007 11:21:03 +0100 + +udftools (1.0.0b3-12) unstable; urgency=low + + * Fixed 'man mkudffs' typo: "Versital". Closes: #335327 + * Did not make the postinst create mount points or fstab entries, + but documented the procedure in the README. Closes: #369660: + Installation should create /media/cdrw0 and suggest /etc/fstab + * Described procedure of formatting a disc for packet writing in the + README.Debian. Closes: #360527: Serious lack of documentation + * Correctly detect presence of udev by looking for /dev/.udev + * Do not ask user whether to create devices. Closes: #386962 + (Sorry, translators, templates removed. :-/ Closes: #334212 ) + * Added a "Suggests: dvd+rw-tools, pmount" + * Lintian: Fixed FSF address in copyright file, added LSB info to + init script + + -- Richard Atterer Thu, 23 Nov 2006 00:18:34 +0100 + +udftools (1.0.0b3-11) unstable; urgency=low + + * Depend on "debconf | debconf-2.0", cf. + http://lists.debian.org/debian-devel/2005/08/msg00136.html + * Updated FSF address in copyright file according to lintian message + * Re-libtoolized for good measure + * Clarified README.Debian. Closes: #288894 + * Updated URL in manpage. Closes: #288896 + * INTL:ru Russian debconf template translation. Closes: #300916 + * Small manpage fix. Closes: #309572 + * INTL:sv Swedish debconf templates translation. Closes: #331368 + + -- Richard Atterer Mon, 3 Oct 2005 14:11:50 +0200 + +udftools (1.0.0b3-10) unstable; urgency=low + + * INTL:vi Vietnamese translation for udftools (Closes: #323952) + + -- Richard Atterer Sun, 21 Aug 2005 21:33:03 +0200 + +udftools (1.0.0b3-9) unstable; urgency=medium + + * Switched from libreadline4-dev to libreadline5-dev in build-deps + * Applied patch by Andreas Jochens + Closes: #288621: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment + + -- Richard Atterer Tue, 4 Jan 2005 21:40:19 +0100 + +udftools (1.0.0b3-8) unstable; urgency=medium + + * Added Czech debconf translation by Miroslav Kure - thanks! + Closes: #287303 + + -- Richard Atterer Mon, 27 Dec 2004 15:16:57 +0100 + +udftools (1.0.0b3-7) unstable; urgency=medium + + * Applied patch by Christoph Hellwig - thanks! + Closes: #285311: mkudffs fails on big-endian systems + * Updated to Standards-Version 3.6.1 + + -- Richard Atterer Sun, 12 Dec 2004 16:41:41 +0100 + +udftools (1.0.0b3-6) unstable; urgency=medium + + * Applied patch by Christopher Martin (thanks!) + Closes: #278696: udftools scripts need overhaul to work with all kernels + * Closes: #274489: udftools: Mistakes in README.Debian + + -- Richard Atterer Mon, 1 Nov 2004 14:42:41 +0100 + +udftools (1.0.0b3-5) unstable; urgency=medium + + * Incorporate patch by Peter Osterlund, http://w1.894.telia.com/~u89404340/ + Changed init.d script to deal with new features of the code. + Closes: #245801: can't use pktsetup + * Updated docs: Need kernel 2.6.8+ or extra kernel patch + + -- Richard Atterer Sun, 15 Aug 2004 21:21:38 +0200 + +udftools (1.0.0b3-4) unstable; urgency=low + + * Today is intl minor bug submitter day, it seems ;-P + Applied patch to change scripts: "test x && test y", not "test x -a y" + Closes: #258492: XSI:ism in debian/config (and upstream deb-dir) + + -- Richard Atterer Fri, 9 Jul 2004 23:33:35 +0200 + +udftools (1.0.0b3-3) unstable; urgency=low + + * Added in README.Debian: Extra kernel patch required for pktsetup + * Removed upstream changelog %-| + Closes: #258447: stale upstream changelog + + -- Richard Atterer Fri, 9 Jul 2004 21:11:01 +0200 + +udftools (1.0.0b3-2) unstable; urgency=low + + * Closes: #248755: [l10:ca] udftools catalan debconf templates + + -- Richard Atterer Fri, 14 May 2004 14:56:24 +0200 + +udftools (1.0.0b3-1) unstable; urgency=low + + * New upstream release + * Closes: #223252: please register block-major-97 with modutils + * Closes: #227269: Japanese po-debconf template translation (ja.po) + + -- Wed, 17 Mar 2004 15:12:21 +0100 + +udftools (1.0.0b2-5) unstable; urgency=low + + * Fixed fix of devfs part of init script, ahem... + Closes: #213074 + + -- Richard Atterer Sun, 28 Sep 2003 12:29:02 +0200 + +udftools (1.0.0b2-4) unstable; urgency=low + + * Fixed init script to work with devfs, closes: #204164 + * Dutch translation of debconf templates, closes: #209077 + + -- Richard Atterer Sat, 27 Sep 2003 15:14:24 +0200 + +udftools (1.0.0b2-3) unstable; urgency=low + + * Added init script which calls pktsetup during startup for devices + configured in /etc/default/udftools. Original version of script by + Aleksandar Topuzovic - thanks! + * Updated config.guess/sub just for the fun of it. + * gettext support for debconf templates by Michel Grentzinger + (thanks!), closes: #199829 + * French translation of debconf templates, closes: #200443 + + -- Richard Atterer Sun, 13 Jul 2003 12:05:58 +0200 + +udftools (1.0.0b2-2) unstable; urgency=low + + * Applied upstream patch to fix problems on big-endian machines, + hopefully closes: #133663 + * Removed build-depends on modutils which is no longer needed. + + -- Richard Atterer Thu, 14 Feb 2002 23:14:34 +0100 + +udftools (1.0.0b2-1) unstable; urgency=low + + * New upstream release. Upstream has split off udftools from the UDF + kernel patch, and has renamed mkudf to mkudffs. chkudf and + cd(rom)info are no longer part of udftools. + * Manpages provided by Paul Thompson - many thanks! Closes: #100383 + + -- Richard Atterer Mon, 11 Feb 2002 22:15:29 +0100 + +udftools (0.9.5-1) unstable; urgency=low + + * New upstream release, closes: #127289 + + -- Richard Atterer Wed, 2 Jan 2002 00:35:09 +0100 + +udftools (0.9.4-6) unstable; urgency=low + + * makedev 2.3.1-56 introduces support for pktcdvd devices, so use it + in postinst (see #99725). + + -- Richard Atterer Sat, 1 Dec 2001 21:07:49 +0100 + +udftools (0.9.4-5) unstable; urgency=low + + * Spanish debconf templates provided by Carlos Valdivia Yagüe - many + thanks! closes: #117691 + + -- Richard Atterer Wed, 31 Oct 2001 20:37:07 +0100 + +udftools (0.9.4-4) unstable; urgency=low + + * Large file support for mkudf (patch by Mark W. Eichin), + closes: #115199 + + -- Richard Atterer Sat, 13 Oct 2001 20:43:47 +0200 + +udftools (0.9.4-3) unstable; urgency=low + + * Removed (under protest;) debconf template with info "Not creating + device files since you use devfs", closes: #106348 + + -- Richard Atterer Sat, 28 Jul 2001 23:56:47 +0200 + +udftools (0.9.4-2) unstable; urgency=low + + * cdrom.h kernel header is now included so build is independent of + /usr/include/linux. + * Eliminated use of other kernel headers, to fix build problems on + ARM (et al?), closes: #100392 + * German debconf templates provided by Sebastian Feltel - many + thanks! closes: #100573 + + -- Richard Atterer Sat, 16 Jun 2001 15:04:31 +0200 + +udftools (0.9.4-1) unstable; urgency=low + + * New upstream release, released the minute I uploaded 0.9.3-1... %-7 + * Now uses debconf to ask user whether to create device files, as + mandated by policy. (But asks with priority=low, creates by default.) + * Renamed /usr/bin/cdinfo to /usr/bin/cdrominfo, to avoid conflict + with cdtool package, closes: #99909, #100049, #100098 + + -- Richard Atterer Wed, 6 Jun 2001 22:12:15 +0200 + +udftools (0.9.3-1) unstable; urgency=low + + * Initial Release. Finishes the ITP process, closes: #99767 + + -- Richard Atterer Mon, 4 Jun 2001 21:47:49 +0200 + --- udftools-1.0.0b3.orig/debian/compat +++ udftools-1.0.0b3/debian/compat @@ -0,0 +1 @@ +4 --- udftools-1.0.0b3.orig/debian/control +++ udftools-1.0.0b3/debian/control @@ -0,0 +1,22 @@ +Source: udftools +Section: otherosfs +Priority: extra +Maintainer: Richard Atterer +Build-Depends: debhelper (>= 4.1.16), libreadline-dev, patch, dh-autoreconf +Standards-Version: 3.6.1 + +Package: udftools +Architecture: any +Depends: ${shlibs:Depends} +Recommends: udev +Suggests: dvd+rw-tools, pmount +Homepage: http://sourceforge.net/projects/linux-udf/ +Description: tools for UDF filesystems and DVD/CD-R(W) drives + This package contains a number of user-space tools related to + creating filesystems in the UDF (Universal Disk Format), which is + primarily used for DVDs, but sometimes also CD-ROMs: + . + mkudffs - Format a device, creating an empty UDF filesystem + cdrwtool - Low-level drive management (e.g. set writing speed, format) + pktsetup - Set up a packet writing device (/dev/pktcdvd0) for a drive + wrudf - Maintains a UDF filesystem (undocumented) --- udftools-1.0.0b3.orig/debian/copyright +++ udftools-1.0.0b3/debian/copyright @@ -0,0 +1,32 @@ +This package was debianized by Richard Atterer on +Mon, 4 Jun 2001 21:47:49 +0200. + +It was downloaded from + http://sourceforge.net/projects/linux-udf/ + +Upstream Authors: + Copyright (c) 1999,2000 Jens Axboe + Copyright (c) 2001-2002 Ben Fennema + Copyright (c) 2004 Peter Osterlund + Manpages: Copyright 2002 Paul Thompson + getopt: Copyright (C) 1987-1998 Free Software Foundation, Inc. + +Copyright: + + This package 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; version 2 dated June, 1991. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- udftools-1.0.0b3.orig/debian/patch-01-pktsetup-chardev.diff +++ udftools-1.0.0b3/debian/patch-01-pktsetup-chardev.diff @@ -0,0 +1,346 @@ +From: Peter Osterlund +Subject: Re: [RFC][PATCH] Control pktcdvd with an auxiliary character device +To: linux-kernel@vger.kernel.org +Cc: Christoph Hellwig , Arnd Bergmann , + Jens Axboe , Andrew Morton +Date: Wed Jul 14 02:17:27 2004 +0200 + +Peter Osterlund writes: + +> Peter Osterlund writes: +> +> > Christoph Hellwig writes: +> > +> > > On Sun, Jul 11, 2004 at 01:20:45AM +0200, Arnd Bergmann wrote: +> > > > These are actually incorrect definitions since the ioctl argument is +> > > > not a pointer to unsigned int but instead just an int. However, that's +> > > > too late to fix without breaking the existing tools. +> > > +> > > The tools need to change anyway to get away from the broken behaviour to +> > > issue in ioctl on the actual block device to bind it.. +> > +> > OK, I'll create a patch that gets rid of the ioctl interface and uses +> > an auxiliary character device instead to control device bindings. +> +> Here is a patch for 2.6.7-mm7 that does that. The driver creates a +> misc character device and bind/unbind of the block devices are +> controlled by ioctl commands on the char device. +> +> This patch needs corresponding changes in the pktsetup user space +> program. I'll post a patch for pktsetup as a separate message. + +And here is a patch for udftools-1.0.0b3 that updates the pktsetup +program to make it able to use the character device for block device +setup/teardown. + +--- + + udftools-1.0.0b3-petero/pktsetup/pktsetup.c | 245 +++++++++++++++++++++++++++- + 1 files changed, 238 insertions(+), 7 deletions(-) + +diff -puN pktsetup/pktsetup.c~pktsetup-char-dev pktsetup/pktsetup.c +--- udftools-1.0.0b3/pktsetup/pktsetup.c~pktsetup-char-dev 2004-07-12 19:57:51.000000000 +0200 ++++ udftools-1.0.0b3-petero/pktsetup/pktsetup.c 2004-07-14 00:34:02.471317888 +0200 +@@ -1,5 +1,6 @@ + /* + * Copyright (c) 1999,2000 Jens Axboe ++ * Copyright (c) 2004 Peter Osterlund + * + * 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 +@@ -19,6 +20,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -33,8 +35,33 @@ + #define PACKET_SETUP_DEV _IOW('X', 1, unsigned int) + #define PACKET_TEARDOWN_DEV _IOW('X', 2, unsigned int) + #endif ++#ifndef PACKET_CTRL_CMD ++#define PACKET_CTRL_CMD _IOWR('X', 1, struct pkt_ctrl_command) ++#endif ++ ++#define MAJOR(dev) ((dev & 0xfff00) >> 8) ++#define MINOR(dev) ((dev & 0xff) | ((dev >> 12) & 0xfff00)) ++#define MKDEV(ma,mi) ((mi & 0xff) | (ma << 8) | ((mi & ~0xff) << 12)) ++ ++#define MISC_MAJOR 10 ++#define CTL_DIR "/dev/pktcdvd" ++#define CTL_DEV "control" ++ ++#define PKT_CTRL_CMD_SETUP 0 ++#define PKT_CTRL_CMD_TEARDOWN 1 ++#define PKT_CTRL_CMD_STATUS 2 ++ ++struct pkt_ctrl_command { ++ __u32 command; /* in: Setup, teardown, status */ ++ __u32 dev_index; /* in/out: Device index */ ++ __u32 dev; /* in/out: Device nr for cdrw device */ ++ __u32 pkt_dev; /* out: Device nr for packet device */ ++ __u32 num_devices; /* out: Largest device index + 1 */ ++ __u32 padding; ++}; ++ + +-int init_cdrom(int fd) ++static int init_cdrom(int fd) + { + if (ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT) < 0) { + perror("drive not ready\n"); +@@ -54,7 +81,7 @@ int init_cdrom(int fd) + return 0; + } + +-void setup_dev(char *pkt_device, char *device, int rem) ++static void setup_dev(char *pkt_device, char *device, int rem) + { + int pkt_fd, dev_fd, cmd; + +@@ -88,29 +115,233 @@ void setup_dev(char *pkt_device, char *d + close(pkt_fd); + } + +-int usage(void) ++static int usage(void) + { +- printf("pktsetup /dev/pktcdvd0 /dev/cdrom\tsetup device\n"); +- printf("pktsetup -d /dev/pktcdvd0\t\ttear down device\n"); ++ printf("For pktcdvd < 0.2.0:\n"); ++ printf(" pktsetup /dev/pktcdvd0 /dev/cdrom setup device\n"); ++ printf(" pktsetup -d /dev/pktcdvd0 tear down device\n"); ++ printf("For pktcdvd >= 0.2.0:\n"); ++ printf(" pktsetup dev_name /dev/cdrom setup device\n"); ++ printf(" pktsetup -d dev_name tear down device\n"); ++ printf(" pktsetup -d major:minor tear down device\n"); ++ printf(" pktsetup -s show device mappings\n"); + return 1; + } + ++/* ++ * Find the minor device number for the pktcdvd control device. ++ */ ++static int get_misc_minor(void) ++{ ++ int minor; ++ char name[64]; ++ FILE *f; ++ ++ if ((f = fopen("/proc/misc", "r")) == NULL) ++ return -1; ++ while (fscanf(f, " %d %64s", &minor, name) == 2) { ++ if (strcmp(name, "pktcdvd") == 0) { ++ fclose(f); ++ return minor; ++ } ++ } ++ fclose(f); ++ return -1; ++} ++ ++static const char *pkt_dev_name(const char *dev) ++{ ++ static char buf[128]; ++ snprintf(buf, sizeof(buf), "%s/%s", CTL_DIR, dev); ++ return buf; ++} ++ ++static void create_ctl_dev(void) ++{ ++ int misc_minor; ++ struct stat stat_buf; ++ int dev; ++ ++ if ((misc_minor = get_misc_minor()) < 0) { ++ system("/sbin/modprobe pktcdvd"); ++ misc_minor = get_misc_minor(); ++ } ++ if (misc_minor < 0) { ++ fprintf(stderr, "Can't find pktcdvd character device\n"); ++ return; ++ } ++ dev = MKDEV(MISC_MAJOR, misc_minor); ++ ++ if ((stat(pkt_dev_name(CTL_DEV), &stat_buf) >= 0) && ++ S_ISCHR(stat_buf.st_mode) && (stat_buf.st_rdev == dev)) ++ return; /* Already set up */ ++ ++ mkdir(CTL_DIR, 0755); ++ unlink(pkt_dev_name(CTL_DEV)); ++ mknod(pkt_dev_name(CTL_DEV), S_IFCHR | 0644, dev); ++} ++ ++static int remove_stale_dev_node(int ctl_fd, char *devname) ++{ ++ struct stat stat_buf; ++ int i, dev; ++ struct pkt_ctrl_command c; ++ ++ if (stat(pkt_dev_name(devname), &stat_buf) < 0) ++ return 0; ++ if (!S_ISBLK(stat_buf.st_mode)) ++ return 1; ++ dev = stat_buf.st_rdev; ++ memset(&c, 0, sizeof(struct pkt_ctrl_command)); ++ for (i = 0; ; i++) { ++ c.command = PKT_CTRL_CMD_STATUS; ++ c.dev_index = i; ++ if (ioctl(ctl_fd, PACKET_CTRL_CMD, &c) < 0) { ++ perror("ioctl"); ++ return 1; ++ } ++ if (i >= c.num_devices) ++ break; ++ if (c.pkt_dev == dev) ++ return 1; /* busy */ ++ } ++ unlink(pkt_dev_name(devname)); ++ return 0; ++} ++ ++static void setup_dev_chardev(char *pkt_device, char *device, int rem) ++{ ++ struct pkt_ctrl_command c; ++ struct stat stat_buf; ++ int ctl_fd, dev_fd; ++ ++ memset(&c, 0, sizeof(struct pkt_ctrl_command)); ++ ++ create_ctl_dev(); ++ if ((ctl_fd = open(pkt_dev_name(CTL_DEV), O_RDONLY)) < 0) { ++ perror("ctl open"); ++ return; ++ } ++ ++ if (!rem) { ++ if ((dev_fd = open(device, O_RDONLY | O_NONBLOCK)) == -1) { ++ perror("open cd-rom"); ++ goto out_close; ++ } ++ if (init_cdrom(dev_fd)) { ++ close(dev_fd); ++ goto out_close; ++ } ++ close(dev_fd); ++ ++ if (stat(device, &stat_buf) < 0) { ++ perror("stat cd-rom"); ++ goto out_close; ++ } ++ if (!S_ISBLK(stat_buf.st_mode)) { ++ fprintf(stderr, "Not a block device\n"); ++ goto out_close; ++ } ++ c.command = PKT_CTRL_CMD_SETUP; ++ c.dev = stat_buf.st_rdev; ++ ++ if (remove_stale_dev_node(ctl_fd, pkt_device) != 0) { ++ fprintf(stderr, "Device node '%s' already in use\n", pkt_device); ++ goto out_close; ++ } ++ if (ioctl(ctl_fd, PACKET_CTRL_CMD, &c) < 0) { ++ perror("ioctl"); ++ goto out_close; ++ } ++ mknod(pkt_dev_name(pkt_device), S_IFBLK | 0640, c.pkt_dev); ++ } else { ++ int major, minor, remove_node; ++ ++ if ((stat(pkt_dev_name(pkt_device), &stat_buf) >= 0) && ++ S_ISBLK(stat_buf.st_mode)) { ++ major = MAJOR(stat_buf.st_rdev); ++ minor = MINOR(stat_buf.st_rdev); ++ remove_node = 1; ++ } else if (sscanf(pkt_device, "%d:%d", &major, &minor) == 2) { ++ remove_node = 0; ++ } else { ++ fprintf(stderr, "Can't find major/minor numbers\n"); ++ goto out_close; ++ } ++ ++ c.command = PKT_CTRL_CMD_TEARDOWN; ++ c.pkt_dev = MKDEV(major, minor); ++ if (ioctl(ctl_fd, PACKET_CTRL_CMD, &c) < 0) { ++ perror("ioctl"); ++ goto out_close; ++ } ++ if (remove_node) ++ unlink(pkt_dev_name(pkt_device)); ++ } ++ ++out_close: ++ close(ctl_fd); ++} ++ ++static void show_mappings(void) ++{ ++ struct pkt_ctrl_command c; ++ int ctl_fd, i; ++ ++ memset(&c, 0, sizeof(struct pkt_ctrl_command)); ++ ++ create_ctl_dev(); ++ if ((ctl_fd = open(pkt_dev_name(CTL_DEV), O_RDONLY)) < 0) { ++ perror("ctl open"); ++ return; ++ } ++ ++ for (i = 0; ; i++) { ++ c.command = PKT_CTRL_CMD_STATUS; ++ c.dev_index = i; ++ if (ioctl(ctl_fd, PACKET_CTRL_CMD, &c) < 0) { ++ perror("ioctl"); ++ goto out_close; ++ } ++ if (i >= c.num_devices) ++ break; ++ if (c.dev) { ++ printf("%2d : %d:%d -> %d:%d\n", ++ i, MAJOR(c.pkt_dev), MINOR(c.pkt_dev), ++ MAJOR(c.dev), MINOR(c.dev)); ++ } ++ } ++ ++out_close: ++ close(ctl_fd); ++} ++ + int main(int argc, char **argv) + { + int rem = 0, c; ++ char *pkt_device; ++ char *device; + + if (argc == 1) + return usage(); + +- while ((c = getopt(argc, argv, "d")) != EOF) { ++ while ((c = getopt(argc, argv, "ds?")) != EOF) { + switch (c) { + case 'd': + rem = 1; + break; ++ case 's': ++ show_mappings(); ++ return 0; + default: + return usage(); + } + } +- setup_dev(argv[optind], argv[optind + 1], rem); ++ pkt_device = argv[optind]; ++ device = argv[optind + 1]; ++ if (strchr(pkt_device, '/')) ++ setup_dev(pkt_device, device, rem); ++ else ++ setup_dev_chardev(pkt_device, device, rem); + return 0; + } +_ + +-- +Peter Osterlund - petero2@telia.com +http://w1.894.telia.com/~u89404340 --- udftools-1.0.0b3.orig/debian/patch-02-pktsetup-exitstatus.diff +++ udftools-1.0.0b3/debian/patch-02-pktsetup-exitstatus.diff @@ -0,0 +1,126 @@ +From: Henrique de Moraes Holschuh +To: Debian Bug Tracking System +Subject: Bug#223266: pktsetup: please return meaningful exit status on errors +Date: Sun, 7 Dec 2003 17:03:35 -0200 + +pktsetup seems to always return exit status 0 (ok) even when something +goes wrong. + +Stuff like: + trying to register an already registered device + trying to de-register an unbound device + +should return a non-zero exit status. + +--- ./pktsetup/pktsetup.c.orig 2007-11-30 16:39:48.580250640 +0100 ++++ ./pktsetup/pktsetup.c 2007-11-30 16:36:48.569992440 +0100 +@@ -81,13 +82,13 @@ + return 0; + } + +-static void setup_dev(char *pkt_device, char *device, int rem) ++static int setup_dev(char *pkt_device, char *device, int rem) + { + int pkt_fd, dev_fd, cmd; + + if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT)) == -1) { + perror("open packet device"); +- return; ++ return 1; + } + + if (!rem) { +@@ -95,24 +96,29 @@ + if ((dev_fd = open(device, O_RDONLY | O_NONBLOCK)) == -1) { + perror("open cd-rom"); + close(pkt_fd); +- return; ++ return 1; + } + if (init_cdrom(dev_fd)) { + close(pkt_fd); + close(dev_fd); +- return; ++ return 0; ++ } else { ++ return 1; + } + } else { + cmd = PACKET_TEARDOWN_DEV; + dev_fd = 0; /* silence gcc */ + } + +- if (ioctl(pkt_fd, cmd, dev_fd) == -1) ++ if (ioctl(pkt_fd, cmd, dev_fd) == -1) { + perror("ioctl"); ++ return 1; ++ } + + if (dev_fd) + close(dev_fd); + close(pkt_fd); ++ return 0; + } + + static int usage(void) +@@ -209,18 +215,19 @@ + return 0; + } + +-static void setup_dev_chardev(char *pkt_device, char *device, int rem) ++static int setup_dev_chardev(char *pkt_device, char *device, int rem) + { + struct pkt_ctrl_command c; + struct stat stat_buf; + int ctl_fd, dev_fd; ++ int ret = 1; + + memset(&c, 0, sizeof(struct pkt_ctrl_command)); + + create_ctl_dev(); + if ((ctl_fd = open(pkt_dev_name(CTL_DEV), O_RDONLY)) < 0) { + perror("ctl open"); +- return; ++ return 1; + } + + if (!rem) { +@@ -254,6 +261,7 @@ + goto out_close; + } + mknod(pkt_dev_name(pkt_device), S_IFBLK | 0640, c.pkt_dev); ++ ret = 0; + } else { + int major, minor, remove_node; + +@@ -275,12 +283,17 @@ + perror("ioctl"); + goto out_close; + } +- if (remove_node) +- unlink(pkt_dev_name(pkt_device)); ++ if (remove_node) { ++ if (unlink(pkt_dev_name(pkt_device)) == 0) ++ ret = 0; ++ } else { ++ ret = 0; ++ } + } + + out_close: + close(ctl_fd); ++ return ret; + } + + static void show_mappings(void) +@@ -340,8 +353,7 @@ + pkt_device = argv[optind]; + device = argv[optind + 1]; + if (strchr(pkt_device, '/')) +- setup_dev(pkt_device, device, rem); ++ return setup_dev(pkt_device, device, rem); + else +- setup_dev_chardev(pkt_device, device, rem); +- return 0; ++ return setup_dev_chardev(pkt_device, device, rem); + } --- udftools-1.0.0b3.orig/debian/patch-03-mkudffs-bigendian.diff +++ udftools-1.0.0b3/debian/patch-03-mkudffs-bigendian.diff @@ -0,0 +1,36 @@ +Date: Sun, 12 Dec 2004 14:25:09 +0100 +From: Christoph Hellwig +To: submit@bugs.debian.org + +Package: udftools +Version: 1.0.0b3-6 + +mkduffs crashes with a segmentation fault when trying to create a +filesystem on big-endian systems. e.g. mkudffs /dev/sda4 on my +PowerMac. + +udffstools from CVS on sf.net is fine, and I've extracted the actual +fix: + + +diff -uNr -Xdontdiff -p udftools-1.0.0b3/mkudffs/mkudffs.c udftools/mkudffs/mkudffs.c +--- udftools-1.0.0b3/mkudffs/mkudffs.c 2004-02-23 04:35:33.000000000 +0100 ++++ udftools/mkudffs/mkudffs.c 2004-03-02 03:09:39.000000000 +0100 +@@ -250,14 +250,14 @@ void split_space(struct udf_disc *disc) + if (size % offsets[PSPACE_SIZE]) + size -= (size % offsets[PSPACE_SIZE]); + set_extent(disc, PSPACE, start, size); +- for (i=0; iudf_lvd[0]->numPartitionMaps; i++) ++ for (i=0; iudf_lvd[0]->numPartitionMaps); i++) + { + if (i == 1) + disc->udf_lvid->freeSpaceTable[i] = cpu_to_le32(0xFFFFFFFF); + else + disc->udf_lvid->freeSpaceTable[i] = cpu_to_le32(size); + } +- for (j=0; judf_lvd[0]->numPartitionMaps; j++) ++ for (j=0; judf_lvd[0]->numPartitionMaps); j++) + { + if (j == 1) + disc->udf_lvid->sizeTable[i+j] = cpu_to_le32(0xFFFFFFFF); + --- udftools-1.0.0b3.orig/debian/patch-04-wrudf-gcc4.diff +++ udftools-1.0.0b3/debian/patch-04-wrudf-gcc4.diff @@ -0,0 +1,53 @@ +Subject: Bug#288621: udftools: FTBFS (amd64/gcc-4.0): invalid lvalue in assignment +From: Andreas Jochens +Message-Id: +Date: Tue, 04 Jan 2005 19:29:01 +0100 +Lines: 59 + +Package: udftools +Severity: normal +Tags: patch + +When building 'udftools' on amd64 with gcc-4.0, +I get the following error: + +wrudf.c:119: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:119: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:119: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness +wrudf.c:119: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness +wrudf.c:230: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:230: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:230: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:230: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness +wrudf.c:230: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness +wrudf.c:245: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:245: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:245: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness +wrudf.c:245: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness +wrudf.c:245: warning: pointer targets in passing argument 1 of 'strncmp' differ in signedness +wrudf.c:248: error: invalid lvalue in assignment +make[2]: *** [wrudf.o] Error 1 +make[2]: Leaving directory `/udftools-1.0.0b3/wrudf' + +With the attached patch 'udftools' can be compiled +on amd64 using gcc-4.0. + +The patch also changes the Build-Depends from 'libreadline4-dev' +to 'libreadline5-dev'. + +Regards +Andreas Jochens + +diff -urN ../tmp-orig/udftools-1.0.0b3/wrudf/wrudf.c ./wrudf/wrudf.c +--- ../tmp-orig/udftools-1.0.0b3/wrudf/wrudf.c 2002-11-26 08:18:51.000000000 +0100 ++++ ./wrudf/wrudf.c 2005-01-04 16:56:49.394078200 +0100 +@@ -245,7 +245,7 @@ + } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 ) + virtualPartitionNum = i; + } +- (char*)spm += spm->partitionMapLength; ++ spm = (char*)spm + spm->partitionMapLength; + } + + if( medium == CDR ) { +diff -urN ../tmp-orig/udftools-1.0.0b3/debian/control ./debian/control --- udftools-1.0.0b3.orig/debian/patch-05-pktsetup-manpage.diff +++ udftools-1.0.0b3/debian/patch-05-pktsetup-manpage.diff @@ -0,0 +1,126 @@ +Date: Thu, 06 Jan 2005 02:04:10 -0500 +From: A Costa +Reply-To: A Costa , 288896@bugs.debian.org +Sender: A Costa +To: Debian Bug Tracking System +Subject: Bug#288896: udftools: 'man pktsetup' links to obsolete "http://packet-cd.sourceforge.net/" + +Package: udftools +Version: 1.0.0b3-9 +Severity: normal + + + % man pktsetup | grep -n http + 19: See: http://packet-cd.sourceforge.net/ + 55: http://linux-udf.sourceforge.net. + +The web page in #19 hasn't been updated since 2001. It's a time waster. + +The web page in #55 says "copyright 1999" at the bottom. + +Suggest: + + 19: See /usr/share/doc/udftools/README.Debian + 55: http://sourceforge.net/projects/linux-udf/ + + + + +--- ./doc/pktsetup.8.orig 2005-10-03 13:11:38.000000000 +0000 ++++ ./doc/pktsetup.8 2005-10-03 13:14:16.000000000 +0000 +@@ -45,9 +45,7 @@ + used as a read/write filesystem. This requires kernel support for + the packet device, and the UDF filesystem. + .PP +-See: +-.UR +-http://packet-cd.sourceforge.net/ ++See /usr/share/doc/udftools/README.Debian for more information. + .UE + + .SH EXIT STATUS +@@ -87,7 +85,7 @@ + .SH AVAILABILITY + .B pktsetup + is part of the udftools package and is available from +-http://linux-udf.sourceforge.net. ++http://sourceforge.net/projects/linux-udf/ + + .SH "SEE ALSO" + .BR cdrwtool (1) + +----------------------------------------------------------------- + +From: Carsten Grohmann +To: "Debian Bug Tracking System" +Subject: Bug#414801: udftools: man pktsetup: Wrong device names in "EXAMPLE" and "FILES" sections +Date: Tue, 13 Mar 2007 22:56:04 +0100 + +The device files are moved in the seprate directory /dev/pktcdvd/. The +current files are /dev/pktcdvd/control,/dev/pktcdvd/0, ... The major +device number has changed too. + +The example section used the wrong path names. Calling +"pktsetup /dev/pktcdvd0 /dev/sr0" prints an error message like +"ioctl: Inappropriate ioctl for device". + +The new syntax works fine: +pktsetup 0 /dev/sr0 +pktsetup -d 0 + +And could you add the option "-s" too? + +Thanks + +--- ./doc/pktsetup.8.orig 2007-11-30 13:10:51.865824000 +0100 ++++ ./doc/pktsetup.8 2007-11-30 13:25:14.915006370 +0100 +@@ -37,6 +37,9 @@ + .B pktsetup + .B \-d + .I packet_device ++.br ++.B pktsetup ++.B \-s + .ad b + .SH DESCRIPTION + .B Pktsetup +@@ -59,29 +62,36 @@ + Delete the association between the specified \fIpacket-device\fP + and its block device. + ++.IP "\fB\-s\fP" ++Show the current device mapping, one device per line, in the format ++ \fIname\fP : \fIpktdevid\fP -> \fIblkdevid\fP ++.br ++(e.g. "0 : 253:0 -> 22:0") ++ + .SH EXAMPLE + The following commands provide an example of using the + packet device. + .nf + .IP + cdrwtool -d /dev/sr0 -q +-pktsetup /dev/pktcdvd0 /dev/sr0 ++pktsetup 0 /dev/sr0 + + mount -t udf /dev/pktcdvd0 /mnt + ... + umount /dev/pktcdvd0 +-pktsetup -d /dev/pktcdvd0 ++pktsetup -d 0 + .fi + .LP + + .SH FILES + .nf +-/dev/pktcdvd0,/dev/pktcdvd1,... CD/DVD packet devices (block major=97) ++/dev/pktcdvd0,/dev/pktcdvd1,... CD/DVD packet devices + .fi + + .SH AUTHOR + .nf + Jens Axboe ++Some additions by Richard Atterer + .fi + + .SH AVAILABILITY --- udftools-1.0.0b3.orig/debian/patch-06-wrudf-lvalue.diff +++ udftools-1.0.0b3/debian/patch-06-wrudf-lvalue.diff @@ -0,0 +1,11 @@ +--- ./wrudf/wrudf.c.orig 2007-11-30 12:09:29.655986820 +0100 ++++ ./wrudf/wrudf.c 2007-11-30 12:10:09.658266420 +0100 +@@ -245,7 +245,7 @@ + } else if( strncmp( spm->partIdent.ident, UDF_ID_VIRTUAL, strlen(UDF_ID_VIRTUAL)) == 0 ) + virtualPartitionNum = i; + } +- spm = (char*)spm + spm->partitionMapLength; ++ spm = (struct sparablePartitionMap*)((char*)spm + spm->partitionMapLength); + } + + if( medium == CDR ) { --- udftools-1.0.0b3.orig/debian/patch-07-cdrwtool-manpage.diff +++ udftools-1.0.0b3/debian/patch-07-cdrwtool-manpage.diff @@ -0,0 +1,106 @@ +Date: Tue, 17 May 2005 23:54:35 -0400 +From: A Costa +Reply-To: A Costa , 309572@bugs.debian.org +Sender: A Costa +To: Debian Bug Tracking System +Subject: Bug#309572: 'man cdrwtool' typo: "pktsetup (8)" instead of "pktsetup (1)" + +Found a typo in '/usr/share/man/man1/cdrwtool.1.gz', see attached '.diff'. + + +Reason why it should be "1" and not "8": + +Since there's no section #8 man page... + + % dlocate -L udftools | grep "pktsetup.[1-9].gz" + /usr/share/man/man1/pktsetup.1.gz + +...programs like 'pinfo' link to nowhere if you click +on 'pktsetup (8)'. + + + +--- ./doc/cdrwtool.1.orig 2005-10-03 13:11:38.000000000 +0000 ++++ ./doc/cdrwtool.1 2005-10-03 13:14:16.000000000 +0000 +@@ -140,4 +140,4 @@ + http://linux-udf.sourceforge.net. + + .SH "SEE ALSO" +-.BR pktsetup (8) ++.BR pktsetup (1) + +-------------------------------------------------------------------------- + +From: A Costa +To: Debian Bug Tracking System +Subject: Bug#288355: udftools: 'man cdrwtool' should describe the '-q' switch +Date: Mon, 03 Jan 2005 03:47:34 -0500 + +The '-q' switch is mentioned twice in the 'cdrwtool' man page: +...but under OPTIONS there's no description of what '-q' does. + +--- ./doc/cdrwtool.1.orig 2007-11-30 11:25:24.005219775 +0100 ++++ ./doc/cdrwtool.1 2007-11-30 11:28:47.516817240 +0100 +@@ -83,6 +83,9 @@ + .IP "\fB\-u \fIlength\fP" + Make a UDF filesystem using \fIlength\fP number of blocks. + ++.IP "\fB\-q\fP" ++`Quick setup': blank the disc, format it as one large track and write a UDF filesystem. ++ + .IP "\fB\-m \fIoffset\fP" + Format the disc at \fIoffset\fP number of blocks. + +-------------------------------------------------------------------------- + +From: Jari Aalto +To: Debian Bug Tracking System +Subject: Bug#372093: udftools: cdrwtool [manual] Mention default settings and clarify options -l +Date: Thu, 08 Jun 2006 11:54:13 +0300 + +-l -w -p: +The -s option changes these parameters, but the documentation does +not mention what are the default values. Please add word "(default)" +next to the choices, like: +-p type + Set packet type. Either `0' (default) or `1', corresponding to variable and + fixed packet sizes respectively. + + +--- ./doc/cdrwtool.1.orig 2007-11-30 12:19:02.688642090 +0100 ++++ ./doc/cdrwtool.1 2007-11-30 12:27:20.216994615 +0100 +@@ -101,6 +101,8 @@ + Set write parameters determined by + .BR "\-l" , " \-w" ", and" " \-p" + options for the disc. ++.br ++(Note by your Debian maintainer: Apparently this option does nothing.) + + .IP "\fB\-v \fIversion\fP" + Specify the udf revision to use. Valid revisions are 0x0201, 0x0200, 0x0150, +@@ -116,14 +116,14 @@ + .IP "\fB\-t \fIspeed\fP" + Set write speed. (Defaults to 12x ?) + .IP "\fB\-l \fItype\fP" +-Set multi\-session field. Either `0', `1', or `3', corresponding to ++Set multi\-session field. Either `0' (default), `1', or `3', corresponding to + `No B0 pointer. Next Session not allowed', + `B0 pointer = FF:FF:FF. Next session not allowed', and + `Next session allowed. B0 pointer = next possible program area' respectively. + .IP "\fB\-w \fImode\fP" +-Set write mode. Either `mode1' or `mode2'. ++Set write mode. Either `mode1' or `mode2' (default). + .IP "\fB\-p \fItype\fP" +-Set packet type. Either `0' or `1', corresponding to ++Set packet type. Either `0' or `1' (default), corresponding to + variable and fixed packet sizes respectively. + .IP "\fB\-o \fIoffset\fP" + Set write offset. +@@ -132,6 +132,7 @@ + .nf + Jens Axboe + Ben Fennema ++Some additions by Richard Atterer + .fi + + .SH AVAILABILITY --- udftools-1.0.0b3.orig/debian/patch-08-mkudffs-manpage.diff +++ udftools-1.0.0b3/debian/patch-08-mkudffs-manpage.diff @@ -0,0 +1,15 @@ +--- ./doc/mkudffs.8 2002-11-26 08:18:51.000000000 +0100 ++++ ./doc/mkudffs.8 2006-11-22 22:37:49.099351000 +0100 +@@ -96,10 +96,10 @@ + hard drive + .TP + dvd +-DVD (Digital Versital Disc) ++DVD (Digital Versatile Disc) + .TP + dvdram +-DVD\-RAM (Digital Versital Disc\-Random Access Memory) ++DVD\-RAM (Digital Versatile Disc\-Random Access Memory) + .TP + worm + WORM (Write Once Ready Many) --- udftools-1.0.0b3.orig/debian/patch-09-include-stringh.diff +++ udftools-1.0.0b3/debian/patch-09-include-stringh.diff @@ -0,0 +1,42 @@ + +--- ./include/udf_endian.h.orig 2007-11-30 12:35:59.746600920 +0100 ++++ ./include/udf_endian.h 2007-11-30 12:36:49.749450420 +0100 +@@ -20,6 +20,8 @@ + * + */ + ++#include ++ + #ifndef __UDF_ENDIAN_H + #define __UDF_ENDIAN_H + +--- ./pktsetup/pktsetup.c.orig 2007-11-30 12:37:42.252442395 +0100 ++++ ./pktsetup/pktsetup.c 2007-11-30 12:38:36.255519855 +0100 +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + #include + +--- ./wrudf/wrudf-cdr.c.orig 2007-11-30 12:39:06.257229555 +0100 ++++ ./wrudf/wrudf-cdr.c 2007-11-30 12:39:28.758511830 +0100 +@@ -6,6 +6,7 @@ + #include + #include + #include ++#include + #include "wrudf.h" + #include "ide-pc.h" + #include "bswap.h" +--- ./wrudf/wrudf-cdrw.c.orig 2007-11-30 12:40:21.761532300 +0100 ++++ ./wrudf/wrudf-cdrw.c 2007-11-30 12:40:36.762387150 +0100 +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + #include + #include + #include /* for CDROM_DRIVE_STATUS */ --- udftools-1.0.0b3.orig/debian/patch-10-mkudffs-open-error.diff +++ udftools-1.0.0b3/debian/patch-10-mkudffs-open-error.diff @@ -0,0 +1,31 @@ +From: Christoph Hellwig +To: submit@bugs.debian.org +Subject: Bug#285313: mkudffs gives unhelpfull error messages when called without write-access to the device +Date: Sun, 12 Dec 2004 14:28:09 +0100 + +When calling mkuffs without write access to the device, e.g. + + mkudffs /dev/sda + +as ordinary user where the device is writeable only for root it gives an +completely unhelpfull error message: + + hch@dhcppc1:~$ mkudffs /dev/sda4 + trying to change type of multiple extents + +Some kind of permission denied message would be much better + + +--- ./mkudffs/main.c.orig 2007-11-30 13:57:22.524854595 +0100 ++++ ./mkudffs/main.c 2007-11-30 13:58:44.529527775 +0100 +@@ -162,6 +162,10 @@ + #else + fd = open(filename, O_RDWR | O_CREAT | O_LARGEFILE, 0660); + #endif ++ if (fd == -1) { ++ perror("Error opening device"); ++ exit(1); ++ } + disc.head->blocks = get_blocks(fd, disc.blocksize, disc.head->blocks); + disc.write = write_func; + disc.write_data = &fd; --- udftools-1.0.0b3.orig/debian/patch-11-udftools-limits-h.diff +++ udftools-1.0.0b3/debian/patch-11-udftools-limits-h.diff @@ -0,0 +1,10 @@ +--- ./cdrwtool/cdrwtool.h.orig 2008-01-12 13:07:44.000000000 +0100 ++++ ./cdrwtool/cdrwtool.h 2008-01-12 13:08:19.000000000 +0100 +@@ -11,6 +11,7 @@ + #define _CDRWTOOL_H 1 + + #include ++#include + #include + #include "../include/libudffs.h" + --- udftools-1.0.0b3.orig/debian/patch-12-pktsetup-limits-h.diff +++ udftools-1.0.0b3/debian/patch-12-pktsetup-limits-h.diff @@ -0,0 +1,10 @@ +--- ./pktsetup/pktsetup.c.orig 2008-01-12 13:16:01.000000000 +0100 ++++ ./pktsetup/pktsetup.c 2008-01-12 13:16:15.000000000 +0100 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + #include + --- udftools-1.0.0b3.orig/debian/patch-13-open-mode.diff +++ udftools-1.0.0b3/debian/patch-13-open-mode.diff @@ -0,0 +1,11 @@ +--- ./pktsetup/pktsetup.c.orig 2009-12-10 11:56:03.000000000 +0000 ++++ ./pktsetup/pktsetup.c 2009-12-10 11:56:42.000000000 +0000 +@@ -87,7 +87,7 @@ + { + int pkt_fd, dev_fd, cmd; + +- if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT)) == -1) { ++ if ((pkt_fd = open(pkt_device, O_RDONLY | O_CREAT, S_IRUSR|S_IWUSR)) == -1) { + perror("open packet device"); + return 1; + } --- udftools-1.0.0b3.orig/debian/patch-14-no-curses.diff +++ udftools-1.0.0b3/debian/patch-14-no-curses.diff @@ -0,0 +1,9 @@ +--- udftools-1.0.0b3.orig/wrudf/Makefile.am ++++ udftools-1.0.0b3/wrudf/Makefile.am +@@ -1,5 +1,5 @@ + bin_PROGRAMS = wrudf +-wrudf_LDADD = $(top_builddir)/libudffs/libudffs.la -lreadline -lncurses ++wrudf_LDADD = $(top_builddir)/libudffs/libudffs.la -lreadline + wrudf_SOURCES = wrudf.c wrudf-cmnd.c wrudf-desc.c wrudf-cdrw.c wrudf-cdr.c ide-pc.c wrudf.h ide-pc.h ../include/ecma_167.h ../include/osta_udf.h ../include/bswap.h + + AM_CPPFLAGS = -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -DDEBUG --- udftools-1.0.0b3.orig/debian/patch-15-gcc5.diff +++ udftools-1.0.0b3/debian/patch-15-gcc5.diff @@ -0,0 +1,13 @@ +--- udftools-1.0.0b3/include/libudffs.h 2004-02-23 04:33:11.000000000 +0100 ++++ udftools-1.0.0b3/include/libudffs.h 2015-06-27 18:53:17.000000000 +0200 +@@ -169,8 +169,8 @@ + struct udf_data *alloc_data(void *, int); + + /* desc.c */ +-inline struct impUseVolDescImpUse *query_iuvdiu(struct udf_disc *); +-inline struct logicalVolIntegrityDescImpUse *query_lvidiu(struct udf_disc *); ++extern inline struct impUseVolDescImpUse *query_iuvdiu(struct udf_disc *); ++extern inline struct logicalVolIntegrityDescImpUse *query_lvidiu(struct udf_disc *); + + /* file.c */ + tag query_tag(struct udf_disc *, struct udf_extent *, struct udf_desc *, uint16_t); --- udftools-1.0.0b3.orig/debian/po.bak/POTFILES.in +++ udftools-1.0.0b3/debian/po.bak/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- udftools-1.0.0b3.orig/debian/po.bak/ca.po +++ udftools-1.0.0b3/debian/po.bak/ca.po @@ -0,0 +1,30 @@ +msgid "" +msgstr "" +"Project-Id-Version: udftools_1.0.0b2-5_templates\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-20 11:44+0200\n" +"PO-Revision-Date: 2004-03-05 19:46GMT\n" +"Last-Translator: Aleix Badia i Bosch \n" +"Language-Team: Catalan \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Crea els fitxers del dispositiu, no facis res" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Voleu crear els fitxers del dispositiu (/dev/pktcdvd0 etc)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "L'eina \"pktsetup\" proporcionada pel paquet udftools es pot utilitzar per configurar l'escriptura de paquets pels dispositius CD/DVD. Tot i aix, el sistem no t els fitxers del dispositiu /dev/pktcdvd0, etc. Voleu que els cre?" --- udftools-1.0.0b3.orig/debian/po.bak/cs.po +++ udftools-1.0.0b3/debian/po.bak/cs.po @@ -0,0 +1,46 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: ufdtools\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2004-12-21 21:27+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Vytvoit soubory zazen, Nic nevytvet" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Vytvoit soubory zazen (/dev/pktcdvd0 apod.)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +"Nstroj \"ptksetup\", je je soust balku udftools, me bt pouit pro " +"nastaven paketovho zpisu pro CD/DVD zazen. Nicmn pslun zazen " +"ve vaem systmu chyb. Mm je vytvoit?" --- udftools-1.0.0b3.orig/debian/po.bak/de.po +++ udftools-1.0.0b3/debian/po.bak/de.po @@ -0,0 +1,48 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Gertedateien erstellen, Nichts machen" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Die Gertedateien (/dev/pktcdvd0 etc.) erzeugen?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +"Das Programm \"pktsetup\" ist Teil des udftools-Pakets und wird zur " +"Installation von Packet-Writing fr CD/DVD-Gerte genutzt. Im Moment sind " +"die dafr notwendigen Gertedateien /etc/pktcdvd0 etc. nicht vorhanden. " +"Sollen diese jetzt erzeugt werden?" --- udftools-1.0.0b3.orig/debian/po.bak/es.po +++ udftools-1.0.0b3/debian/po.bak/es.po @@ -0,0 +1,48 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Crear los ficheros de dispositivo, No hacer nada" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Crear los ficheros de dispositivo (/dev/pktcdvd0, etc.)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +"La herramienta \"pktsetup\", incluida en el paquete udftools, se puede usar " +"para configurar la escritura por paquetes de dispositivos CD y DVD. Sin " +"embargo, los correspondientes ficheros de dispositivo /dev/pktcdvd0, etc. no " +"estn presentes en su sistema. Debera crearlos?" --- udftools-1.0.0b3.orig/debian/po.bak/fr.po +++ udftools-1.0.0b3/debian/po.bak/fr.po @@ -0,0 +1,45 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: udftools_1.0.0.b2-2\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2003-07-05 21:27+0200\n" +"Last-Translator: Michel Grentzinger \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Crer les fichiers de priphriques, Ne rien faire" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Faut-il crer les fichiers de priphriques (/dev/pktcdvd0, etc)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +"L'outil pktsetup fourni dans le paquet udftools peut tre utilis pour " +"mettre en place l'criture par paquets pour les priphriques CD/DVD. " +"Cependant, les fichiers de priphriques associs /dev/pktcdvd0, etc, ne " +"sont pas prsents sur votre systme. Faut-il les crer?" --- udftools-1.0.0b3.orig/debian/po.bak/ja.po +++ udftools-1.0.0b3/debian/po.bak/ja.po @@ -0,0 +1,48 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2003-12-16 01:42+0900\n" +"Last-Translator: Hideki Yamane \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=EUC-JP\n" +"Content-Transfer-Encoding: 8bit\n" + + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "ǥХե, ⤷ʤ" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "ǥХե (/dev/pktcdvd0 ʤ) ޤ?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "udftools ѥåΰȤ󶡤Ƥ \"pktsetup\" ġ" +"ȤäơCD ޤ DVD ǥХؤΥѥåȥ饤ƥ󥰤ǽǤ" +"ߤб /dev/pktcdvd0 ʤɤΥǥХե뤬ƥ" +"¸ߤƤޤ󡣤ΥǥХޤ?" --- udftools-1.0.0b3.orig/debian/po.bak/nl.po +++ udftools-1.0.0b3/debian/po.bak/nl.po @@ -0,0 +1,48 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: udftools 1.0.0b2-3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2003-09-07 17:29+0100\n" +"Last-Translator: Tim Vandermeersch \n" +"Language-Team: dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Apparaat bestanden aanmaken, Niets doen" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Apparaat bestanden aanmaken (/dev/pktcdvd0 etc.)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +"Het \"pktsetup\" tool meegeleverd als deel van het udftools pakket kan " +"gebruikt worden om pakket schrijven van CD/DVD apparaten te configureren." +"De overeenkomstige apparaat bestanden /dev/pktcddvd0 etc. zijn niet " +"aanwezig op uw systeem. Zal ik ze aanmaken?" --- udftools-1.0.0b3.orig/debian/po.bak/pt.po +++ udftools-1.0.0b3/debian/po.bak/pt.po @@ -0,0 +1,39 @@ +# Portuguese translation of udftools's debconf messages. +# 2005, Rui Branco > +# +# 2005-10-15 - Rui Branco - initial translation +# +msgid "" +msgstr "" +"Project-Id-Version: udftools 1.0.0b3-10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2005-10-15 18:00+0100\n" +"Last-Translator: Rui Branco \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Criar ficheiros de dispositivos, Não fazer nada" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Criar ficheiros de dispositivos (/dev/pktcdvd0 etc.)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +"A ferramenta \"pktsetup\" fornecida como parte do pacote udftools pode " +"ser utilizada para configurar a escrita 'packet writing' em dispositivos " +"CD/DVD. No entanto, os ficheiros de dispositivos /dev/pktcdvd0 etc. não " +"se encontram presentes no seu sistema. Devo criá-los?" --- udftools-1.0.0b3.orig/debian/po.bak/ru.po +++ udftools-1.0.0b3/debian/po.bak/ru.po @@ -0,0 +1,47 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: udftools 1.0.0b3\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2005-03-22 21:32+0600\n" +"Last-Translator: Basil Shubin \n" +"Language-Team: Russian\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=KOI8-R\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr " , " + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr " (/dev/pktcdvd0 ..)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +" \"pktsetup\", udftools, " +" CD/DVD . " +" /dev/pktcdvd0 .. " +". ?" --- udftools-1.0.0b3.orig/debian/po.bak/sv.po +++ udftools-1.0.0b3/debian/po.bak/sv.po @@ -0,0 +1,46 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# , fuzzy +# +# +msgid "" +msgstr "" +"Project-Id-Version: udftools 1.0.0b3-10\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2005-10-04 06:54+0200\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Skapa enhetsfiler, Gr inget" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Skapa enhetsfiler (/dev/pktcdvd0 etc.)?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" +"Verktyget \"pktsetup\" som r en del av udftools-paketet kan anvndas fr att " +"konfigurera paketskrivning fr CD/DVD-enheter. Men de enhetsfiler som behvs " +"(/dev/pktcdvd0 etc) finns inte p ditt system. Ska jag skapa dom?" + --- udftools-1.0.0b3.orig/debian/po.bak/templates.pot +++ udftools-1.0.0b3/debian/po.bak/templates.pot @@ -0,0 +1,44 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "" --- udftools-1.0.0b3.orig/debian/po.bak/vi.po +++ udftools-1.0.0b3/debian/po.bak/vi.po @@ -0,0 +1,36 @@ +# Vietnamese translation for UDF Tools. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: udftools 1.0.0b3-9\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2003-07-03 12:01+0200\n" +"PO-Revision-Date: 2005-08-19 22:09+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" +"X-Generator: LocFactoryEditor 1.2.2\n" + +#. Choices +#: ../templates:3 +msgid "Create device files, Do nothing" +msgstr "Tạo tập tin thiết bị, Đừng làm gì" + +#. Description +#: ../templates:5 +msgid "Create device files (/dev/pktcdvd0 etc.)?" +msgstr "Tạo tập tin thiết bị (« /dev/pktcdvd0 » v.v.) không?" + +#. Description +#: ../templates:5 +msgid "" +"The \"pktsetup\" tool supplied as part of the udftools package can be used " +"to set up packet writing for CD/DVD devices. However, the corresponding " +"device files /dev/pktcdvd0 etc. are not present on your system. Should I " +"create them?" +msgstr "Công cụ « pktsetup » được cung cấp là phần gói udftools thì có thể được dùng để thiết lập khả năng ghi gói cho thiết bị đĩa CD/DVD. Tuy nhiên, không có những tập tin thiết bị tương ứng trong hệ thống bạn. Bạn có muốn trình này tạo chúng ngay bây giờ không?" --- udftools-1.0.0b3.orig/debian/postinst +++ udftools-1.0.0b3/debian/postinst @@ -0,0 +1,19 @@ +#!/bin/sh -e +# postinst script for udftools + +case "$1" in + configure) + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +exit 0 --- udftools-1.0.0b3.orig/debian/postrm +++ udftools-1.0.0b3/debian/postrm @@ -0,0 +1,15 @@ +#!/bin/sh -e +# postrm script for udftools + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +exit 0 --- udftools-1.0.0b3.orig/debian/rules +++ udftools-1.0.0b3/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir mkudffs/main.c + dh_autoreconf + ./configure --prefix=/usr --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info + touch configure-stamp + +build: build-stamp + +patch-apply: + for f in `ls debian/patch-*.diff`; do \ + echo "Applying patch \`$$f'"; \ + patch --forward --dry -p1 <"$$f" \ + && patch --quiet --forward -p1 <"$$f"; \ + done +patch-unapply: + -for f in `ls -r debian/patch-*.diff`; do \ + echo "Reversing patch \`$$f'"; \ + patch --forward --reverse --dry -p1 <"$$f" \ + && patch --quiet --forward --reverse -p1 <"$$f"; \ + done + + +build-stamp: configure-stamp + dh_testdir mkudffs/main.c + $(MAKE) -f debian/rules patch-apply + $(MAKE) + touch build-stamp + +clean: + dh_testdir mkudffs/main.c + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) distclean + dh_autoreconf_clean + -$(MAKE) -f debian/rules patch-unapply + rm -f include/stamp-h include/stamp-h[0-9]* + dh_clean + +install: build + dh_testdir mkudffs/main.c + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/udftools + rm -rf debian/udftools/usr/lib # libudffs not needed + rm -f debian/udftools/usr/bin/udffsck # Does nothing ATM + sed 's%^\(\.TH .*\) 8 %\1 1 %' debian/udftools/usr/share/man/man1/mkudffs.1 + sed 's%^\(\.TH .*\) 8 %\1 1 %' debian/udftools/usr/share/man/man1/pktsetup.1 + rm -rf debian/udftools/usr/share/man/man8 + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir mkudffs/main.c + dh_testroot + dh_installdebconf + dh_installdocs + dh_installchangelogs + dh_installinit + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure \ + patch-apply patch-unapply --- udftools-1.0.0b3.orig/debian/udftools.default +++ udftools-1.0.0b3/debian/udftools.default @@ -0,0 +1,18 @@ +# Drives to register for packet writing: +# If there is more than one, separate with spaces: DEVICES="/dev/hdd /dev/sr0" +# Usually, the following should work: +#DEVICES="/dev/cdrw" + +# Pktcdvd patches for kernels 2.6.8 and later use a new interface for +# talking to the kernel, as well as a new set of device nodes. In case +# detection of the proper interface on your system fails, override +# it here. Possible values are "true" or "false". +#NEWINT=true + +# Only when using the new interface do you have the option to choose the +# names for the packet writing devices. This is ignored otherwise. +# For example, if DEVICES="/dev/hdd /dev/sr0" and +# NEWINTNAMES="cdwriter dvdwriter", then /dev/hdd will correspond to +# /dev/pktcdvd/cdwriter, and /dev/sr0 will correspond to +# /dev/pktcdvd/dvdwriter. The default setting is NEWINTNAMES="0 1 2 3". +#NEWINTNAMES="0 1 2 3" --- udftools-1.0.0b3.orig/debian/udftools.docs +++ udftools-1.0.0b3/debian/udftools.docs @@ -0,0 +1 @@ +AUTHORS --- udftools-1.0.0b3.orig/debian/udftools.init +++ udftools-1.0.0b3/debian/udftools.init @@ -0,0 +1,142 @@ +#! /bin/sh +# +# udftools +# Call pktsetup to set up packet device associations +# +# Written and Copyright 2003 Richard Atterer debian.org>, GPLv2. +# * Thanks to Aleksandar Topuzovic fer.hr> for an +# initial version of the script. +# * Thanks to Cyrille Chplov chepelov.org> for additional +# help with the specifics of 2.6 packet writing. +# * Thanks to Christopher Martin utoronto.ca> +# for fixes to make things work on systems that have "no udev + new +# interface" or "udev + old interface" + +### BEGIN INIT INFO +# Provides: udftools +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Set up packet writing devices +# Description: Set up packet writing devices, i.e. tell the kernel that +# e.g. device /dev/hdc is to be made available as packet +# writing device /dev/pktcdvd/0. +### END INIT INFO + +set -e + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC="udftools packet writing" +PKTSETUP=/usr/bin/pktsetup +DEFAULTFILE=/etc/default/udftools +DEVICES="" +NEWINTNAMES="0 1 2 3" +UDEVNAMES="/dev/pktcdvd/0 /dev/pktcdvd/1 /dev/pktcdvd/2 /dev/pktcdvd/3" +UDEV="" +NEWINT="" + +if test -e /dev/.devfsd; then + OLDINTNAMES="/dev/pktcdvd/0 /dev/pktcdvd/1 /dev/pktcdvd/2 /dev/pktcdvd/3" +else + OLDINTNAMES="/dev/pktcdvd0 /dev/pktcdvd1 /dev/pktcdvd2 /dev/pktcdvd3" +fi + +if test -f "$DEFAULTFILE"; then + # Read user settings + . "$DEFAULTFILE" +fi +test -x "$PKTSETUP" || exit 0 + +# Only execute modprobe if DEVICES set - avoid possible problems with +# the module for people who don't use packet writing. +if test -n "$DEVICES"; then + modprobe --quiet pktcdvd || true + if test -z "$NEWINT"; then # User did not set NEWINT, try auto-detection + if dpkg --compare-versions `uname -r` ge 2.6.8; then + NEWINT=true + else + NEWINT=false + fi + fi + if test -z "$UDEV"; then # User did not set UDEV, try auto-detection + if test -e /dev/.udev; then + UDEV=true + else + UDEV=false + fi + fi +fi + +dostart() { + if test -z "$DEVICES"; then + echo "Not starting $DESC: No devices listed in $DEFAULTFILE" + else + echo "Starting $DESC:" + if $NEWINT; then + set $NEWINTNAMES + for DEVICE in $DEVICES; do + echo -n "/dev/pktcdvd/$1=$DEVICE " || true + $PKTSETUP "$1" "$DEVICE" + shift + done + else + if $UDEV; then + set $UDEVNAMES + else + set $OLDINTNAMES + fi + for DEVICE in $DEVICES; do + echo -n "$1=$DEVICE " || true + $PKTSETUP "$1" "$DEVICE" + shift + done + fi + echo "" + fi +} + +dostop() { + if test -z "$DEVICES"; then + echo "Not stopping $DESC: No devices listed in $DEFAULTFILE" + else + echo "Stopping $DESC:" + if $NEWINT; then + set $NEWINTNAMES + for DEVICE in $DEVICES; do + echo -n "/dev/pktcdvd/$1=$DEVICE " || true + $PKTSETUP -d "$1" || true + shift + done + else + if $UDEV; then + set $UDEVNAMES + else + set $OLDINTNAMES + fi + for DEVICE in $DEVICES; do + echo -n "$1=$DEVICE " || true + $PKTSETUP -d "$1" || true + shift + done + fi + echo "" + fi +} + +case "$1" in + start) dostart;; + stop) dostop;; + restart|force-reload) dostop; dostart;; + status) + nmappings=`$PKTSETUP -s | wc -l` + echo "Status of $DESC: $nmappings device mappings" + if test $nmappings -eq 0; then exit 1; fi + ;; + *) + echo "Usage: /etc/init.d/udftools {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0