Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 20:28:10 +1100 (EST)
From:      Maurice Castro <maurice@atum.castro.aus.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/15181: PLP port
Message-ID:  <199911300928.UAA34636@atum.castro.aus.net>

next in thread | raw e-mail | index | archive | help

>Number:         15181
>Category:       ports
>Synopsis:       Supercedes ports/15179
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 30 02:20:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Maurice Castro
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Software Engineering Research Centre
>Environment:

	All

>Description:

	Previous plp port had major flaws when trialed on 3rd party
	systems this replacement port avoids the problems

>How-To-Repeat:

	As follows

>Fix:
	

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	plp
#	plp/Makefile
#	plp/files
#	plp/files/md5
#	plp/patches
#	plp/patches/patch-aa
#	plp/patches/patch-ab
#	plp/patches/patch-ac
#	plp/patches/patch-ad
#	plp/pkg
#	plp/pkg/PLIST
#	plp/pkg/DESCR
#	plp/pkg/COMMENT
#
echo c - plp
mkdir -p plp > /dev/null 2>&1
echo x - plp/Makefile
sed 's/^X//' >plp/Makefile << 'END-of-plp/Makefile'
X# New ports collection makefile for:  Psion Link Protocol
X# Version required: 1.8
X# Date created:     Tue Nov 30 15:43:27 EST 1999
X# Whom:             Maurice Castro <maurice@serc.rmit.edu.au>
X#
X# $Id$
X#
X
XDISTNAME=       plp_1_8
XPKGNAME=	plp-1.8
XCATEGORIES=     comms
XMASTER_SITES=   http://www.proudman51.freeserve.co.uk/psion/
X
XMAINTAINER= maurice@serc.rmit.edu.au
X
XUSE_GMAKE=	yes
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/ncp ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/rfsv ${PREFIX}/bin
X
X.include <bsd.port.mk>
END-of-plp/Makefile
echo c - plp/files
mkdir -p plp/files > /dev/null 2>&1
echo x - plp/files/md5
sed 's/^X//' >plp/files/md5 << 'END-of-plp/files/md5'
XMD5 (plp_1_8.tar.gz) = 63c0871eb0504c69677c8e16f2d43ea2
END-of-plp/files/md5
echo c - plp/patches
mkdir -p plp/patches > /dev/null 2>&1
echo x - plp/patches/patch-aa
sed 's/^X//' >plp/patches/patch-aa << 'END-of-plp/patches/patch-aa'
X*** ncp/mp_serial.c.dist	Tue Nov 30 17:36:34 1999
X--- ncp/mp_serial.c	Tue Nov 30 17:37:10 1999
X***************
X*** 223,229 ****
X  void ser_exit(int fd)
X  {
X    struct termios ti;
X!   if(ioctl(fd, TCGETS, (caddr_t)&ti) < 0) {
X      perror("TCGETSW");
X    }
X    ti.c_cflag &= ~CRTSCTS;
X--- 223,229 ----
X  void ser_exit(int fd)
X  {
X    struct termios ti;
X!   if(tcgetattr(fd, &ti) < 0) {
X      perror("TCGETSW");
X    }
X    ti.c_cflag &= ~CRTSCTS;
END-of-plp/patches/patch-aa
echo x - plp/patches/patch-ab
sed 's/^X//' >plp/patches/patch-ab << 'END-of-plp/patches/patch-ab'
X*** defaults.h.dist	Tue Nov 30 17:39:40 1999
X--- defaults.h	Tue Nov 30 17:40:09 1999
X***************
X*** 19,25 ****
X  
X  // This is the default device driver for the serial link
X  // N.B. This was "/dev/cua1" in the previous release
X! #define DEFAULT_SERIAL_DEVICE "/dev/ttyS1"
X  
X  // This is the default drive to use on the psion
X  #define DEFAULT_DRIVE "C:\\"
X--- 19,25 ----
X  
X  // This is the default device driver for the serial link
X  // N.B. This was "/dev/cua1" in the previous release
X! #define DEFAULT_SERIAL_DEVICE "/dev/psion"
X  
X  // This is the default drive to use on the psion
X  #define DEFAULT_DRIVE "C:\\"
END-of-plp/patches/patch-ab
echo x - plp/patches/patch-ac
sed 's/^X//' >plp/patches/patch-ac << 'END-of-plp/patches/patch-ac'
X*** ncp/mp_serial.c.dist	Tue Nov 30 19:16:09 1999
X--- ncp/mp_serial.c	Tue Nov 30 19:13:52 1999
X***************
X*** 192,198 ****
X  #if defined(hpux) || defined(_IBMR2)
X    ti.c_cflag = CS8 | HUPCL | clocal | CREAD;
X  #endif
X! #if defined(sun) || defined(linux) || defined(__sgi) || defined(__NetBSD__)
X    ti.c_cflag = CS8 | HUPCL | clocal | CRTSCTS | CREAD;
X    ti.c_iflag = IGNBRK | IGNPAR;
X    ti.c_cc[VMIN] = 1;
X--- 192,198 ----
X  #if defined(hpux) || defined(_IBMR2)
X    ti.c_cflag = CS8 | HUPCL | clocal | CREAD;
X  #endif
X! #if defined(sun) || defined(linux) || defined(__sgi) || defined(__NetBSD__) || defined(__FreeBSD__)
X    ti.c_cflag = CS8 | HUPCL | clocal | CRTSCTS | CREAD;
X    ti.c_iflag = IGNBRK | IGNPAR;
X    ti.c_cc[VMIN] = 1;
END-of-plp/patches/patch-ac
echo x - plp/patches/patch-ad
sed 's/^X//' >plp/patches/patch-ad << 'END-of-plp/patches/patch-ad'
X*** rfsv/main.cc.dist	Tue Nov 30 20:07:13 1999
X--- rfsv/main.cc	Tue Nov 30 20:04:01 1999
X***************
X*** 107,113 ****
X  
X    skt = new ppsocket();
X    skt->startup();
X!   res = skt->connect(NULL, sockNum);
X    if (!res) {
X      delete skt;
X  
X--- 107,113 ----
X  
X    skt = new ppsocket();
X    skt->startup();
X!   res = skt->connect("127.0.0.1", sockNum);
X    if (!res) {
X      delete skt;
X  
X***************
X*** 120,126 ****
X        usleep(100000);
X        skt = new ppsocket();
X        skt->startup();
X!       res = skt->connect(NULL, sockNum);
X        if (!res) delete skt;
X      }
X      
X--- 120,126 ----
X        usleep(100000);
X        skt = new ppsocket();
X        skt->startup();
X!       res = skt->connect("127.0.0.1", sockNum);
X        if (!res) delete skt;
X      }
X      
END-of-plp/patches/patch-ad
echo c - plp/pkg
mkdir -p plp/pkg > /dev/null 2>&1
echo x - plp/pkg/PLIST
sed 's/^X//' >plp/pkg/PLIST << 'END-of-plp/pkg/PLIST'
Xbin/ncp
Xbin/rfsv
END-of-plp/pkg/PLIST
echo x - plp/pkg/DESCR
sed 's/^X//' >plp/pkg/DESCR << 'END-of-plp/pkg/DESCR'
XPLP implements the Psion Link Protocol. 
X
XThis program is used to transfer data between a Psion Series 5mx
X(default) or Psion Series 5 to a Unix server.  The ncp daemon is
Xstarted to communicate with the Psion and an ftp like interface is
Xprovided by rfsv.
X
XBefore using this port it is necessary to either
X
X    a) create a symbolic link form the serial port the psion is
X    connected to to /dev/psion eg ln -s /dev/cuaa0 /dev/psion
X
Xor
X
X    b) start the ncp daemon with the correct serial port eg 
X    ncp -s 7501 -d /dev/cuaa0 -s5
END-of-plp/pkg/DESCR
echo x - plp/pkg/COMMENT
sed 's/^X//' >plp/pkg/COMMENT << 'END-of-plp/pkg/COMMENT'
XTransfer data between a Psion Series 5(mx) and Unix.
END-of-plp/pkg/COMMENT
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911300928.UAA34636>