--- rxtx-1.3.3.orig/Makefile.am +++ rxtx-1.3.3/Makefile.am @@ -48,13 +48,14 @@ install-lib: ( cd $(TOP)/$(target_alias) ; \ if [ -f libSerial.la ];then \ - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) libSerial.la $(RXTX_PATH);\ + $(LIBTOOL) --mode=install $(INSTALL_DATA) libSerial.la $(RXTX_PATH);\ fi; \ if [ -f libParallel.la ];then \ - $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) libParallel.la $(RXTX_PATH);\ + $(LIBTOOL) --mode=install $(INSTALL_DATA) libParallel.la $(RXTX_PATH);\ fi; \ ) - $(INSTALL_PROGRAM) jcl.jar $(JPATH)/$(JCL_PATH)/ +# $(INSTALL_PROGRAM) jcl.jar $(JPATH)/$(JCL_PATH)/ + $(INSTALL_DATA) jcl.jar $(RXTX_PATH) run: $(TOP)/test.class all jcl (cd $(TOP)/;chmod 755 *.class;\ LD_LIBRARY_PATH="$(target_alias)";\ --- rxtx-1.3.3.orig/configure.in +++ rxtx-1.3.3/configure.in @@ -158,12 +158,13 @@ #a good idea? -JAVAINCLUDE="\$(JPATH)/include" +#JAVAINCLUDE="\$(JPATH)/include" [ case $OS_NAME in Linux) case $JAVA_VERSION in 1.2*) JCLASSPATH="-classpath \$(TOP):\$(TOP)/src:.:$CLASSPATH" + JAVAINCLUDE="/usr/lib/jdk1.2/include" JAVA_H_CLASSPATH="-classpath .:`find $JPATH/ -name comm.jar`" RXTX_PATH="\$(prefix)/lib" JCL_PATH="\$(JPATH)/lib" @@ -205,8 +206,9 @@ esac ;; 1.*) - JCLASSPATH="-classpath \$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/comm.jar:\$(JPATH)/lib/jcl.jar:.:$CLASSPATH" + JCLASSPATH="-classpath \$(TOP):\$(TOP)/src:\$(JPATH)/lib/classes.zip:\$(JPATH)/lib/comm.jar:\$(JPATH)/lib/jcl.jar:.:$CLASSPATH:/usr/lib/jdk1.1/lib/classes.zip:/usr/lib/jdk1.1/lib/comm.jar" JAVA_H_CLASSPATH="\$(JCLASSPATH)" + JAVAINCLUDE="/usr/lib/jdk1.1/include" case $OS_NAME in Linux) RXTX_PATH="\$(prefix)/lib/" --- rxtx-1.3.3.orig/debian/README.debian +++ rxtx-1.3.3/debian/README.debian @@ -0,0 +1,10 @@ +The Debian Package rxtx +----------------------- + +rxtx is a native interface to serial ports in java by Trent Jarvi +. This is a native lib for jdk 1.1.*/1.2.*. + +Copies of the latest RXTX will be on ftp://jarvi.ezlink.com/pub/rxtx. +The primary source for information/support is http://jarvi.ezlink.com/rxtx/. + +Christian Leutloff , Mon, 28 Jun 1999 11:47:41 +0200 --- rxtx-1.3.3.orig/debian/changelog +++ rxtx-1.3.3/debian/changelog @@ -0,0 +1,28 @@ +rxtx (1.3.3-4) unstable; urgency=low + + * control: depends on jdk1.1 (>= 1.1.7v2) + + -- Christian Leutloff Sun, 4 Jul 1999 12:48:05 +0200 + +rxtx (1.3.3-3) unstable; urgency=low + + * fixed package layout + + -- Christian Leutloff Sun, 4 Jul 1999 12:47:06 +0200 + +rxtx (1.3.3-2) unstable; urgency=low + + * improve generation of the needed links (could be improved further) and + package layout + + -- Christian Leutloff Wed, 30 Jun 1999 10:25:58 +0200 + +rxtx (1.3.3-1) unstable; urgency=low + + * Initial Release. + + -- Christian Leutloff Mon, 28 Jun 1999 11:47:41 +0200 + +Local variables: +mode: debian-changelog +End: --- rxtx-1.3.3.orig/debian/copyright +++ rxtx-1.3.3/debian/copyright @@ -0,0 +1,22 @@ +This package was written by Christian Leutloff leutloff@debian.org on Mon, 28 Jun 1999 11:47:41 +0200. + +Copyright: GPL (see /usr/doc/copyright/GPL) + + +rxtx is a native interface to serial ports in java. +Copyright 1997, 1998, 1999 by Trent Jarvi jarvi@ezlink.com. + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with this library; if not, write to the Free +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + --- rxtx-1.3.3.orig/debian/dirs +++ rxtx-1.3.3/debian/dirs @@ -0,0 +1,3 @@ +/usr/lib/ +/usr/share/java/ +/etc --- rxtx-1.3.3.orig/debian/control +++ rxtx-1.3.3/debian/control @@ -0,0 +1,15 @@ +Source: rxtx +Section: contrib/devel +Priority: optional +Maintainer: Christian Leutloff +Standards-Version: 2.5.0 + +Package: lib-rxtx-java +Architecture: any +Depends: jdk1.1 (>= 1.1.7v2) | jdk1.2 | jdk1.1-native | jdk1.2-native +Suggests: jdk-common +Description: native interface to serial ports in java + This is a native library for jdk 1.1.*/1.2.*. + . + The CommAPI (javax.comm.*) from Sun is additionally needed to be able + to program the serial interfaces. --- rxtx-1.3.3.orig/debian/rules +++ rxtx-1.3.3/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + +# Add here commands to compile the package. + export JDK_HOME=/usr/lib/jdk1.1 + ./autogen.sh --with-gnu-ld --x-includes=/usr/lib/jdk1.1/include --prefix=`pwd`/debian/tmp/usr + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + +# Add here commands to clean up after the build process. + -$(MAKE) clean + -$(MAKE) distclean + + dh_clean config.cache config.h config.h.in config.status Makefile.in configure config.log config.guess config.sub ltconfig ltmain.sh aclocal.m4 + rm -rf javax com META-INF + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +# Add here commands to install the package into debian/tmp. + $(MAKE) prefix=`pwd`/debian/tmp/usr install + mv debian/tmp/usr/lib/jcl.jar debian/tmp/usr/share/java/ + cp debian/javax.comm.properties debian/tmp/etc/ + + touch install-stamp + +# 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_testversion + dh_testdir + dh_testroot + dh_installdocs AUTHORS BUGS CommAPI PORTING README TODO INSTALL + dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron +# dh_installmanpages +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms +# You may want to make some executables suid here. + dh_suidregister + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- rxtx-1.3.3.orig/debian/postinst +++ rxtx-1.3.3/debian/postinst @@ -0,0 +1,56 @@ +#!/bin/sh + +set -e + +RXTXJDK11PATH=/usr/lib/jdk1.1/lib +RXTXJDK12PATH=/usr/lib/jdk1.2/jre/lib/ext +RXTXLOCALJDK12PATH=/usr/local/jdk1.2/jre/lib/ext + +case "$1" in + configure*) + ldconfig + # JDK 1.1 + if [ -f $RXTXJDK11PATH/classes.zip ]; then + if [ -L $RXTXJDK11PATH/jcl.jar -o -e $RXTXJDK11PATH/jcl.jar ]; then + echo "$RXTXJDK11PATH/jcl.jar already exists." + else + echo "creating symlinks for JDK 1.1" + cd $RXTXJDK11PATH; ln -s ../../../share/java/jcl.jar . + fi + fi + # JDK 1.2 - Debian standard directory + if [ -d $RXTXJDK12PATH ]; then + if [ -L $RXTXJDK12PATH/jcl.jar -o -e $RXTXJDK12PATH/jcl.jar ]; then + echo "$RXTXJDK12PATH/jcl.jar already exists." + else + echo "creating symlinks for JDK 1.2" + ARCH=`dpkg --print-architecture` + echo "Arch: $ARCH" + cd $RXTXJDK12PATH; ln -s ../../../../../share/java/jcl.jar . + #jdk1.2/jre/lib/i386: + cd $RXTXJDK12PATH/../../$ARCH/; ln -s /usr/lib/libSerial.so . + fi + fi + # JDK 1.2 - Debian standard directory + if [ -d $RXTXLOCALJDK12PATH ]; then + if [ -L $RXTXLOCALJDK12PATH/jcl.jar -o -e $RXTXJDK12PATH/jcl.jar ]; then + echo "$RXTXLOCALJDK12PATH/jcl.jar already exists." + else + echo "creating symlinks for JDK 1.2" + ARCH=`dpkg --print-architecture` + echo "Arch: $ARCH" + cd $RXTXLOCALJDK12PATH; ln -s ../../../../../share/java/jcl.jar . + #jdk1.2/jre/lib/i386: + cd $RXTXLOCALJDK12PATH/../../$ARCH/; ln -s /usr/lib/libSerial.so . + fi + fi + echo "This serial driver has to be enabled through modifying javax.comm.properties" + echo "provided by the javax.comm package from sun. You may copy a file with the " + echo "right content named /etc/javax.comm.properties." + echo + echo "The javax.comm package from sun has to be installed, too." + ;; + *) + ;; +esac + --- rxtx-1.3.3.orig/debian/javax.comm.properties +++ rxtx-1.3.3/debian/javax.comm.properties @@ -0,0 +1 @@ +Driver=gnu.io.RXTXCommDriver --- rxtx-1.3.3.orig/debian/conffiles +++ rxtx-1.3.3/debian/conffiles @@ -0,0 +1 @@ +/etc/javax.comm.properties