--- libgoio2-2.54.0.orig/debian/changelog
+++ libgoio2-2.54.0/debian/changelog
@@ -0,0 +1,5 @@
+libgoio2 (2.54.0-1) stable; urgency=low
+
+  * Initial Release
+
+ -- Frank Schütte <fschuett@gymnasium-himmelsthuer.de>  Thu, 26 Jul 2012 10:50:38 +0100
--- libgoio2-2.54.0.orig/debian/compat
+++ libgoio2-2.54.0/debian/compat
@@ -0,0 +1 @@
+9
--- libgoio2-2.54.0.orig/debian/control
+++ libgoio2-2.54.0/debian/control
@@ -0,0 +1,15 @@
+Source: libgoio2
+Section: debian-linuxmuster
+Priority: optional
+Maintainer: Frank Schütte <fschuett@gymnasium-himmelsthuer.de>
+Build-Depends: debhelper (>= 4.1.6), libusb-1.0-0, libusb-1.0-0-dev, automake (>= 1.9.0)
+
+Package: libgoio2
+Architecture: any
+Provides: libgoio2, libGoIO2
+Depends: libusb-1.0-0
+Description: C++ library to interface vernier go computer interfaces
+ The Vernier Software GmbH provides quite some computer interfaces 
+ to make measurements for science at school.
+ This library provides a c++ interface to make use of this computer 
+ interfaces and the available sensors in a user program.
--- libgoio2-2.54.0.orig/debian/copyright
+++ libgoio2-2.54.0/debian/copyright
@@ -0,0 +1,11 @@
+This package was debianized by Frank Schütte <fschuett@gymnasium-himmelsthuer.de> 2012.
+
+The copyright of this package is GPL, version 2 or later.
+On Debian systems the complete text of the GPL is in
+/usr/share/common-licenses/GPL
+
+    Pedants who belive I cannot legally say that code I have written is in
+    the public domain may consider them instead to be licensed as follows:
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted under any circumstances. No warranty.
--- libgoio2-2.54.0.orig/debian/install
+++ libgoio2-2.54.0/debian/install
@@ -0,0 +1,14 @@
+AUTHORS     usr/share/doc/libgoio2/
+ChangeLog   usr/share/doc/libgoio2/
+README      usr/share/doc/libgoio2/
+COPYING     usr/share/doc/libgoio2/
+INSTALL     usr/share/doc/libgoio2/
+NEWS        usr/share/doc/libgoio2/
+README      usr/share/doc/libgoio2/
+src/GoIO_cpp/GSensorDDSMem.h    usr/include/GoIO/
+src/GoIO_cpp/GSkipCommExt.h     usr/include/GoIO/
+src/GoIO_cpp/GVernierUSB.h      usr/include/GoIO/
+src/GoIO_cpp/GMiniGCDDSMem.h    usr/include/GoIO/
+src/GoIO_DLL/48-ldusb.rules     etc/udev/rules.d/48-goio_ldusb.rules
+src/GoIO_DLL/vstlibusb.rules     etc/udev/rules.d/vstlibusb.rules
+
--- libgoio2-2.54.0.orig/debian/rules
+++ libgoio2-2.54.0/debian/rules
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export VER=54
+export DESTDIR=/usr/src/packages/BUILD/debian/libgoio2
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+
+CFLAGS = -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -O0
+else
+CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	(cd src; touch NEWS README AUTHORS ChangeLog)
+	(cd src; ./autogen.sh --prefix=/usr --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --sysconfdir=/usr/lib --enable-libusb --enable-handheld --enable-log)
+	(cd src; make)
+	(cd src; make dist)
+	# --- end custom part for compiling
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	# Add here commands to clean up after the build process.
+	make clean || true
+	# --- end custom part for cleaning up
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package
+	# The DESTDIR Has To Be Exactly  /usr/src/packages/BUILD/debian/<nameOfPackage>
+	# fix permissions
+	(cd src; chmod 644 AUTHORS NEWS)
+	(cd src; make install)
+	# remove conflict with cassy package
+	mv ${DESTDIR}/usr/lib/udev/rules.d/48-ldusb.rules ${DESTDIR}/usr/lib/udev/rules.d/48-goio_ldusb.rules
+	# --- end custom part for installing
+
+# 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_installdebconf
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	dh_installcron
+	dh_installman
+	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
+
--- libgoio2-2.54.0.orig/src/GoIO_DLL/48-ldusb.rules
+++ libgoio2-2.54.0/src/GoIO_DLL/48-ldusb.rules
@@ -1,2 +1,2 @@
 # ldusb devices
-KERNEL=="ldusb*",		NAME="%k", GROUP="plugdev"
\ No newline at end of file
+KERNEL=="ldusb*",		NAME="%k", MODE="666", GROUP="plugdev"
\ No newline at end of file
--- libgoio2-2.54.0.orig/src/GoIO_DLL/vstlibusb.rules
+++ libgoio2-2.54.0/src/GoIO_DLL/vstlibusb.rules
@@ -1,2 +1,2 @@
 SUBSYSTEM=="usb", ATTRS{idVendor}=="08f7", MODE="0666"
-SUBSYSTEM=="usb_device", ATTRS{idVendor}=="08f7", MODE="0666"
+SUBSYSTEM=="usbmisc", ATTRS{idVendor}=="08f7", MODE="0666"
--- libgoio2-2.54.0.orig/src/GoIO_cpp/NonSmartSensorDDSRecs.cpp
+++ libgoio2-2.54.0/src/GoIO_cpp/NonSmartSensorDDSRecs.cpp
@@ -94,7 +94,7 @@
 	0,							    	// Uncertainty
 	0x22,							    // SigFigures
 	1,							    	// CurrentRequirement
