mpack port.

This commit is contained in:
angelos 1998-04-29 05:07:09 +00:00
parent 2577b711a0
commit 445d328fb2
8 changed files with 143 additions and 0 deletions

21
converters/mpack/Makefile Normal file
View File

@ -0,0 +1,21 @@
# OpenBSD makefile for: mpack
# Version required: 1.5
# Date created: 29 April 1998
# Whom: Angelos D. Keromytis
#
# $OpenBSD: Makefile,v 1.1.1.1 1998/04/29 05:07:09 angelos Exp $
#
DISTNAME= mpack-1.5-src
PKGNAME= mpack-1.5
CATEGORIES= converters mail news
MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/mpack/
EXTRACT_SUFX= .tar.Z
MAINTAINER= angelos@openbsd.org
WRKSRC= ${WRKDIR}/mpack
MAKEFLAGS= -DDESTDIR=${PREFIX} -f
MAN1= mpack.1 munpack.1
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (mpack-1.5-src.tar.Z) = f41f8aa2ae92d90e1ac03291973e65e4

View File

@ -0,0 +1,38 @@
*** Makefile.bak Fri Feb 17 00:39:41 1995
--- Makefile Mon May 1 18:09:04 1995
***************
*** 1,5 ****
! CFLAGS=$(OPT) $(DEFINES)
! OPT=-O
#Uncomment the following line if your system does not have strchr()
--- 1,5 ----
! CFLAGS+=$(OPT) $(DEFINES)
! #OPT=-O
#Uncomment the following line if your system does not have strchr()
***************
*** 42,51 ****
-mkdir $(DESTDIR)/bin
-mkdir $(DESTDIR)/man
-mkdir $(DESTDIR)/man/man1
! install -s -m 755 mpack $(DESTDIR)/bin
! install -s -m 755 munpack $(DESTDIR)/bin
! install -m 644 unixpk.man $(DESTDIR)/man/man1/mpack.1
! install -m 644 unixunpk.man $(DESTDIR)/man/man1/munpack.1
clean:
rm -f *.o mpack munpack
--- 42,51 ----
-mkdir $(DESTDIR)/bin
-mkdir $(DESTDIR)/man
-mkdir $(DESTDIR)/man/man1
! install -c -s -m 755 mpack $(DESTDIR)/bin
! install -c -s -m 755 munpack $(DESTDIR)/bin
! install -c -m 644 unixpk.man $(DESTDIR)/man/man1/mpack.1
! install -c -m 644 unixunpk.man $(DESTDIR)/man/man1/munpack.1
clean:
rm -f *.o mpack munpack

View File

@ -0,0 +1,54 @@
*** unixos.c.bak Fri Feb 17 00:39:50 1995
--- unixos.c Mon Nov 11 10:19:28 1996
***************
*** 89,95 ****
--- 89,99 ----
strcpy(buf, getenv("TMPDIR"));
}
else {
+ #ifdef __OpenBSD__
+ strcpy(buf, "/var/tmp");
+ #else
strcpy(buf, "/usr/tmp");
+ #endif
}
strcat(buf, "/m-prts-");
p = getenv("USER");
*** unixpk.man.bak Fri Feb 17 00:39:50 1995
--- unixpk.man Mon Nov 11 10:19:46 1996
***************
*** 136,142 ****
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /usr/tmp.
.TP
.B SPLITSIZE
Default value of the -m switch.
--- 136,142 ----
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /var/tmp.
.TP
.B SPLITSIZE
Default value of the -m switch.
*** unixunpk.man.bak Fri Feb 17 00:39:50 1995
--- unixunpk.man Mon Nov 11 10:19:59 1996
***************
*** 107,113 ****
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /usr/tmp.
.SH FILES
.TP
.B $TMPDIR/m-prts-$USER/
--- 107,113 ----
.SH ENVIRONMENT
.TP
.B TMPDIR
! Directory to store temporary files. Default is /var/tmp.
.SH FILES
.TP
.B $TMPDIR/m-prts-$USER/

View File

@ -0,0 +1,19 @@
*** unixpk.c.orig Wed Apr 29 00:34:54 1998
--- unixpk.c Wed Apr 29 00:36:01 1998
***************
*** 165,171 ****
strcpy(fnamebuf, "/tmp");
}
strcat(fnamebuf, "/mpackXXXXXX");
! mktemp(fnamebuf);
outfname = strsave(fnamebuf);
}
--- 165,171 ----
strcpy(fnamebuf, "/tmp");
}
strcat(fnamebuf, "/mpackXXXXXX");
! close(mkstemp(fnamebuf));
outfname = strsave(fnamebuf);
}

View File

@ -0,0 +1 @@
External MIME packer/unpacker.

View File

@ -0,0 +1,5 @@
Mpack and munpack are utilities for encoding and decoding
(respectively) binary files in MIME (Multipurpose Internet Mail
Extensions) format mail messages. For compatibility with older forms
of transferring binary files, the munpack program can also decode
messages in split-uuencoded format.

View File

@ -0,0 +1,4 @@
bin/mpack
bin/munpack
man/man1/mpack.1
man/man1/munpack.1