---
name: ja-mtools
version: 3.9.6_1
origin: japanese/mtools
comment: Tools for manipulating MSDOS files + support 1232KB , Unicode LFN
arch: freebsd:9:x86:64
www: http://mtools.linux.lu/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 588139
desc: |
  Mtools is a collection of programs for reading, writing, and manipulating files
  on an DOS FAT filesystem (usually a diskette).  Each one closely emulates
  its DOS analog:
  _Mtool_         _DOS_command_   _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            alias for mcopy, will be removed soon
  Filenames may include a drive letter, a colon, subdirectory, and filename, with
  either '/' or '\' directory separator.  To use the '\' separator or wildcards,
  escape the filenames with quotes.  The regular expression "pattern matching"
  routines follow Unix-style rules:  '*' matches all files.  Archive, hidden,
  read-only and system attributes are ignored in pattern matching.  SJIS Short
  File Name and Unicode Long File Name files, and 1232 kB floppies, are supported.
  WWW:  http://mtools.linux.lu/
categories: [japanese, emulators]
files:
  /usr/local/bin/mcheck: 1c03b9201d5a055d82a180f751b8fe04ede7f0bf6d8aa3e444d2a3b753d3288d
  /usr/local/bin/mcomp: 91ba88b356e1a7dc0c2f18fb5175b63be428326d53f0c417b590f83f544cb5da
  /usr/local/bin/mkmanifest: 1492daa25078ef206577ec1cd70e32856c493e8644c8e3b385ed26a365c333c7
  /usr/local/bin/mtools: 0a6b163f6de62790192d7c36e8b55842c8989b6be5965d142ff244647e00e96c
  /usr/local/bin/mxtar: 1b483a01155c1ad0dfbdfc03814bee1aba0b143f5cd3d90ac4e1ba5f4258fc47
  /usr/local/etc/mtools.conf: bda8d74f683972fdd0398d734a6588af7b8e224dca9269100cb643752e82fb15
  /usr/local/info/mtools.info: 89dd026801cf9c0eb2c56b2d6d5ece93342d17a2922374b7505b1997bf935129
  /usr/local/man/man1/mattrib.1.gz: f2ed86914ccff2dfc7e7111a15cf167095f6c1d88ccc490deebfb7feeaefc9cf
  /usr/local/man/man1/mbadblocks.1.gz: 64dec46c3a5c8c982b3a765c18dc4e6f963649217062a5267ad769e13186235f
  /usr/local/man/man1/mcat.1.gz: 2c36a3425f8175d753b82890ea3113200e4ea50b3211dbebef45d05810d25c8c
  /usr/local/man/man1/mcd.1.gz: e831985a078183992515653d47e5e19dd5d8ad19304b80176c3a1991ee3007aa
  /usr/local/man/man1/mcopy.1.gz: 3525ef5027139fe25734435fdf29bb1d5a712be464cb8ae6cad1f24cfffd0d81
  /usr/local/man/man1/mdel.1.gz: 1cb1ba36dcc76fd4cb4c731438fa77977678963d839d235fc7cba94097c32dea
  /usr/local/man/man1/mdeltree.1.gz: 23c38bc6add3fa6a462cf9bf06abcbe2368adb5a678de52bce33b85e032372e5
  /usr/local/man/man1/mdir.1.gz: ea115a2152a497fdf4dbdcd48b0be916f9aa268b9d98946895369e7f201c71e1
  /usr/local/man/man1/mdu.1.gz: d9fdb565be5a008602d9c65a0d823eaa86b730cde45d9325ca191f3839de0c4e
  /usr/local/man/man1/mformat.1.gz: f61bdbb36b040de716926ede6ad20a332615cfe25ee30c3af023ddd5cfe8036a
  /usr/local/man/man1/mkmanifest.1.gz: be72268b5191401f2caccd3705bf4fa5ffb39c6ba004689450d4aef42b3f5469
  /usr/local/man/man1/mlabel.1.gz: 67a4c430e6019dc37fec62cb9040cdf15549f851a52538684ed939a516ec50fa
  /usr/local/man/man1/mmd.1.gz: 5c71010ee34e5e8393229f87a18b1eaa23b8e41cb6c29dda050ee64eca7bd1c1
  /usr/local/man/man1/mmount.1.gz: 767903b344d1455a08d723d4aacb3aea4d627e6d794a4442f4b79c6515c1ea97
  /usr/local/man/man1/mmove.1.gz: 34fcd274cee7829963fd81c1facfc38f5c376dda0f352e3d67f1060968e19682
  /usr/local/man/man1/mpartition.1.gz: 318ed7be6bce53753a7ef899fad04b60f2b39954f7d337c863345c815d83fdbe
  /usr/local/man/man1/mrd.1.gz: 8c9d5b2e05f6aa552d64ecd1fa36fe8551af765c89b0cdaa43c2fd50db2c1832
  /usr/local/man/man1/mread.1.gz: 557b90b5a10fd06c70b8db5b637c9f66856eb1895cfc4650059a3fcdecd97bb2
  /usr/local/man/man1/mren.1.gz: 97260e1e139e5c34cc59d87018c0323b3188bbee71371af0096f91331f1d3ce4
  /usr/local/man/man1/mshowfat.1.gz: 88f73cd8f8e10e3bdc6bbc9818dd15d058caed504e2baecc82bffa15a24b46b6
  /usr/local/man/man1/mtools.1.gz: 9c5ee93dcff3d09a1d0919e3dccf510fb13b50503752cb02905810bd21474153
  /usr/local/man/man1/mtoolstest.1.gz: 7344fbceb8756436821eb9dac21e546cc817025bac859549b42898adf8711c80
  /usr/local/man/man1/mtype.1.gz: f5da13c2eeea94b91bee5e3d2a7525e550630f1e9e09902e470c693696024203
  /usr/local/man/man1/mwrite.1.gz: '-'
  /usr/local/man/man1/mzip.1.gz: 888c3ae3012323c80cc26d0f6faf99c5e12de187c08e22b57adef6c385cece3a
  /usr/local/man/man5/mtools.5.gz: 95e20901f418f1cbfcf71b8ed0efa197676f020d9463bb962ea2a4c0aa368cd2
