Skip to content

Commit

Permalink
Missed some files from the Debian package.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcmaster-au committed Sep 10, 2013
1 parent 7a51c59 commit 7cd697f
Show file tree
Hide file tree
Showing 5 changed files with 532 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
mac-fdisk for DEBIAN
----------------------

Comments regarding mac-fdisk

mac-fdisk provides Apple partition format utilities required for
installation of Debian/68k on Apple Macintosh computers. The Debian version
of mac-fdisk is derived from pdisk 0.4a2 (pdisk.970115.tar) by Eryk Vershen
([email protected]).
pmac-fdisk is a version of the PC partition format utilities for PowerPC
computers, taken from the same pdisk source version and can be used for
installation of Debian/68k on PC partition format disks on Macintosh.

Modifications have been made to the pdisk partition table output code to permit
parsing the output of 'mac-fdisk -l' in a manner consistent with other Linux
fdisk utilities. (Christiaan Welvaart, <>)

Michael Schmitz <[email protected]>, Sat, 28 Feb 1998 12:58:07 -0800
160 changes: 160 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
mac-fdisk (0.1-16) unstable; urgency=low

* Fix udeb shlib dependencies - patch by Frans Pop <[email protected]>
Closes: #562190.

-- Michael Schmitz <[email protected]> Sun, 03 Jan 2010 13:47:27 +1200

mac-fdisk (0.1-15) unstable; urgency=low

* Rebuild against current glibc to get rid of sys_errlist type size
warning (bug reported by Rick Thomas).
Closes: #451386.

-- Michael Schmitz <[email protected]> Mon, 25 Sep 2005 14:50:13 +0100

mac-fdisk (0.1-14) unstable; urgency=low

* Fix dpme.h u32 typedef which caused a mismatch between disk and memory
partition map format.
Closes: #389379.

-- Michael Schmitz <[email protected]> Mon, 25 Sep 2005 14:50:13 +0100

mac-fdisk (0.1-13) unstable; urgency=low

* Add patch for broken dpkg --print-gnu-build-architecture (patch by
Andreas Jochens <[email protected]>).
Closes: #328102.

-- Michael Schmitz <[email protected]> Wed, 14 Sep 2005 17:25:23 +0100

mac-fdisk (0.1-12) unstable; urgency=low

* Add makefile support for ppc64 arch (patch by Andreas Jochens
<[email protected]>).
Closes: #307897.

-- Michael Schmitz <[email protected]> Mon, 09 May 2005 12:58:47 +0100

mac-fdisk (0.1-11) unstable; urgency=low

