add NO_CDROM to kermit, remove broken minicom

This commit is contained in:
marc 1998-04-10 05:55:03 +00:00
parent 50c6ee3d87
commit 0d4cc14d99
13 changed files with 4 additions and 323 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.4 1998/01/03 21:53:58 joey Exp $
# $OpenBSD: Makefile,v 1.5 1998/04/10 05:55:03 marc Exp $
# $FreeBSD: Makefile,v 1.27 1997/11/22 14:56:56 peter Exp $
#
@ -9,7 +9,7 @@
SUBDIR += kermit
# SUBDIR += lrzsz
# SUBDIR += mgetty+sendfax
SUBDIR += minicom
# SUBDIR += minicom
# SUBDIR += qpage
SUBDIR += rzsz
SUBDIR += seyon

View File

@ -3,12 +3,13 @@
# Date created: Dec 31, 1997
# Whom: ejovi
#
# $OpenBSD: Makefile,v 1.3 1998/03/03 21:45:42 marc Exp $
# $OpenBSD: Makefile,v 1.4 1998/04/10 05:55:05 marc Exp $
#
DISTNAME= cku192src
PKGNAME= kermit-6.0.192
CATEGORIES= comms
NO_CDROM= "NOFEE: Can not sell"
MASTER_SITES= ftp://kermit.columbia.edu/kermit/archives/ \
ftp://ftp.th-darmstadt.de/pub/networking/kermit/ \

View File

@ -1,30 +0,0 @@
# 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.2 1998/03/04 22:47:44 marc Exp $
#
DISTNAME= minicom-1.75
CATEGORIES= comms
MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/software/
MAINTAINER= obrien@FreeBSD.org
BROKEN= "Run time requires package not yet ported to OpenBSD"
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>

View File

@ -1 +0,0 @@
MD5 (minicom-1.75.tar.gz) = 703b21734c91c33b82850919f26b31b4

View File

@ -1,57 +0,0 @@
--- Makefile.orig Sun Apr 28 07:16:29 1996
+++ Makefile Tue Mar 3 14:28:58 1998
@@ -12,17 +12,16 @@
#
# 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
+# Where to install things for OpenBSD sites.
+BINDIR = $(PREFIX)/bin
+LIBDIR = $(PREFIX)/lib/minicom
+DOCDIR = $(PREFIX)/share/doc/minicom
+MANDIR = $(PREFIX)/man/man1
# Where to install things for "normal" sites.
# BINDIR = /usr/local/bin
@@ -38,18 +37,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

View File

@ -1,71 +0,0 @@
--- 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

View File

@ -1,11 +0,0 @@
--- 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);

View File

@ -1,21 +0,0 @@
--- 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

View File

@ -1,49 +0,0 @@
--- util.c.~1~ Thu Jan 25 01:52:25 1996
+++ util.c Wed Mar 4 12:42:55 1998
@@ -162,10 +162,12 @@
void drop_all_privs()
{
#ifdef HAS_REUID
+#if ! BSD4_4
/* Regain privs needed to drop privs :) */
setregid(real_gid, eff_gid);
setreuid(real_uid, eff_uid);
#endif
+#endif
/* Drop it. */
setgid(real_gid);
@@ -179,9 +181,16 @@
void drop_privs()
{
#ifdef HAS_REUID
+# if BSD4_4
+ setegid( real_gid );
+ if ( seteuid( real_uid ) < 0 )
+ fprintf(stderr, "minicom: cannot seteuid(%d)\n", real_uid);
+
+# else
setregid(eff_gid, real_gid);
if (setreuid(eff_uid, real_uid) < 0)
fprintf(stderr, "minicom: cannot setreuid(%d, %d)\n", eff_uid, real_uid);
+# endif
not_suid = 1;
#endif
}
@@ -190,9 +199,16 @@
void set_privs()
{
#ifdef HAS_REUID
+# if BSD4_4
+ setegid( eff_gid );
+ if ( seteuid( eff_uid ) < 0 )
+ fprintf(stderr, "minicom: cannot seteuid(%d)\n", eff_uid);
+
+# else
setregid(real_gid, eff_gid);
if (setreuid(real_uid, eff_uid) < 0)
fprintf(stderr, "minicom: cannot setreuid(%d, %d)\n", real_uid, eff_uid);
+# endif
not_suid = 0;
#endif
}

View File

@ -1 +0,0 @@
An MS-DOS Telix serial communication program "workalike".

View File

@ -1,9 +0,0 @@
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)

View File

@ -1,12 +0,0 @@
bin/minicom
bin/xminicom
bin/runscript
bin/ascii-xfr
lib/minicom/minicom.users
lib/minicom/htsalogin
lib/minicom/saralogin
lib/minicom/scriptdemo
lib/minicom/unixlogin
man/man1/minicom.1.gz
man/man1/runscript.1.gz
man/man1/ascii-xfr.1.gz

View File

@ -1,58 +0,0 @@
#!/bin/sh -
#
# pre-install script for Minicom port to OpenBSD
echo ""
echo "Minicom will be installed mode 4510 (setuid) owner uucp, 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 cua*
echo ""
echo -n "Enter the numbers/letters (*) from cua* above : "
read bar
if [ ${bar} ] ; then
if [ -e /dev/cua${bar} ]; then
ln -s /dev/cua${bar} /dev/modem
else
echo "Error: /dev/cua${bar} doesn't exist."
exit 1
fi
fi
fi
fi
echo ""
exit 0