Mc

From CBLFS
Revision as of 10:09, 29 July 2008 by Xep (talk | contribs) (fix broken link)
Jump to navigationJump to search
Download Source: ftp://ftp.gnu.org/gnu/mc/mc-4.6.2-pre1.tar.gz
Recommended Patch: http://svn.cross-lfs.org/svn/repos/patches/mc-4.6.2/mc-4.6.2-pre1-debian_fixes-1.patch

Introduction to Mc

MC (Midnight Commander) is a text-mode full-screen file manager and visual shell. It provides a clear, user-friendly, and somewhat protected interface to a Unix system while making many frequent file operations more efficient and preserving the full power of the command prompt.

Project Homepage: http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/

Dependencies

Required

Recommended

Optional

Non-Multilib

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc \
   --libexecdir=/usr/lib --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib/mc/cons.saver

32Bit

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CC="gcc ${BUILD32}" CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib \
   --libexecdir=/usr/lib --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib/mc/cons.saver

N32

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CC="gcc ${BUILDN32}" CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib32 \
   --libexecdir=/usr/lib32 --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib32/mc/cons.saver

64Bit

Compile the package:

patch -Np1 -i ../mc-4.6.2-pre1-debian_fixes-1.patch &&
CC="gcc ${BUILD64}" CPPFLAGS="-DUTF8" \
./configure --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 \
   --libexecdir=/usr/lib64 --enable-mcfs \
   --enable-charset --enable-extcharset &&
make

Convert docs to UTF-8:

convert-mans ISO-8859-1 UTF-8 lib/mc.hint{,.es,.it,.nl} &&
convert-mans ISO-8859-2 UTF-8 lib/mc.hint{.cs,.hu,.pl} &&
convert-mans ISO-8859-5 UTF-8 lib/mc.hint.sr &&
convert-mans KOI8-R UTF-8 lib/mc.hint.ru &&
convert-mans KOI8-U UTF-8 lib/mc.hint.uk &&
convert-mans BIG5 UTF-8 lib/mc.hint.zh &&
convert-mans ISO-8859-1 UTF-8 doc/{es,it}/mc.hlp.* &&
convert-mans ISO-8859-2 UTF-8 doc/{hu,pl}/mc.hlp.* &&
convert-mans ISO-8859-5 UTF-8 doc/sr/mc.hlp.sr &&
convert-mans KOI8-R UTF-8 doc/ru/mc.hlp.ru

Install the package

make install &&
install -v -m755 -d /etc/mc &&
install -v -m644 lib/mc.{ext,menu,lib} /etc/mc &&
chmod -v 1755 /usr/lib64/mc/cons.saver

Contents

Installed Programs: cons.saver, mc, mcedit, mcmfmt, mcview
Installed Libraries: None
Installed Directories: /etc/mc, /usr/share/mc, /usr/lib/mc

Short Descriptions

cons.saver is used internally by mc for saving and restoring the text behind the panels on Linux text console.
mc is a visual shell.
mcedit is an internal file editor.
mcmfmt is used internally by mcview when viewing mailbox files.
mcview is an internal file viewer.
Retrieved from "?title=Mc&oldid=14916"