debian/0000755000000000000000000000000012233563457007200 5ustar debian/rules0000755000000000000000000000003612233563457010257 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000211112233563457010576 0ustar Source: libdevice-usb-perl Maintainer: Debian Perl Group Uploaders: Tim Retout Section: perl Priority: optional Build-Depends: debhelper (>= 9.20120312), perl, libinline-perl, libusb-dev, libtest-pod-perl, libtest-pod-coverage-perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libdevice-usb-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libdevice-usb-perl.git Homepage: https://metacpan.org/release/Device-USB/ Package: libdevice-usb-perl Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${perl:Depends}, libinline-perl Description: Perl module to access USB devices using libusb Device::USB provides a Perl interface to the C library libusb. This library supports a relatively full set of functionality to access a USB device. In addition, Device::USB provides a few convenience features that are intended to produce a more Perl-ish interface. debian/source/0000755000000000000000000000000012233563457010500 5ustar debian/source/format0000644000000000000000000000001412233563457011706 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000345012233563457011054 0ustar libdevice-usb-perl (0.36-1) unstable; urgency=low * Team upload. * New upstream release. * debian/copyright: update years and email address. * Drop pod-encoding.diff, merged upstream. Refresh remaining patches. * Declare compliance with Debian Policy 3.9.5. -- gregor herrmann Mon, 28 Oct 2013 23:37:11 +0100 libdevice-usb-perl (0.35-3) unstable; urgency=low * Team upload. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * New patch pod-encoding.diff: add encoding information to POD. (Closes: #708012) * debian/copyright: switch formatting to Copyright-Format 1.0, update license texts. * Set Standards-Version to 3.9.4 (no changes). * Use debhelper 9.20120312 to get all hardening flags. * New patch hardening-flags.diff: Pass *FLAGS to compiler and linker to really enable hardening. -- gregor herrmann Sun, 12 May 2013 19:45:12 +0200 libdevice-usb-perl (0.35-2) unstable; urgency=low * Team upload. [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. * Patch Makefile.PL to not check for libusb. (Closes: #639677) + new patch: just-assume-libusb-is-there.diff * Bump Standards-Version to 3.9.2 (no changes). [ Salvatore Bonaccorso ] * debian/copyright: Replace DEP5 Format-Specification URL from svn.debian.org to anonscm.debian.org URL. -- Ansgar Burchardt Mon, 29 Aug 2011 13:34:22 +0200 libdevice-usb-perl (0.35-1) unstable; urgency=low * Initial Release. (Closes: #592193) -- Tim Retout Tue, 10 Aug 2010 03:31:28 +0100 debian/compat0000644000000000000000000000000212233563457010376 0ustar 9 debian/libdevice-usb-perl.examples0000644000000000000000000000001412233563457014410 0ustar dump_usb.pl debian/patches/0000755000000000000000000000000012233563457010627 5ustar debian/patches/fix-typo0000644000000000000000000000102612233563457012330 0ustar Description: Fix typo in pod. Forwarded: no Author: Tim Retout Reviewed-by: gregor herrmann Last-Update: 2013-10-28 --- a/lib/Device/USB.pm +++ b/lib/Device/USB.pm @@ -481,7 +481,7 @@ =head1 FOR MORE INFORMATION The project is hosted at Google Code L. -More information on the project, including installation help is avaliable on the +More information on the project, including installation help is available on the Wiki. =head1 LIMITATIONS debian/patches/disable-tests0000644000000000000000000000207012233563457013314 0ustar Description: Disable failing tests When run in pbuilder, some USB tests are failing consistently. This is most likely because this environment has no access to the USB devices. Forwarded: not-needed Author: Tim Retout Reviewed-by: gregor herrmann Last-Update: 2013-10-28 --- a/t/02-find_busses_devices.t +++ b/t/02-find_busses_devices.t @@ -1,6 +1,6 @@ #!perl -T -use Test::More tests => 4; +use Test::More tests => 2; use Device::USB; use strict; use warnings; @@ -10,8 +10,8 @@ ok( defined $usb, "Object successfully created" ); can_ok( $usb, "find_busses", "find_devices" ); -my $bus_changes = $usb->find_busses(); -is( $usb->find_busses(), 0, "No bus changes since last call." ); +#my $bus_changes = $usb->find_busses(); +#is( $usb->find_busses(), 0, "No bus changes since last call." ); -my $device_changes = $usb->find_devices(); -is( $usb->find_devices(), 0, "No device changes since last call." ); +#my $device_changes = $usb->find_devices(); +#is( $usb->find_devices(), 0, "No device changes since last call." ); debian/patches/just-assume-libusb-is-there.diff0000644000000000000000000000131012233563457016730 0ustar Subject: Just assume libusb is out there Makefile.PL should not try to check for libusb in a given list of directories as the compiler might look in other places as well. Origin: vendor Bug-Debian: http://bugs.debian.org/639677 Forwarded: not-needed From: Ansgar Burchardt Reviewed-by: gregor herrmann Last-Update: 2013-10-28 --- libdevice-usb-perl.orig/Makefile.PL +++ libdevice-usb-perl/Makefile.PL @@ -21,7 +21,7 @@ } } -unless(header_found()) +unless(1 || header_found()) { die <<"END"; ERROR: Can't find usb.h header. @@ -36,7 +36,7 @@ END } -unless(lib_found()) +unless(1 || lib_found()) { die <<"END"; ERROR: Can't find libusb library. debian/patches/series0000644000000000000000000000013512233563457012043 0ustar disable-tests fix-typo fix-buildsystem just-assume-libusb-is-there.diff hardening-flags.diff debian/patches/hardening-flags.diff0000644000000000000000000000202212233563457014506 0ustar Description: pass *FLAGS to compiler and linker for hardening Origin: vendor Forwarded: no Author: gregor herrmann Last-Update: 2013-10-28 --- a/lib/Device/USB.pm +++ b/lib/Device/USB.pm @@ -4,6 +4,7 @@ use warnings; use strict; use Carp; +use Config; use Inline ( C => "DATA", @@ -15,6 +16,8 @@ ($ENV{LIBUSB_INCDIR} ? ( INC => "-I\"$ENV{LIBUSB_INCDIR}\"" ) : () ), NAME => 'Device::USB', VERSION => '0.36', + CCFLAGS => "$Config{ccflags} $ENV{CFLAGS} $ENV{CPPFLAGS}", + LDDLFLAGS => "$Config{lddlflags} $ENV{LDFLAGS}", ); Inline->init(); --- a/Makefile.PL +++ b/Makefile.PL @@ -1,6 +1,7 @@ use strict; use warnings; use Inline::MakeMaker; +use Config; sub MY::libscan { return if ($_[1] eq 'USB.pm' or $_[1] eq 'dump_usb.pl'); @@ -71,6 +72,8 @@ "ExtUtils::MakeMaker" => 0, 'Inline::MakeMaker' => 0, }, + CCFLAGS => "$Config{ccflags} $ENV{CFLAGS} $ENV{CPPFLAGS}", + LDFLAGS => "$Config{lddlflags} $ENV{LDFLAGS}", ); debian/patches/fix-buildsystem0000644000000000000000000000071412233563457013704 0ustar Description: Ignore files we do not want installed. Forwarded: not-needed Author: Tim Retout Reviewed-by: gregor herrmann Last-Update: 2013-10-28 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,11 @@ use warnings; use Inline::MakeMaker; +sub MY::libscan { + return if ($_[1] eq 'USB.pm' or $_[1] eq 'dump_usb.pl'); + return $_[1]; +} + if($^O eq 'MSWin32') { if(!$ENV{LIBUSB_LIBDIR} or !$ENV{LIBUSB_INCDIR}) debian/copyright0000644000000000000000000000207212233563457011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Device-USB Upstream-Contact: G. Wade Johnson Source: https://metacpan.org/release/Device-USB/ Files: * Copyright: 2006, G. Wade Johnson 2006-2013, Houston Perl Mongers License: Artistic or GPL-1+ Files: debian/* Copyright: 2010, Tim Retout License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000016212233563457010230 0ustar version=3 https://metacpan.org/release/Device-USB/ .*/Device-USB-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$