diff options
author | Jeremy Lea <reg@FreeBSD.org> | 2000-01-29 07:53:11 +0000 |
---|---|---|
committer | Jeremy Lea <reg@FreeBSD.org> | 2000-01-29 07:53:11 +0000 |
commit | 915047b6af6ee79c4b2b3aaec1505940fb94d2f2 (patch) | |
tree | da2c0662e37bd3d1d76a6c3979539acd068665bc /comms/plp/files | |
parent | Add grass. (diff) |
Initial import of Psion Link Protocol 1.8.
This program is used to transfer data between a Psion Series 5mx
(default) or Psion Series 5 to a Unix server. The ncp daemon is
started to communicate with the Psion and an ftp like interface is
provided by rfsv.
PR: 15181
Submitted by: Maurice Castro <maurice@atum.castro.aus.net>
Diffstat (limited to 'comms/plp/files')
-rw-r--r-- | comms/plp/files/patch-aa | 20 | ||||
-rw-r--r-- | comms/plp/files/patch-ab | 11 | ||||
-rw-r--r-- | comms/plp/files/patch-ac | 15 | ||||
-rw-r--r-- | comms/plp/files/patch-ad | 20 | ||||
-rw-r--r-- | comms/plp/files/patch-ae | 21 |
5 files changed, 87 insertions, 0 deletions
diff --git a/comms/plp/files/patch-aa b/comms/plp/files/patch-aa new file mode 100644 index 000000000000..8451acb0fb84 --- /dev/null +++ b/comms/plp/files/patch-aa @@ -0,0 +1,20 @@ +--- ncp/mp_serial.c.orig Tue Nov 2 12:47:06 1999 ++++ ncp/mp_serial.c Wed Jan 26 20:44:56 2000 +@@ -192,7 +192,7 @@ + #if defined(hpux) || defined(_IBMR2) + ti.c_cflag = CS8 | HUPCL | clocal | CREAD; + #endif +-#if defined(sun) || defined(linux) || defined(__sgi) || defined(__NetBSD__) ++#if defined(sun) || defined(linux) || defined(__sgi) || defined(__NetBSD__) || defined(__FreeBSD__) + ti.c_cflag = CS8 | HUPCL | clocal | CRTSCTS | CREAD; + ti.c_iflag = IGNBRK | IGNPAR; + ti.c_cc[VMIN] = 1; +@@ -223,7 +223,7 @@ + void ser_exit(int fd) + { + struct termios ti; +- if(ioctl(fd, TCGETS, (caddr_t)&ti) < 0) { ++ if(tcgetattr(fd, &ti) < 0) { + perror("TCGETSW"); + } + ti.c_cflag &= ~CRTSCTS; diff --git a/comms/plp/files/patch-ab b/comms/plp/files/patch-ab new file mode 100644 index 000000000000..da953e579453 --- /dev/null +++ b/comms/plp/files/patch-ab @@ -0,0 +1,11 @@ +--- defaults.h.orig Tue Nov 2 12:51:01 1999 ++++ defaults.h Wed Jan 26 20:44:56 2000 +@@ -19,7 +19,7 @@ + + // This is the default device driver for the serial link + // N.B. This was "/dev/cua1" in the previous release +-#define DEFAULT_SERIAL_DEVICE "/dev/ttyS1" ++#define DEFAULT_SERIAL_DEVICE "/dev/psion" + + // This is the default drive to use on the psion + #define DEFAULT_DRIVE "C:\\" diff --git a/comms/plp/files/patch-ac b/comms/plp/files/patch-ac new file mode 100644 index 000000000000..0a9ecdbaf532 --- /dev/null +++ b/comms/plp/files/patch-ac @@ -0,0 +1,15 @@ +--- utils/ppsocket.cc.orig Wed Jan 26 20:45:31 2000 ++++ utils/ppsocket.cc Wed Jan 26 20:45:54 2000 +@@ -198,7 +198,11 @@ + + ppsocket* ppsocket::accept(char* Peer, int MaxLen) + { +- int len; ++#if __FreeBSD_version >= 400013 ++ socklen_t len; ++#else ++ unsigned len; ++#endif + ppsocket* accepted; + char* peer; + diff --git a/comms/plp/files/patch-ad b/comms/plp/files/patch-ad new file mode 100644 index 000000000000..c3cbb40d046e --- /dev/null +++ b/comms/plp/files/patch-ad @@ -0,0 +1,20 @@ +--- rfsv/main.cc.orig Mon Apr 12 14:32:31 1999 ++++ rfsv/main.cc Wed Jan 26 20:44:56 2000 +@@ -107,7 +107,7 @@ + + skt = new ppsocket(); + skt->startup(); +- res = skt->connect(NULL, sockNum); ++ res = skt->connect("127.0.0.1", sockNum); + if (!res) { + delete skt; + +@@ -120,7 +120,7 @@ + usleep(100000); + skt = new ppsocket(); + skt->startup(); +- res = skt->connect(NULL, sockNum); ++ res = skt->connect("127.0.0.1", sockNum); + if (!res) delete skt; + } + diff --git a/comms/plp/files/patch-ae b/comms/plp/files/patch-ae new file mode 100644 index 000000000000..68e57bb34edc --- /dev/null +++ b/comms/plp/files/patch-ae @@ -0,0 +1,21 @@ +--- Makefile.orig Wed Jan 26 20:50:25 2000 ++++ Makefile Wed Jan 26 20:53:10 2000 +@@ -16,15 +16,15 @@ + + # Compiler & flags + INCLUDE=-I../utils +-CFLAGS= -Wall -g -O2 +-CC=g++ $(CFLAGS) $(INCLUDE) ++CFLAGS+= -Wall ++CC=${CXX} $(CFLAGS) $(INCLUDE) + + # Linker and flags + LIBDIR=-L../utils + # Solaris users uncomment this line instead of the next one + #LIBS=-lutils -lsocket -lnsl + LIBS=-lutils +-LD=g++ $(LIBDIR) ++LD=${CXX} $(LIBDIR) + + # Archiver + AR=ar -cr |