diff options
author | kuriyama <kuriyama@FreeBSD.org> | 1998-04-28 23:19:58 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 1998-04-28 23:19:58 +0800 |
commit | e7afae6e06caa281d90a600757b956fcbfa19256 (patch) | |
tree | f9013927c16350ee6765b2f4c389b2dc73f3dd05 | |
parent | 4ea9d163e507e33cd620a154552c7b569bbb218f (diff) | |
download | freebsd-ports-gnome-e7afae6e06caa281d90a600757b956fcbfa19256.tar.gz freebsd-ports-gnome-e7afae6e06caa281d90a600757b956fcbfa19256.tar.zst freebsd-ports-gnome-e7afae6e06caa281d90a600757b956fcbfa19256.zip |
Tools for manipulating MSDOS files + support 1232KB , Unicode LFN, SJIS
Submitted by: WTANABE Junya <junya-w@remus.dti.ne.jp>
PR: ports/4707
-rw-r--r-- | japanese/mtools/Makefile | 47 | ||||
-rw-r--r-- | japanese/mtools/distinfo | 2 | ||||
-rw-r--r-- | japanese/mtools/files/patch-2 | 25 | ||||
-rw-r--r-- | japanese/mtools/files/patch-a | 24 | ||||
-rw-r--r-- | japanese/mtools/files/patch-b | 15 | ||||
-rw-r--r-- | japanese/mtools/files/patch-c | 11 | ||||
-rw-r--r-- | japanese/mtools/pkg-comment | 1 | ||||
-rw-r--r-- | japanese/mtools/pkg-descr | 42 | ||||
-rw-r--r-- | japanese/mtools/pkg-plist | 75 |
9 files changed, 242 insertions, 0 deletions
diff --git a/japanese/mtools/Makefile b/japanese/mtools/Makefile new file mode 100644 index 000000000000..54868cb06834 --- /dev/null +++ b/japanese/mtools/Makefile @@ -0,0 +1,47 @@ +# New ports collection makefile for: mtools + support 1232KB , Unicode LFN +# Version required: 3.6 +# Date created: 6 October 1997 +# Whom: WATANABE junya <junya-w@remus.dti.ne.jp> +# +# $Id$ +# + +DISTNAME= mtools-3.6 +PKGNAME= ja-mtools-3.6 +CATEGORIES= japanese emulators +MASTER_SITES= ${MASTER_SITE_GNU} \ + ftp://ports.jp.FreeBSD.org/pub/FreeBSD-jp/ports-jp/LOCAL_PORTS/ +DISTFILES= mtools-3.6.tar.gz mtools-3.6.PC98.patch.gz + +MAINTAINER= junya-w@remus.dti.ne.jp + +EXTRACT_ONLY= mtools-3.6.tar.gz + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-xdf + +USE_GMAKE= yes + +MAN1= mattrib.1 mbadblocks.1 mcd.1 mcopy.1 mdel.1 mdeltree.1 \ + mdir.1 mformat.1 mkmanifest.1 mlabel.1 mmd.1 mmount.1 mmove.1 \ + mrd.1 mread.1 mren.1 mtoolstest.1 mtools.1 mtype.1 mwrite.1 mzip.1 +MAN5= mtools.5 +ALL_TARGET= all info + +post-patch: + @(cd ${WRKSRC} ; \ + ${GZCAT} ${DISTDIR}/mtools-3.6.PC98.patch.gz | ${PATCH} -d . >/dev/null 2>&1; \ + for f in config.c mtools.5 mtools.texi; do \ + ${MV} $$f $$f.orig; \ + ${SED} -e s:/etc/mtools.conf:${PREFIX}/etc/mtools.conf: \ + < $$f.orig > $$f; done ;\ + ) + +post-install: + @install -c ${WRKSRC}/mtools.conf ${PREFIX}/etc + @if [ ! -f ${PREFIX}/info/dir ]; then \ + ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ + fi + @install-info ${PREFIX}/info/mtools.info ${PREFIX}/info/dir + +.include <bsd.port.mk> diff --git a/japanese/mtools/distinfo b/japanese/mtools/distinfo new file mode 100644 index 000000000000..d3bb583e2fa6 --- /dev/null +++ b/japanese/mtools/distinfo @@ -0,0 +1,2 @@ +MD5 (mtools-3.6.tar.gz) = 87f670df9bec4537598182429c1ffb8e +MD5 (mtools-3.6.PC98.patch.gz) = b5564458a266824d47f943f7fe3db543 diff --git a/japanese/mtools/files/patch-2 b/japanese/mtools/files/patch-2 new file mode 100644 index 000000000000..bfccda0863fe --- /dev/null +++ b/japanese/mtools/files/patch-2 @@ -0,0 +1,25 @@ +*** mtools.conf~ Wed Jan 31 22:02:11 1996 +--- mtools.conf Mon May 27 05:03:09 1996 +*************** +*** 2,11 **** + 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 floppy image + drive m: file="/var/lib/dosemu/diskimage" +--- 2,11 ---- + drive b: file="/dev/fd1" exclusive + + # First SCSI hard disk partition +! drive c: file="/dev/sd0s1" + + # First IDE hard disk partition +! #drive c: file="/dev/wd0s1" + + #dosemu floppy image + drive m: file="/var/lib/dosemu/diskimage" diff --git a/japanese/mtools/files/patch-a b/japanese/mtools/files/patch-a new file mode 100644 index 000000000000..83fd39545776 --- /dev/null +++ b/japanese/mtools/files/patch-a @@ -0,0 +1,24 @@ +--- Makefile.in.orig Sat Apr 12 15:39:59 1997 ++++ Makefile.in Tue May 27 22:45:57 1997 +@@ -97,7 +97,7 @@ + streamcache.c subdir.c toupper.c tty.o vfat.c xdf_io.c mkmanifest.c + + +-SCRIPTS = mcheck mxtar uz tgz xcopy mcomp ++SCRIPTS = mcheck mxtar xcopy mcomp + + LINKS=mattrib mcd mcopy mdel mdeltree mdir mformat minfo mlabel \ + mmd mmount mmove mpartition mrd mread mren mtype mwrite mtoolstest \ +@@ -194,11 +194,9 @@ + install-scripts: $(bindir)/mtools + @$(top_srcdir)/mkinstalldirs $(bindir) + @for j in $(SCRIPTS) ; do \ +- $(INSTALL_PROGRAM) $(srcdir)/scripts/$$j $(bindir)/$$j ; \ ++ install -c -o bin -g bin -m 755 $(srcdir)/scripts/$$j $(bindir)/$$j ; \ + echo $(bindir)/$$j ; \ + done +- rm -f $(bindir)/lz +- $(LN_S) uz $(bindir)/lz + + install-man: + @$(top_srcdir)/mkinstalldirs $(MAN1DIR) diff --git a/japanese/mtools/files/patch-b b/japanese/mtools/files/patch-b new file mode 100644 index 000000000000..70a30340a894 --- /dev/null +++ b/japanese/mtools/files/patch-b @@ -0,0 +1,15 @@ +*** file.c~ Fri Apr 4 22:08:01 1997 +--- file.c Fri Apr 18 04:51:07 1997 +*************** +*** 201,208 **** +--- 201,210 ---- + #ifdef HAVE_TZSET + { + #ifndef ultrix ++ #ifndef __FreeBSD__ + /* Ultrix defines this to be a different type */ + extern long timezone; ++ #endif + #endif + tzset(); + tzone = (long) timezone; diff --git a/japanese/mtools/files/patch-c b/japanese/mtools/files/patch-c new file mode 100644 index 000000000000..e790edab9322 --- /dev/null +++ b/japanese/mtools/files/patch-c @@ -0,0 +1,11 @@ +--- ./mtools.texi.org Sun Apr 13 00:59:18 1997 ++++ ./mtools.texi Sun Jun 8 05:33:03 1997 +@@ -26,7 +26,7 @@ + @ifinfo + @format + START-INFO-DIR-ENTRY +-* Mtools: (mtools). Mtools: utilities to access DOS disks in Unix. ++* Mtools: (mtools). Mtools: utilities to access DOS disks in Unix. + END-INFO-DIR-ENTRY + @end format + @end ifinfo diff --git a/japanese/mtools/pkg-comment b/japanese/mtools/pkg-comment new file mode 100644 index 000000000000..8b16eb6f350c --- /dev/null +++ b/japanese/mtools/pkg-comment @@ -0,0 +1 @@ +Tools for manipulating MSDOS files + support 1232KB , Unicode LFN diff --git a/japanese/mtools/pkg-descr b/japanese/mtools/pkg-descr new file mode 100644 index 000000000000..46576e583cd5 --- /dev/null +++ b/japanese/mtools/pkg-descr @@ -0,0 +1,42 @@ +Mtools is a public domain collection of programs to allow Unix systems +to read, write, and manipulate files on an MSDOS filesystem (typically +a diskette). Each program attempts to emulate the MSDOS equivalent +command as closely as practical. + +The following MSDOS commands are emulated: + +Mtool MSDOS +name equivalent Description +----- ---- ----------- +mattrib ATTRIB change MSDOS file attribute flags +mcd CD change MSDOS directory +mcopy COPY copy MSDOS files to/from Unix +mdel DEL/ERASE delete an MSDOS file +mdir DIR display an MSDOS directory +mformat FORMAT add MSDOS filesystem to a low-level format +mlabel LABEL make an MSDOS volume label. +mmd MD/MKDIR make an MSDOS subdirectory +mrd RD/RMDIR remove an MSDOS subdirectory +mread COPY low level read (copy) an MSDOS file to Unix +mren REN/RENAME rename an existing MSDOS file +mtype TYPE display contents of an MSDOS file +mwrite COPY low level write (copy) a Unix file to MSDOS + +You should be able to just close your eyes and pretend you're on an MSDOS +system. Everything should work the same... except for the added 'm' at +the beginning of each command. + +MSDOS filenames are optionally composed of a drive letter followed by +a colon, a subdirectory, and a filename. Sub- directory names can use +either the '/' or '\' separator. The use of the '\' separator or +wildcards will require the names to be enclosed in quotes to protect +them from the shell. + +The regular expression "pattern matching" routines follow the +Unix-style rules. For example, '*' matches all MSDOS files in lieu of +'*.*'. The archive, hidden, read-only and system attribute bits are +ignored during pattern matching. + +This is support 1232KB Floopy reading/writing for FreeBSD(98), +SJIS Short File Name and Unicode Long File Name files. +This patch to make by kogane@kces.koganemaru.co.jp. diff --git a/japanese/mtools/pkg-plist b/japanese/mtools/pkg-plist new file mode 100644 index 000000000000..e2f410f1006a --- /dev/null +++ b/japanese/mtools/pkg-plist @@ -0,0 +1,75 @@ +bin/mtools +@exec ln -fs %D/%F %B/mattrib +@exec ln -fs %D/%F %B/mcd +@exec ln -fs %D/%F %B/mcopy +@exec ln -fs %D/%F %B/mdel +@exec ln -fs %D/%F %B/mdeltree +@exec ln -fs %D/%F %B/mdir +@exec ln -fs %D/%F %B/mformat +@exec ln -fs %D/%F %B/minfo +@exec ln -fs %D/%F %B/mlabel +@exec ln -fs %D/%F %B/mmd +@exec ln -fs %D/%F %B/mmount +@exec ln -fs %D/%F %B/mmove +@exec ln -fs %D/%F %B/mpartition +@exec ln -fs %D/%F %B/mrd +@exec ln -fs %D/%F %B/mread +@exec ln -fs %D/%F %B/mren +@exec ln -fs %D/%F %B/mtype +@exec ln -fs %D/%F %B/mwrite +@exec ln -fs %D/%F %B/mtoolstest +@exec ln -fs %D/%F %B/mbadblocks +@exec ln -fs %D/%F %B/mzip +@unexec rm %B/mattrib +@unexec rm %B/mcd +@unexec rm %B/mcopy +@unexec rm %B/mdel +@unexec rm %B/mdeltree +@unexec rm %B/mdir +@unexec rm %B/mformat +@unexec rm %B/minfo +@unexec rm %B/mlabel +@unexec rm %B/mmd +@unexec rm %B/mmount +@unexec rm %B/mmove +@unexec rm %B/mpartition +@unexec rm %B/mrd +@unexec rm %B/mread +@unexec rm %B/mren +@unexec rm %B/mtype +@unexec rm %B/mwrite +@unexec rm %B/mtoolstest +@unexec rm %B/mbadblocks +@unexec rm %B/mzip +bin/mcheck +bin/mkmanifest +bin/mxtar +bin/xcopy +bin/mcomp +@unexec install-info --delete %D/info/mtools.info %D/info/dir +info/mtools.info +@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir +@exec install-info %D/info/mtools.info %D/info/dir +etc/mtools.conf +man/man1/mattrib.1.gz +man/man1/mbadblocks.1.gz +man/man1/mcd.1.gz +man/man1/mcopy.1.gz +man/man1/mdel.1.gz +man/man1/mdeltree.1.gz +man/man1/mdir.1.gz +man/man1/mformat.1.gz +man/man1/mkmanifest.1.gz +man/man1/mlabel.1.gz +man/man1/mmd.1.gz +man/man1/mmount.1.gz +man/man1/mmove.1.gz +man/man1/mrd.1.gz +man/man1/mread.1.gz +man/man1/mren.1.gz +man/man1/mtoolstest.1.gz +man/man1/mtools.1.gz +man/man1/mtype.1.gz +man/man1/mwrite.1.gz +man/man1/mzip.1.gz +man/man5/mtools.5.gz |