-	-1,									// Averaging
+	(unsigned char)-1,					// Averaging
 	0.005,								// MinSamplePeriod
 	0.5,								// TypSamplePeriod
 	360,                                // TypNumberOfSamples
@@ -127,7 +127,7 @@
 	0,							    	// Uncertainty
 	0x45,							    // SigFigs
 	1,							    	// CurrentRequirement
-	-1,									// Averaging
+	(unsigned char)-1,					// Averaging
 	0.00002,                            // MinSamplePeriod
 	0.1,                                // TypSamplePeriod
 	150,                                // TypNumberOfSamples
@@ -160,7 +160,7 @@
 	0,							    	// Uncertainty
 	0x45,							    // SigFigs
 	1,							    	// CurrentRequirement
-	-1,									// Averaging
+	(unsigned char)-1,					// Averaging
 	0.00002,                            // MinSamplePeriod
 	0.1,                                // TypSamplePeriod
 	150,                                // TypNumberOfSamples
@@ -192,8 +192,8 @@
 	"Current",				    		// SensorShortName
 	0,							    	// Uncertainty
 	0x45,							    // sigfigs
-	-1,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,			    	// CurrentRequirement
+	(unsigned char)-1,                  // Averaging
 	-1.0,                               // MinSamplePeriod
 	0.00002,                            // TypSamplePeriod
 	180,                                // TypNumberOfSamples
@@ -226,7 +226,7 @@
 	0,							    	// Uncertainty
 	0x45,					            // sig figs
 	7,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.00002,                            // MinSamplePeriod
 	0.1,                                // TypSamplePeriod
 	180,                                // TypNumberOfSamples
@@ -259,7 +259,7 @@
 	0,							    	// Uncertainty
 	0x56,							    // sig figs
 	7,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.00002,                            // MinSamplePeriod
 	0.1,                                // TypSamplePeriod
 	180,                                // TypNumberOfSamples
@@ -325,7 +325,7 @@
 	0,							    	// Uncertainty
 	0x55,							    // SigFigs
 	5,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.001,								// MinSamplePeriod
 	0.05,                               // TypSamplePeriod
 	200,                                // TypNumberOfSamples
@@ -423,8 +423,8 @@
 	"EKG",				    		    // SensorShortName
 	0,							    	// Uncertainty
 	0x55,							    // SigFigures
-	-1,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,			    	// CurrentRequirement
+	(unsigned char)-1,                  // Averaging
 	0.005,                              // MinSamplePeriod
 	0.01,                               // TypSamplePeriod
 	200,                                // TypNumberOfSamples
@@ -457,7 +457,7 @@
 	0,							    	// Uncertainty
 	0x33,						        // Sig figs
 	7,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.01,								// MinSamplePeriod
 	0.5,                                // TypSamplePeriod
 	360,                                // TypNumberOfSamples
@@ -490,7 +490,7 @@
 	0,							    	// Uncertainty
 	0x12,						        // Sig figs
 	47,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	4.0,                                // MinSamplePeriod
 	4.0,                                // TypSamplePeriod
 	150,                                // TypNumberOfSamples
@@ -523,7 +523,7 @@
 	0,							    	// Uncertainty
 	0x34,						        // Sig figs
 	2,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	1.0,                                // MinSamplePeriod
 	1.0,								// TypSamplePeriod
 	300,								// TypNumberOfSamples
@@ -589,7 +589,7 @@
 	0,							    	// Uncertainty
 	0x55,							    // SigFigs
 	40,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.001,                              // MinSamplePeriod
 	1.00,                               // TypSamplePeriod
 	500,                                // TypNumberOfSamples
@@ -622,7 +622,7 @@
 	0,							    	// Uncertainty
 	0x22,							    // SigFigs
 	30,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.0001,                             // MinSamplePeriod
 	0.1,								// TypSamplePeriod
 	180,                                // TypNumberOfSamples
@@ -654,7 +654,7 @@
 	0,							    	// Uncertainty
 	0x22,							    // SigFigs
 	40,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.0001,                             // MinSamplePeriod
 	1.00,                               // TypSamplePeriod
 	1800,                               // TypNumberOfSamples
@@ -687,7 +687,7 @@
 	0,							    	// Uncertainty
 	0x22,							    // SigFigs
 	21,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.01,								// MinSamplePeriod
 	0.05,								// TypSamplePeriod
 	200,                                // TypNumberOfSamples
@@ -719,7 +719,7 @@
 	0,							    	// Uncertainty
 	0x22,							    // SigFigs
 	0,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.01,								// MinSamplePeriod
 	10.0,								// TypSamplePeriod
 	60,									// TypNumberOfSamples
@@ -752,7 +752,7 @@
 	0,							    	// Uncertainty
 	0x22,							    // SigFigs
 	21,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.01,								// MinSamplePeriod
 	0.05,								// TypSamplePeriod
 	200,                                // TypNumberOfSamples
@@ -785,7 +785,7 @@
 	0,							    	// Uncertainty
 	0x22,							    // SigFigs
 	30,							    	// CurrentRequirement
-	-1,                                 // Averaging
+	(unsigned char)-1,                  // Averaging
 	0.0001,                             // MinSamplePeriod
 	0.1,								// TypSamplePeriod
 	180,                                // TypNumberOfSamples
