--- lnpd-0.9.0.orig/debian/lnpd.init
+++ lnpd-0.9.0/debian/lnpd.init
@@ -0,0 +1,97 @@
+#! /bin/sh
+### BEGIN INIT INFO
+# Provides:          lnpd
+# Required-Start:    $syslog 
+# Required-Stop:     $syslog
+# Should-Start:      $local_fs $network
+# Should-Stop:       $local_fs $network
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description:  Start and stop the BrickOS LNP daemon
+# Description:        Start and stop the lnpd networking protocol daemon
+### END INIT INFO
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/lnpd
+DAEMONCONF=/etc/lnpd.conf
+DAEMONDEFAULTS=/etc/default/lnpd
+NAME=lnpd
+DESC="BrickOS LNP Daemon"
+
+# configurable options (overridden by files sourced below)
+START_LNPD=No
+FIXED_OPT=-d		# don't allow to re-fork into new process
+OPT_DEBUG=""
+OPT_FAST=""
+OPT_LOG=""
+OPT_TTY=""
+
+test -x $DAEMON || exit 0
+
+# Include lnpd defaults if available
+test -f $DAEMONDEFAULTS && . $DAEMONDEFAULTS
+
+# (odd, but) Include lnpd configuration if available
+#  this is done this way since lnpd can't read its own file.
+test -f $DAEMONCONF && . $DAEMONCONF
+
+# Now build the daemon options set
+OPT_ALL="$OPT_FAST $OPT_TTY $OPT_LOG $OPT_DEBUG"
+
+set -e
+
+case "$1" in
+  start)
+	if [ ! -n "$START_LNPD" -o "$START_LNPD" = "No" ]
+	then
+		echo -n "Starting $DESC: Skipped, due to disable in $DAEMONDEFAULTS"
+	else
+		echo "$NAME: Starting daemon with options=[$OPT_ALL]"
+		echo -n "Starting $DESC: "
+		start-stop-daemon --start --quiet \
+			--background --make-pidfile --pidfile /var/run/$NAME.pid \
+			--exec $DAEMON -- $FIXED_OPT $OPT_ALL
+		echo "$NAME."
+	fi
+	;;
+  stop)
+	echo -n "Stopping $DESC: "
+	start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/$NAME.pid \
+		--exec $DAEMON
+	echo "$NAME."
+	;;
+  #reload)
+	#
+	#	If the daemon can reload its config files on the fly
+	#	for example by sending it SIGHUP, do it here.
+	#
+	#	If the daemon responds to changes in its config file
+	#	directly anyway, make this a do-nothing entry.
+	#
+	# echo "Reloading $DESC configuration files."
+	# start-stop-daemon --stop --signal 1 --quiet --pidfile \
+	#	/var/run/$NAME.pid --exec $DAEMON
+  #;;
+  restart|force-reload)
+	#
+	#	If the "reload" option is implemented, move the "force-reload"
+	#	option to the "reload" entry above. If not, "force-reload" is
+	#	just the same as "restart".
+	#
+	echo -n "Restarting $DESC: "
+	start-stop-daemon --stop --quiet --oknodo --pidfile \
+		/var/run/$NAME.pid --exec $DAEMON
+	sleep 1
+	start-stop-daemon --start --quiet \
+		--background --make-pidfile --pidfile /var/run/$NAME.pid \
+		--exec $DAEMON -- $FIXED_OPT $OPT_ALL
+	echo "$NAME."
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0
--- lnpd-0.9.0.orig/debian/control
+++ lnpd-0.9.0/debian/control
@@ -0,0 +1,22 @@
+Source: lnpd
+Section: devel
+Priority: extra
+Maintainer: Michael Tautschnig <mt@debian.org>
+Build-Depends: debhelper (>= 5), quilt, autotools-dev
+Standards-Version: 3.8.3
+Homepage: http://brickos.sourceforge.net
+
+Package: lnpd
+Architecture: any
+Suggests: brickos
+Depends: ${shlibs:Depends}
+Description: daemon for LNP communication with BrickOS
+ The lnpd package provides a daemon capable of being started at boot time
+ that enables communication with a LEGO(r) Mindstorms RCX which is running
+ BrickOS. This package also provides a library so that you can build 
+ client programs which talk via LNP to applications running under brickOS 
+ on the RCX.  See the examples provided.
+ .
+ For posts to/from other users: http://lugnet.com/robotics/rcx/legos/
+ .
+ (LEGO(r) is a trademark of the LEGO Group of companies.)
--- lnpd-0.9.0.orig/debian/lnpd.conf
+++ lnpd-0.9.0/debian/lnpd.conf
@@ -0,0 +1,26 @@
+# Configurable command-line options for lnpd(8)
+#
+#   NOTE: this is a POSIX shell fragment
+#
+#  Logging options
+#
+#OPT_LOG="-l"						# log to syslog
+#OPT_LOG="--log=/var/log/lnpd.log"	# log to specified file
+#OPT_LOG=""							# to disable logging
+OPT_LOG="--log=/var/log/lnpd.log"	# log to specified file
+#
+#  Communication speed options
+#
+#OPT_FAST="--fast"
+OPT_FAST=""
+#
+# Logging Detail [see lnpd(8)]
+#
+#OPT_DEBUG="-vavil"
+OPT_DEBUG=""
+#
+# The serial device to which the IR Tower is attached
+#
+OPT_TTY="--tty=/dev/ttyS0"
+#OPT_TTY="--tty=/dev/ttyS1"
+
--- lnpd-0.9.0.orig/debian/changelog
+++ lnpd-0.9.0/debian/changelog
@@ -0,0 +1,58 @@
+lnpd (0.9.0-7) unstable; urgency=low
+
+  * Bumped standards version (no changes)
+  * Update config.{sub,guess} from autotools (closes: #535939)
+
+ -- Michael Tautschnig <mt@debian.org>  Fri, 16 Oct 2009 07:39:30 +0200
+
+lnpd (0.9.0-6) unstable; urgency=low
+
+  * Removed bashisms in init script (thanks Raphael Geissert for his QA runs)
+  * Changed to quilt for patch management
+  * Properly escape hyphens in man page
+
+ -- Michael Tautschnig <mt@debian.org>  Sat, 02 Feb 2008 09:13:59 +0000
+
+lnpd (0.9.0-5) unstable; urgency=low
+
+  * Using uscan version 3 watch file and syntax
+
+ -- Michael Tautschnig <mt@debian.org>  Fri, 25 Jan 2008 08:54:54 +0100
+
+lnpd (0.9.0-4) unstable; urgency=low
+
+  * New maintainer address
+  * Fixed watch file (use ftp.sf.net instead of ftp2.sf.net) (closes: #450199)
+  * Added --oknodo to all stop attempts in the init script (closes: #398063)
+  * Use the new Homepage field in the control file
+  * Don't ignore errors in make clean (fixes lintian warning)
+
+ -- Michael Tautschnig <mt@debian.org>  Thu, 06 Dec 2007 20:53:06 +0100
+
+lnpd (0.9.0-3) unstable; urgency=low
+
+  * New maintainer (closes: #387770)
+  * Set Standards Version 3.7.2.2
+
+ -- Michael Tautschnig <tautschn@model.in.tum.de>  Tue, 07 Nov 2006 23:05:12 +0100
+
+lnpd (0.9.0-2) unstable; urgency=low
+
+  * QA upload.
+  * Set maintainer to QA Group; Orphaned: #387770
+  * Remove config.log on clean
+  * Add lsb header to lnpd init script
+  * Conforms with latest Standards Version 3.7.2
+
+ -- Michael Ablassmeier <abi@debian.org>  Mon,  2 Oct 2006 11:18:23 +0200
+
+lnpd (0.9.0-1) unstable; urgency=low
+
+  * Initial Release.  (Closes: Bug#291654)
+  * Added init.d/default prototype files
+  * Added /etc/lnpd.conf prototype file
+  * Added man-pages for lnpdll, lnpdllx, lnptest, lnptest2
+  * (will push new parts to upstream for next lnpd release)
+
+ -- Stephen M Moraco <stephen@debian.org>  Fri, 21 Jan 2005 21:53:16 -0700
+
--- lnpd-0.9.0.orig/debian/lnptest2.1
+++ lnpd-0.9.0/debian/lnptest2.1
@@ -0,0 +1,62 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH lnptest2 1 "January 23, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+lnptest2 \- LNP Client Test Application #2 (shorter test)
+.SH SYNOPSIS
+.B lnptest2
+.\"
+.SH DESCRIPTION
+.B lnptest2
+is an LNP Daemon test client used to test the connection between a client LNP
+program (in this case lnptest2) and the LNP daemon through the Ir Tower to a 
+corresponding test program running in an RCX.  See the FILES section for the 
+location of the RCX test program source code (distributed with this package).
+.\"
+.SH OPTIONS
+.B lnptest2
+does not support command-line options.
+.\"
+.SH USAGE
+To run the test:
+.br
+\- compile the lnptest2.c RCX program 
+.br
+\- start the lnpd daemon
+.br
+\- download the lnptest2.lx program to the RCX
+.br
+\- at the RCX, run the program just downloaded to the RCX
+.br
+\- run this lnptest2 program
+.br
+\- inspect the output looking for lack of failure messages
+.\"
+.SH FILES
+.TP
+.B /usr/share/doc/lnpd/examples/rcx
+In this directory is the source to the RCX-side program which is called
+lnptest2.c but written to be compiled against BrickOS.
+.\"
+.SH SEE ALSO
+lnptest(1), lnpdll(1), lnpd(8)
+.sp 
+You can find additional documentation in /usr/share/doc/lnpd (on Debian GNU/Linux systems) 
+.\"
+.SH AUTHOR
+lnptest2 was written by Michael Obenland <mobenland@users.sourceforge.net>
+This man page was written by Stephen M Moraco <stephen@debian.org>
--- lnpd-0.9.0.orig/debian/README.Debian
+++ lnpd-0.9.0/debian/README.Debian
@@ -0,0 +1,14 @@
+lnpd for Debian
+---------------
+
+	This is the first upstream LNPD release with added components to
+	allow the lnpd daemon to be started at boot time.
+
+	These additional components will be added to the upstream package
+	in time for the next upstream release. -Stephen
+
+    TO SETUP for first LNPD run:
+	- edit /etc/lnpd.conf to select the proper serial port for your Ir Tower
+	- edit /etc/default/lnpd to enable start at boot
+
+ -- Stephen M Moraco <stephen@debian.org>, Fri, 21 Jan 2005 21:53:16 -0700
--- lnpd-0.9.0.orig/debian/dirs
+++ lnpd-0.9.0/debian/dirs
@@ -0,0 +1,11 @@
+etc
+etc/default
+etc/init.d
+usr/bin
+usr/include/lnpd
+usr/lib
+usr/sbin
+usr/share/man/man8
+usr/share/doc/lnpd
+usr/share/doc/lnpd/examples
+usr/share/doc/lnpd/examples/rcx
--- lnpd-0.9.0.orig/debian/watch
+++ lnpd-0.9.0/debian/watch
@@ -0,0 +1,3 @@
+# Site		Directory		Pattern			Version	Script
+version=3
+http://sf.net/brickos/lnpd-?_?([\w+\d+\.]+|\d+)(?:\.tar|\.tgz)(?:\.gz|\.bz2|) debian uupdate
--- lnpd-0.9.0.orig/debian/copyright
+++ lnpd-0.9.0/debian/copyright
@@ -0,0 +1,370 @@
+This package was debianized by Stephen M Moraco <stephen@debian.org> on
+Fri, 21 Jan 2005 21:53:16 -0700.
+
+It was downloaded from http://brickos.sourceforge.net
+
+Copyright: Martin Cornelius <Martin.Cornelius@t-online.de>
+
+Upstream Author: Martin Cornelius <Martin.Cornelius@t-online.de>
+
+License:
+                           MOZILLA PUBLIC LICENSE
+                                Version 1.0
+
+                              ----------------
+
+1. Definitions.
+
+     1.1. ``Contributor'' means each entity that creates or contributes to
+     the creation of Modifications.
+
+     1.2. ``Contributor Version'' means the combination of the Original
+     Code, prior Modifications used by a Contributor, and the Modifications
+     made by that particular Contributor.
+
+     1.3. ``Covered Code'' means the Original Code or Modifications or the
+     combination of the Original Code and Modifications, in each case
+     including portions thereof.
+
+     1.4. ``Electronic Distribution Mechanism'' means a mechanism generally
+     accepted in the software development community for the electronic
+     transfer of data.
+
+     1.5. ``Executable'' means Covered Code in any form other than Source
+     Code.
+
+     1.6. ``Initial Developer'' means the individual or entity identified as
+     the Initial Developer in the Source Code notice required by Exhibit A.
+
+     1.7. ``Larger Work'' means a work which combines Covered Code or
+     portions thereof with code not governed by the terms of this License.
+
+     1.8. ``License'' means this document.
+
+     1.9. ``Modifications'' means any addition to or deletion from the
+     substance or structure of either the Original Code or any previous
+     Modifications. When Covered Code is released as a series of files, a
+     Modification is:
+
+          A. Any addition to or deletion from the contents of a file
+          containing Original Code or previous Modifications.
+
+          B. Any new file that contains any part of the Original Code or
+          previous Modifications.
+
+     1.10. ``Original Code'' means Source Code of computer software code
+     which is described in the Source Code notice required by Exhibit A as
+     Original Code, and which, at the time of its release under this License
+     is not already Covered Code governed by this License.
+
+     1.11. ``Source Code'' means the preferred form of the Covered Code for
+     making modifications to it, including all modules it contains, plus any
+     associated interface definition files, scripts used to control
+     compilation and installation of an Executable, or a list of source code
+     differential comparisons against either the Original Code or another
+     well known, available Covered Code of the Contributor's choice. The
+     Source Code can be in a compressed or archival form, provided the
+     appropriate decompression or de-archiving software is widely available
+     for no charge.
+
+     1.12. ``You'' means an individual or a legal entity exercising rights
+     under, and complying with all of the terms of, this License or a future
+     version of this License issued under Section 6.1. For legal entities,
+     ``You'' includes any entity which controls, is controlled by, or is
+     under common control with You. For purposes of this definition,
+     ``control'' means (a) the power, direct or indirect, to cause the
+     direction or management of such entity, whether by contract or
+     otherwise, or (b) ownership of fifty percent (50%) or more of the
+     outstanding shares or beneficial ownership of such entity.
+
+2. Source Code License.
+
+     2.1. The Initial Developer Grant.
+     The Initial Developer hereby grants You a world-wide, royalty-free,
+     non-exclusive license, subject to third party intellectual property
+     claims:
+
+          (a) to use, reproduce, modify, display, perform, sublicense and
+          distribute the Original Code (or portions thereof) with or without
+          Modifications, or as part of a Larger Work; and
+
+          (b) under patents now or hereafter owned or controlled by Initial
+          Developer, to make, have made, use and sell (``Utilize'') the
+          Original Code (or portions thereof), but solely to the extent that
+          any such patent is reasonably necessary to enable You to Utilize
+          the Original Code (or portions thereof) and not to any greater
+          extent that may be necessary to Utilize further Modifications or
+          combinations.
+
+     2.2. Contributor Grant.
+     Each Contributor hereby grants You a world-wide, royalty-free,
+     non-exclusive license, subject to third party intellectual property
+     claims:
+
+          (a) to use, reproduce, modify, display, perform, sublicense and
+          distribute the Modifications created by such Contributor (or
+          portions thereof) either on an unmodified basis, with other
+          Modifications, as Covered Code or as part of a Larger Work; and
+
+          (b) under patents now or hereafter owned or controlled by
+          Contributor, to Utilize the Contributor Version (or portions
+          thereof), but solely to the extent that any such patent is
+          reasonably necessary to enable You to Utilize the Contributor
+          Version (or portions thereof), and not to any greater extent that
+          may be necessary to Utilize further Modifications or combinations.
+
+3. Distribution Obligations.
+
+     3.1. Application of License.
+     The Modifications which You create or to which You contribute are
+     governed by the terms of this License, including without limitation
+     Section 2.2. The Source Code version of Covered Code may be distributed
+     only under the terms of this License or a future version of this
+     License released under Section 6.1, and You must include a copy of this
+     License with every copy of the Source Code You distribute. You may not
+     offer or impose any terms on any Source Code version that alters or
+     restricts the applicable version of this License or the recipients'
+     rights hereunder. However, You may include an additional document
+     offering the additional rights described in Section 3.5.
+
+     3.2. Availability of Source Code.
+     Any Modification which You create or to which You contribute must be
+     made available in Source Code form under the terms of this License
+     either on the same media as an Executable version or via an accepted
+     Electronic Distribution Mechanism to anyone to whom you made an
+     Executable version available; and if made available via Electronic
+     Distribution Mechanism, must remain available for at least twelve (12)
+     months after the date it initially became available, or at least six
+     (6) months after a subsequent version of that particular Modification
+     has been made available to such recipients. You are responsible for
+     ensuring that the Source Code version remains available even if the
+     Electronic Distribution Mechanism is maintained by a third party.
+
+     3.3. Description of Modifications.
+     You must cause all Covered Code to which you contribute to contain a
+     file documenting the changes You made to create that Covered Code and
+     the date of any change. You must include a prominent statement that the
+     Modification is derived, directly or indirectly, from Original Code
+     provided by the Initial Developer and including the name of the Initial
+     Developer in (a) the Source Code, and (b) in any notice in an
+     Executable version or related documentation in which You describe the
+     origin or ownership of the Covered Code.
+
+     3.4. Intellectual Property Matters
+
+          (a) Third Party Claims.
+          If You have knowledge that a party claims an intellectual property
+          right in particular functionality or code (or its utilization
+          under this License), you must include a text file with the source
+          code distribution titled ``LEGAL'' which describes the claim and
+          the party making the claim in sufficient detail that a recipient
+          will know whom to contact. If you obtain such knowledge after You
+          make Your Modification available as described in Section 3.2, You
+          shall promptly modify the LEGAL file in all copies You make
+          available thereafter and shall take other steps (such as notifying
+          appropriate mailing lists or newsgroups) reasonably calculated to
+          inform those who received the Covered Code that new knowledge has
+          been obtained.
+
+          (b) Contributor APIs.
+          If Your Modification is an application programming interface and
+          You own or control patents which are reasonably necessary to
+          implement that API, you must also include this information in the
+          LEGAL file.
+
+     3.5. Required Notices.
+     You must duplicate the notice in Exhibit A in each file of the Source
+     Code, and this License in any documentation for the Source Code, where
+     You describe recipients' rights relating to Covered Code. If You
+     created one or more Modification(s), You may add your name as a
+     Contributor to the notice described in Exhibit A. If it is not possible
+     to put such notice in a particular Source Code file due to its
+     structure, then you must include such notice in a location (such as a
+     relevant directory file) where a user would be likely to look for such
+     a notice. You may choose to offer, and to charge a fee for, warranty,
+     support, indemnity or liability obligations to one or more recipients
+     of Covered Code. However, You may do so only on Your own behalf, and
+     not on behalf of the Initial Developer or any Contributor. You must
+     make it absolutely clear than any such warranty, support, indemnity or
+     liability obligation is offered by You alone, and You hereby agree to
+     indemnify the Initial Developer and every Contributor for any liability
+     incurred by the Initial Developer or such Contributor as a result of
+     warranty, support, indemnity or liability terms You offer.
+
+     3.6. Distribution of Executable Versions.
+     You may distribute Covered Code in Executable form only if the
+     requirements of Section 3.1-3.5 have been met for that Covered Code,
+     and if You include a notice stating that the Source Code version of the
+     Covered Code is available under the terms of this License, including a
+     description of how and where You have fulfilled the obligations of
+     Section 3.2. The notice must be conspicuously included in any notice in
+     an Executable version, related documentation or collateral in which You
+     describe recipients' rights relating to the Covered Code. You may
+     distribute the Executable version of Covered Code under a license of
+     Your choice, which may contain terms different from this License,
+     provided that You are in compliance with the terms of this License and
+     that the license for the Executable version does not attempt to limit
+     or alter the recipient's rights in the Source Code version from the
+     rights set forth in this License. If You distribute the Executable
+     version under a different license You must make it absolutely clear
+     that any terms which differ from this License are offered by You alone,
+     not by the Initial Developer or any Contributor. You hereby agree to
+     indemnify the Initial Developer and every Contributor for any liability
+     incurred by the Initial Developer or such Contributor as a result of
+     any such terms You offer.
+
+     3.7. Larger Works.
+     You may create a Larger Work by combining Covered Code with other code
+     not governed by the terms of this License and distribute the Larger
+     Work as a single product. In such a case, You must make sure the
+     requirements of this License are fulfilled for the Covered Code.
+
+4. Inability to Comply Due to Statute or Regulation.
+
+     If it is impossible for You to comply with any of the terms of this
+     License with respect to some or all of the Covered Code due to statute
+     or regulation then You must: (a) comply with the terms of this License
+     to the maximum extent possible; and (b) describe the limitations and
+     the code they affect. Such description must be included in the LEGAL
+     file described in Section 3.4 and must be included with all
+     distributions of the Source Code. Except to the extent prohibited by
+     statute or regulation, such description must be sufficiently detailed
+     for a recipient of ordinary skill to be able to understand it.
+
+5. Application of this License.
+
+     This License applies to code to which the Initial Developer has
+     attached the notice in Exhibit A, and to related Covered Code.
+
+6. Versions of the License.
+
+     6.1. New Versions.
+     Netscape Communications Corporation (``Netscape'') may publish revised
+     and/or new versions of the License from time to time. Each version will
+     be given a distinguishing version number.
+
+     6.2. Effect of New Versions.
+     Once Covered Code has been published under a particular version of the
+     License, You may always continue to use it under the terms of that
+     version. You may also choose to use such Covered Code under the terms
+     of any subsequent version of the License published by Netscape. No one
+     other than Netscape has the right to modify the terms applicable to
+     Covered Code created under this License.
+
+     6.3. Derivative Works.
+     If you create or use a modified version of this License (which you may
+     only do in order to apply it to code which is not already Covered Code
+     governed by this License), you must (a) rename Your license so that the
+     phrases ``Mozilla'', ``MOZILLAPL'', ``MOZPL'', ``Netscape'', ``NPL'' or
+     any confusingly similar phrase do not appear anywhere in your license
+     and (b) otherwise make it clear that your version of the license
+     contains terms which differ from the Mozilla Public License and
+     Netscape Public License. (Filling in the name of the Initial Developer,
+     Original Code or Contributor in the notice described in Exhibit A shall
+     not of themselves be deemed to be modifications of this License.)
+
+7. DISCLAIMER OF WARRANTY.
+
+     COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN ``AS IS'' BASIS,
+     WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+     WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
+     DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
+     THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
+     IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
+     YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
+     COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
+     OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
+     ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+8. TERMINATION.
+
+     This License and the rights granted hereunder will terminate
+     automatically if You fail to comply with terms herein and fail to cure
+     such breach within 30 days of becoming aware of the breach. All
+     sublicenses to the Covered Code which are properly granted shall
+     survive any termination of this License. Provisions which, by their
+     nature, must remain in effect beyond the termination of this License
+     shall survive.
+
+9. LIMITATION OF LIABILITY.
+
+     UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+     (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL
+     DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
+     OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER
+     PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+     OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF
+     GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND
+     ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE
+     BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
+     LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
+     RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
+     PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
+     EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT
+     EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
+
+10. U.S. GOVERNMENT END USERS.
+
+     The Covered Code is a ``commercial item,'' as that term is defined in
+     48 C.F.R. 2.101 (Oct. 1995), consisting of ``commercial computer
+     software'' and ``commercial computer software documentation,'' as such
+     terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
+     C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
+     all U.S. Government End Users acquire Covered Code with only those
+     rights set forth herein.
+
+11. MISCELLANEOUS.
+
+     This License represents the complete agreement concerning subject
+     matter hereof. If any provision of this License is held to be
+     unenforceable, such provision shall be reformed only to the extent
+     necessary to make it enforceable. This License shall be governed by
+     California law provisions (except to the extent applicable law, if any,
+     provides otherwise), excluding its conflict-of-law provisions. With
+     respect to disputes in which at least one party is a citizen of, or an
+     entity chartered or registered to do business in, the United States of
+     America: (a) unless otherwise agreed in writing, all disputes relating
+     to this License (excepting any dispute relating to intellectual
+     property rights) shall be subject to final and binding arbitration,
+     with the losing party paying all costs of arbitration; (b) any
+     arbitration relating to this Agreement shall be held in Santa Clara
+     County, California, under the auspices of JAMS/EndDispute; and (c) any
+     litigation relating to this Agreement shall be subject to the
+     jurisdiction of the Federal Courts of the Northern District of
+     California, with venue lying in Santa Clara County, California, with
+     the losing party responsible for costs, including without limitation,
+     court costs and reasonable attorneys fees and expenses. The application
+     of the United Nations Convention on Contracts for the International
+     Sale of Goods is expressly excluded. Any law or regulation which
+     provides that the language of a contract shall be construed against the
+     drafter shall not apply to this License.
+
+12. RESPONSIBILITY FOR CLAIMS.
+
+     Except in cases where another Contributor has failed to comply with
+     Section 3.4, You are responsible for damages arising, directly or
+     indirectly, out of Your utilization of rights under this License, based
+     on the number of copies of Covered Code you made available, the
+     revenues you received from utilizing such rights, and other relevant
+     factors. You agree to work with affected parties to distribute
+     responsibility on an equitable basis.
+
+EXHIBIT A.
+
+     ``The contents of this file are subject to the Mozilla Public License
+     Version 1.0 (the "License"); you may not use this file except in
+     compliance with the License. You may obtain a copy of the License at
+     http://www.mozilla.org/MPL/
+
+     Software distributed under the License is distributed on an "AS IS"
+     basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+     License for the specific language governing rights and limitations
+     under the License.
+
+     The Original Code is legOS code, released October 17, 1999.
+
+     The Initial Developer of the Original Code is Markus L. Noga.
+     Portions created by Markus L. Noga are Copyright (C) 1999
+     Markus L. Noga. All Rights Reserved.
+
+     Contributor(s): see CONTRIBUTORS_________________________________.''
--- lnpd-0.9.0.orig/debian/lnpdllx.1
+++ lnpd-0.9.0/debian/lnpdllx.1
@@ -0,0 +1,66 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH lnpdllx 1 "January 23, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+lnpdllx \- BrickOS RCX downloader communicating through the LNP Daemon
+.SH SYNOPSIS
+.B lnpdllx
+.RI [ -r {rcxnbr} ] 
+.RI [ -p {programslot} ]
+.RI [ -s {srcport} ]
+.RI [ -v ]
+{filename.lx}
+
+.\"
+.SH DESCRIPTION
+.B lnpdllx
+is an experimental version of lnpdll(1) an lnpd-aware limited version of 
+BrickOS dll(1) which is used to download programs to the RCX running BrickOS.  
+.B lnpdllx
+is different from dll(1) in that it communicates to the IR Tower using the 
+LNP Daemon instead of interacting directly to the tty serial port.
+
+.\"
+.SH OPTIONS
+A summary of options understood by 
+.B lnpdllx
+.
+.TP
+.B \-r {rcxnbr}
+download to the RCX {rcxnbr}
+.TP
+.B \-p {slotnbr}
+place the downloaded program in {slotnbr} ([1-8] for BrickOS)
+.TP
+.B \-s {srcport}
+the port from which you are sending the data
+.TP
+.B \-v
+enable verbose messages
+.TP
+.B \-h
+Show similar help text at command-line.
+
+.SH SEE ALSO
+lnpd(8), lnpdll(1), lnptest(1)
+.sp
+You'll find additional documentation in /usr/share/doc/lnpd (on Debian GNU/Linux systems) 
+
+.SH AUTHOR
+lnpdllx was written by Martin Cornelius <Martin.Cornelius@t-online.de> 
+This man page was written by Stephen Moraco <stephen@debian.org>
+
--- lnpd-0.9.0.orig/debian/lnptest.1
+++ lnpd-0.9.0/debian/lnptest.1
@@ -0,0 +1,61 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH lnptest 1 "January 23, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+lnptest \- LNP Client Test Application
+.SH SYNOPSIS
+.B lnptest
+.\"
+.SH DESCRIPTION
+.B lnptest
+is an LNP Daemon test client used to test the connection between 
+lnptest and the LNP daemon through the Ir Tower to a corresponding test program
+running in an RCX.  See the FILES section for the location of the RCX test program source code (distributed with this package).
+.\"
+.SH OPTIONS
+.B lnptest
+does not support command-line options.
+.\"
+.SH USAGE
+To run the test:
+.br
+\- compile the lnptest.c RCX program 
+.br
+\- start the lnpd daemon
+.br
+\- download the lnptest.lx program to the RCX
+.br
+\- (at the RCX) run the program just downloaded to the RCX
+.br
+\- run this lnptest program
+.br
+\- inspect the output looking for lack of failure messages
+.\"
+.SH FILES
+.TP
+.B /usr/share/doc/lnpd/examples/rcx
+In this directory is the source to the RCX-side program which is called
+lnptest.c but written to be compiled against BrickOS.
+.\"
+.SH SEE ALSO
+lnptest2(1), lnpdll(1), lnpd(8)
+.sp 
+You can find additional documentation in /usr/share/doc/lnpd (on Debian GNU/Linux systems) 
+.\"
+.SH AUTHOR
+lnptest was written by Martin Cornelius <Martin.Cornelius@t-online.de> 
+This man page was written by Stephen Moraco <stephen@debian.org>
--- lnpd-0.9.0.orig/debian/rules
+++ lnpd-0.9.0/debian/rules
@@ -0,0 +1,100 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+include /usr/share/quilt/quilt.make
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: configure $(QUILT_STAMPFN)
+	dh_testdir
+	cp -f /usr/share/misc/config.sub config.sub
+	cp -f /usr/share/misc/config.guess config.guess
+	# Commands to configure the package.
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+
+build: build-stamp
+
+build-stamp: config.status
+	dh_testdir
+
+	# Commands to compile the package.
+	$(MAKE)
+
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Commands to clean up after the build process.
+	[ ! -e Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess
+	# remove things upstream left around
+	rm -f configure.log
+	rm -f config.log
+	rm -f Makefile
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Commands to install the package into debian/lnpd.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/lnpd
+	# Install our missing conffile
+	cp $(CURDIR)/debian/lnpd.conf $(CURDIR)/debian/lnpd/etc/lnpd.conf
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+	dh_installinit
+	dh_installman debian/lnpdll.1 debian/lnpdllx.1 debian/lnptest.1 debian/lnptest2.1
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- lnpd-0.9.0.orig/debian/lnpdll.1
+++ lnpd-0.9.0/debian/lnpdll.1
@@ -0,0 +1,66 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH lnpdll 1 "January 23, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+lnpdll \- BrickOS RCX downloader communicating through the LNP Daemon
+.SH SYNOPSIS
+.B lnpdll
+.RI [ -r {rcxnbr} ] 
+.RI [ -p {programslot} ]
+.RI [ -s {srcport} ]
+.RI [ -v ]
+{filename.lx}
+
+.\"
+.SH DESCRIPTION
+.B lnpdll
+is an lnpd-aware limited version of BrickOS dll(1) which is used to download
+programs to the RCX running BrickOS.  
+.B lnpdll
+is different from dll(1) in that it communicates to the IR Tower using the 
+LNP Daemon instead of interacting directly to the tty serial port.
+
+.\"
+.SH OPTIONS
+A summary of options understood by 
+.B lnpdll
+.
+.TP
+.B \-r {rcxnbr}
+download to the RCX {rcxnbr}
+.TP
+.B \-p {slotnbr}
+place the downloaded program in {slotnbr} ([1-8] for BrickOS)
+.TP
+.B \-s {srcport}
+the port from which you are sending the data
+.TP
+.B \-v
+enable verbose messages
+.TP
+.B \-h
+Show similar help text at command-line.
+
+.SH SEE ALSO
+lnpd(8), lnptest(1), lnptest2(1)
+.sp
+You'll find additional documentation in /usr/share/doc/lnpd (on Debian GNU/Linux systems) 
+
+.SH AUTHOR
+lnpdll was written by Martin Cornelius <Martin.Cornelius@t-online.de> 
+This man page was written by Stephen Moraco <stephen@debian.org>
+
--- lnpd-0.9.0.orig/debian/docs
+++ lnpd-0.9.0/debian/docs
@@ -0,0 +1,4 @@
+AUTHORS
+NEWS
+README
+TODO
--- lnpd-0.9.0.orig/debian/README.source
+++ lnpd-0.9.0/debian/README.source
@@ -0,0 +1,4 @@
+To use this package, you need to install quilt.
+
+Once installed, please see /usr/share/doc/quilt/...
+
--- lnpd-0.9.0.orig/debian/lnpd.default
+++ lnpd-0.9.0/debian/lnpd.default
@@ -0,0 +1,9 @@
+# Defaults controlling boot-time start of BrickOS LNP Daemon
+# sourced by /etc/init.d/lnpd
+# installed at /etc/default/lnpd by the maintainer scripts
+#
+#   NOTE: This is a POSIX shell fragment
+#
+#  Start Daemon at boot-time? 'Yes' or 'No'
+#   NOTE: if 'No' then daemon must be started manually
+START_LNPD=No
--- lnpd-0.9.0.orig/debian/compat
+++ lnpd-0.9.0/debian/compat
@@ -0,0 +1 @@
+5
--- lnpd-0.9.0.orig/debian/patches/manpage_hyphen
+++ lnpd-0.9.0/debian/patches/manpage_hyphen
@@ -0,0 +1,32 @@
+Fixes wrong use of unescaped "-" in man page
+Index: lnpd-0.9.0/lnpd+liblnp/lnpd/lnpd.8
+===================================================================
+--- lnpd-0.9.0.orig/lnpd+liblnp/lnpd/lnpd.8	2008-02-02 09:22:38.000000000 +0000
++++ lnpd-0.9.0/lnpd+liblnp/lnpd/lnpd.8	2008-02-02 09:23:46.000000000 +0000
+@@ -60,7 +60,7 @@
+ .B \-m|\--maxclients={number}
+ Set max number of lnpd clients (default 16).
+ .TP
+-.B \-n|--nolock
++.B \-n|\--nolock
+ Do not manage tty lockfiles.
+ .TP
+ .B \-p|\--port={TCP_Port}
+@@ -81,7 +81,7 @@
+ .B \-u
+ Show short usage message.
+ .TP
+-.B \-V|--version
++.B \-V|\--version
+ Display lnpd version
+ .sp 2
+ .br
+@@ -91,7 +91,7 @@
+ .SH FILES
+ .TP
+ .B /dev/ttyS0
+-The default device for lnpd. (Also See -t: in OPTIONS, above). 
++The default device for lnpd. (Also See \-t: in OPTIONS, above). 
+ .TP
+ .B /usr/share/doc/lnpd/examples/lnptest.c
+ sample BrickOS code to be built and downloaded to your RCX. This code
--- lnpd-0.9.0.orig/debian/patches/series
+++ lnpd-0.9.0/debian/patches/series
@@ -0,0 +1 @@
+manpage_hyphen
