Initial import of mc version 4.1.35.

The Midnight Commander is a free Norton Commander Clone with many useful 
features.

Submitted by:	Ryan Erwin <ryan@erwin.org>
This commit is contained in:
kevlo 2000-02-03 02:11:32 +00:00
parent 5d07ca24c3
commit 4a445c5fef
10 changed files with 137 additions and 0 deletions

17
misc/mc/Makefile Normal file
View File

@ -0,0 +1,17 @@
# $OpenBSD: Makefile,v 1.1.1.1 2000/02/03 02:11:32 kevlo Exp $
DISTNAME= mc-4.1.35
CATEGORIES= misc
MAINTAINER= ryan@erwin.org
MASTER_SITES= ftp://ftp.nodomainname.net/pub/mirrors/gnu/mc/ \
ftp://ftp.cdrom.com/.1/gnu/mc/ \
ftp://labrea.stanford.edu/pub/gnu/mc/ \
ftp://aeneas.mit.edu/pub/gnu/mc/ \
ftp://ftp.cs.ubc.ca/mirror2/gnu/mc/ \
ftp://core.ring.gr.jp/pub/GNU/mc/ \
ftp://ftp.gnu.org/pub/gnu/mc/
DISTFILES= ${DISTNAME}.tar.gz
GNU_CONFIGURE= yes
.include <bsd.port.mk>

3
misc/mc/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (mc-4.1.35.tar.gz) = b563fdffb6b25b9f75bb019c2f9f70a2
RMD160 (mc-4.1.35.tar.gz) = 87949478a70ad55e0a8043e79965fd975bc15ee4
SHA1 (mc-4.1.35.tar.gz) = bb5e9b4a3589c850140b2d4a83dd65411cb6c93b

11
misc/mc/patches/patch-aa Normal file
View File

@ -0,0 +1,11 @@
--- src/user.c.orig Sun Jan 16 01:19:51 2000
+++ src/user.c Sun Jan 16 01:20:08 2000
@@ -497,7 +497,7 @@ void execute_menu_command (char *s)
int do_quote;
char prompt [80] = "";
int col;
- char *file_name = tmpnam (0);
+ char *file_name = mkstemp (0);
#ifdef OS2_NT
/* OS/2 and NT requires the command to end in .cmd */

11
misc/mc/patches/patch-ab Normal file
View File

@ -0,0 +1,11 @@
--- src/ext.c.orig Sun Jan 16 01:20:19 2000
+++ src/ext.c Sun Jan 16 01:20:38 2000
@@ -133,7 +133,7 @@ exec_extension (char *filename, char *da
/* Note: this has to be done after the getlocalcopy call,
* since it uses tmpnam as well
*/
- file_name = strdup (tmpnam (NULL));
+ file_name = strdup (mkstemp (NULL));
if ((cmd_file_fd = open (file_name, O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600)) == -1){
message (1, MSG_ERROR, _(" Can't create temporary command file \n %s "),

11
misc/mc/patches/patch-ac Normal file
View File

@ -0,0 +1,11 @@
--- vfs/vfs.c.orig Sun Jan 16 01:26:28 2000
+++ vfs/vfs.c Sun Jan 16 01:26:50 2000
@@ -1274,7 +1274,7 @@ char *mc_def_getlocalcopy (char *filenam
fdin = mc_open (filename, O_RDONLY);
if (fdin == -1)
return NULL;
- tmp = tmpnam(NULL);
+ tmp = mkstemp(NULL);
fdout = creat (tmp, 0600);
if (fdout == -1) {
mc_close (fdin);

11
misc/mc/patches/patch-ad Normal file
View File

@ -0,0 +1,11 @@
--- vfs/tar.c.orig Sun Jan 16 01:27:50 2000
+++ vfs/tar.c Sun Jan 16 01:28:27 2000
@@ -345,7 +345,7 @@ static INLINE int uncompress_tar_file (
char buffer [8192]; /* Changed to 8K: better transfer size */
current_archive->is_gzipped = tar_uncompressed_local;
- current_archive->tmpname = strdup (tmpnam (NULL));
+ current_archive->tmpname = strdup (mkstemp (NULL));
/* Some security is sometimes neccessary :) */
command = copy_strings ("touch ", current_archive->tmpname,

11
misc/mc/patches/patch-ae Normal file
View File

@ -0,0 +1,11 @@
--- vfs/extfs.c.orig Sun Jan 16 01:31:07 2000
+++ vfs/extfs.c Sun Jan 16 01:31:27 2000
@@ -749,7 +749,7 @@ static void *extfs_open (char *file, int
if (entry->inode->local_filename == NULL) {
char *cmd, *archive_name;
- entry->inode->local_filename = strdup (tmpnam (NULL));
+ entry->inode->local_filename = strdup (mkstemp (NULL));
p = extfs_get_path_from_entry (entry);
q = name_quote (p, 0);
free (p);

1
misc/mc/pkg/COMMENT Normal file
View File

@ -0,0 +1 @@
free Norton Commander Clone with many useful features

18
misc/mc/pkg/DESCR Normal file
View File

@ -0,0 +1,18 @@
The Midnight Commander is a directory browsing tool which bears a
certain remote resemblance to John Socha's Norton Commander for DOS.
It is feature packed:
o Built in Virtual File System: manipulate remote files
systems through the ftp protocol or Midnight Commander's own
mcfs protocol. Browse tar, compressed tar files, rpm, zip,
cpio, lha and rar files with a single click.
o All of the Midnight Commander operations work with the virtual
file system, enabling you to do complex tasks.
o Mouse support on the Linux console and under X11's xterms.
o Note that the key binding to use the menu and to exit from
Midnight Commander are F9 and F10 respectively. Since OpenBSD
uses these keys to swap VT's, you must hit 'Esc' + 9 and
'Esc' + 0 to use the menu's and to exit

43
misc/mc/pkg/PLIST Normal file
View File

@ -0,0 +1,43 @@
bin/mc
bin/mcedit
bin/mcmfmt
bin/mcserv
lib/mc/FAQ
lib/mc/bin/mcfn_install
lib/mc/extfs/README
lib/mc/extfs/a
lib/mc/extfs/arfs
lib/mc/extfs/cpio
lib/mc/extfs/deb
lib/mc/extfs/extfs.ini
lib/mc/extfs/ftplist
lib/mc/extfs/hp48
lib/mc/extfs/lha
lib/mc/extfs/lslR
lib/mc/extfs/rar
lib/mc/extfs/rpm
lib/mc/extfs/zip
lib/mc/extfs/zoo
lib/mc/mc.ext
lib/mc/mc.hint
lib/mc/mc.hlp
lib/mc/mc.lib
lib/mc/mc.menu
lib/mc/term/README.xterm
lib/mc/term/ansi.ti
lib/mc/term/linux.ti
lib/mc/term/vt100.ti
lib/mc/term/xterm.ad
lib/mc/term/xterm.tcap
lib/mc/term/xterm.ti
man/man1/mc.1
man/man1/mcedit.1
man/man8/mcserv.8
share/locale/es/LC_MESSAGES/mc.mo
share/locale/fr/LC_MESSAGES/mc.mo
share/locale/ru/LC_MESSAGES/mc.mo
@dirrm share/icons/mc
@dirrm share/icons
@dirrm lib/mc/term
@dirrm lib/mc/extfs
@dirrm lib/mc/bin