Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2000 08:58:40 +1000 (EST)
From:      Maurice Castro <maurice@planetoid.serc.rmit.edu.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/18911: New port - plptools
Message-ID:  <200005302258.IAA74415@planetoid.serc.rmit.edu.au>

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

>Number:         18911
>Category:       ports
>Synopsis:       New port - plptools
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 30 16:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Maurice Castro
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Software Engineering Research Centre
>Environment:

	All versions 

>Description:

	Port of plptools. Allows Psion and other EPOC palmtops to
	be NFS mounted by Unix.

>How-To-Repeat:


>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:
#
#	plptools
#	plptools/Makefile
#	plptools/pkg
#	plptools/pkg/PLIST
#	plptools/pkg/DESCR
#	plptools/pkg/COMMENT
#	plptools/patches
#	plptools/patches/patch-aa
#	plptools/patches/patch-ab
#	plptools/patches/patch-ac
#	plptools/patches/patch-ad
#	plptools/files
#	plptools/files/md5
#
echo c - plptools
mkdir -p plptools > /dev/null 2>&1
echo x - plptools/Makefile
sed 's/^X//' >plptools/Makefile << 'END-of-plptools/Makefile'
X# New ports collection makefile for:	PLP tools
X# Version required:			0.6
X# Date created:				Tue May 30 11:05:51 EST 2000
X# Whom:					Maurice Castro <maurice@serc.rmit.edu.au>
X#
X# $FreeBSD: $
X#
X
XDISTNAME=	plptools-0.6
XCATEGORIES=	comms
XMASTER_SITES=	ftp://ftp.to.com/pub/psion/tarballs/
X
XMAINTAINER=	maurice@serc.rmit.edu.au
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=  yes
X
XCONFIGURE_ARGS+=--with-serial=/dev/psion
X
X.include <bsd.port.mk>
END-of-plptools/Makefile
echo c - plptools/pkg
mkdir -p plptools/pkg > /dev/null 2>&1
echo x - plptools/pkg/PLIST
sed 's/^X//' >plptools/pkg/PLIST << 'END-of-plptools/pkg/PLIST'
Xbin/plpftp
Xsbin/ncpd
Xsbin/plpnfsd
Xlib/libplp.a         
Xlib/libplp.so
Xlib/libplp.la        
Xlib/libplp.so.1
END-of-plptools/pkg/PLIST
echo x - plptools/pkg/DESCR
sed 's/^X//' >plptools/pkg/DESCR << 'END-of-plptools/pkg/DESCR'
XPLP tools implements the Psion Link Protocol. 
X
XThis program is used to transfer data between an EPOC Palmtop and
Xa Unix server. The ncpd daemon is started to communicate with the
Xpalmtop and an ftp like interface is provided by plpftp. An NFS
Xmounted filesystem is provided by plpnfsd.
X
XBefore using this port it is necessary to either
X
X   1.
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   
X     or
X   
X       b) start the ncpd daemon with the correct serial port eg 
X       ncpd -p 7501 -s /dev/cuaa0
X   
X   2. create the mount directory
X       mkdir /mnt/psion
X
XTo access your psion:
X
X   plpftp - for an ftp like interface
X
X   plpnfsd - will mount the psion as a file system
X
X     Invoking plpnfsd will by default mount the palmtop as a file system
X     rooted at /mnt/psion 
END-of-plptools/pkg/DESCR
echo x - plptools/pkg/COMMENT
sed 's/^X//' >plptools/pkg/COMMENT << 'END-of-plptools/pkg/COMMENT'
XTransfer data between and NFS mount an EPOC Palmtop on Unix.
END-of-plptools/pkg/COMMENT
echo c - plptools/patches
mkdir -p plptools/patches > /dev/null 2>&1
echo x - plptools/patches/patch-aa
sed 's/^X//' >plptools/patches/patch-aa << 'END-of-plptools/patches/patch-aa'
X*** lib/ppsocket.cc	Tue May 30 10:26:30 2000
X--- lib/ppsocket.cc	Tue May 30 10:38:06 2000
X***************
X*** 181,187 ****
X--- 181,191 ----
X  ppsocket *ppsocket::
X  accept(char *Peer, int MaxLen)
X  {
X+ #if __FreeBSD_version >= 400000
X  	socklen_t len;
X+ #else
X+ 	unsigned len;
X+ #endif
X  	ppsocket *accepted;
X  	char *peer;
X  
END-of-plptools/patches/patch-aa
echo x - plptools/patches/patch-ab
sed 's/^X//' >plptools/patches/patch-ab << 'END-of-plptools/patches/patch-ab'
X*** ncpd/mp_serial.c	Tue May 30 10:29:37 2000
X--- ncpd/mp_serial.c	Tue May 30 10:32:12 2000
X***************
X*** 30,36 ****
X  #include <unistd.h>		/* for usleep() */
X  #include <string.h>		/* for bzero() */
X  #include <termios.h>
X! #if defined(linux) || defined(_IBMR2) || defined(__NetBSD__)
X  #include <sys/ioctl.h>		/* for ioctl() */
X  #endif
X  #include <sys/errno.h>
X--- 30,36 ----
X  #include <unistd.h>		/* for usleep() */
X  #include <string.h>		/* for bzero() */
X  #include <termios.h>
X! #if defined(linux) || defined(_IBMR2) || defined(__NetBSD__) || defined(__FreeBSD__)
X  #include <sys/ioctl.h>		/* for ioctl() */
X  #endif
X  #include <sys/errno.h>
X***************
X*** 151,157 ****
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--- 151,157 ----
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;
X***************
X*** 182,188 ****
X  ser_exit(int fd)
X  {
X  	struct termios ti;
X! 	if (ioctl(fd, TCGETS, (caddr_t) & ti) < 0)
X  		perror("TCGETSW");
X  	ti.c_cflag &= ~CRTSCTS;
X  	if (tcsetattr(fd, TCSANOW, &ti) < 0)
X--- 182,188 ----
X  ser_exit(int fd)
X  {
X  	struct termios ti;
X! 	if(tcgetattr(fd, &ti) < 0)
X  		perror("TCGETSW");
X  	ti.c_cflag &= ~CRTSCTS;
X  	if (tcsetattr(fd, TCSANOW, &ti) < 0)
END-of-plptools/patches/patch-ab
echo x - plptools/patches/patch-ac
sed 's/^X//' >plptools/patches/patch-ac << 'END-of-plptools/patches/patch-ac'
X*** plpnfsd/main.cc	Tue May 30 10:42:08 2000
X--- plpnfsd/main.cc	Tue May 30 10:42:38 2000
X***************
X*** 304,310 ****
X  	}
X  	signal(SIGPIPE, SIG_IGN);
X  	skt = new ppsocket();
X! 	if (!skt->connect(NULL, sockNum)) {
X  		cerr << "plpnfsd: could not connect to ncpd" << endl;
X  		status = 1;
X  	} else {
X--- 304,310 ----
X  	}
X  	signal(SIGPIPE, SIG_IGN);
X  	skt = new ppsocket();
X! 	if (!skt->connect("127.0.0.1", sockNum)) {
X  		cerr << "plpnfsd: could not connect to ncpd" << endl;
X  		status = 1;
X  	} else {
END-of-plptools/patches/patch-ac
echo x - plptools/patches/patch-ad
sed 's/^X//' >plptools/patches/patch-ad << 'END-of-plptools/patches/patch-ad'
X*** plpftp/main.cc	Tue May 30 10:40:41 2000
X--- plpftp/main.cc	Tue May 30 10:41:14 2000
X***************
X*** 86,97 ****
X  	if (argc < 2)
X  		ftpHeader();
X  	skt = new ppsocket();
X! 	if (!skt->connect(NULL, sockNum)) {
X  		cout << "plpftp: could not connect to ncpd" << endl;
X  		return 1;
X  	}
X  	skt2 = new ppsocket();
X! 	if (!skt2->connect(NULL, sockNum)) {
X  		cout << "plpftp: could not connect to ncpd" << endl;
X  		return 1;
X  	}
X--- 86,97 ----
X  	if (argc < 2)
X  		ftpHeader();
X  	skt = new ppsocket();
X! 	if (!skt->connect("127.0.0.1", sockNum)) {
X  		cout << "plpftp: could not connect to ncpd" << endl;
X  		return 1;
X  	}
X  	skt2 = new ppsocket();
X! 	if (!skt2->connect("127.0.0.1", sockNum)) {
X  		cout << "plpftp: could not connect to ncpd" << endl;
X  		return 1;
X  	}
END-of-plptools/patches/patch-ad
echo c - plptools/files
mkdir -p plptools/files > /dev/null 2>&1
echo x - plptools/files/md5
sed 's/^X//' >plptools/files/md5 << 'END-of-plptools/files/md5'
XMD5 (plptools-0.6.tar.gz) = 596ace6b80e5a160f4036002df55bcc0
END-of-plptools/files/md5
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?200005302258.IAA74415>