summaryrefslogtreecommitdiff
path: root/comms/minicom
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-02-11 18:29:26 +0000
committertron <tron@pkgsrc.org>1998-02-11 18:29:26 +0000
commit6f59b84fd04db1e826b160d27bd943efb64dbd3f (patch)
treedebd5ba533d23a4ace72e82d3f945634a27b8321 /comms/minicom
parent328a92513aa66f22d1db570d906b9140be3c5383 (diff)
downloadpkgsrc-6f59b84fd04db1e826b160d27bd943efb64dbd3f.tar.gz
Initial import of FreeBSD's "minicom" port.
Diffstat (limited to 'comms/minicom')
-rw-r--r--comms/minicom/Makefile30
-rw-r--r--comms/minicom/files/md51
-rw-r--r--comms/minicom/patches/patch-aa56
-rw-r--r--comms/minicom/patches/patch-ab81
-rw-r--r--comms/minicom/patches/patch-ac11
-rw-r--r--comms/minicom/patches/patch-ad21
-rw-r--r--comms/minicom/patches/patch-ae12
-rw-r--r--comms/minicom/pkg/COMMENT1
-rw-r--r--comms/minicom/pkg/DESCR9
-rw-r--r--comms/minicom/pkg/PLIST15
-rw-r--r--comms/minicom/scripts/create-dev-link58
11 files changed, 295 insertions, 0 deletions
diff --git a/comms/minicom/Makefile b/comms/minicom/Makefile
new file mode 100644
index 00000000000..d7e970301aa
--- /dev/null
+++ b/comms/minicom/Makefile
@@ -0,0 +1,30 @@
+# ex:ts=8
+# New ports collection makefile for: minicom
+# Version required: 1.74
+# Date created: Fri Dec 01, 1995
+# Whom: obrien@cs.ucdavis.edu
+#
+# $FreeBSD Id: Makefile,v 1.13 1998/01/03 10:58:40 obrien Exp
+#
+
+DISTNAME= ${PKGNAME}.src
+PKGNAME= minicom-1.78
+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 <bsd.port.mk>
diff --git a/comms/minicom/files/md5 b/comms/minicom/files/md5
new file mode 100644
index 00000000000..ebafc8c50e5
--- /dev/null
+++ b/comms/minicom/files/md5
@@ -0,0 +1 @@
+MD5 (minicom-1.78.src.tar.gz) = ba4597cf787e35800206167c99bb50df
diff --git a/comms/minicom/patches/patch-aa b/comms/minicom/patches/patch-aa
new file mode 100644
index 00000000000..c73c1e7eb17
--- /dev/null
+++ b/comms/minicom/patches/patch-aa
@@ -0,0 +1,56 @@
+--- Makefile.orig Sun Apr 28 07:16:29 1996
++++ Makefile Sat Jan 3 02:45:02 1998
+@@ -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
++BINDIR = ${PREFIX}/bin
++LIBDIR = ${PREFIX}/etc/minicom
+ ##DOCDIR = /usr/local/share/minicom
+-# DOCDIR = /usr/local/etc/minicom
+-# MANDIR = /usr/local/man/man1
++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
+-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
++#FLAGS = -Wall -D_POSIX -D_SYSV -D_SELECT -D_HAVE_MACROS # -I/usr/include/ncurses
+ #PROGS = minicom runscript ascii-xfr
+ #LFLAGS = -s
+-#LIBS = -ltermcap
++#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 = -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..1fa580ff0ae
--- /dev/null
+++ b/comms/minicom/patches/patch-ab
@@ -0,0 +1,81 @@
+--- install.sh.orig Sat Sep 27 10:21:12 1997
++++ install.sh Sat Jan 10 01:16:04 1998
+@@ -29,6 +29,7 @@
+ exit 1
+ fi
+ fi
++chown uucp $1
+
+ if test ! -d $2
+ then
+@@ -47,8 +48,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 +60,7 @@
+ cp $i $2/$i
+ chmod 755 $2/$i
+ chown root $2/$i
+- chgrp root $2/$i
++ chgrp bin $2/$i
+ fi
+ done
+
+@@ -69,7 +70,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 +79,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 +87,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,7 +99,7 @@
+ 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."
+@@ -109,9 +110,10 @@
+ rm minicom.o
+ 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/patches/patch-ae b/comms/minicom/patches/patch-ae
new file mode 100644
index 00000000000..50222cb15f1
--- /dev/null
+++ b/comms/minicom/patches/patch-ae
@@ -0,0 +1,12 @@
+--- minicom.c.orig Sat Sep 27 17:03:30 1997
++++ minicom.c Fri Jan 9 19:59:13 1998
+@@ -530,7 +530,8 @@
+ /* Loop again if more options */
+ } while(optind < argk);
+
+- if (real_uid == 0 && dosetup == 0) {
++ /* also allow root to run minicom with `-d' switch */
++ if (real_uid == 0 && dosetup == 0 && cmd_dial == NULL) {
+ fprintf(stderr, "%s%s%s",
+ "minicom: WARNING: please don't run minicom as root when not maintaining\n",
+ " it (with the -s switch) since all changes to the\n",
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..c99d4b02e68
--- /dev/null
+++ b/comms/minicom/pkg/PLIST
@@ -0,0 +1,15 @@
+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
+@exec /usr/sbin/chown uucp %D/etc/minicom
+@unexec /bin/rm -rf %D/etc/minicom/*
+@dirrm etc/minicom
diff --git a/comms/minicom/scripts/create-dev-link b/comms/minicom/scripts/create-dev-link
new file mode 100644
index 00000000000..5d069972079
--- /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 uucp, and group dialer."
+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