1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

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>
This commit is contained in:
Jeremy Lea 2000-01-29 07:53:11 +00:00
parent 5eb1b3bbb4
commit 915047b6af
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25234
10 changed files with 129 additions and 0 deletions

22
comms/plp/Makefile Normal file
View File

@ -0,0 +1,22 @@
# New ports collection makefile for: Psion Link Protocol
# Version required: 1.8
# Date created: Tue Nov 30 15:43:27 EST 1999
# Whom: Maurice Castro <maurice@serc.rmit.edu.au>
#
# $FreeBSD$
#
DISTNAME= plp_1_8
PKGNAME= plp-1.8
CATEGORIES= comms
MASTER_SITES= http://www.proudman51.freeserve.co.uk/psion/
MAINTAINER= maurice@serc.rmit.edu.au
USE_GMAKE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/ncp ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/rfsv ${PREFIX}/bin
.include <bsd.port.mk>

1
comms/plp/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (plp_1_8.tar.gz) = 63c0871eb0504c69677c8e16f2d43ea2

20
comms/plp/files/patch-aa Normal file
View File

@ -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;

11
comms/plp/files/patch-ab Normal file
View File

@ -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:\\"

15
comms/plp/files/patch-ac Normal file
View File

@ -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;

20
comms/plp/files/patch-ad Normal file
View File

@ -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;
}

21
comms/plp/files/patch-ae Normal file
View File

@ -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

1
comms/plp/pkg-comment Normal file
View File

@ -0,0 +1 @@
Transfer data between a Psion Series 5(mx) and Unix.

16
comms/plp/pkg-descr Normal file
View File

@ -0,0 +1,16 @@
PLP implements the Psion Link Protocol.
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.
Before using this port it is necessary to either
a) create a symbolic link form the serial port the psion is
connected to to /dev/psion eg ln -s /dev/cuaa0 /dev/psion
or
b) start the ncp daemon with the correct serial port eg
ncp -s 7501 -d /dev/cuaa0 -s5

2
comms/plp/pkg-plist Normal file
View File

@ -0,0 +1,2 @@
bin/ncp
bin/rfsv