--- mtools-3.9.11.orig/debian/patches/00list +++ mtools-3.9.11/debian/patches/00list @@ -0,0 +1,7 @@ +01-plainio.dpatch +02-manpages.dpatch +04-manpages.dpatch +06-infodir.dpatch +07-m486.dpatch +08.scsi.c.dpatch +09.mtools.1.dpatch --- mtools-3.9.11.orig/debian/patches/07-m486.dpatch +++ mtools-3.9.11/debian/patches/07-m486.dpatch @@ -0,0 +1,48 @@ +#!/bin/sh -e +## 07-m486.dpatch by Matthias Klose +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: #474817: mtools: FTBFS: cc1: error: unrecognized command line option "-m486" + +if [ $# -lt 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +--- mtools-3.9.11.orig/configure.in ++++ mtools-3.9.11/configure.in +@@ -249,7 +249,7 @@ + objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' ` + if [ "X$GCC" = "Xyes" ] ; then + if [ "$host_cpu" = i486 ] ; then +- CFLAGS="$CFLAGS -m486" ++ CFLAGS="$CFLAGS" + fi + Wall=-Wall + if [ "$host_os3" = sunos ] ; then +unchanged: +--- mtools-3.9.11.orig/configure ++++ mtools-3.9.11/configure +@@ -5905,7 +5905,7 @@ + objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' ` + if [ "X$GCC" = "Xyes" ] ; then + if [ "$host_cpu" = i486 ] ; then +- CFLAGS="$CFLAGS -m486" ++ CFLAGS="$CFLAGS" + fi + Wall=-Wall + if [ "$host_os3" = sunos ] ; then --- mtools-3.9.11.orig/debian/patches/04-manpages.dpatch +++ mtools-3.9.11/debian/patches/04-manpages.dpatch @@ -0,0 +1,114 @@ +#!/bin/sh -e +## 04_manpages.dpatch by Anibal Monsalve Salazar +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixed a number of typos in man pages, closes: #305653, #305654, #305656, #305657, #305658 +## DP: Fixed "manpage fails to escape hyphen", closes: #201034. + +if [ $# -lt 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -u mtools-3.9.10.ds1/floppyd.1 mtools-3.9.10.ds1~/floppyd.1 +--- mtools-3.9.10.ds1/floppyd.1 2005-03-01 09:14:32.000000000 +1100 ++++ mtools-3.9.10.ds1~/floppyd.1 2006-06-25 12:52:20.000000000 +1000 +@@ -1,6 +1,7 @@ + .TH floppyd 1 "28Feb05" mtools-3.9.10 + .SH Name + floppyd - floppy daemon for remote access to floppy drive ++.br + floppyd_installtest - tests whether floppyd is installed and running + '\" t + .de TQ +diff -u mtools-3.9.10.ds1/mattrib.1 mtools-3.9.10.ds1~/mattrib.1 +--- mtools-3.9.10.ds1/mattrib.1 2005-03-01 09:14:32.000000000 +1100 ++++ mtools-3.9.10.ds1~/mattrib.1 2006-06-25 12:35:38.000000000 +1000 +@@ -56,7 +56,7 @@ + Recursive. Recursively list the attributes of the files in the subdirectories. + .TP + \&\fR\&\f(CWX\fR\ +-Concise. Prints the attributes whithout any whitespace padding. If ++Concise. Prints the attributes without any whitespace padding. If + neither the "/" option is given, nor the \fImsdosfile\fR contains a + wildcard, and there is only one Msdos file parameter on the command + line, only the attribute is printed, and not the filename. This option +diff -u mtools-3.9.10.ds1/mdel.1 mtools-3.9.10.ds1~/mdel.1 +--- mtools-3.9.10.ds1/mdel.1 2005-03-01 09:14:32.000000000 +1100 ++++ mtools-3.9.10.ds1~/mdel.1 2006-06-25 12:51:34.000000000 +1000 +@@ -1,6 +1,7 @@ + .TH mdel 1 "28Feb05" mtools-3.9.10 + .SH Name + mdel - delete an MSDOS file ++.br + mdeltree - recursively delete an MSDOS directory and its contents + '\" t + .de TQ +diff -u mtools-3.9.10.ds1/mdir.1 mtools-3.9.10.ds1~/mdir.1 +--- mtools-3.9.10.ds1/mdir.1 2005-03-01 09:14:32.000000000 +1100 ++++ mtools-3.9.10.ds1~/mdir.1 2006-06-25 12:27:44.000000000 +1000 +@@ -49,7 +49,7 @@ + the amount of free space takes up some non trivial amount of time, as + the whole FAT must be read in and scanned. The \fR\&\f(CW-f\fR flag bypasses + this step. This flag is not needed on FAT32 filesystems, which store +-the size explicitely. ++the size explicitly. + .TP + \&\fR\&\f(CWb\fR\ + Concise listing. Lists each directory name or filename, one per line +diff -u mtools-3.9.10.ds1/mpartition.1 mtools-3.9.10.ds1~/mpartition.1 +--- mtools-3.9.10.ds1/mpartition.1 2005-03-01 09:14:32.000000000 +1100 ++++ mtools-3.9.10.ds1~/mpartition.1 2006-06-25 12:30:45.000000000 +1000 +@@ -66,7 +66,7 @@ + can be bootable at a time. + .TP + \&\fR\&\f(CWd\fR\ +-"Desactivates" the partition, i.e. makes it unbootable. ++"Deactivates" the partition, i.e. makes it unbootable. + .PP + If no operation is given, the current settings are printed. + .PP +@@ -104,7 +104,7 @@ + .TP + \&\fR\&\f(CWf\fR\ + Usually, before writing back any changes to the partition, mpartition +-performs certain consistenct checks, such as checking for overlaps and ++performs certain consistency checks, such as checking for overlaps and + proper alignment of the partitions. If any of these checks fails, the + partition table is not changes. The \fR\&\f(CW-f\fR allows you to override + these safeguards. +diff -u mtools-3.9.10.ds1/mtools.1 mtools-3.9.10.ds1~/mtools.1 +--- mtools-3.9.10.ds1/mtools.1 2005-03-01 09:14:33.000000000 +1100 ++++ mtools-3.9.10.ds1~/mtools.1 2006-06-25 13:05:25.000000000 +1000 +@@ -422,7 +422,7 @@ + doesn't exist for 20 sector formats. + .PP + These formats are supported by numerous DOS shareware utilities such as +-\&\fR\&\f(CWfdformat\fR and \fR\&\f(CWvgacopy\fR. In his infinite hybris, Bill Gate$ ++\&\fR\&\f(CWfdformat\fR and \fR\&\f(CWvgacopy\fR. In his infinite hubris, Bill Gate$ + believed that he invented this, and called it \fR\&\f(CW\(ifDMF disks\(is\fR, or + \&\fR\&\f(CW\(ifWindows formatted disks\(is\fR. But in reality, it has already existed + years before! Mtools supports these formats on Linux, on SunOs and on +@@ -448,7 +448,7 @@ + The 2m format was originally invented by Ciriaco Garcia de Celis. It + also uses bigger sectors than usual in order to fit more data on the + disk. However, it uses the standard format (18 sectors of 512 bytes +-each) on the first cylinder, in order to make these disks easyer to ++each) on the first cylinder, in order to make these disks easier to + handle by DOS. Indeed this method allows to have a standard sized + bootsector, which contains a description of how the rest of the disk + should be read. --- mtools-3.9.11.orig/debian/patches/06-infodir.dpatch +++ mtools-3.9.11/debian/patches/06-infodir.dpatch @@ -0,0 +1,35 @@ +#! /bin/sh -e +## 06-infodir.dpatch by Anibal Monsalve Salazar +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: fix infodir problems + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch -p1 < $0;; + -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + + +--- mtools-3.9.11/Makefile.in 2006-02-28 19:55:15.000000000 +1100 ++++ mtools-3.9.11/Makefile.in 2007-08-08 19:01:24.000000000 +1000 +@@ -207,9 +207,9 @@ + fi; \ + if [ -n "$(INSTALL_INFO)" ] ; then \ + if [ -f $(DESTDIR)$(infodir)/dir.info ] ; then \ +- $(INSTALL_INFO) $(DESTDIR)$(infodir)/mtools.info $(DESTDIR)$(infodir)/dir.info; \ ++ $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir)/dir.info $(DESTDIR)$(infodir)/mtools.info; \ + else \ +- $(INSTALL_INFO) $(DESTDIR)$(infodir)/mtools.info $(DESTDIR)$(infodir)/dir; \ ++ $(INSTALL_INFO) --infodir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/mtools.info; \ + fi; \ + fi + --- mtools-3.9.11.orig/debian/patches/02-manpages.dpatch +++ mtools-3.9.11/debian/patches/02-manpages.dpatch @@ -0,0 +1,352 @@ +#! /bin/sh -e +## 02-manpages.dpatch by Luis Bustamante +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Additional manpages from various authors. Fixed mtools section. + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch -p1 < $0;; + -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + + +diff -urN mtools-3.9.8.orig/lz.1 mtools-3.9.8/lz.1 +--- mtools-3.9.8.orig/lz.1 1969-12-31 19:00:00.000000000 -0500 ++++ mtools-3.9.8/lz.1 2003-01-19 14:24:39.000000000 -0500 +@@ -0,0 +1,42 @@ ++'\" t ++.\" ** The above line should force tbl to be a preprocessor ** ++.\" Man page for lz ++.\" ++.\" Copyright (C), 2000, Robert A.R. King ++.\" ++.\" You may distribute under the terms of the GNU General Public ++.\" License as specified in the file COPYING that comes with the mtools ++.\" package ++.\" ++.\" Fri Dec 1 01:50:54 EST 2000 Robert A.R. King (Robert.King@mailbox.gu.edu.au) ++.\" ++.TH LZ 1 "Wed Feb 23 00:00:00 EET 2000" "" "Mtools Users Manual" ++.SH NAME ++lz \- gunzips and shows a listing of a gzip'd tar'd archive ++.SH SYNOPSIS ++.\" The command line ++.B lz ++.I file ++.SH DESCRIPTION ++.B lz ++provides a listing of a gzip'd tar'd archive, that is a \fBtar\fR(1) archive ++compressed with the \fBgzip\fR(1) utility. ++It is not strictly necessary on Debian GNU/Linux, because the GNU ++\fBtar\fR(1) program provides the same capability with the command ++ ++.B tar -tzf ++.I file ++ ++but this utility is provided in the mtools package for other platforms and ++is retained here for completeness. ++ ++.SH AUTHOR ++Robert King (Robert.King@mailbox.gu.edu.au) wrote this page for the ++.I Debian/GNU ++mtools package. ++ ++.SH "SEE ALSO" ++.BR mtools (1), ++.BR gzip (1), ++.BR tar (1), ++.BR uz (1). +diff -urN mtools-3.9.8.orig/mtools.1 mtools-3.9.8/mtools.1 +--- mtools-3.9.8.orig/mtools.1 2003-01-19 14:22:33.000000000 -0500 ++++ mtools-3.9.8/mtools.1 2003-01-19 14:24:39.000000000 -0500 +@@ -1,5 +1,5 @@ + '\" t +-.TH mtools.1 3 "11Apr07" mtools-3.9.11 ++.TH mtools 1 "11Apr07" mtools-3.9.11 + .SH Name + mtools - utilities to access DOS disks in Unix. + '\" t +diff -urN mtools-3.9.8.orig/mtools.5 mtools-3.9.8/mtools.5 +--- mtools-3.9.8.orig/mtools.5 2003-01-19 14:22:33.000000000 -0500 ++++ mtools-3.9.8/mtools.5 2003-01-19 14:25:28.000000000 -0500 +@@ -1,5 +1,5 @@ + '\" t +-.TH mtools.1 3 "11Apr07" MTOOLS MTOOLS ++.TH mtools 5 "11Apr07" MTOOLS MTOOLS + .SH Name + mtools.conf - mtools configuration files + '\" t +@@ -20,7 +20,7 @@ + .SH Description + .PP + This manpage describes the configuration files for mtools. They +-are called \fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR and \fR\&\f(CW\(if~/.mtoolsrc\(is\fR. If ++are called \fR\&\f(CW\(if/etc/mtools.conf\(is\fR and \fR\&\f(CW\(if~/.mtoolsrc\(is\fR. If + the environmental variable \fR\&\f(CWMTOOLSRC\fR is set, its contents is used + as the filename for a third configuration file. These configuration + files describe the following items: +@@ -37,7 +37,7 @@ + .iX "c Name of configuration files" + .iX "c Location of configuration files" + .PP +-\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR is the system-wide configuration file, ++\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR is the system-wide configuration file, + and \fR\&\f(CW\(if~/.mtoolsrc\(is\fR is the user's private configuration file. + .PP + On some systems, the system-wide configuration file is called +@@ -446,7 +446,7 @@ + Mtools uses its root privileges to open the device, and to issue the + actual SCSI I/O calls. Moreover, root privileges are only used for + drives described in a system-wide configuration file such as +-\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR, and not for those described in ++\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR, and not for those described in + \&\fR\&\f(CW\(if~/.mtoolsrc\(is\fR or \fR\&\f(CW\(if$MTOOLSRC\(is\fR. + .TP + \&\fR\&\f(CWprivileged\fR\ +@@ -455,7 +455,7 @@ + When set to 1, this instructs mtools to use its set-uid and set-gid + privileges for opening the given drive. This option is only valid for + drives described in the system-wide configuration files (such as +-\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR, not \fR\&\f(CW\(if~/.mtoolsrc\(is\fR or ++\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR, not \fR\&\f(CW\(if~/.mtoolsrc\(is\fR or + \&\fR\&\f(CW\(if$MTOOLSRC\(is\fR). Obviously, this option is also a no op if mtools is + not installed setuid or setgid. This option is implied by 'scsi=1', but + again only for drives defined in system-wide configuration files. +@@ -745,7 +745,7 @@ + compiled-in defaults + .TP + 2.\ +-\&\fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR ++\&\fR\&\f(CW\(if/etc/mtools.conf\(is\fR + .TP + 3.\ + \&\fR\&\f(CW\(if/etc/mtools\(is\fR +@@ -763,10 +763,10 @@ + Options described in the later files override those described in the + earlier files. Drives defined in earlier files persist if they are not + overridden in the later files. For instance, drives A and B may be +-defined in \fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR and drives C and D may be ++defined in \fR\&\f(CW\(if/etc/mtools.conf\(is\fR and drives C and D may be + defined in \fR\&\f(CW\(if~/.mtoolsrc\(is\fR However, if \fR\&\f(CW\(if~/.mtoolsrc\(is\fR also + defines drive A, this new description would override the description of +-drive A in \fR\&\f(CW\(if/usr/local/etc/mtools.conf\(is\fR instead of adding to it. If ++drive A in \fR\&\f(CW\(if/etc/mtools.conf\(is\fR instead of adding to it. If + you want to add a new description to a drive already described in an + earlier file, you need to use either the \fR\&\f(CW+drive\fR or \fR\&\f(CWdrive+\fR + keyword. +diff -urN mtools-3.9.8.orig/tgz.1 mtools-3.9.8/tgz.1 +--- mtools-3.9.8.orig/tgz.1 1969-12-31 19:00:00.000000000 -0500 ++++ mtools-3.9.8/tgz.1 2003-01-19 14:24:39.000000000 -0500 +@@ -0,0 +1,56 @@ ++.\" tgz.1 ++.\" (c) 2001 Filip Van Raemdonck ++.\" ++.\" This manpage is free documentation. ++.\" Permission is granted to copy, distribute and/or modify this document ++.\" under the terms of the GNU Free Documentation License, Version 1.1 or any ++.\" later version published by the Free Software Foundation; with no Invariant ++.\" Sections, no Front-Cover Texts, and no Back Cover Texts. ++.\" ++.\" This 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. ++.\" ++.\" You should have received a copy of the GNU Free Documentation License ++.\" along with this program; if not, write to: ++.\" Free Software Foundation, Inc. ++.\" 59 Temple Place - Suite 330 ++.\" Boston, MA 02111-1307, USA. ++.\" ++.\" ++.ig ++A copy of the GNU Free Documentation License is available in the ++Debian package in the file /usr/share/doc/mtools/copyright. ++.. ++.ig ++A copy of the GNU Free Documentation License is available in the ++Debian source package in the file debian/copyright. ++.. ++.TH TGZ "1" "May 2002" "mtools 3.9.8" "Mtools Users Manual" ++.SH NAME ++tgz ++.SH SYNOPSIS ++.B tgz ++[ ++.I destination ++[ ++.I source ... ++] ] ++.SH DESCRIPTION ++Make a gzip'd tar archive with the name of the first parameter out of specified ++files or, if no source files are specified, from everything in the current ++directory. ++If the first parameter is omitted as well, the archive will be written to ++stdout. ++.SH BUGS ++.B tgz ++requires gzip in the user's path. ++It also needs gnu tar or something close due to use of --exclude, --totals ++and -S. ++.SH AUTHOR ++Filip Van Raemdonck (mechanix@debian.org) wrote this page for the ++.I Debian/GNU ++mtools package. ++.SH "SEE ALSO" ++.BR gzip (1), ++.BR tar (1) +diff -urN mtools-3.9.8.orig/uz.1 mtools-3.9.8/uz.1 +--- mtools-3.9.8.orig/uz.1 1969-12-31 19:00:00.000000000 -0500 ++++ mtools-3.9.8/uz.1 2003-01-19 14:24:39.000000000 -0500 +@@ -0,0 +1,43 @@ ++'\" t ++.\" ** The above line should force tbl to be a preprocessor ** ++.\" Man page for uz ++.\" ++.\" Copyright (C), 2000, Robert A.R. King ++.\" ++.\" You may distribute under the terms of the GNU General Public ++.\" License as specified in the file COPYING that comes with the mtools ++.\" package ++.\" ++.\" Fri Dec 1 01:50:54 EST 2000 Robert A.R. King (Robert.King@mailbox.gu.edu.au) ++.\" ++.TH UZ 1 "Wed Feb 23 00:00:00 EET 2000" "" "Mtools Users Manual" ++.SH NAME ++uz \- gunzips and extracts a gzip'd tar'd archive ++.SH SYNOPSIS ++.\" The command line ++.B uz ++.I file ++.SH DESCRIPTION ++.B uz ++extracts a gzip'd tar'd archive, that is a \fBtar\fR(1) archive ++compressed with the \fBgzip\fR(1) utility. ++It is not strictly necessary on Debian GNU/Linux, because the GNU ++\fBtar\fR(1) program provides the same capability with the command ++ ++.B tar -xzf ++.I file ++ ++but this utility is provided in the mtools package for other platforms and ++is retained here for completeness. ++ ++.SH AUTHOR ++Robert King (Robert.King@mailbox.gu.edu.au) wrote this page for the ++.I Debian/GNU ++mtools package. ++ ++ ++.SH "SEE ALSO" ++.BR mtools (1), ++.BR gzip (1), ++.BR tar (1), ++.BR lz (1). +diff -urN tmp/mtools-3.9.9/mcomp.1 mtools-3.9.9/mcomp.1 +--- tmp/mtools-3.9.9/mcomp.1 1969-12-31 19:00:00.000000000 -0500 ++++ mtools-3.9.9/mcomp.1 2003-03-03 12:20:06.000000000 -0500 +@@ -0,0 +1,44 @@ ++'\" t ++.\" ** The above line should force tbl to be a preprocessor ** ++.\" Man page for mcomp ++.\" ++.\" Copyright (C), 2003, Luis Bustamante ++.\" ++.\" You may distribute under the terms of the GNU General Public ++.\" License as specified in the file COPYING that comes with the mtools ++.\" package ++.\" ++.\" Mon Mar 3 11:58:15 COT 2003 Luis Bustamante ++.\" ++.TH MCOMP 1 "Mon Mar 3 11:58:15 COT 2003" "" "Mtools Users Manual" ++.SH NAME ++mcomp \- Compares two files using mtools ++.SH SYNOPSIS ++.\" The command line ++.B mcomp ++.I file-on-floppy ++.I local-file ++.SH DESCRIPTION ++.B mcomp ++compares two files, the first one must be on a floppy disk so it can ++be accesed via \fBmtools\fR. ++It is not strictly necessary on Debian GNU/Linux, because the diffutils ++\fBcmp\fR(1) program provides the same capability after copying the ++file locally with ++ ++.B mcopy ++.I file ++.I destination ++ ++but this utility is provided in the mtools package for other platforms and ++is retained here for completeness. ++ ++.SH AUTHOR ++Luis Bustamante wrote this page for the ++.I Debian/GNU ++mtools package. ++ ++.SH "SEE ALSO" ++.BR mtools (1), ++.BR cmp (1), ++.BR mcopy (1) +diff -urN tmp/mtools-3.9.9/mxtar.1 mtools-3.9.9/mxtar.1 +--- tmp/mtools-3.9.9/mxtar.1 1969-12-31 19:00:00.000000000 -0500 ++++ mtools-3.9.9/mxtar.1 2003-03-03 12:20:11.000000000 -0500 +@@ -0,0 +1,48 @@ ++'\" t ++.\" ** The above line should force tbl to be a preprocessor ** ++.\" Man page for mxtar ++.\" ++.\" Copyright (C), 2003, Luis Bustamante ++.\" ++.\" You may distribute under the terms of the GNU General Public ++.\" License as specified in the file COPYING that comes with the mtools ++.\" package ++.\" ++.\" Mon Mar 3 11:58:15 COT 2003 Luis Bustamante ++.\" ++.TH MXTAR 1 "Mon Mar 3 11:58:15 COT 2003" "" "Mtools Users Manual" ++.SH NAME ++mxtar \- Wrapper for using GNU tar directly from a floppy disk ++.SH SYNOPSIS ++.\" The command line ++.B mxtar ++[ ++.B \- ++] ++.I [ tar-options ] ++.I file ++.SH DESCRIPTION ++.B mxtar ++let you use GNU \fBtar\fR(1) on a floppy disk without mounting it using ++\fBmtools\fR(1). ++It is not strictly necessary on Debian GNU/Linux, because the GNU ++\fBtar\fR(1) program provides the same capability after copying the ++file locally with ++ ++.B mcopy ++.I file ++.I destination ++ ++but this utility is provided in the mtools package for other platforms and ++is retained here for completeness. ++ ++.SH AUTHOR ++Luis Bustamante wrote this page for the ++.I Debian/GNU ++mtools package. ++ ++ ++.SH "SEE ALSO" ++.BR mtools (1), ++.BR tar (1), ++.BR mcopy (1) --- mtools-3.9.11.orig/debian/patches/08.scsi.c.dpatch +++ mtools-3.9.11/debian/patches/08.scsi.c.dpatch @@ -0,0 +1,102 @@ +#!/bin/sh -e +## 08.scsi.c.dpatch by Thomas Richter +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: #393878 mzip unreliable on 2.6.18 + +if [ $# -lt 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +--- mtools-3.9.10/scsi.c 2002-11-02 13:09:28.000000000 +0100 ++++ mtools-3.9.10/scsi.c 2006-10-17 21:11:01.000000000 +0200 +@@ -37,12 +37,7 @@ + #endif + + #ifdef OS_linux +-#define SCSI_IOCTL_SEND_COMMAND 1 +-struct scsi_ioctl_command { +- int inlen; +- int outlen; +- char cmd[5008]; +-}; ++#include + #endif + + #ifdef _SCO_DS +--- mtools-3.9.10/scsi.c 2007-05-26 19:02:56.000000000 +1000 ++++ mtools-3.9.10/scsi.c 2008-04-08 20:30:16.000000000 +1000 +@@ -148,37 +148,33 @@ int scsi_cmd(int fd, unsigned char *cdb, + return 0; + + #elif defined OS_linux +- struct scsi_ioctl_command my_scsi_cmd; ++ struct sg_io_hdr scsi_cmd; + ++ /* ++ ** Init the command ++ */ ++ memset(&scsi_cmd,0,sizeof(scsi_cmd)); ++ scsi_cmd.interface_id = 'S'; ++ scsi_cmd.dxfer_direction = (mode == SCSI_IO_READ)?(SG_DXFER_FROM_DEV):(SG_DXFER_TO_DEV); ++ scsi_cmd.cmd_len = cmdlen; ++ scsi_cmd.mx_sb_len = 0; ++ scsi_cmd.dxfer_len = len; ++ scsi_cmd.dxferp = data; ++ scsi_cmd.cmdp = cdb; ++ scsi_cmd.timeout = ~0; /* where is MAX_UINT defined??? */ ++ ++#if DEBUG ++ printf("CMD(%d): %02x%02x%02x%02x%02x%02x %sdevice\n",cmdlen,cdb[0],cdb[1],cdb[2],cdb[3],cdb[4],cdb[5], ++ (mode==SCSI_IO_READ)?("<-"):("->")); ++ printf("DATA : len = %d\n",len); ++#endif + +- memcpy(my_scsi_cmd.cmd, cdb, cmdlen); /* copy command */ +- +- switch (mode) { +- case SCSI_IO_READ: +- my_scsi_cmd.inlen = 0; +- my_scsi_cmd.outlen = len; +- break; +- case SCSI_IO_WRITE: +- my_scsi_cmd.inlen = len; +- my_scsi_cmd.outlen = 0; +- memcpy(my_scsi_cmd.cmd + cmdlen,data,len); +- break; +- } +- +- if (ioctl(fd, SCSI_IOCTL_SEND_COMMAND, &my_scsi_cmd) < 0) { ++ if (ioctl(fd, SG_IO,&scsi_cmd) < 0) { + perror("scsi_io"); + return -1; + } + +- switch (mode) { +- case SCSI_IO_READ: +- memcpy(data, &my_scsi_cmd.cmd[0], len); +- break; +- case SCSI_IO_WRITE: +- break; +- } +- +- return 0; /* where to get scsi status? */ ++ return 0; + + #elif (defined _SCO_DS) && (defined SCSIUSERCMD) + struct scsicmd my_scsi_cmd; --- mtools-3.9.11.orig/debian/patches/09.mtools.1.dpatch +++ mtools-3.9.11/debian/patches/09.mtools.1.dpatch @@ -0,0 +1,44 @@ +#!/bin/sh -e +## 09.mtools.1.dpatch by A. Costa +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: 'man mtools' typos #468744 + +if [ $# -lt 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +--- mtools-3.9.11/mtools.1 2007-04-11 23:16:01.000000000 +1000 ++++ mtools-3.9.11/mtools.1 2008-04-08 21:02:10.000000000 +1000 +@@ -458,12 +458,12 @@ data than the others. Unfortunately, DOS + each track contains the same amount of data. Thus 2m hides the fact that + the first track contains less data by using a \fIshadow + FAT\fR. (Usually, DOS stores the FAT in two identical copies, for +-additional safety. XDF stores only one copy, and it tells DOS that it +-stores two. Thus the same that would be taken up by the second FAT copy +-is saved.) This also means that your should \fBnever use a 2m disk ++additional safety. XDF stores only one copy, but tells DOS that it ++stores two. Thus the space that would be taken up by the second FAT copy ++is saved.) This also means that you should \fBnever use a 2m disk + to store anything else than a DOS fs\fR. + .PP +-Mtools supports these format only on Linux. ++Mtools supports these formats only on Linux. + .PP + .SS \ \ XDF + .iX "c XDF disks" --- mtools-3.9.11.orig/debian/patches/01-plainio.dpatch +++ mtools-3.9.11/debian/patches/01-plainio.dpatch @@ -0,0 +1,36 @@ +#!/bin/sh -e +## 01_plainio.dpatch by Martin Pitt +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fixes garbage output of mtype under certain circumstances; closes #217413 + +if [ $# -lt 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi + +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +case "$1" in + -patch) patch $patch_opts -p1 < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +@DPATCH@ +diff -urNad /home/martin/download/debian/mtools-3.9.9/plain_io.c mtools-3.9.9/plain_io.c +--- /home/martin/download/debian/mtools-3.9.9/plain_io.c 2003-02-16 17:18:58.000000000 +0100 ++++ mtools-3.9.9/plain_io.c 2004-01-14 00:56:11.000000000 +0100 +@@ -524,6 +524,7 @@ + printOom(); + return 0; + } ++ memset((void*)This, 0, sizeof(SimpleFile_t)); + This->scsi_sector_size = 512; + This->seekable = 1; + #ifdef OS_hpux --- mtools-3.9.11.orig/debian/compat +++ mtools-3.9.11/debian/compat @@ -0,0 +1 @@ +5 --- mtools-3.9.11.orig/debian/control +++ mtools-3.9.11/debian/control @@ -0,0 +1,32 @@ +Source: mtools +Section: otherosfs +Priority: standard +Maintainer: Anibal Monsalve Salazar +Uploaders: Luis Bustamante , Andrés Roldán +Build-Depends: debhelper (>= 5), dpatch, libxfont-dev, libxt-dev, texinfo +Standards-Version: 3.7.3 +Homepage: http://www.mtools.linux.lu/ + +Package: floppyd +Priority: extra +Architecture: any +Replaces: mtools (<< 3.9.7) +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: mtools +Description: Daemon for remote access to floppy drives + Floppyd is used as a server to grant access to the floppy drive to + clients running on a remote machine, just as an X server grants access + to the display to remote clients. + +Package: mtools +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: floppyd +Description: Tools for manipulating MSDOS files + Mtools is a collection of utilities to access MS-DOS disks from Unix + without mounting them. It supports Win'95 style long file names, OS/2 + Xdf disks, ZIP/JAZ disks and 2m disks (store up to 1992kB on a high + density 3 1/2 disk). + . + Also included in this package are commands to eject and manipulate + the write/password protection control of Zip disks. --- mtools-3.9.11.orig/debian/changelog +++ mtools-3.9.11/debian/changelog @@ -0,0 +1,592 @@ +mtools (3.9.11-1) unstable; urgency=low + + * Merged Ubuntu's changes + * Don't build with -m486. Closes: #474817 + * Don't build-depend on xlibs-static-dev. Build-depends on + libxfont-dev. Closes: #421561 + * floppyd does not depend on mtools. Closes: #450596 + * Fixed "mzip unreliable on 2.6.18". Closes: #393878 + Patch by Thomas Richter + * mtools.1: fixed typos. Closes: #468744 + Patch by A. Costa + * debian/watch: added + * Fixed the following lintian issues: + W: mtools source: debian-rules-ignores-make-clean-error line 28 + W: mtools source: out-of-date-standards-version 3.7.2 (current is 3.7.3) + W: mtools source: debian-rules-ignores-make-clean-error line 28 + W: mtools source: out-of-date-standards-version 3.7.2 (current is 3.7.3) + W: mtools: description-contains-homepage + W: floppyd: description-contains-homepage + E: mtools: copyright-file-contains-full-gfdl-license + E: floppyd: copyright-file-contains-full-gfdl-license + + -- Anibal Monsalve Salazar Tue, 08 Apr 2008 07:54:04 +1000 + +mtools (3.9.11-0ubuntu1) hardy; urgency=low + + * Don't build with -m486. + + -- Matthias Klose Thu, 24 Jan 2008 18:00:06 +0000 + +mtools (3.9.11-0) unstable; urgency=low + + * New upstream version. + - Not needed: debian/patches/03-amuFormat.dpatch + - Doesn't apply anymore: debian/patches/05-readLabel.dpatch + * Added debian/patches/06-infodir.dpatch to use the install-info + option --infodir. + * Fixed the following lintian messages: + - W: mtools source: debian-rules-sets-DH_COMPAT line 8 + - W: mtools source: substvar-source-version-is-deprecated floppyd + * Set DH_COMPAT to 5. + * Not shipping NEWPARAMS. + + -- Anibal Monsalve Salazar Wed, 08 Aug 2007 17:23:33 +1000 + +mtools (3.9.10.ds1-3) unstable; urgency=high + + * Replaced libx11-dev and libxau-dev by xlibs-static-dev and + libxt-dev as build-dependencies. Please refer to #347025. + Closes: #367558. Patch by Vincent Rivière . + + -- Anibal Monsalve Salazar Sat, 08 Jul 2006 12:36:15 +1000 + +mtools (3.9.10.ds1-2) unstable; urgency=low + + * Set Standards-Version to 3.7.2. + * Set DH_COMPAT to 5. + * Fixed "fails to show label for read-only floppies", closes: + #295151. Patch by Bart Martens . + * Fixed "manpage in section 2", closes: #365490. + Patch by Justin Pryzby . + * Fixed a number of typos in man pages, closes: #305653, #305654, + #305656, #305657, #305658. Patches by A Costa . + * Fixed "manpage fails to escape hyphen", closes: #201034. + + -- Anibal Monsalve Salazar Sun, 25 Jun 2006 13:04:34 +1000 + +mtools (3.9.10.ds1-1) unstable; urgency=low + + * New maintainer. + * Ack NMUs, closes: #347025, #292237. + * New upstream version, closes: #339771. + Removed the following files from the prestine original tarball: + .#patchlevel.c.1.18, .#mtools.spec.1.4, .#mtools.texi.1.11, + .#fat_size_calculation.tex.1.1, config.status and config.log. + * Changed amuFormat.sh to use bash. + * Set Standards-Version to 3.6.2. + * Added homepage to description. + + -- Anibal Monsalve Salazar Sun, 29 Jan 2006 11:35:46 +1100 + +mtools (3.9.9-2.2) unstable; urgency=low + + * NMU + * Fixed "FTBFS: build-depends on removed xlibs-dev", closes: #347025. + + -- Anibal Monsalve Salazar Tue, 17 Jan 2006 20:27:44 +1100 + +mtools (3.9.9-2.1) unstable; urgency=low + + * NMU + * Added a copy of the GFDL text to debian/copyright and correct + license location in debian/patches/02-manpages.dpatch fixing + tgz.1 (Closes: #292237) + + -- Paul Brossier Sat, 5 Feb 2005 01:27:35 +0000 + +mtools (3.9.9-2) unstable; urgency=low + + * Acknowledging NMU fixes. Thanks Matt. (closes: #217413, #191861, #191861) + * Bumbed Standars-Version to 3.6.1. + * Added Co-Maintainer (me) to Uploaders field. + + -- Andrés Roldán Sun, 1 Feb 2004 22:36:38 +0000 + +mtools (3.9.9-1.1) unstable; urgency=low + + * Non-maintainer upload + * Added patch 01-plainio.dpatch to fix garbage output of mtype under some + circumstances (closes: #217413) + * Added manpage for mcheck (closes: #191861) + * Convert mtools.conf to devfs names if devfs is used (closes: #178043) + + -- Martin Pitt Wed, 14 Jan 2004 00:40:05 +0100 + +mtools (3.9.9-1) unstable; urgency=low + + * New upstream version. + * Build now depends on dpatch package. + * Added manpage for mxtar and mcomp (closes: #182990, #182991) + * Option -i is documented in manpage (closes: #180831). + + -- Luis Bustamante Mon, 3 Mar 2003 11:30:18 -0500 + +mtools (3.9.8-13) unstable; urgency=low + + * Aplied latest patch from upstream mtools-3.9.8-20030118.diff.gz. + * Fixed mtools.conf manpage (closes: #177111). + + -- Luis Bustamante Sun, 19 Jan 2003 14:28:47 -0500 + +mtools (3.9.8-12) unstable; urgency=low + + * Applied accumulative patch from upstream mtools-3.9.8-20021118.diff.gz + (closes: #153571). + * Removed all debian patches. They were already applied by upstream author + in previous patch. + * Updated to standards version 3.5.8. + + -- Luis Bustamante Thu, 19 Dec 2002 19:27:24 -0500 + +mtools (3.9.8-11) unstable; urgency=low + + * Fixed error which made 2M floppies unusable (closes: #135713). + * Fixed mcopy behavior when source and destination are the same file + (closes: #94135). + * Added -F option, support for image files. Thanks to Fredrik Staxäng + (closes: #18323). + * Updated to standards version 3.5.7. + + -- Luis Bustamante Mon, 28 Oct 2002 00:08:39 -0500 + +mtools (3.9.8-10) unstable; urgency=low + + * New maintainer (closes: #149967). + * Builded package from the scratch. Applied latest patch from upstream + (mtools-200020203.diff.gz). + * Added manual page for lz and uz. Written by Robert King + (closes: #19091). + * Fixed problem with parse_range(). Patch from Moritz Barsnick + . + + -- Luis Bustamante Fri, 17 Jun 2002 15:59:21 -0500 + +mtools (3.9.8-9) unstable; urgency=low + + * New maintainer (closes: #147794). + * Added tgz manpage, courtesy of Filip Van Raemdonck (closes: #99423). + + -- Domenico Andreoli Fri, 24 May 2002 15:50:14 +0200 + +mtools (3.9.8-8) unstable; urgency=low + + * Orphan + + -- Junichi Uekawa Wed, 22 May 2002 21:21:04 +0900 + +mtools (3.9.8-7) unstable; urgency=low + + * Fixed a mformat option parsing bug (closes: #130531). + * removed emacs local setting from debian/changelog. + * added README.Debian noting of the upstream. + + -- Junichi Uekawa Tue, 29 Jan 2002 21:57:32 +0900 + +mtools (3.9.8-6) unstable; urgency=low + + * New maintainer (closes: #130833) + + -- Junichi Uekawa Mon, 28 Jan 2002 01:16:52 +0900 + +mtools (3.9.8-5) unstable; urgency=low + + * Orphaned this package. + + -- Adrian Bunk Fri, 25 Jan 2002 13:04:59 +0100 + +mtools (3.9.8-4) unstable; urgency=high + + * s/1992k/1992kB/ in the package description. (closes: #120774) + + -- Adrian Bunk Fri, 11 Jan 2002 01:06:59 +0100 + +mtools (3.9.8-3) unstable; urgency=low + + * Applied upstream mtools-3.9.8-20010602.diff.gz patch. + * mread is gone. (closes: #43879) + * Corrected the priority of floppyd from optional to extra. + + -- Adrian Bunk Sat, 2 Jun 2001 15:34:08 +0200 + +mtools (3.9.8-2) unstable; urgency=low + + * Corrected the version number in patchlevel.c. + + -- Adrian Bunk Tue, 29 May 2001 21:41:00 +0200 + +mtools (3.9.8-1) unstable; urgency=low + + * New upstream release. + + -- Adrian Bunk Sun, 27 May 2001 16:25:01 +0200 + +mtools (3.9.7+20001213-2) unstable; urgency=low + + * Added a fix to get mtools running on ARM: + - configure.in: recognize *-*-linux-gnu + - configure.in: add "-mstructure-size-boundary=8" to the + CFLAGS on ARM + (fixes: #79180) + * s/xlib6g-dev/xlibs-dev/ in the build dependencies. (closes: #79740) + + -- Adrian Bunk Sun, 14 Jan 2001 18:12:21 +0100 + +mtools (3.9.7+20001213-1) unstable; urgency=low + + * New upstream release. + + -- Adrian Bunk Mon, 18 Dec 2000 09:05:11 +0100 + +mtools (3.9.7+20001126-1) unstable; urgency=low + + * New upstream release. + + -- Adrian Bunk Mon, 11 Dec 2000 14:31:23 +0100 + +mtools (3.9.7+20001113c-1) unstable; urgency=low + + * New upstream release. + + -- Adrian Bunk Tue, 14 Nov 2000 00:12:51 +0100 + +mtools (3.9.7+20001110-1) unstable; urgency=low + + * New upstream release. + * This release includes a patch to let mtools compile on Alpha. + (closes: #76093) + + -- Adrian Bunk Sat, 11 Nov 2000 13:00:17 +0100 + +mtools (3.9.7+20001018-1) unstable; urgency=low + + * New upstream release. + * This version gives a correct error message at some non-MSDOS disks. + (closes: #74342, #74955) + * Generated and installed manual pages for minfo and floppyyd_installtest. + * Upload sponsored by Tony Mancill . + + -- Adrian Bunk Mon, 23 Oct 2000 22:48:49 +0200 + +mtools (3.9.7+20000821-1) unstable; urgency=low + + * New upstream release. + * This version has updated config.guess and config.sub. + (closes: #49103) + * This version fixes the segfault with "mdir -f". + (closes: #29885, #61675) + * One documentation error is fixed in this version. (closes: #29183) + * New package description (taken from the LSM entry). + * Changed the priority of floppyd from standard to optional. + * Upload sponsored by Tony Mancill . + + -- Adrian Bunk Tue, 22 Aug 2000 16:36:25 +0200 + +mtools (3.9.7-1) unstable; urgency=low + + * New maintainer. + * New upstream release. (closes: #65204) + * This version shows the label of a diskette even in subdirectories. + (closes: #57962) + * "mcopy -o" works correctly in this version. (closes: #42986) + * Moved floppyd to an extra package. (closes: #46184) + * New debian/rules using debhelper. + * Removed USERCFLAGS from debian/rules. + * Removed README and README.BEBOX. + * Added NEWPARAMS and TODO. + * Mention Zip disks in the description of mtools. (closes: #67457) + * Added a mtools.conf.5.gz link that points to mtools.5.gz. + /etc/mtools.conf refers to mtools.conf.5.gz. (closes: #46594) + * Added links to undocumented.7 for the following programs: + lz mcheck mcomp minfo mxtar tgz uz floppyd_installtest + * Added Build-Depends. + * Standards-Version: 3.1.1.1 + * Upload sponsored by Tony Mancill . + + -- Adrian Bunk Thu, 27 Jul 2000 00:42:17 +0200 + +mtools (3.9.6-3.1) frozen unstable; urgency=low + + * Non-maintainer upload to fix security problems + * set sysconfdir to /etc instead of /usr/etc + * Apply patch from Colin Phipps : + + floppyd didn't call initgroups + + symlink attack in lock-test in floppyd + + lock-file in floppy was world-readable, exposing the X authority + + partially Closes: Bug#57867 + The DoS against floppyd is still possible, and should be fixed. + + -- Wichert Akkerman Sun, 20 Feb 2000 16:01:47 +0100 + +mtools (3.9.6-3) unstable; urgency=low + + * debian/control: fix Maintainer realname for consistency. + + -- Mark W. Eichin Wed, 3 Nov 1999 16:13:59 -0500 + +mtools (3.9.6-2) unstable; urgency=low + + * mainloop.c: use O_RDONLY (portable, but needed for The Hurd.) + closes: #37757. + + -- Mark W. Eichin Sun, 31 Oct 1999 14:45:20 -0500 + +mtools (3.9.6-1) unstable; urgency=low + + * New upstream release. + + -- Mark W. Eichin Wed, 25 Aug 1999 14:21:03 -0400 + +mtools (3.9.1-2) frozen unstable; urgency=high + + * Upload for frozen for 2.1. closes: #32797. + + -- Mark W. Eichin Thu, 18 Feb 1999 01:00:03 -0500 + +mtools (3.9.1-1) unstable; urgency=low + + * New upstream release. Includes mformat.1 and buffer.c patches. + closes: #23964, #12083. + * debian/changelog, debian/control: Correct maintainer address. + * debian/mtools.conf: new file, should have debian-specific disk + configuration, and has other OS examples elided. Currently this means + A: and B: floppies, M: dosemu hdimage.first, N: dosemu fdimage. I've + put in Z: as a "SCSI" zip disk (/dev/sda4) but I'm leaving it + commented out for now pending further comments, or suggestions for + automatic configuration of this file. closes: #29202, #23923, + #29888. + * debian/mtools.conf: use "partition=1 offset=128" for dosemu + hdimage.first. closes: #19090, #23768. + * debian/rules: install debian/mtools.conf. + + -- Mark W. Eichin Thu, 4 Feb 1999 01:30:48 -0500 + +mtools (3.9-2) unstable; urgency=low + + * buffer.c: elide leftover "test disk" code. [#21376] + + -- Mark Eichin Sun, 26 Apr 1998 15:37:30 -0400 + +mtools (3.9-1) unstable; urgency=low + + * New upstream release. + * mformat.1: document -1, -0, -A. [#12083] + + -- Mark Eichin Sun, 5 Apr 1998 18:47:48 -0400 + +mtools (3.8-1) unstable; urgency=low + + * New upstream release. + + -- Mark W. Eichin Tue, 4 Nov 1997 16:58:39 -0500 + +mtools (3.6-1) unstable; urgency=low + + * New upstream release. + + -- Mark W. Eichin Sat, 26 Apr 1997 19:37:01 -0400 + +mtools (3.5a-1) unstable; urgency=low + + * New upstream release. (minor portability fixes to handle memmove + properly, instead of the way 3.5 did it. No difference under linux + but it's easier to just have the latest release available...) + + -- Mark W. Eichin Tue, 25 Mar 1997 01:29:29 -0500 + +mtools (3.4-1) unstable; urgency=low + + * New upstream release. + + -- Mark W. Eichin Mon, 24 Mar 1997 00:10:19 -0500 + +mtools (3.3-1) unstable; urgency=low + + * New upstream release. fixes mdel. + + -- Mark W. Eichin Thu, 6 Mar 1997 23:17:44 -0500 + +mtools (3.2-1) unstable; urgency=low + + * New upstream release. + * Use distclean to get config* stuff out of diffs. + + -- Mark W. Eichin Thu, 20 Feb 1997 01:09:05 -0500 + +mtools (3.1-1) unstable; urgency=low + + * Converted to new package format. + + -- Vincent Renardias Thu, 13 Feb 1997 01:54:37 +0100 + +mtools 2.0.7 -- Kitted up by Bill Mitchell + + * 1. Received Ian Murdock's mtools-2.0.5 sources already modified for debian + I note that I've seen sources on prep.ai.mit for mtools 2.0.7 + We seem to be on a branch from the main mtools code + + * 2. Added #include "string.h" to devices.c + + * 3. Added mtools.ref + + * 4. Retrieved mtools-2.0.7 from prep.ai.mit.edu + + * 5. Reconciled [1] and [4], merging the linux+debian changes for 2.0.5 + into the mtools-2.0.7 distribution. + + * 6. Modified Makefile "install:" target per debian packaging guidelines. + + * 7. Added debian.rules + + * 8. Added debian.control + + * 9. Added debian.postinst + + * 10. Added debian.postrm + + * 11. Added debian.conffiles + +Changes for debian mtools-2.0.7-1 distribution + + * Renamed README.debian to debian.README + * Renamed COPYRIGHT.debian to debian.COPYRIGHT + * Added debian.control + * Added debian.rules + * Added debian.conffiles + * Added debian.postinst + * Added debian.rules + +Changes for debian mtools-2.0.7-2 distribution + + * Corrected permissions on man pages from 640 to 644 + + * Renamed man page files to have all lowercase filenames + (e.g., mtools.1, not Mtools.1) + +Changes for debian mtools-2.0.7-3 distribution + + * For the debian.rules target build: + pass CFLAGS and LDFLAGS to Makefile + + * Renamed man page files to have all lowercase filenames + +Changes for debian mtools-2.0.7-4 distribution + + * Modified debian.rules to use debian.rules.inc + +Changes for debian mtools-2.0.7-5 distribution + + * In msdos.h, #define cfg_file "/etc/mtools.ref", not "/etc/mtools" + This to enable debian.rules.inc and "make -f debian.rules binary" + to handle the mtools.ref file more easily (the config file name + does not change from the name under which it was distributed, and + it does not conflict with the "mtools" executable name). This + was added inside a #ifdef DEBIAN conditional block. + + * Changed debian.confiles to name /etc/mtools.ref, not /etc/mtools. + + * Modified Makefile, adding -DDEBIAN to CFLAGS + + * Use the 1.2 revision of debian.rules.inc. + +Changes for debian mtools-2.0.7-6 distribution + + * Changes for new packaging guidelines + preinst and postinst scripts return exit status + use debian.rules.inc 1.6 to support new package naming conventions + debian.rules changes for new debian.rules.inc + +Changes for debian mtools-2.0.7-7 distribution + + * Removed leading tab on "include debian.rules.inc" line of debian.rules + +Changes for debian mtools-2.0.7-8 distribution + + * Changed debian.COPYRIGHT to announce copyright terms. + * corrected typo "esit" to "exit" in debian.postrm. + +Changes for debian mtools-2.0.7-9 distribution + + * Corrected syntax errors in preinst and postinst files + + * merged debian-rules.inc into debian.rules + +Changes for debian mtools-2.0.7-10 distribution + + * Added "#CHK_FAT=FALSE" mtools.ref.option. + + * Replaced mtools.1 manpage with debian.mtools.1, which + describes the added option. + + * Redid debian.rules in the Ian Murdock format. + +Changes for debian mtools-2.0.7-11 distribution + + * Changed man page modes from 755 to 644 + +Changes for debian mtools-2.0.7-12 distribution + + * Cleaned up control file description and extended description. + +Changes for debian mtools-2.0.7-13 + elf package + * rebuilt for elf + * updated mtools.1 to get tbl(1) used + +Changes for debian mtools-2.0.7-14 + elf package + +Changes for debian mtools-2.0.7-15 + elf package + * added -DCHK_FAT_OPTION in Makefile, inadvertantly omitted + +Changes for debian mtools-2.5.4-1 + + * New upstream version. + + * New maintainer. + +Changes for debian mtools-2.5.4-2 + + * Added upstream patches (mtools-2.5.4-2204.diff.gz) + + * Fixed bug#2788 + +Changes for debian mtools-3.0-1 + + * New upstream version + + * Applied patches mtools-3.0-1405b.diff.gz + +Changes for debian mtools-3.0-2 + + * Applied patches mtools-3.0-1605.diff.gz + + * Info file now is installed correctly + +Changes for debian mtools-3.0-3 + + * Applied patches mtools-3.0-2805.diff.gz to fix + mcopy "a:*.tar.gz" . bug. + +Changes for debian mtools_3.0-4 + + * Applied patches mtools-3.0-2306.diff.gz + + * Changed debian.rules for new naming scheme + + * Gzip manpages + +Changes for debian mtools_3.0-5 + + * Changed priority back to standard + + * Applied upstream patches mtools-3.0-2807.diff.gz + +Changes for debian mtools_3.0-5.1 + + * Fixed bug#6213 + + * New maintainer (Mark Eichin ) + + -- Mark Eichin Thu, 13 Feb 1997 01:54:37 +0100 --- mtools-3.9.11.orig/debian/rules +++ mtools-3.9.11/debian/rules @@ -0,0 +1,65 @@ +#!/usr/bin/make -f +# rules for mtools package +# by Luis Bustamante (luferbu@fluidsignal.com) + +include /usr/share/dpatch/dpatch.make + +export DH_VERBOSE=1 +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +configure: configure-stamp +configure-stamp: + dh_testdir + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \ + --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc + touch configure-stamp + +build: patch build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -rf build-stamp configure-stamp debian/patched + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean config.cache config.log config.status .#patchlevel.c.1.18 .#mtools.spec.1.4 .#mtools.texi.1.11 .#fat_size_calculation.tex.1.1 + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install prefix=`pwd`/debian/tmp/usr + install -m 644 debian/mtools.conf debian/mtools/etc/ + dh_movefiles + +binary-indep: +binary-arch: mtools +binary: binary-indep binary-arch + +mtools: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples -pmtools mtools.conf + dh_installman + dh_installinfo -pmtools mtools.info + dh_undocumented -pmtools mcheck.1 mcomp.1 mxtar.1 + dh_installchangelogs Changelog + dh_strip + dh_link -pmtools /usr/share/man/man5/mtools.5 /usr/share/man/man5/mtools.conf.5 + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + + +.PHONY: build clean binary-indep binary-arch binary install \ + mtools patch clean-build unpatch configure --- mtools-3.9.11.orig/debian/watch +++ mtools-3.9.11/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=uversionmangle=s/\.(tar.*|tgz|zip|gz|bz2)$//i,dversionmangle=s/[-.+~]?(cvs|svn|git|snapshot|pre|hg)(.*)$//i,pasv \ +http://www.mtools.linux.lu/download.html (?:.*/)?mtools-?_?([\d+\.]+|\d+)\.(tar.*|tgz|zip|gz|bz2|) debian uupdate --- mtools-3.9.11.orig/debian/copyright +++ mtools-3.9.11/debian/copyright @@ -0,0 +1,25 @@ +This package was originally debianized by Adrian Bunk + +It has been subsequently taken over by Luis Bustamante + + +It was downloaded from http://mtools.linux.lu/mtools/ + +Upstream Author: Alain Knaff + +Copyright: + + You are free to distribute this software under the terms of + the GNU General Public License, Version 2. + On Debian systems, the complete text of the GNU General Public + + License can be found in /usr/share/common-licenses/GPL file. + +=================================================================== + + The manpage tgz.1 is distributed under the terms of the GNU + Free Documentation License, with no Invariant Sections, no + Front-Covers Texts and no Back-Covers Texts. + + The complete text of the GFDL v1.2 can be found in the + /usr/share/common-licenses/GFDL-1.2 file. --- mtools-3.9.11.orig/debian/floppyd.manpages +++ mtools-3.9.11/debian/floppyd.manpages @@ -0,0 +1,2 @@ +floppyd.1 +floppyd_installtest.1 --- mtools-3.9.11.orig/debian/mtools.postinst +++ mtools-3.9.11/debian/mtools.postinst @@ -0,0 +1,14 @@ +#! /bin/sh + +# Clean up old conffiles +if [ -f /etc/mtools.ref ]; then + rm /etc/mtools.ref +fi + +# Convert floppy devices in mtools.conf if devfs is used +if [ -e /dev/.devfsd -a -f /etc/mtools.conf ]; then + sed 's_/dev/fd_/dev/floppy/_g' < /etc/mtools.conf > /etc/mtools.conf.dpkg-tmp + mv -fb /etc/mtools.conf.dpkg-tmp /etc/mtools.conf +fi + +#DEBHELPER# --- mtools-3.9.11.orig/debian/mtools.manpages +++ mtools-3.9.11/debian/mtools.manpages @@ -0,0 +1,31 @@ +lz.1 +mattrib.1 +mbadblocks.1 +mcat.1 +mcd.1 +mcopy.1 +mdel.1 +mdeltree.1 +mdir.1 +mdu.1 +mformat.1 +minfo.1 +mkmanifest.1 +mlabel.1 +mmd.1 +mmount.1 +mmove.1 +mpartition.1 +mrd.1 +mren.1 +mshowfat.1 +mtools.1 +mtoolstest.1 +mtype.1 +mzip.1 +tgz.1 +uz.1 +mxtar.1 +mcomp.1 +mtools.5 +debian/mcheck.1 --- mtools-3.9.11.orig/debian/mcheck.1 +++ mtools-3.9.11/debian/mcheck.1 @@ -0,0 +1,33 @@ +.\" mcheck (package: mtools) 2003-05-04 +.TH mcheck 1 "May 2003" "mtools" +.SH NAME +mcheck \- verify all files on an MS-DOS formatted disk +.SH SYNOPSIS +.PP +.B mcheck +[\fImsdosdrive\fR] +.SH DESCRIPTION +.\" Putting a newline after each sentence can generate better output. +mcheck is a script that verifies all files on a MS-DOS formatted disk by +reading them using +.BR mtype (1) + +The optional argument specifies the MS-DOS drive letter of the disk +to be checked. A: is used by default. + +.SH LICENSE +Copyright (C) 1994 David C. Niemi (niemi@tuxers.net) + +The author requires that any copies or derived works include this +copyright notice; no other restrictions are placed on its use. + +.SH AUTHOR +mcheck was written by David C. Niemi + +This manual page was written by Rabin Vincent +for the Debian GNU/Linux system (but may be used by others). + +.SH "SEE ALSO" +.BR mtools (1), +.BR mdir (1), +.BR mtype (1) --- mtools-3.9.11.orig/debian/floppyd.files +++ mtools-3.9.11/debian/floppyd.files @@ -0,0 +1 @@ +usr/bin/floppyd* --- mtools-3.9.11.orig/debian/mtools.conf +++ mtools-3.9.11/debian/mtools.conf @@ -0,0 +1,25 @@ +# Debian default mtools.conf file. +# "info mtools" or "man mtools.conf" for more detail. + +# # Linux floppy drives +drive a: file="/dev/fd0" exclusive +drive b: file="/dev/fd1" exclusive + +# # First SCSI hard disk partition +# drive c: file="/dev/sda1" + +# # First IDE hard disk partition +# drive c: file="/dev/hda1" + +# # dosemu hdimage. +drive m: file="/var/lib/dosemu/hdimage.first" partition=1 offset=128 + +# # dosemu floppy image +drive n: file="/var/lib/dosemu/fdimage" + +# # SCSI zip disk +# drive z: file="/dev/sda4" + +# # uncomment the following line to display all file names in lower +# # case by default +# mtools_lower_case=1 --- mtools-3.9.11.orig/debian/mtools.dirs +++ mtools-3.9.11/debian/mtools.dirs @@ -0,0 +1 @@ +etc --- mtools-3.9.11.orig/debian/mtools.files +++ mtools-3.9.11/debian/mtools.files @@ -0,0 +1 @@ +usr/bin