diff --git a/comms/minicom/Makefile b/comms/minicom/Makefile new file mode 100644 index 00000000000..026464c1d02 --- /dev/null +++ b/comms/minicom/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: minicom +# Version required: 1.74 +# Date created: Fri Dec 01, 1995 +# Whom: obrien@cs.ucdavis.edu +# +# $Id: Makefile,v 1.1.1.1 1997/12/31 16:28:39 joey Exp $ +# + +DISTNAME= minicom-1.75 +CATEGORIES= comms +MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/software/ + +MAINTAINER= obrien@FreeBSD.org + +RUN_DEPENDS= lrz:${PORTSDIR}/comms/lrzsz \ + lsz:${PORTSDIR}/comms/lrzsz \ + kermit:${PORTSDIR}/comms/kermit + +WRKSRC= ${WRKDIR}/${PKGNAME}/src +MAN1= minicom.1 runscript.1 ascii-xfr.1 + +.if !defined(BATCH) +pre-install: + # this script creates a link from your comm port to /dev/modem + ${SH} ${SCRIPTDIR}/create-dev-link +.endif + +.include diff --git a/comms/minicom/files/md5 b/comms/minicom/files/md5 new file mode 100644 index 00000000000..3247cb2ec18 --- /dev/null +++ b/comms/minicom/files/md5 @@ -0,0 +1 @@ +MD5 (minicom-1.75.tar.gz) = 703b21734c91c33b82850919f26b31b4 diff --git a/comms/minicom/patches/patch-aa b/comms/minicom/patches/patch-aa new file mode 100644 index 00000000000..d6179748ccc --- /dev/null +++ b/comms/minicom/patches/patch-aa @@ -0,0 +1,57 @@ +--- Makefile.orig Sun Apr 28 07:16:29 1996 ++++ Makefile Tue Jul 9 00:18:00 1996 +@@ -12,17 +12,17 @@ + # + + # Where to install things for Linux sites (FSSTND) +-BINDIR = /usr/bin +-LIBDIR = /etc +-DOCDIR = /usr/doc/examples/minicom +-MANDIR = /usr/man/man1 ++###BINDIR = /usr/bin ++###LIBDIR = /etc ++###DOCDIR = /usr/doc/examples/minicom ++###MANDIR = /usr/man/man1 + + # Where to install things for FreeBSD sites. +-# BINDIR = /usr/local/bin +-# LIBDIR = /usr/local/etc/minicom +-##DOCDIR = /usr/local/share/minicom +-# DOCDIR = /usr/local/etc/minicom +-# MANDIR = /usr/local/man/man1 ++BINDIR = $(PREFIX)/bin ++LIBDIR = $(PREFIX)/etc/minicom ++##DOCDIR = $(PREFIX)/share/minicom ++DOCDIR = $(PREFIX)/etc/minicom ++MANDIR = $(PREFIX)/man/man1 + + # Where to install things for "normal" sites. + # BINDIR = /usr/local/bin +@@ -38,18 +38,18 @@ + #CC = cc + + # Take these compilation flags for Linux with ncurses. +-FLAGS = -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS # -I/usr/include/ncurses ++###FLAGS = -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS # -I/usr/include/ncurses ++###PROGS = minicom runscript ascii-xfr ++###LFLAGS = -s ++###LIBS = -lncurses ++###CC = cc ++ ++# Take these compilation flags for FreeBSD. ++FLAGS = -Wall -D_POSIX -D_BSD43 -D_SELECT -D_HAVE_MACROS -D_DCDFLOW + PROGS = minicom runscript ascii-xfr + LFLAGS = -s +-LIBS = -lncurses ++LIBS = -ltermcap + CC = cc +- +-# Take these compilation flags for FreeBSD. +-#FLAGS = -Wall -D_POSIX -D_BSD43 -D_SELECT -D_HAVE_MACROS -D_DCDFLOW +-#PROGS = minicom runscript ascii-xfr +-#LFLAGS = -s +-#LIBS = -ltermcap +-#CC = cc + + # Take these flags for SCO unix. + #FLAGS = -D_SYSV -D_SCO -D_POSIX -D_SELECT -D_HAVE_MACROS diff --git a/comms/minicom/patches/patch-ab b/comms/minicom/patches/patch-ab new file mode 100644 index 00000000000..28b7dd6c649 --- /dev/null +++ b/comms/minicom/patches/patch-ab @@ -0,0 +1,71 @@ +--- install.sh.orig Sun Mar 10 07:32:20 1996 ++++ install.sh Mon Dec 9 16:59:43 1996 +@@ -47,8 +47,8 @@ + echo "Installing minicom in $2" + cp minicom $2/minicom + chmod 755 $2/minicom +- chown root $2/minicom +- chgrp root $2/minicom ++ chown uucp $2/minicom ++ chgrp dialer $2/minicom + fi + + for i in runscript xminicom ascii-xfr +@@ -59,7 +59,7 @@ + cp $i $2/$i + chmod 755 $2/$i + chown root $2/$i +- chgrp root $2/$i ++ chgrp dialer $2/$i + fi + done + +@@ -69,7 +69,7 @@ + cp keyserv $1/keyserv + chmod 755 $1/keyserv + chown root $1/keyserv +- chgrp root $1/keyserv ++ chgrp bin $1/keyserv + fi + + echo "Installing manpages in $3" +@@ -78,7 +78,7 @@ + cp ../man/$i $3 + chmod 644 $3/$i + chown root $3/$i +- chgrp root $3/$i ++ chgrp bin $3/$i + done + + if [ ! -f $1/minicom.users ] +@@ -86,7 +86,7 @@ + echo "Installing sample config file minicom.users in $1" + cp minicom.users $1 + chown root $1/minicom.users +- chgrp root $1/minicom.users ++ chgrp bin $1/minicom.users + chmod 644 $1/minicom.users + fi + +@@ -98,15 +98,16 @@ + cp ../demos/$i $4/$i + chmod 644 $4/$i + chown root $4/$i +- chgrp root $4/$i ++ chgrp bin $4/$i + done + else + echo "You don't have a $4 directory - script examples not installed." + fi + +-echo "Minicom is NOT setuid yet - you must do this yourself by entering:" +-echo +-echo "chmod +s $2/minicom" +-echo ++###echo "Minicom is NOT setuid yet - you must do this yourself by entering:" ++###echo ++###echo "chmod +s $2/minicom" ++###echo ++chmod u+s $2/minicom + + exit 0 diff --git a/comms/minicom/patches/patch-ac b/comms/minicom/patches/patch-ac new file mode 100644 index 00000000000..bd14ef0a967 --- /dev/null +++ b/comms/minicom/patches/patch-ac @@ -0,0 +1,11 @@ +--- updown.c.orig Sun Oct 13 13:56:18 1996 ++++ updown.c Sun Oct 13 13:58:54 1996 +@@ -150,7 +150,7 @@ + sprintf(cmdline, "%s %s", P_PPROG(g), s); + + if (P_PFULL(g) == 'N') { +- win = wopen(10, 7, 70, 13, BSINGLE, stdattr, mfcolor, mbcolor, 1, 0, 1); ++ win = wopen(5, 5, 74, 11, BSINGLE, stdattr, mfcolor, mbcolor, 1, 0, 1); + sprintf(title, "%.30s %s - Press CTRL-C to quit", P_PNAME(g), + what == 'U' ? "upload" : "download"); + wtitle(win, TMID, title); diff --git a/comms/minicom/patches/patch-ad b/comms/minicom/patches/patch-ad new file mode 100644 index 00000000000..3ee2993f508 --- /dev/null +++ b/comms/minicom/patches/patch-ad @@ -0,0 +1,21 @@ +--- rwconf.c.orig Sun Apr 28 07:22:28 1996 ++++ rwconf.c Sun Nov 24 00:41:47 1996 +@@ -70,12 +70,12 @@ + { "/usr/bin/kermit -i -l %l -r", PUBLIC, "pprog8" }, + #else + /* Most sites have this in /usr/local, except Linux. */ +- { "/usr/local/bin/sz -vv", PUBLIC, "pprog1" }, +- { "/usr/local/bin/sb -vv", PUBLIC, "pprog2" }, +- { "/usr/local/bin/sx -vv", PUBLIC, "pprog3" }, +- { "/usr/local/bin/rz -vv", PUBLIC, "pprog4" }, +- { "/usr/local/bin/rb -vv", PUBLIC, "pprog5" }, +- { "/usr/local/bin/rx -vv", PUBLIC, "pprog6" }, ++ { "/usr/local/bin/lsz -vv", PUBLIC, "pprog1" }, ++ { "/usr/local/bin/lsb -vv", PUBLIC, "pprog2" }, ++ { "/usr/local/bin/lsx -vv", PUBLIC, "pprog3" }, ++ { "/usr/local/bin/lrz -vv", PUBLIC, "pprog4" }, ++ { "/usr/local/bin/lrb -vv", PUBLIC, "pprog5" }, ++ { "/usr/local/bin/lrx -vv", PUBLIC, "pprog6" }, + { "/usr/local/bin/kermit -i -l %l -s", PUBLIC, "pprog7" }, + { "/usr/local/bin/kermit -i -l %l -r", PUBLIC, "pprog8" }, + #endif diff --git a/comms/minicom/pkg/COMMENT b/comms/minicom/pkg/COMMENT new file mode 100644 index 00000000000..e3c08ebc58c --- /dev/null +++ b/comms/minicom/pkg/COMMENT @@ -0,0 +1 @@ +An MS-DOS Telix serial communication program "workalike". diff --git a/comms/minicom/pkg/DESCR b/comms/minicom/pkg/DESCR new file mode 100644 index 00000000000..7f11c286803 --- /dev/null +++ b/comms/minicom/pkg/DESCR @@ -0,0 +1,9 @@ +Minicom is a serial communication program. It is a un*x clone of the +well-known MS-DOS Telix program. It has ANSI color, dialing directory, +dial-a-list, script language, file up/download support, screen capture, +scroll-back, etc. + +The author is Miquel van Smoorenburg (miquels@cistron.nl -or- +miquels@drinkel.ow.org). Note, minicom is covered by the GNU GPL. + +-- David (obrien@cs.ucdavis.edu) diff --git a/comms/minicom/pkg/PLIST b/comms/minicom/pkg/PLIST new file mode 100644 index 00000000000..1b8ef5a7d4e --- /dev/null +++ b/comms/minicom/pkg/PLIST @@ -0,0 +1,12 @@ +bin/minicom +bin/xminicom +bin/runscript +bin/ascii-xfr +etc/minicom/minicom.users +etc/minicom/htsalogin +etc/minicom/saralogin +etc/minicom/scriptdemo +etc/minicom/unixlogin +man/man1/minicom.1.gz +man/man1/runscript.1.gz +man/man1/ascii-xfr.1.gz diff --git a/comms/minicom/scripts/create-dev-link b/comms/minicom/scripts/create-dev-link new file mode 100755 index 00000000000..02c6e8db70a --- /dev/null +++ b/comms/minicom/scripts/create-dev-link @@ -0,0 +1,58 @@ +#!/bin/sh - +# +# pre-install script for Minicom port to FreeBSD 2.x + +echo "" +echo "Minicom will be installed mode 4511 (setuid) owner root, and group bin." +echo "" +echo -n "Is this ok? [y] " + read fooz + if [ ! ${fooz} ] ; then + fooz=Y + fi + if [ ${fooz} = Y -o ${fooz} = y -o ${fooz} = yes ] ; then + # ok to continue + else + echo "" + exit 1 + fi + + +echo "" +echo "Minicom needs to know what device your modem is hanging off of." +echo "I (the porter) have adopted Satoshi Asami's lead of using /dev/modem." +echo "" +echo -n "Lets see if you have too..." + +# might want to test for ``-h'' rather than ``-e'' +if [ -e /dev/modem ]; then + echo " Good you do:" + /bin/ls -l /dev/modem +else + echo "Nope, you haven't (yet)." + echo "The patches to Minicom hardcode /dev/modem." + echo -n "Would you like me to make this link for you? [Y] " + read foo + if [ ! ${foo} ] ; then + foo=Y + fi + if [ ${foo} = Y -o ${foo} = y -o ${foo} = yes ] ; then + echo "From the list below, what port number is your modem attached to?" + cd /dev + /bin/ls -C cuaa* + echo "" + echo -n "Enter the number X from cuaaX above : " + read bar + if [ ${bar} ] ; then + if [ -e /dev/cuaa${bar} ]; then + ln -s /dev/cuaa${bar} /dev/modem + else + echo "Error: /dev/cuaa${bar} doesn't exist." + exit 1 + fi + fi + fi +fi + +echo "" +exit 0