debian/0000755000000000000000000000000012261311106007157 5ustar debian/docs0000644000000000000000000000002412120422713010027 0ustar CREDITS README TODO debian/hfsutils-tcltk.preinst0000644000000000000000000000031412120422713013544 0ustar #!/bin/sh set -e # dpkg can't handle replacing a directory with a symlink. if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt-nl 3.2.6-8; then rm -rf /usr/share/doc/hfsutils-tcltk fi #DEBHELPER# debian/copyright0000644000000000000000000000234612120422713011120 0ustar This is the Debian Linux prepackaged version of hfsutils, a collection of tools for reading and writing Macintosh-formatted media. This package was put together by Robert Browning with sources obtained from: ftp://ftp.mars.org/pub/hfs/ Copyright (C) 1996-1998 Robert Leslie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to: Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. If you would like to negotiate alternate licensing terms, you may do so by contacting the author: Robert Leslie On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. debian/hfsutils-tcltk.links0000644000000000000000000000006412120422713013202 0ustar usr/share/doc/hfsutils usr/share/doc/hfsutils-tcltk debian/changelog0000644000000000000000000001276112261310257011046 0ustar hfsutils (3.2.6-12ubuntu3) trusty; urgency=medium * Build for Tcl/Tk 8.6. -- Matthias Klose Thu, 02 Jan 2014 17:14:49 +0100 hfsutils (3.2.6-12ubuntu2) raring; urgency=low * Configure for the Tk 8.5 multiarch installation. -- Matthias Klose Tue, 02 Apr 2013 07:57:31 +0200 hfsutils (3.2.6-12ubuntu1) raring; urgency=low * Configure for the Tcl 8.5 multiarch installation. -- Matthias Klose Thu, 14 Mar 2013 17:15:15 -0700 hfsutils (3.2.6-12) unstable; urgency=low * QA upload. * Properly orphan the package. See #677770. * Build using Tcl/Tk 8.5. Closes: #631601. LP: #1155269. * Build with hardening defaults. * Fix some lintian warnings. Closes: #615357, #615428. * Fix typo in man page. Closes: #525266. * Handle files larger than 2GB. -- Matthias Klose Thu, 14 Mar 2013 12:44:10 -0700 hfsutils (3.2.6-11) unstable; urgency=low * New maintainer (Closes: #387338). * Update to the latest Standards-Version. * Update description in debian/control with homepage. * Add debian/watch. * Conform to policy by building with CFLAGS="-O2 -g -Wall". * Add dpatch support. -- Aurélien GÉRÔME Thu, 14 Sep 2006 11:55:33 +0200 hfsutils (3.2.6-10) unstable; urgency=low * New maintainer (Closes: #303264). * Making it Policy compliant. -- David Moreno Garza Thu, 5 Jan 2006 20:01:38 -0600 hfsutils (3.2.6-9) unstable; urgency=low * QA upload. * debian/rules: Really force make not to re-run autoconf. Closes: #307039. -- Matej Vela Sat, 30 Apr 2005 10:58:27 +0200 hfsutils (3.2.6-8) unstable; urgency=low * QA upload. * Package is orphaned (see #303264); set maintainer to Debian QA Group. * Include instead of declaring errno on our own (patch by Andreas Jochens). Closes: #280310. * Link to tcl8.4/tk8.4. * Switch to debhelper. * Remove trailing dot from short description. Closes: #174469. * debian/copyright: List copyright holder. Closes: #302937. * debian/rules: Force make not to re-run autoconf. * Move xhfs from /usr/X11R6/bin to /usr/bin. * Replace /usr/share/doc/hfsutils-tcltk with a symlink to hfsutils. * Drop /usr/doc symlink. Closes: #261565. * Conforms to Standards version 3.6.1. -- Matej Vela Tue, 26 Apr 2005 11:35:02 +0200 hfsutils (3.2.6-7) unstable; urgency=medium * Fix my brandamage -- don't depend on unstable X pkgs. -- Rob Browning Sat, 21 Jul 2001 21:47:00 -0500 hfsutils (3.2.6-6) unstable; urgency=medium * Add autoconf build dependency - since the offending file is an empty stamp file (./.stamp/configure), we can't fix the dependency by just updating the files in my build tree because the file won't show up in the diff. I could just put a single character in the stamp file, and that might help, but that's a fragile fix IMO. (closes: #104628) -- Rob Browning Thu, 19 Jul 2001 09:10:18 -0500 hfsutils (3.2.6-5) unstable; urgency=low * Don't invoke configure in make clean. This isn't as robust, but it calling configure there was killing autobuilders who clean as root, and hence create a config.log that they can't edit when they subsequently build as a normal user. (closes: #94099) -- Rob Browning Tue, 10 Jul 2001 11:50:33 -0500 hfsutils (3.2.6-4) unstable; urgency=low * Recompile against fixed tcl lib (Closes: Bug#93629). * Use "install -s" to fully strip things for ELF. -- Rob Browning Wed, 11 Apr 2001 16:31:56 -0500 hfsutils (3.2.6-3) unstable; urgency=low * add Build-Depends: tcl*-dev and tk*-dev (Closes: Bug#85250). -- Rob Browning Tue, 13 Feb 2001 23:26:37 -0600 hfsutils (3.2.6-2) unstable; urgency=low * fix location of copyright in debian/copyright. * move manpages, docs, etc. to */share/* * include Section: and Priority: field in binary packages. * add check for tk.h in $TCL_PREFIX/include/tcl*. * add postinst/prerm to binary packages to handle doc symlink. * avoid dependency on tkstep8.0. (Closes: Bug#37200). * update to Standards-Version: 3.2.1.0. -- Rob Browning Sun, 24 Dec 2000 00:00:46 -0600 hfsutils (3.2.6-1) unstable; urgency=low * New upstream version. * Move hfs to hfsutils-tcltk, where it should have been (Closes: Bug#41969). -- Rob Browning Sat, 25 Sep 1999 15:49:32 -0500 hfsutils (3.2.2-1) unstable; urgency=low * New upstream version. * Switch to cvs-buildpackage. -- Rob Browning Sat, 31 Oct 1998 10:47:31 -0600 hfsutils (3.1-4) unstable; urgency=low * symlink CHANGES.gz to changelog.gz * change reference in copyright from GPL.gz to GPL * fixed execute permissions of a binary and locations of manpages -- Rob Browning Wed, 1 Jul 1998 23:02:48 -0500 hfsutils (3.1-3) unstable; urgency=low * Fixed problem with call to dpkg-shlibdeps. * Switched to hfsutils-tcltk instead of hfsutils-x for add-ons. * moved hfssh to hfsutils-tcltk. -- Rob Browning Thu, 19 Feb 1998 12:01:04 -0600 hfsutils (3.1-2) unstable; urgency=low * moved xhfs into a separate package (Closes: Bug#15492) -- Rob Browning Thu, 19 Feb 1998 11:38:15 -0600 hfsutils (3.1-1) unstable; urgency=low * New maintainer * New upstream version * Converted to new source format -- Rob Browning Sun, 23 Nov 1997 18:32:29 -0600 debian/compat0000644000000000000000000000000212120424074010360 0ustar 5 debian/hfsutils-tcltk.dirs0000644000000000000000000000003312120422713013017 0ustar usr/bin usr/share/man/man1 debian/patches/0000755000000000000000000000000012261311040010603 5ustar debian/patches/man-macros.diff0000644000000000000000000000463512120433441013506 0ustar @@ -10,7 +10,7 @@ is an interactive command-oriented tool .B hfs is based on the Tcl interpreter, so basic Tcl constructs can be used in addition to the following commands: -.SP +.PP .TP .BR mount " path [partition-no]" The specified UNIX path is opened as an HFS volume. If a partition number Index: b/doc/man/hformat.1 =================================================================== --- a/doc/man/hformat.1 +++ b/doc/man/hformat.1 @@ -42,7 +42,7 @@ will refer to it. The current working directory for the volume is set to the root of the volume. .SH EXAMPLES -.SP +.PP .TP % hformat /dev/fd0 If a floppy disk is available as Index: b/doc/man/hmount.1 =================================================================== --- a/doc/man/hmount.1 +++ b/doc/man/hmount.1 @@ -36,7 +36,7 @@ .B hmount command. .SH EXAMPLES -.SP +.PP .TP % hmount /dev/fd0 If a Macintosh floppy disk is available as Index: b/doc/man/hfssh.1 =================================================================== --- a/doc/man/hfssh.1 +++ b/doc/man/hfssh.1 @@ -8,7 +8,7 @@ .B hfssh is a Tcl interpreter like tclsh(1) but which also implements the following extensions to support manipulation of Macintosh HFS media: -.SP +.PP .TP .BI "hfs mount" " path [partno]" Mounts the indicated HFS partition from the given Index: b/doc/man/hfsutils.1 =================================================================== --- a/doc/man/hfsutils.1 +++ b/doc/man/hfsutils.1 @@ -67,7 +67,7 @@ .PP Most of the command-line programs support HFS filename globbing. The following forms of globbing are supported: -.SP +.PP .TP .B * matches zero or more characters. Index: b/doc/man/xhfs.1 =================================================================== --- a/doc/man/xhfs.1 +++ b/doc/man/xhfs.1 @@ -20,7 +20,7 @@ be copied to the directory shown in the other view by selecting them and clicking the "Copy" button. Copying is performed according to the selected copy mode: -.SP +.PP .TP .B "MacBinary II" The file(s) will be copied using the MacBinary II format. This is the Index: b/doc/man/hfs.1 =================================================================== --- a/doc/man/hfs.1 +++ b/doc/man/hfs.1 @@ -10,7 +10,7 @@ .B hfs is based on the Tcl interpreter, so basic Tcl constructs can be used in addition to the following commands: -.SP +.PP .TP .BR mount " path [partition-no]" The specified UNIX path is opened as an HFS volume. If a partition number debian/patches/tcl8.6.diff0000644000000000000000000000036712261311040012461 0ustar Index: b/config.h.in =================================================================== --- a/config.h.in +++ b/config.h.in @@ -91,3 +91,5 @@ # ifndef HAVE_STRTOL long strtol(const char *, char **, int); # endif + +#define USE_INTERP_RESULT 1 debian/patches/lfs.diff0000644000000000000000000000044212120433146012227 0ustar --- hfsutils-3.2.6.orig/libhfs/os/unix.c +++ hfsutils-3.2.6/libhfs/os/unix.c @@ -19,6 +19,11 @@ * $Id: unix.c,v 1.8 1998/11/02 22:09:13 rob Exp $ */ +#ifdef __linux__ +#define _FILE_OFFSET_BITS 64 +#define _LARGE_FILES +#endif + # ifdef HAVE_CONFIG_H # include "config.h" # endif debian/patches/01_fix_build-system.dpatch0000644000000000000000000000243112120422713015563 0ustar #! /bin/sh -e ## 01_fix_build-system.dpatch by Aurélien GÉRÔME ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix build system. 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 --- hfsutils-3.2.6.orig/libhfs/Makefile.in +++ hfsutils-3.2.6/libhfs/Makefile.in @@ -86,6 +86,7 @@ clean :: rm -f $(TARGETS) *.o gmon.* core + rm -f os.c distclean :: clean rm -f config.status config.cache config.log config.h Makefile --- hfsutils-3.2.6.orig/configure +++ hfsutils-3.2.6/configure @@ -1579,6 +1579,7 @@ "$tk_dir/include" \ "$tk_dir/../include" \ `echo "$tk_dir" | sed -e 's|/lib|/include|'` \ + $TCL_PREFIX/include/tcl* \ ; \ do if test -r "$dir/tk.h" --- hfsutils-3.2.6.orig/configure.in +++ hfsutils-3.2.6/configure.in @@ -239,6 +239,7 @@ "$tk_dir/include" \ "$tk_dir/../include" \ `echo "$tk_dir" | sed -e 's|/lib|/include|'` \ + $TCL_PREFIX/include/tcl* \ ; \ do if test -r "$dir/tk.h" debian/patches/hattrib-man.diff0000644000000000000000000000113412120424463013652 0ustar Index: b/doc/man/hattrib.1 =================================================================== --- a/doc/man/hattrib.1 +++ b/doc/man/hattrib.1 @@ -30,7 +30,7 @@ regardless of the file's current attributes. Any attribute not mentioned in the command line is left unchanged. .PP -In the second form, a single HFS pathname refering to a folder is given with +In the second form, a single HFS pathname referring to a folder is given with the -b option, causing it to become "blessed" as the MacOS System Folder. For this to be useful, the folder should contain valid Macintosh System and Finder files. debian/patches/280310_ftbfs_include_gcc3.4.dpatch0000644000000000000000000000525012120422713016463 0ustar #! /bin/sh -e ## 280310_ftbfs_include_gcc3.4.dpatch by Andreas Jochens ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix FTBFS with gcc-3.4 due to a missing include. 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 --- hfsutils-3.2.6.orig/binhex.c +++ hfsutils-3.2.6/binhex.c @@ -38,8 +38,6 @@ const char *bh_error = "no error"; -extern int errno; - # define ERROR(code, str) (bh_error = (str), errno = (code)) static FILE *file; /* input/output file */ --- hfsutils-3.2.6.orig/copyin.c +++ hfsutils-3.2.6/copyin.c @@ -48,8 +48,6 @@ const char *cpi_error = "no error"; -extern int errno; - # define ERROR(code, str) (cpi_error = (str), errno = (code)) # define MACB_BLOCKSZ 128 --- hfsutils-3.2.6.orig/copyout.c +++ hfsutils-3.2.6/copyout.c @@ -49,8 +49,6 @@ const char *cpo_error = "no error"; -extern int errno; - # define ERROR(code, str) (cpo_error = (str), errno = (code)) # define MACB_BLOCKSZ 128 --- hfsutils-3.2.6.orig/hcwd.c +++ hfsutils-3.2.6/hcwd.c @@ -43,8 +43,6 @@ static int mtabsz = 0, nmounts = 0; static int curvol = -1, dirty = 0; -extern int errno; - /* * NAME: addent() * DESCRIPTION: insert mount entry into table --- hfsutils-3.2.6.orig/hfsutil.h +++ hfsutils-3.2.6/hfsutil.h @@ -19,7 +19,7 @@ * $Id: hfsutil.h,v 1.8 1998/04/11 08:26:57 rob Exp $ */ -extern int errno; +#include # define ERROR(code, str) (hfs_error = (str), errno = (code)) --- hfsutils-3.2.6.orig/libhfs/libhfs.h +++ hfsutils-3.2.6/libhfs/libhfs.h @@ -22,7 +22,7 @@ # include "hfs.h" # include "apple.h" -extern int errno; +#include # define ERROR(code, str) \ do { hfs_error = (str), errno = (code); goto fail; } while (0) --- hfsutils-3.2.6.orig/librsrc/librsrc.h +++ hfsutils-3.2.6/librsrc/librsrc.h @@ -21,7 +21,7 @@ # include "rsrc.h" -extern int errno; +#include # define ERROR(code, str) \ do { rsrc_error = (str), errno = (code); goto fail; } while (0) --- hfsutils-3.2.6.orig/tclhfs.c +++ hfsutils-3.2.6/tclhfs.c @@ -29,6 +29,7 @@ # include # include +# include # include # include # include @@ -44,8 +45,6 @@ # include "suid.h" # include "version.h" -extern int errno; - # define ERROR(code, str) (hfs_error = (str), errno = (code)) # define SIZE(type, n) ((size_t) (sizeof(type) * (n))) debian/patches/series0000644000000000000000000000016412261311000012015 0ustar 01_fix_build-system.dpatch 280310_ftbfs_include_gcc3.4.dpatch hattrib-man.diff man-macros.diff lfs.diff tcl8.6.diff debian/control0000644000000000000000000000167012261310277010576 0ustar Source: hfsutils Section: otherosfs Priority: extra Maintainer: Debian QA Group Standards-Version: 3.9.4 Build-Depends: debhelper (>= 5), tcl8.6-dev, tk8.6-dev Homepage: http://www.mars.org/home/rob/proj/hfs/ Package: hfsutils Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: hfsutils-tcltk Description: Tools for reading and writing Macintosh volumes HFS is the native Macintosh filesystem format. . This package contains several command-line utilities for reading and writing Macintosh HFS-formatted media such as floppy disks, CD-ROMs, and hard disks. Package: hfsutils-tcltk Architecture: any Depends: hfsutils, ${shlibs:Depends}, ${misc:Depends} Replaces: hfsutils (<< 3.1-3) Description: Tcl/Tk interfaces for reading and writing Macintosh volumes HFS is the native Macintosh filesystem format. . This package contains xhfs, a Tk-based X windows interface, and hfssh, a Tcl-based shell. debian/dirs0000644000000000000000000000003312120422713010040 0ustar usr/bin usr/share/man/man1 debian/rules0000755000000000000000000000370112261310317010243 0ustar #!/usr/bin/make -f # debian/rules file for hfsutils # This file is public domain software, originally written by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 MAKE += -o configure.in CFLAGS = -Wall $(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) DEB_HOST_MULTIARCH = $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) build-arch: build build-indep: build build: build-stamp build-stamp: dh_testdir # Add here commands to compile the package. CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=/usr \ --mandir=\$${prefix}/share/man \ --with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH)/tcl8.6 \ --with-tk=/usr/lib/$(DEB_HOST_MULTIARCH)/tk8.6 $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/ $(MAKE) prefix=$(CURDIR)/debian/hfsutils/usr install_cli $(MAKE) prefix=$(CURDIR)/debian/hfsutils-tcltk/usr install_tcl install_tk # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_link dh_installchangelogs CHANGES dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installcatalogs # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo # dh_undocumented dh_installman dh_strip dh_compress dh_fixperms # dh_perl # dh_python # dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean clean1 binary-indep binary-arch binary install debian/source/0000755000000000000000000000000012120423771010465 5ustar debian/source/format0000644000000000000000000000001412120423771011673 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000012512120422713010207 0ustar version=3 opts=pasv ftp://ftp.mars.org/pub/hfs/hfsutils-(.*)\.tar\.gz debian uupdate