Index: mtools/Makefile =================================================================== RCS file: /home/pcvs/ports/emulators/mtools/Makefile,v retrieving revision 1.60 diff -u -r1.60 Makefile --- mtools/Makefile 31 Mar 2008 01:30:40 -0000 1.60 +++ mtools/Makefile 26 Aug 2008 22:13:02 -0000 @@ -2,18 +2,16 @@ # Date created: 5 October 1994 # Whom: jmz # -# $FreeBSD: ports/emulators/mtools/Makefile,v 1.60 2008/03/31 01:30:40 timur Exp $ +# $FreeBSD$ # PORTNAME= mtools -PORTVERSION= 3.9.10 -PORTREVISION= 4 +PORTVERSION= 3.9.11 CATEGORIES= emulators -MASTER_SITES= ftp://ftp.tux.org/pub/knaff/mtools/ \ - http://mtools.linux.lu/ +MASTER_SITES= http://mtools.linux.lu/ PATCH_SITES= http://mtools.linux.lu/ -PATCHFILES= mtools-3.9.10-20060525.diff.gz +PATCHFILES= mtools-3.9.11-20071226.diff.gz PATCH_DIST_STRIP= -p1 MAINTAINER= jmz@FreeBSD.org @@ -42,6 +40,14 @@ MAN1+= floppyd.1 floppyd_installtest.1 .endif +# It removes complain about 'Big disks not supported on this architecture', +# but I only have tested it with mlabel. The complain must have added for +# some reasons that I don't know. Use it with caution as it might damage +# your data or something else if you use different tools other than mlabel. +.if defined(USE_AT_MY_OWN_RISK) +EXTRA_PATCHES=${PATCHDIR}/extra-use_at_my_own_risk +.endif + post-patch: @cd ${WRKSRC}; for f in config.c mformat.c mtools.5 mtools.texi; do \ ${MV} -f $$f $$f.orig; \ Index: mtools/distinfo =================================================================== RCS file: /home/pcvs/ports/emulators/mtools/distinfo,v retrieving revision 1.23 diff -u -r1.23 distinfo --- mtools/distinfo 29 May 2006 10:02:22 -0000 1.23 +++ mtools/distinfo 26 Aug 2008 22:13:02 -0000 @@ -1,6 +1,6 @@ -MD5 (mtools-3.9.10-20060525.diff.gz) = e4f40b3c76cb343bdb9aa18b8523fc27 -MD5 (mtools-3.9.10.tar.gz) = 19bc1f06e9c5865b8ad20b1ddd976f5f -SHA256 (mtools-3.9.10-20060525.diff.gz) = dc03d7212808e3f91c685b09fabd5fb9b21f2e08bb861cf86d33cd82564ef432 -SHA256 (mtools-3.9.10.tar.gz) = 88d3213a5c9613bc9926e7c968df1c3503266d2e9e8aa2c3da5bd18d673613d6 -SIZE (mtools-3.9.10-20060525.diff.gz) = 10040 -SIZE (mtools-3.9.10.tar.gz) = 387208 +MD5 (mtools-3.9.11.tar.gz) = 3c0ae05b0d98a5d3bd06d3d72fcaf80d +SHA256 (mtools-3.9.11.tar.gz) = 3415d425d37338aa4e18e7d60147db23cfbe6192565c697f201f44426665ce42 +SIZE (mtools-3.9.11.tar.gz) = 334553 +MD5 (mtools-3.9.11-20071226.diff.gz) = f1fd4a33b2e4493d5f88fbfe76fc55fd +SHA256 (mtools-3.9.11-20071226.diff.gz) = 85796c023b077274a34566b08c72fdfa663ca91aecfabcb1d64718d6e71ef19a +SIZE (mtools-3.9.11-20071226.diff.gz) = 4816 Index: mtools/files/extra-use_at_my_own_risk =================================================================== RCS file: mtools/files/extra-use_at_my_own_risk diff -N mtools/files/extra-use_at_my_own_risk --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ mtools/files/extra-use_at_my_own_risk 26 Aug 2008 22:13:02 -0000 @@ -0,0 +1,14 @@ +--- init.c.orig 2008-08-26 16:43:38.000000000 -0500 ++++ init.c 2008-08-26 16:47:07.000000000 -0500 +@@ -300,11 +300,6 @@ + } + } + +- if (tot_sectors >= (maxSize >> This->sectorShift)) { +- fprintf(stderr, "Big disks not supported on this architecture\n"); +- exit(1); +- } +- + if(!mtools_skip_check && (tot_sectors % dev.sectors)){ + fprintf(stderr, + "Total number of sectors (%d) not a multiple of" Index: mtools/files/patch-mformat.c =================================================================== RCS file: mtools/files/patch-mformat.c diff -N mtools/files/patch-mformat.c --- mtools/files/patch-mformat.c 29 May 2006 10:02:22 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,18 +0,0 @@ ---- mformat.c~ Sat May 27 07:09:45 2006 -+++ mformat.c Sat May 27 07:24:05 2006 -@@ -689,6 +689,7 @@ - exit(1); - } - -+#ifdef OS_linux - static int get_block_geom(int fd, struct MT_STAT *buf, struct device *dev, - char *errmsg) { - struct hd_geometry geom; -@@ -733,6 +734,7 @@ - size = dev->tracks * dev->heads * dev->sectors + dev->hidden; - return 0; - } -+#endif - - void mformat(int argc, char **argv, int dummy) - {