--- amiga-fdisk-0.04.orig/fdisk.c +++ amiga-fdisk-0.04/fdisk.c @@ -25,11 +25,33 @@ #include #include #include +#include +#ifdef DONT_USE_READLINE +char *readline (const char *prompt) +{ + char buffer[1024]; + char *s; + int size; + printf ("%s",prompt); + fflush (stdout); + fgets (buffer, sizeof(buffer), stdin); + size = strlen (buffer); + s = malloc ((size+1)*sizeof(char)); + s = strcpy (s, buffer); + fflush (stdin); + return s; +} +#else #include #include +#endif +#if 0 #include +#else +#include +#endif #include #include @@ -48,6 +70,10 @@ int atonum(char *s) { +#ifdef FIX_NO_READLINE +#warning FIX_NO_READLINE enabled in atonum + return atoi(s); +#else char *d=s; int n; @@ -69,6 +95,7 @@ sscanf(s, "%d", &n); } return n; +#endif } int partition(void) @@ -105,18 +132,18 @@ int listknown(void) { - printf("Known Partition Types\n---------------------\n - 1. DOS\\0 Old Filesystem - 2. DOS\\1 Original FastFileSystem (FFS) - 3. DOS\\2 Old International Filesystem - 4. DOS\\3 International FastFileSystem - 5. DOS\\4 Old Filesystem with directory cache - 6. DOS\\6 FastFileSystem with directory cache - 7. UNI\\0 classic AT&T System-V filesystem - 8. UNI\\1 UNIX boot \"filesystem\" (dummy entry for Amiga OS's boot menu) - 9. UNI\\2 Berkeley filesystem for System V -10. RESV Reserved (e.g. swap space) -11. LNX\\0 Linux native + printf("Known Partition Types\n---------------------\n\n\ + 1. DOS\\0 Old Filesystem\n\ + 2. DOS\\1 Original FastFileSystem (FFS)\n\ + 3. DOS\\2 Old International Filesystem\n\ + 4. DOS\\3 International FastFileSystem\n\ + 5. DOS\\4 Old Filesystem with directory cache\n\ + 6. DOS\\6 FastFileSystem with directory cache\n\ + 7. UNI\\0 classic AT&T System-V filesystem\n\ + 8. UNI\\1 UNIX boot \"filesystem\" (dummy entry for Amiga OS's boot menu)\n\ + 9. UNI\\2 Berkeley filesystem for System V\n\ +10. RESV Reserved (e.g. swap space)\n\ +11. LNX\\0 Linux native\n\ 12. SWP\\0 Linux swap\n\n"); return 0; @@ -124,19 +151,19 @@ int menu(void) { - printf ("Command action - a toggle bootable flag - b change number of bootblocks - c change boot priority - d delete a partition - e toggle nomount flag - l list known partition types - m print this menu - n add a new partition - p print the partition table - q quit without saving changes - t change a partition's DosType - r reorganize/move RDB + printf ("Command action\n\ + a toggle bootable flag\n\ + b change number of bootblocks\n\ + c change boot priority\n\ + d delete a partition\n\ + e toggle nomount flag\n\ + l list known partition types\n\ + m print this menu\n\ + n add a new partition\n\ + p print the partition table\n\ + q quit without saving changes\n\ + t change a partition's DosType\n\ + r reorganize/move RDB\n\ w write table to disk and exit\n\n"); return 0; } @@ -155,6 +182,13 @@ listknown(); printf ("\n Choose a number of the upper list or\n enter a DosType of the format 0x444f5302\n\n"); +#ifdef FIX_NO_READLINE +#warning FIX_NO_READLINE enabled in gettype + printf( + "(NOTE: amiga-fdisk from the boot-floppies package accepts only numbers\n"\ + " from the list above. Replace amiga-fdisk-bf by amiga-fdisk as soon as\n"\ + " possible to get the full functionality of amiga-fdisk.)\n\n"); +#endif dtype=readline("Enter DosType: "); if (dtype==NULL) exit (0); hexval=atonum(dtype); --- amiga-fdisk-0.04.orig/Makefile +++ amiga-fdisk-0.04/Makefile @@ -4,14 +4,22 @@ # CC= gcc +ifeq ($(USE_READLINE),no) +CFLAGS= -O2 -fomit-frame-pointer -Wall -I./include -DDONT_USE_READLINE -DFIX_NO_READLINE +#CFLAGS= -g -fomit-frame-pointer -Wall -I./include -DDEBUG -DDONT_USE_READLINE +LDFLAGS= # -s -N +else CFLAGS= -O2 -fomit-frame-pointer -Wall -I./include #CFLAGS= -g -fomit-frame-pointer -Wall -I./include -DDEBUG -LDFLAGS= # -s -N LIBS= -lreadline +LDFLAGS= # -s -N +endif # Where to put binaries? # See the "install" rule for the links. . . +INSTALL= install +INSTALLDIR= /sbin SBIN= amiga-fdisk # Where to put datebase files? @@ -22,8 +30,7 @@ $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ install: all - $(INSTALLDIR) $(SBINDIR) - $(INSTALLBIN) $(SBIN) $(SBINDIR) + $(INSTALL) $(SBIN) $(DESTDIR)$(INSTALLDIR) clean: -rm -f *.o *~ core $(SBIN) --- amiga-fdisk-0.04.orig/amigastuff.c +++ amiga-fdisk-0.04/amigastuff.c @@ -19,6 +19,8 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA */ +#define _LARGEFILE64_SOURCE 1 + #include #include #include @@ -30,8 +32,13 @@ #include #include +# if 0 +these include files are broken, see #252709 #include #include +#else +#include +#endif #include #include @@ -57,7 +64,7 @@ struct PartitionBlock *pa[MAXPARTS]; int parts, firstblock, lastblock, maxblock, minblock; char *initsectors, *listsector; -char type[32]; /* Needed by DosType() */ +char type[100]; /* Needed by DosType() */ int rigiddisk_new(int first); @@ -75,13 +82,12 @@ if (list_only) { - if ((l=open(disk_device,O_RDONLY))<0) { + if ((l=open(disk_device,O_RDONLY|O_LARGEFILE))<0) { if (get_dev) fprintf (stderr,"Cannot open device %s\n",disk_device); return NULL; } - - if (lseek(l,(block*SECTOR_SIZE),SEEK_SET)<0) { + if (lseek64(l,((off64_t)block*SECTOR_SIZE),SEEK_SET)<0) { close(l); fprintf (stderr,"Seek error occured while reading block %d.\n",block); return NULL; @@ -316,7 +322,7 @@ return -1; } - if ((f=open(disk_device,O_RDONLY))<0) { + if ((f=open(disk_device,O_RDONLY|O_LARGEFILE))<0) { if (!list_only || get_dev) fprintf (stderr,"Cannot open device %s\n",disk_device); free((char *)rdb); @@ -327,7 +333,7 @@ firstblock=-1; while ((i1024)) { + // while ((((geo.cylinders/2)*2)==geo.cylinders) && (geo.cylinders>1024)) { + while ((((hdsize/2)*2)==hdsize) && (hdsize>1024)) { geo.sectors*=2; - geo.cylinders/=2; - if (((geo.cylinders/2)*2)==geo.cylinders && (geo.cylinders>1024) ) { + // geo.cylinders/=2; + hdsize/=2; + // if (((geo.cylinders/2)*2)==geo.cylinders && (geo.cylinders>1024) ) { + if (((hdsize/2)*2)==hdsize && (hdsize>1024) ) { geo.heads*=2; - geo.cylinders/=2; + // geo.cylinders/=2; + hdsize/=2; } } + geo.cylinders=hdsize; + if (hdsize != geo.cylinders) { + printf("Warning: %lld cylinders can not be stored in 16-bit value!\n", (long long)hdsize); + } } else { @@ -901,12 +916,12 @@ rigiddisk_correct(); - if ((f=open(disk_device,O_WRONLY))<0) { + if ((f=open(disk_device,O_WRONLY|O_LARGEFILE))<0) { fprintf (stderr,"Cannot open device %s\n",disk_device); return -1; } - if (lseek(f,0,SEEK_SET)<0) { + if (lseek64(f,0,SEEK_SET)<0) { close(f); fprintf (stderr,"Seek error occured while writing partition table.\n"); return -1; } @@ -939,7 +954,7 @@ dt.dlong = htonl(dostype); if (!list_only) { - j = sprintf(type, "0x%04x = ",dostype); + j = sprintf(type, "0x%04x = ",(unsigned int) dostype); for (i = 0; i < 4; i++) if (isprint(dt.dchar[i])) @@ -970,10 +985,10 @@ int rigiddisk_show(void) { printf ("Disk %s: %ld heads, %ld sectors, %ld cylinders, RDB: %d\n", disk_device, - htonl(rdb->rdb_Heads),htonl(rdb->rdb_Sectors),htonl(rdb->rdb_Cylinders),firstblock); + (long int) htonl(rdb->rdb_Heads), (long int) htonl(rdb->rdb_Sectors), (long int) htonl(rdb->rdb_Cylinders), firstblock); printf ("Logical Cylinders from %ld to %ld, %ld bytes/Cylinder \n\n", - htonl(rdb->rdb_LoCylinder), htonl(rdb->rdb_HiCylinder), SECTOR_SIZE*htonl(rdb->rdb_Sectors)*htonl(rdb->rdb_Heads)); + (long int) htonl(rdb->rdb_LoCylinder), (long int) htonl(rdb->rdb_HiCylinder), (long int) SECTOR_SIZE*htonl(rdb->rdb_Sectors)*htonl(rdb->rdb_Heads)); return 0; } @@ -984,23 +999,27 @@ struct DosEnvec *de; struct PartitionBlock *curr; + int padding=strlen(disk_device)+2-6; + if (padding<=0) + padding=0; + block=htonl(rdb->rdb_PartitionList); - printf (" Device Boot Mount Begin End Size Pri BBlks System\n"); + printf ("Device%*s Boot Mount Begin End Size Pri BBlks System\n", padding, ""); for (i=0; ipb_Next); de=(struct DosEnvec *)curr->pb_Environment; - printf ("%s%-2d ",disk_device,(i+1)); + printf ("%s%-2d ",disk_device,(i+1)); printf ("%s ", htonl(curr->pb_Flags)&PBFF_BOOTABLE?"*":" "); printf ("%s ", htonl(curr->pb_Flags)&PBFF_NOMOUNT?" ":"*"); - printf ("%6ld %6ld ", htonl(de->de_LowCyl),htonl(de->de_HighCyl)); - printf ("%6ld ", (htonl(de->de_HighCyl)-htonl(de->de_LowCyl)+1)* + printf ("%6ld %6ld ", (long int) htonl(de->de_LowCyl), (long int) htonl(de->de_HighCyl)); + printf ("%6ld ", (long int) (htonl(de->de_HighCyl)-htonl(de->de_LowCyl)+1)* htonl(de->de_BlocksPerTrack)*htonl(de->de_Surfaces)/2); - printf ("%3ld ",htonl(de->de_BootPri)); - printf ("%3ld ",htonl(de->de_BootBlocks)); + printf ("%3ld ",(long int) (int32_t)htonl(de->de_BootPri)); + printf ("%3ld ",(long int) htonl(de->de_BootBlocks)); printf ("%s\n",DosType(htonl(de->de_DosType))); } --- amiga-fdisk-0.04.orig/debian/compat +++ amiga-fdisk-0.04/debian/compat @@ -0,0 +1 @@ +5 --- amiga-fdisk-0.04.orig/debian/rules +++ amiga-fdisk-0.04/debian/rules @@ -0,0 +1,133 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH) + +INSTALL_TARGETS = install-cross + +ifeq ($(ARCH),m68k) +INSTALL_TARGETS = install-non-bf install-bf +DH_EXTRAS=-Namiga-fdisk-cross +endif +ifeq ($(ARCH),powerpc) +INSTALL_TARGETS = install-non-bf install-bf +DH_EXTRAS=-Namiga-fdisk-cross +endif + +# Only build packages ment for this architecture +export DH_OPTIONS=-s $(DH_EXTRAS) + +# This has to be exported to make some magic below work. +export INSTALL_TARGETS + +build-non-bf: build-non-bf-stamp +build-non-bf-stamp: + dh_testdir + # Add here commands to compile the non-bf package. + $(MAKE) clean + $(MAKE) USE_READLINE=yes + + touch build-non-bf-stamp + +build-bf: build-bf-stamp +build-bf-stamp: + dh_testdir + # Add here commands to compile the bf package. + $(MAKE) clean + $(MAKE) USE_READLINE=no + + touch build-bf-stamp + +build-cross: build-cross-stamp +build-cross-stamp: + dh_testdir + # Add here commands to compile the cross package. + $(MAKE) clean + $(MAKE) USE_READLINE=yes + + touch build-cross-stamp + +build: + +clean: + dh_testdir + dh_testroot + rm -f build-non-bf-stamp build-bf-stamp build-cross-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) clean + + dh_clean + +install-non-bf: build-non-bf + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/amiga-fdisk. + $(MAKE) install DESTDIR=`pwd`/debian/amiga-fdisk + +install-bf: build-bf + dh_testdir + dh_testroot + rm -rf debian/amiga-fdisk-bf + dh_installdirs + + # Add here commands to install the package into debian/amiga-fdisk-bf. + $(MAKE) install DESTDIR=`pwd`/debian/amiga-fdisk-bf + +install-cross: build-cross + dh_testdir + dh_testroot + rm -rf debian/amiga-fdisk-cross + dh_installdirs + + # Add here commands to install the package into debian/amiga-fdisk-cross. + $(MAKE) install DESTDIR=`pwd`/debian/amiga-fdisk-cross + +install: $(INSTALL_TARGETS) + echo $(INSTALL_TARGETS) + +# 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_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron + dh_installman -A amiga-fdisk.8 + dh_installinfo +# dh_undocumented +# dh_installchangelogs -a ChangeLog + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- amiga-fdisk-0.04.orig/debian/copyright +++ amiga-fdisk-0.04/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by Frank Neumann + on Fri, 16 Jan 1998 + +It was downloaded from http://www.freiburg.linux.de/~stepan + +Upstream Author: Stefan Reinauer +Copyright (c) 1996-1998 Stefan Reinauer + + This is an fdisk for Amiga RDB-Type harddisks written by + Stefan Reinauer, + +amiga-fdisk is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE, +Version 2. + +On Debian systems, the complete text of the GNU Library General Public +License (Version 2) is found in `/usr/share/common-licenses/LGPL-2'. --- amiga-fdisk-0.04.orig/debian/amiga-fdisk-cross.docs +++ amiga-fdisk-0.04/debian/amiga-fdisk-cross.docs @@ -0,0 +1,2 @@ +README +ToDo --- amiga-fdisk-0.04.orig/debian/amiga-fdisk-cross.dirs +++ amiga-fdisk-0.04/debian/amiga-fdisk-cross.dirs @@ -0,0 +1 @@ +/sbin --- amiga-fdisk-0.04.orig/debian/docs +++ amiga-fdisk-0.04/debian/docs @@ -0,0 +1,2 @@ +README +ToDo --- amiga-fdisk-0.04.orig/debian/postinst +++ amiga-fdisk-0.04/debian/postinst @@ -0,0 +1,72 @@ +#! /bin/sh +# postinst script for amiga-fdisk-bf +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + +# make symlink /sbin/fdisk point to the native fdisk +# +# This is also true if /sbin/fdisk is a dangling symlink; in that case we +# want to update the link, too. + if [ ! -e /sbin/fdisk ]; then + machine="" + if [ -e /proc/hardware ]; then + case `awk '$1 == "Model:" { print $2 }' /proc/hardware` in + Atari) + machine=atari + ;; + Amiga) + machine=amiga + ;; + Macintosh) + machine=mac + ;; + Motorola) # MVME + ;; + esac + fi + if [ -n "$machine" ] && [ -f /sbin/$machine-fdisk ]; then + ln -sf $machine-fdisk /sbin/fdisk + else + echo "No native fdisk for this machine type!" + fi + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- amiga-fdisk-0.04.orig/debian/amiga-fdisk-bf.docs +++ amiga-fdisk-0.04/debian/amiga-fdisk-bf.docs @@ -0,0 +1,2 @@ +README +ToDo --- amiga-fdisk-0.04.orig/debian/control +++ amiga-fdisk-0.04/debian/control @@ -0,0 +1,47 @@ +Source: amiga-fdisk +Section: admin +Priority: standard +Maintainer: Christian T. Steigies +Standards-Version: 3.8.3 +Build-Depends: debhelper (>=5), libreadline-dev +Homepage: https://alioth.debian.org/projects/amiga-fdisk/ + +Package: amiga-fdisk +Section: admin +Priority: standard +Architecture: m68k powerpc +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: amiga-fdisk-bf +Replaces: amiga-fdisk-bf, amiga-fdisk-cross +Description: Partition editor for Amiga + Amiga-fdisk is, similar to fdisk for PCs, a program to partition + harddisks. Though it seems to work quite well, it's still got some + sort of beta status. It's suggested that you still use the AmigaDOS + native tool "HDToolBox" to partition your harddisks and use + amiga-fdisk only for querying partition information. + +Package: amiga-fdisk-bf +Section: admin +Priority: extra +Architecture: m68k powerpc +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: amiga-fdisk, amiga-fdisk-cross +Description: Partition editor for Amiga (boot-floppies version) + Amiga-fdisk is, similar to fdisk for PCs, a program to partition + harddisks. Though it seems to work quite well, it's still got some + sort of beta status. It's suggested that you still use the AmigaDOS + native tool "HDToolBox" to partition your harddisks and use + amiga-fdisk only for querying partition information. + +Package: amiga-fdisk-cross +Section: otherosfs +Priority: extra +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: amiga-fdisk, amiga-fdisk-bf +Description: Partition editor for Amiga partitions (cross version) + Amiga-fdisk is, similar to fdisk for PCs, a program to partition + harddisks. Though it seems to work quite well, it's still got some + sort of beta status. It's suggested that you still use the AmigaDOS + native tool "HDToolBox" to partition your harddisks and use + amiga-fdisk only for querying partition information. --- amiga-fdisk-0.04.orig/debian/dirs +++ amiga-fdisk-0.04/debian/dirs @@ -0,0 +1 @@ +/sbin --- amiga-fdisk-0.04.orig/debian/changelog +++ amiga-fdisk-0.04/debian/changelog @@ -0,0 +1,172 @@ +amiga-fdisk (0.04-14) unstable; urgency=low + + * replace libreadline5-dev by libreadline-dev + * add ${misc:Depends} to binary package's debian/control entry + * use debhelper compatibility version 5 + * cosmetic changes to copyright file to make lintian happy + * Updated Standards-Version to 3.8.3 (no changes) + + -- Christian T. Steigies Mon, 05 Oct 2009 22:05:52 +0200 + +amiga-fdisk (0.04-13) unstable; urgency=low + + * change arch list for amiga-fdisk-cross to any (closes: #497165, #540003) + * Updated Standards-Version to 3.8.2: + place amiga-fdisk-bf in admin section instead of base, + place amiga-fdisk-cross in otherosfs section + * amiga-fdisk is now maintained via alioth, added Homepage + + -- Christian T. Steigies Wed, 05 Aug 2009 20:29:46 +0200 + +amiga-fdisk (0.04-12) unstable; urgency=low + + * add armel and armeb to architecture list (closes: #461081) + * Updated Standards-Version to 3.7.3 (no changes) + * fix lintian warning: do not use DH_COMPAT + * fix lintian warning: do not ignore make clean errors + + -- Christian T. Steigies Thu, 31 Jan 2008 22:49:44 +0100 + +amiga-fdisk (0.04-11) unstable; urgency=low + + * postinst: check if /proc/hardware exists before reading it (closes: #329787) + + -- Christian T. Steigies Sat, 14 Jan 2006 20:16:11 +0100 + +amiga-fdisk (0.04-10) unstable; urgency=low + + * rebuild with libreadline5-dev (closes: #326389) + * lower Priority to standard (closes: #217848) + * Updated Standards-Version to 3.6.2 (no changes) + * use debhelper compatibility version 4 + * use dh_installman instead of dh_installmanpages + + -- Christian T. Steigies Sat, 3 Sep 2005 21:36:04 +0200 + +amiga-fdisk (0.04-9) unstable; urgency=low + + * apply patch from David Weinehall to remove XSI:ism (closes: #256298) + + -- Christian T. Steigies Fri, 2 Jul 2004 23:55:14 +0200 + +amiga-fdisk (0.04-8) unstable; urgency=low + + * Updated Standards-Version to 3.6.1 (no changes) + * create a new package amiga-fdisk-cross for any arch, except m68k and powerpc + amiga-fdisk (required) and amiga-fdisk-bf stay m68k+powerpc only (closes: #252339) + * do not include "broken" include files in amigastuff.c (closes: #252709) + #include instead, also in fdisk.c + * get rid of remaining warnings by explicit type conversion + * do not call dh_suidregister anymore (again?) + * fix Author(s) in copyright + * do not ship upstream ChangeLog twice (second copy was uncompressed, + removed ChangeLog from amiga-fdisk-bf.docs) + * apply patch from Sven Luther (closes: #212840), this code is only executed when + the disk does not report the geometry, never happened for me. + * print a warning when the calculated number of cylinders does not fit in 16-bit. + + -- Christian T. Steigies Thu, 17 Jun 2004 23:45:31 +0200 + +amiga-fdisk (0.04-7) unstable; urgency=low + + * apply patch as supplied by Matt Kraai, which preserves newlines + (closes: #212880). + + -- Christian T. Steigies Tue, 18 Nov 2003 08:36:09 -0500 + +amiga-fdisk (0.04-6.1) unstable; urgency=low + + * Non-maintainer upload + * Apply patch from Matt Kraai so it will build with + gcc-3.3 (closes: #212880). + + -- Steve Langasek Tue, 18 Nov 2003 05:33:41 +0000 + +amiga-fdisk (0.04-6) unstable; urgency=low + + * new maintainer, no source changes, closing bugs in the base system + * 0.04 has been uploaded in December 1999 (closes: #36258) first half + reopen/retitle as a wishlist bug if you have to, fdisk-cross will follow + * amiga-fdisk-bf works since May 2000 (closes: #64596) + * add Build-Depends (closes: #70077, #70164) + * updated Standards-Version + * remove dh_suidregister call + * make copyright point to LPGL-2 file instead of citing (with old address) + + -- Christian T. Steigies Sat, 8 Sep 2001 12:41:12 -0400 + +amiga-fdisk (0.04-5) stable unstable; urgency=low + + * Non-maintainer upload. + * build amiga-fdisk and amiga-fdisk-bf from one source package + * rearrange section and priority of both packages (closes: #72227) + * this package is needed for the 2.2r1 boot-floppies, thus upload for stable + + -- Christian T. Steigies Thu, 19 Oct 2000 19:11:38 +0200 + +amiga-fdisk-bf (0.04-4) frozen unstable; urgency=high + + * Non-maintainer upload. + * quick hack to make partition type selection work for amiga-fdisk-bf + + -- Christian T. Steigies Tue, 30 May 2000 15:29:43 +0200 + +amiga-fdisk-bf (0.04-3) frozen unstable; urgency=high + + * fix a segfault when partitions with long partition type names are used + * minimal code change to the previous version: + --- amiga-fdisk-0.04/amigastuff.c~ Tue May 16 23:11:45 2000 + +++ amiga-fdisk-0.04/amigastuff.c Wed May 17 13:19:26 2000 + @@ -57,7 +57,7 @@ + struct PartitionBlock *pa[MAXPARTS]; + int parts, firstblock, lastblock, maxblock, minblock; + char *initsectors, *listsector; + -char type[32]; /* Needed by DosType() */ + +char type[100]; /* Needed by DosType() */ + + * NMU, thanks to Roman for the diff + + -- Christian T. Steigies Thu, 18 May 2000 10:07:52 +0200 + +amiga-fdisk-bf (0.04-2) frozen unstable; urgency=low + + * Vital for amiga/m68k and amiga/powerpc boot-floppies. + * Non-maintainer upload. + * Libreadline build for boot-floppies. + * Since i didn't manage to build a multi binary package, + i will upload two packages for now. Since the package is very + small it should be ok for now. + + -- Sven LUTHER Thu, 24 Feb 2000 17:24:08 +0100 + +amiga-fdisk (0.04-1) unstable; urgency=low + + * Non-maintainer upload. + * New upstream release. + + -- Sven LUTHER Fri, 17 Dec 1999 17:07:47 +0100 + +amiga-fdisk (0.03a-1.2) unstable; urgency=low + + * Non-maintainer upload. + * set architecture to m68k powerpc, for the apus boot-floppies. + + -- Sven LUTHER Mon, 15 Nov 1999 19:21:22 +0100 + +amiga-fdisk (0.03a-1.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/control (Maintainer): corrected the address which had been + broken by cut'n'waste. + * debian/rules (binary-arch): removed call to dh_du. + + -- James Troup Tue, 15 Dec 1998 21:11:12 +0000 + +amiga-fdisk (0.03a-1) unstable; urgency=low + + * Initial Release. + * Renamed the binary to "amiga-fdisk" instead of "afdisk" to avoid + namespace pollution. + + -- Frank Neumann Thu, 26 Feb 1998 02:58:57 +0100 + --- amiga-fdisk-0.04.orig/debian/amiga-fdisk-bf.dirs +++ amiga-fdisk-0.04/debian/amiga-fdisk-bf.dirs @@ -0,0 +1 @@ +/sbin --- amiga-fdisk-0.04.orig/include/amiga/types.h +++ amiga-fdisk-0.04/include/amiga/types.h @@ -1,32 +1,24 @@ -#define VOID void +#include -#ifndef __alpha__ -typedef long LONG; /* signed 32-bit quantity */ -typedef unsigned long ULONG; /* unsigned 32-bit quantity */ -typedef unsigned long LONGBITS; /* 32 bits manipulated individually */ -#else -typedef int LONG; /* signed 32-bit quantity */ -typedef unsigned int ULONG; /* unsigned 32-bit quantity */ -typedef unsigned int LONGBITS; /* 32 bits manipulated individually */ -#endif +#define VOID void -typedef short WORD; /* signed 16-bit quantity */ -typedef unsigned short UWORD; /* unsigned 16-bit quantity */ -typedef unsigned short WORDBITS; /* 16 bits manipulated individually */ -#if __STDC__ -typedef signed char BYTE; /* signed 8-bit quantity */ -#else -typedef char BYTE; /* signed 8-bit quantity */ -#endif -typedef unsigned char UBYTE; /* unsigned 8-bit quantity */ -typedef unsigned char BYTEBITS; /* 8 bits manipulated individually */ -typedef unsigned short RPTR; /* signed relative pointer */ +typedef int32_t LONG; /* signed 32-bit quantity */ +typedef uint32_t ULONG; /* unsigned 32-bit quantity */ +typedef uint32_t LONGBITS; /* 32 bits manipulated individually */ + +typedef int16_t WORD; /* signed 16-bit quantity */ +typedef uint16_t UWORD; /* unsigned 16-bit quantity */ +typedef uint16_t WORDBITS; /* 16 bits manipulated individually */ +typedef int8_t BYTE; /* signed 8-bit quantity */ +typedef uint8_t UBYTE; /* unsigned 8-bit quantity */ +typedef uint8_t BYTEBITS; /* 8 bits manipulated individually */ +typedef int16_t RPTR; /* signed relative pointer */ typedef unsigned char *STRPTR; /* string pointer (NULL terminated) */ /* Types with specific semantics */ typedef float FLOAT; typedef double DOUBLE; -typedef short BOOL; +typedef int16_t BOOL; typedef unsigned char TEXT; #ifndef TRUE