summaryrefslogtreecommitdiff
path: root/comms/modemd/patches
diff options
context:
space:
mode:
authorfrueauf <frueauf>1998-03-20 11:05:17 +0000
committerfrueauf <frueauf>1998-03-20 11:05:17 +0000
commit63802143332c01143e7a5210b0c75a536383029d (patch)
tree394c38dd450c0ffd064abb9e1e9f5da8b78de1b0 /comms/modemd/patches
parente31bedcf9157ed890d6f7efcc5e461bf9ae95742 (diff)
downloadpkgsrc-63802143332c01143e7a5210b0c75a536383029d.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/patches')
-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
9 files changed, 132 insertions, 0 deletions
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