ports/112606: New port: linxt Perl script for communication with Lego NXT
Jason Bacon
bacon at smithers.neuro.mcw.edu
Fri May 11 21:50:05 UTC 2007
>Number: 112606
>Category: ports
>Synopsis: New port: linxt Perl script for communication with Lego NXT
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri May 11 21:50:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Jason Bacon
>Release: FreeBSD 5.4-RELEASE i386
>Organization:
NA
>Environment:
System: FreeBSD smithers.neuro.mcw.edu 5.4-RELEASE FreeBSD 5.4-RELEASE #2: Wed Aug 24 14:54:53 CDT 2005 bacon at clone.neuro.mcw.edu:/usr/obj/usr/src/sys/clone i386
>Description:
The linxt Perl script is a Unix command line tool for communicating
with the Lego Mindstorms Robotics NXT brick. It can be used to
query the brick for information like firmware version, battery
level, etc. and also to upload robotics programs compiled with
NBC/NXC. Linxt requires Device::USB, the Perl wrappers for libusb.
This port will likely be a dependency for future versions of the
NBC port.
>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:
#
# devel/linxt
# devel/linxt/pkg-descr
# devel/linxt/Makefile
# devel/linxt/distinfo
# devel/linxt/pkg-message
#
echo c - devel/linxt
mkdir -p devel/linxt > /dev/null 2>&1
echo x - devel/linxt/pkg-descr
sed 's/^X//' >devel/linxt/pkg-descr << 'END-of-devel/linxt/pkg-descr'
X[description of the port]
X
XWWW: http://port.home.page/
END-of-devel/linxt/pkg-descr
echo x - devel/linxt/Makefile
sed 's/^X//' >devel/linxt/Makefile << 'END-of-devel/linxt/Makefile'
X# New ports collection makefile for: linxt
X# Date created: 2007-05-05
X# Whom: Jason Bacon <bacon at smithers.neuro.mcw.edu>
X#
X# $FreeBSD$
X#
X
XPORTNAME= linxt
XPORTVERSION= 0.1
XCATEGORIES= devel comms
XMASTER_SITES= SF \
X http://personalpages.tds.net/~jwbacon/Ports/distfiles/
X
XMAINTAINER= bacon at smithers.neuro.mcw.edu
XCOMMENT= Perl script for controlling Lego NXT brick
X
XRUN_DEPENDS= ${SITE_PERL}/mach/Device/USB.pm:${PORTSDIR}/devel/p5-usb
X
XNO_BUILD= yes
X
Xdo-install:
X ${INSTALL_SCRIPT} ${WRKSRC}/linxt ${PREFIX}/bin
X @${ECHO_CMD}
X @${CAT} pkg-message
X @${ECHO_CMD}
X
XPLIST_FILES= bin/linxt
X
X.include <bsd.port.mk>
END-of-devel/linxt/Makefile
echo x - devel/linxt/distinfo
sed 's/^X//' >devel/linxt/distinfo << 'END-of-devel/linxt/distinfo'
XMD5 (linxt-0.1.tar.gz) = 8c3567f1f385a91036c91fb23cd11114
XSHA256 (linxt-0.1.tar.gz) = 81a0e4db4f0dad65fb51ff36be8ee3933fd7af034eadca0b995f01a828182655
XSIZE (linxt-0.1.tar.gz) = 3225
END-of-devel/linxt/distinfo
echo x - devel/linxt/pkg-message
sed 's/^X//' >devel/linxt/pkg-message << 'END-of-devel/linxt/pkg-message'
XUsers of linxt must have write permissions on the USB devices associated
Xwith the NXT brick (e.g. dev/usb0* and dev/ugen0*). Using chmod will
Xonly affect these devices until they are detached. See etc/devfs.rules
Xand etc/usbd.conf (also "man devfs.rules" and "man usbd.conf") for
Xcontrolling USB device permissions when they are attached.
END-of-devel/linxt/pkg-message
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list