* Big fat overdue cleanup - back in business after replacing my stolen
Powerbook.
* fixes as suggested in proposed NMU: changes mostly by Frank Lichtenheld
<[email protected]>, with subarchitecture modifications by Colin Watson
<[email protected]>.
* Copy needed kernel definitions from kernel-headers 2.4.25 (powerpc) and
2.4.26-m68k (cjwatson; Closes: #262457).
* Add Subarchitecture: fields in DEBIAN/control of the udebs. "mac" for
mac-fdisk-udeb on m68k, "powermac_oldworld powermac_newworld" for
mac-fdisk-udeb on powerpc, and "chrp chrp_pegasos prep iseries" for
pmac-fdisk-udeb on powerpc (djpig; Closes: #250581).
* Remove XSI:sms in debian/rules and debian/postinst, patch by David
Weinehall (djpig; Closes: #254918).

-- Michael Schmitz <[email protected]> Thu, 26 Aug 2004 14:23:13 +0200

mac-fdisk (0.1-10) unstable; urgency=high

* Added .udeb magic to rules (kudos to Gaudenz Steinlin
<[email protected]>); kept mac-fdisk in /sbin though).
Closes: #188420.

-- Michael Schmitz <[email protected]> Wed, 04 Jun 2003 17:06:02 +0200

mac-fdisk (0.1-9) unstable; urgency=high

* Rebuilt with woody binutils to allow for prelinking. Closes: #176353.

* Set 'automagically mount on boot' flag when creating HFS partitions
(thanks to Derrick Pates <[email protected]> for finding the
undocumented bit!). Experimental, but this is unstable, right?

-- Michael Schmitz <[email protected]> Fri, 24 Jan 2003 16:20:20 +0200

mac-fdisk (0.1-8) unstable; urgency=high

* Update mac-fdisk man page (kudos to Chris Tillman). Closes: #121928.

* Remove mac-fdisk-cross from control file; remove Sparc from Arch: entries
(to get rid of outdated mac-fdisk-cross 0.1-1 in the archive). Change
package descrption line for pmac-fdisk to emphasize it's a fdisk clone.

* Change sync() to ioctl(fd, BLKFLSBUF) to flush partition table to disk
on write - hopefully work around a kernel bug on new machines.

-- Michael Schmitz <[email protected]> Fri, 07 Dec 2001 13:38:10 +0200

mac-fdisk (0.1-7) unstable; urgency=high

* Bugfix: mac-fdisk didn't properly handle devfs device names. Mangle disk
name (.../disc) in dump routine to end in .../part%d (patch by Colin
Walters <[email protected]>). Closes: #110056.

-- Michael Schmitz <[email protected]> Mon, 04 Sep 2001 16:02:45 +0200

mac-fdisk (0.1-6.0potato1) stable; urgency=high

* Feature added: menu option to create bootstrap partition needed for
powerpc NewWorld machines with the proper type and size (patch supplied
by Ethan Benson). This should help newbies that won't read the docs
anyway. Closes: #99660.

* Bugfix: mac-fdisk used to get the disk size wrong when brute force
probing for end-of-disk by seek&read. Turns out gcc did not cope with
arithmetics on long long types without explicit cast. Closes: #99700.

-- Michael Schmitz <[email protected]> Fri, 15 Jun 2001 12:16:35 +0200

mac-fdisk (0.1-6) unstable; urgency=high

* Feature added: menu option to create bootstrap partition needed for
powerpc NewWorld machines with the proper type and size (patch supplied
by Ethan Benson). This should help newbies that won't read the docs
anyway. Closes: #99660.

* Bugfix: mac-fdisk used to get the disk size wrong when brute force
probing for end-of-disk by seek&read. Turns out gcc did not cope with
arithmetics on long long types without explicit cast. Closes: #99700.

-- Michael Schmitz <[email protected]> Mon, 04 Jun 2001 13:54:21 +0200

mac-fdisk (0.1-5) unstable; urgency=low

* Bugfix: fix build problems for glibc 2.2 (remove string.h includes,
use lseek64 for llseek, fix some petty gcc warnings)

-- Michael Schmitz <[email protected]> Wed, 02 Mar 2001 19:42:01 +0200

mac-fdisk (0.1-4) unstable; urgency=low

* Bugfix: correct off-by-one error on moving a partition downwards in the
partition map. Clarification of various program messages and prompts
(closes #69148, #69149 and #69152). Update of mac-fdisk man page.

-- Michael Schmitz <[email protected]> Wed, 08 Oct 2000 17:49:07 +0200

mac-fdisk (0.1-3) unstable; urgency=low

* PowerPC install fixes (work around lack of /proc/hardware), rename pmac-fdisk
package (previously pmac-fdisk-cross). Add pmac-fdisk man page.

-- Michael Schmitz <[email protected]> Wed, 08 Mar 2000 18:29:07 +0200

mac-fdisk (0.1-2) unstable; urgency=low

* Change man page name and install location, changed man page, rebuild for 2.2.

-- Michael Schmitz <[email protected]> Fri, 22 Oct 1999 20:29:07 +0200

mac-fdisk (0.1-1) unstable; urgency=low

* Initial Release. (built from previous pdisk-0.4a2 with fixes by Roman Hodek)

-- Michael Schmitz <[email protected]> Sat, 28 Feb 1998 21:58:07 -0800

Local variables:
mode: debian-changelog
add-log-mailing-address: "[email protected]"
End:
28 changes: 28 additions & 0 deletions copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
This package was forked from the Debian mac-fdisk 0.1-16 package by
Michael McMaster <[email protected]> 2013.

This package was debianized by Michael Schmitz [email protected] on
Sun, 11 Jan 1998 22:58:07 -0800.

It was downloaded from ftp.mklinux.apple.com:/pub/Other_Tools/

Copyright:

* Copyright 1996,1997 by Apple Computer, Inc.
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notice appears in all copies and
* that both the copyright notice and this permission notice appear in
* supporting documentation.
*
* APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE.
*
* IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
* NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
64 changes: 64 additions & 0 deletions kernel-defs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/* from asm/types.h */
typedef unsigned short __u16;
typedef unsigned int __u32;

/* from linux/hdreg.h */
#define HDIO_GETGEO 0x0301 /* get device geometry */

struct hd_geometry {
unsigned char heads;
unsigned char sectors;
unsigned short cylinders;
unsigned long start;
};

/* from asm/ioctl.h */
#define _IOC_NRBITS 8
#define _IOC_TYPEBITS 8
#define _IOC_SIZEBITS 13
#define _IOC_DIRBITS 3

#define _IOC_NRMASK ((1 << _IOC_NRBITS)-1)
#define _IOC_TYPEMASK ((1 << _IOC_TYPEBITS)-1)
#define _IOC_SIZEMASK ((1 << _IOC_SIZEBITS)-1)
#define _IOC_DIRMASK ((1 << _IOC_DIRBITS)-1)

#define _IOC_NRSHIFT 0
#define _IOC_TYPESHIFT (_IOC_NRSHIFT+_IOC_NRBITS)
#define _IOC_SIZESHIFT (_IOC_TYPESHIFT+_IOC_TYPEBITS)
#define _IOC_DIRSHIFT (_IOC_SIZESHIFT+_IOC_SIZEBITS)

#ifdef __powerpc__
#define _IOC_NONE 1U
#define _IOC_READ 2U
#define _IOC_WRITE 4U
#else
#define _IOC_NONE 0U
#define _IOC_READ 2U
#define _IOC_WRITE 1U
#endif

#define _IOC(dir,type,nr,size) \
(((dir) << _IOC_DIRSHIFT) | \
((type) << _IOC_TYPESHIFT) | \
((nr) << _IOC_NRSHIFT) | \
((size) << _IOC_SIZESHIFT))
#define _IO(type,nr) _IOC(_IOC_NONE,(type),(nr),0)

/* from linux/fs.h */
#define BLKRRPART _IO(0x12,95) /* re-read partition table */
#define BLKFLSBUF _IO(0x12,97) /* flush buffer cache */

/* from linux/genhd.h */
struct partition {
unsigned char boot_ind; /* 0x80 - active */
unsigned char head; /* starting head */
unsigned char sector; /* starting sector */
unsigned char cyl; /* starting cylinder */
unsigned char sys_ind; /* What partition type */
unsigned char end_head; /* end head */
unsigned char end_sector; /* end sector */
unsigned char end_cyl; /* end cylinder */
unsigned int start_sect; /* starting sector counting from 0 */
unsigned int nr_sects; /* nr of sectors in partition */
} __attribute__((packed));
Loading

0 comments on commit 7cd697f

Please sign in to comment.