1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Tools for manipulating MSDOS files + support 1232KB , Unicode LFN, SJIS

Submitted by:	WTANABE Junya <junya-w@remus.dti.ne.jp>
PR:		ports/4707
This commit is contained in:
Jun Kuriyama 1998-04-28 15:19:58 +00:00
parent b188381e14
commit 985736c85c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=10738
9 changed files with 242 additions and 0 deletions

47
japanese/mtools/Makefile Normal file
View File

@ -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>

2
japanese/mtools/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (mtools-3.6.tar.gz) = 87f670df9bec4537598182429c1ffb8e
MD5 (mtools-3.6.PC98.patch.gz) = b5564458a266824d47f943f7fe3db543

View File

@ -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"

View File

@ -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)

View File

@ -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;

View File

@ -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

View File

@ -0,0 +1 @@
Tools for manipulating MSDOS files + support 1232KB , Unicode LFN

42
japanese/mtools/pkg-descr Normal file
View File

@ -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.

75
japanese/mtools/pkg-plist Normal file
View File

@ -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