scripts:
  post-install: |
    ln -fs /usr/local/bin/mtools /usr/local/bin/mattrib
    ln -fs /usr/local/bin/mtools /usr/local/bin/mbadblocks
    ln -fs /usr/local/bin/mtools /usr/local/bin/mcat
    ln -fs /usr/local/bin/mtools /usr/local/bin/mcd
    ln -fs /usr/local/bin/mtools /usr/local/bin/mcopy
    ln -fs /usr/local/bin/mtools /usr/local/bin/mdel
    ln -fs /usr/local/bin/mtools /usr/local/bin/mdeltree
    ln -fs /usr/local/bin/mtools /usr/local/bin/mdir
    ln -fs /usr/local/bin/mtools /usr/local/bin/mdu
    ln -fs /usr/local/bin/mtools /usr/local/bin/mformat
    ln -fs /usr/local/bin/mtools /usr/local/bin/minfo
    ln -fs /usr/local/bin/mtools /usr/local/bin/mlabel
    ln -fs /usr/local/bin/mtools /usr/local/bin/mmd
    ln -fs /usr/local/bin/mtools /usr/local/bin/mmount
    ln -fs /usr/local/bin/mtools /usr/local/bin/mmove
    ln -fs /usr/local/bin/mtools /usr/local/bin/mpartition
    ln -fs /usr/local/bin/mtools /usr/local/bin/mrd
    ln -fs /usr/local/bin/mtools /usr/local/bin/mread
    ln -fs /usr/local/bin/mtools /usr/local/bin/mren
    ln -fs /usr/local/bin/mtools /usr/local/bin/mshowfat
    ln -fs /usr/local/bin/mtools /usr/local/bin/mtoolstest
    ln -fs /usr/local/bin/mtools /usr/local/bin/mtype
    ln -fs /usr/local/bin/mtools /usr/local/bin/mwrite
    ln -fs /usr/local/bin/mtools /usr/local/bin/mzip
    file=/usr/local/info/mtools.info
    install-info --quiet /usr/local/info/mtools.info ${file%25/*}/dir
  pre-deinstall: |
    rm /usr/local/bin/mattrib
    rm /usr/local/bin/mbadblocks
    rm /usr/local/bin/mcat
    rm /usr/local/bin/mcd
    rm /usr/local/bin/mcopy
    rm /usr/local/bin/mdel
    rm /usr/local/bin/mdeltree
    rm /usr/local/bin/mdir
    rm /usr/local/bin/mdu
    rm /usr/local/bin/mformat
    rm /usr/local/bin/minfo
    rm /usr/local/bin/mlabel
    rm /usr/local/bin/mmd
    rm /usr/local/bin/mmount
    rm /usr/local/bin/mmove
    rm /usr/local/bin/mpartition
    rm /usr/local/bin/mrd
    rm /usr/local/bin/mread
    rm /usr/local/bin/mren
    rm /usr/local/bin/mshowfat
    rm /usr/local/bin/mtoolstest
    rm /usr/local/bin/mtype
    rm /usr/local/bin/mwrite
    rm /usr/local/bin/mzip
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    file=/usr/local/info/mtools.info
    install-info --quiet --delete /usr/local/info/mtools.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
