summaryrefslogtreecommitdiff
path: root/comms/modemd
diff options
context:
space:
mode:
authorfrueauf <frueauf>1998-03-20 11:05:17 +0000
committerfrueauf <frueauf>1998-03-20 11:05:17 +0000
commitfabf9554c979f87cab13595010191892c9fd468d (patch)
tree394c38dd450c0ffd064abb9e1e9f5da8b78de1b0 /comms/modemd
parent97b57512d7b25a853f248c8eb0e65d3278d047d4 (diff)
downloadpkgsrc-fabf9554c979f87cab13595010191892c9fd468d.tar.gz
Initial import of modemd package done by Ty Sarna <tsarna@endicor.com>
with little cleanups/modifications by me. Closes pr 4678.
Diffstat (limited to 'comms/modemd')
-rw-r--r--comms/modemd/Makefile20
-rw-r--r--comms/modemd/files/md51
-rw-r--r--comms/modemd/patches/patch-aa15
-rw-r--r--comms/modemd/patches/patch-ab19
-rw-r--r--comms/modemd/patches/patch-ac19
-rw-r--r--comms/modemd/patches/patch-ad11
-rw-r--r--comms/modemd/patches/patch-ae13
-rw-r--r--comms/modemd/patches/patch-af23
-rw-r--r--comms/modemd/patches/patch-ag11
-rw-r--r--comms/modemd/patches/patch-ah14
-rw-r--r--comms/modemd/patches/patch-ai7
-rw-r--r--comms/modemd/pkg/COMMENT1
-rw-r--r--comms/modemd/pkg/DESCR4
-rw-r--r--comms/modemd/pkg/PLIST11
14 files changed, 169 insertions, 0 deletions
diff --git a/comms/modemd/Makefile b/comms/modemd/Makefile
new file mode 100644
index 00000000000..34d5bf80370
--- /dev/null
+++ b/comms/modemd/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: modemd
+# Version required: 970221
+# Date created: 12 December 1997
+# Whom: tsarna@endicor.com
+#
+# $NetBSD: Makefile,v 1.1 1998/03/20 11:05:17 frueauf Exp $
+
+DISTNAME= modemd-970221
+CATEGORIES= comms
+MASTER_SITES= ftp://ftp.vix.com/pub/modemd/
+
+MAINTAINER= tsarna@endicor.com
+
+# Do not list MAN/CAT pages here. It will confuse if MANZ is set.
+# The pkg uses BSD-style-Makefiles itself, so it does the right thing.
+
+pre-install:
+ ${MKDIR} ${PREFIX}/share/examples/modemd
+
+.include <bsd.port.mk>
diff --git a/comms/modemd/files/md5 b/comms/modemd/files/md5
new file mode 100644
index 00000000000..6a3cd1b70c6
--- /dev/null
+++ b/comms/modemd/files/md5
@@ -0,0 +1 @@
+MD5 (modemd-970221.tar.gz) = 92f501361161074206e9bb2761055182
diff --git a/comms/modemd/patches/patch-aa b/comms/modemd/patches/patch-aa
new file mode 100644
index 00000000000..2f60ba43b25
--- /dev/null
+++ b/comms/modemd/patches/patch-aa
@@ -0,0 +1,15 @@
+--- common/Makefile.orig Tue Sep 10 02:11:06 1996
++++ common/Makefile Tue Mar 3 17:41:28 1998
+@@ -3,8 +3,11 @@
+ LIB=modemd
+ # Don't need a profiled library...
+ NOPROFILE=
++NOPIC=
+
+-CFLAGS += -I${.CURDIR}/.. -I${.CURDIR}/../include
++CPPFLAGS += -I${.CURDIR}/.. -I${.CURDIR}/../include
++
++install:
+
+ .include "../Makefile.inc"
+ .include <bsd.lib.mk>
diff --git a/comms/modemd/patches/patch-ab b/comms/modemd/patches/patch-ab
new file mode 100644
index 00000000000..22f55a750e1
--- /dev/null
+++ b/comms/modemd/patches/patch-ab
@@ -0,0 +1,19 @@
+--- common/ttio.c.orig Sat Feb 22 00:06:09 1997
++++ common/ttio.c Tue Mar 3 17:19:06 1998
+@@ -73,6 +73,16 @@
+ {
+ if (chown (nbuf, pw -> pw_uid, pw -> pw_gid) < 0)
+ warn ("Can't set owner on %s: %m", nbuf);
++#ifdef __NetBSD__
++ if (chmod (nbuf, 0600) < 0)
++ warn ("Can't set mode on %s: %m", nbuf);
++ revoke(nbuf);
++ if (ttyaction(nbuf, "modemd", "root"))
++ warn ("Can't ttyaction %s: %m", nbuf);
++
++ /* delay open so DTR stays down long enough to be detected */
++ usleep(100);
++#endif
+ }
+
+ /* Open the terminal device. */
diff --git a/comms/modemd/patches/patch-ac b/comms/modemd/patches/patch-ac
new file mode 100644
index 00000000000..1218355fad1
--- /dev/null
+++ b/comms/modemd/patches/patch-ac
@@ -0,0 +1,19 @@
+--- incoming/ppp.c.orig Tue Sep 10 02:35:12 1996
++++ incoming/ppp.c Tue Mar 3 17:19:05 1998
+@@ -46,6 +46,7 @@
+ #include "mcap.h"
+ #include <sys/time.h>
+ #include <signal.h>
++#include <stdlib.h>
+
+ #define EOF -1
+
+@@ -125,7 +126,7 @@
+ if (!lbuf)
+ error ("Can't allocate space for login string.\n");
+ strcpy (lbuf, modemcap.program);
+- strcat (lbuf, " ");
++ strcat (lbuf, " -- ");
+ strcat (lbuf, (char *)ibuf);
+ modemcap.program = lbuf;
+ return;
diff --git a/comms/modemd/patches/patch-ad b/comms/modemd/patches/patch-ad
new file mode 100644
index 00000000000..f0ae4802f01
--- /dev/null
+++ b/comms/modemd/patches/patch-ad
@@ -0,0 +1,11 @@
+--- incoming/Makefile.orig Tue Sep 10 03:08:00 1996
++++ incoming/Makefile Tue Mar 3 17:19:06 1998
+@@ -5,7 +5,7 @@
+
+ LIBDIR = ${.OBJDIR:S/incoming/common/g}
+ DPADD = ${LIBDIR}/libmodemd.a
+-LDADD = ${DPADD}
++LDADD = ${DPADD} -lutil
+
+ CFLAGS += -I${.CURDIR}/.. -I${.CURDIR}/../include
+
diff --git a/comms/modemd/patches/patch-ae b/comms/modemd/patches/patch-ae
new file mode 100644
index 00000000000..730af5374d4
--- /dev/null
+++ b/comms/modemd/patches/patch-ae
@@ -0,0 +1,13 @@
+--- incoming/modemd.8.orig Mon Sep 9 09:02:45 1996
++++ incoming/modemd.8 Tue Mar 3 17:19:07 1998
+@@ -16,7 +16,9 @@
+ modem. Each instance of
+ .Xr modemd 8
+ initializes its modem to a known
+-state, and then waits either for the modem to report that the
++state, runs ttyaction(3) on the line with the action
++``modemd'', user ``root''
++and then waits either for the modem to report that the
+ telephone line to which it is attached is ringing, or for some process
+ which understands uucico-style tty locking to take the modem for its
+ own use.
diff --git a/comms/modemd/patches/patch-af b/comms/modemd/patches/patch-af
new file mode 100644
index 00000000000..77db0e7bcb8
--- /dev/null
+++ b/comms/modemd/patches/patch-af
@@ -0,0 +1,23 @@
+--- modemcap/Makefile.orig Tue Sep 10 03:08:00 1996
++++ modemcap/Makefile Tue Mar 3 17:21:39 1998
+@@ -1,6 +1,9 @@
+ MAN5=modemcap.0
+ MAN=modemcap.5
+
++FILES=modemcap
++FILESDIR=$(LOCALBASE)/share/examples/modemd
++
+ .SUFFIXES: .8 .7 .6 .5 .4 .3 .2 .1 .0 .ps
+
+ .8.0 .7.0 .6.0 .5.0 .4.0 .3.0 .2.0 .1.0:
+@@ -9,9 +12,7 @@
+ all: ${MAN5}
+
+ .include "../Makefile.inc"
+-.include <bsd.man.mk>
+-
+-install: maninstall
++.include <bsd.prog.mk>
+
+ clean:
+ rm ${MAN5}
diff --git a/comms/modemd/patches/patch-ag b/comms/modemd/patches/patch-ag
new file mode 100644
index 00000000000..6ba62c2fbee
--- /dev/null
+++ b/comms/modemd/patches/patch-ag
@@ -0,0 +1,11 @@
+--- outgoing/Makefile.orig Tue Sep 10 03:08:00 1996
++++ outgoing/Makefile Tue Mar 3 17:19:07 1998
+@@ -8,7 +8,7 @@
+ CFLAGS += -I${.CURDIR}/.. -I${.CURDIR}/../include
+
+ DPADD = ${LIBDIR}/libmodemd.a
+-LDADD = ${DPADD}
++LDADD = ${DPADD} -lutil
+
+ .include "../Makefile.inc"
+ .include <bsd.prog.mk>
diff --git a/comms/modemd/patches/patch-ah b/comms/modemd/patches/patch-ah
new file mode 100644
index 00000000000..e4d777ab1e8
--- /dev/null
+++ b/comms/modemd/patches/patch-ah
@@ -0,0 +1,14 @@
+--- outgoing/mpoold.8.orig Tue Sep 10 02:27:44 1996
++++ outgoing/mpoold.8 Tue Mar 3 17:19:07 1998
+@@ -40,6 +40,11 @@
+ .Xr getty 8
+ or similar programs, since it would be easy for an unscrupulous user
+ to set up a trojan horse to answer the modem and collect passwords.
++.Sh BUGS
++.Xr mpoold 8
++should not run
++.Xr ttyaction 3
++on the tty with action ``modemd'', user ``root'', but it does anyway.
+ .Sh DIAGNOSTICS
+ See the documentation for
+ .Xr Mpoold 8
diff --git a/comms/modemd/patches/patch-ai b/comms/modemd/patches/patch-ai
new file mode 100644
index 00000000000..96fd07f4f4a
--- /dev/null
+++ b/comms/modemd/patches/patch-ai
@@ -0,0 +1,7 @@
+--- Makefile.inc.orig Tue Sep 10 02:21:46 1996
++++ Makefile.inc Thu Mar 19 22:12:34 1998
+@@ -1 +1,3 @@
+-BINDIR?= /usr/sbin
++BINDIR= $(LOCALBASE)/sbin
++MANDIR= $(LOCALBASE)/man
++MANINSTALL?= catinstall maninstall
diff --git a/comms/modemd/pkg/COMMENT b/comms/modemd/pkg/COMMENT
new file mode 100644
index 00000000000..9fb10e438de
--- /dev/null
+++ b/comms/modemd/pkg/COMMENT
@@ -0,0 +1 @@
+A replacement getty for dialup ttys and a modem server.
diff --git a/comms/modemd/pkg/DESCR b/comms/modemd/pkg/DESCR
new file mode 100644
index 00000000000..f4919e2d54e
--- /dev/null
+++ b/comms/modemd/pkg/DESCR
@@ -0,0 +1,4 @@
+The modemd package includes a replacement getty called modemd
+that is designed to handle modems and offer many features not
+present in standard gettys, and a modem daemon, mpoold, that
+allows processes to share local and remote modems in pools.
diff --git a/comms/modemd/pkg/PLIST b/comms/modemd/pkg/PLIST
new file mode 100644
index 00000000000..e0eb19d2b43
--- /dev/null
+++ b/comms/modemd/pkg/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 1998/03/20 11:05:18 frueauf Exp $
+sbin/modemd
+sbin/mpoold
+man/man8/modemd.8
+man/man8/mpoold.8
+man/cat8/modemd.0
+man/cat8/mpoold.0
+man/man5/modemcap.5
+man/cat5/modemcap.0
+share/examples/modemd/modemcap
+@dirrm share/examples/modemd