debian/0000755000000000000000000000000012264326573007200 5ustar debian/rules0000755000000000000000000000012012264326573010251 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_test: NO_NETWORK=1 dh_auto_test debian/control0000644000000000000000000000315012264326573010602 0ustar Source: libnet-mac-vendor-perl Maintainer: Debian Perl Group Uploaders: Matt Zagrabelny , Ansgar Burchardt Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, perl (>= 5.13.11) | libtest-simple-perl (>= 0.98), libtest-pod-perl, libtest-pod-coverage-perl, libwww-perl Standards-Version: 3.9.5 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libnet-mac-vendor-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libnet-mac-vendor-perl.git Homepage: https://metacpan.org/release/Net-MAC-Vendor/ Package: libnet-mac-vendor-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libwww-perl Description: module to look up the vendor by OUI The Institute of Electrical and Electronics Engineers (IEEE) assigns an Organizational Unique Identifier (OUI) to manufacturers of network interfaces. Each interface has a Media Access Control (MAC) address of six bytes. The first three bytes are the OUI. . Net::MAC::Vendor allows you to take a MAC address and turn it into the OUI and vendor information. You can, for instance, scan a network, collect MAC addresses, and turn those addresses into vendors. With vendor information, you can often guess at what you are looking at (e.g. an Apple product). . You can use this as a module as its individual functions, or call it as a script with a list of MAC addresses as arguments. The module can figure it out. debian/source/0000755000000000000000000000000012264326573010500 5ustar debian/source/format0000644000000000000000000000001312264326573011705 0ustar 3.0 (quilt)debian/changelog0000644000000000000000000000445312264326573011060 0ustar libnet-mac-vendor-perl (1.21-1) unstable; urgency=medium * Team upload. * New upstream release. * Update years of upstream copyright. * Make short description a noun phrase. * Declare compliance with Debian Policy 3.9.5. -- gregor herrmann Sat, 11 Jan 2014 21:45:35 +0100 libnet-mac-vendor-perl (1.20-1) unstable; urgency=low * Team upload. [ Harlan Lieberman-Berg ] * Update d/* to latest S-V [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). * Change search.cpan.org based URIs to metacpan.org based URIs [ Ansgar Burchardt ] * Email change: Ansgar Burchardt -> ansgar@debian.org * debian/control: Convert Vcs-* fields to Git. [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Nuno Carvalho ] * New upstream release (Closes: #724227) * debian/control: + update standards version to 3.9.4 + remove libdbm-deep-perl from D-B-I, not required anymore + require Test::More 0.98 in D-B-I * debian/copyright: + update copyright years + cosmetic update license stanzas and entries * Update patch to skip tests that required internet * debian/rules: add override_dh_auto_test to set NO_NETWORK -- Nuno Carvalho Tue, 08 Oct 2013 16:03:16 +0100 libnet-mac-vendor-perl (1.18-2) unstable; urgency=low [ Nathan Handler ] * debian/watch: Update to ignore development releases. [ Ansgar Burchardt ] * Use minimal debian/rules. * New patch "network-tests.patch": Do not fail tests if not connected to network (Closes: #534045). * Add myself to Uploaders. * Bump Standards Version to 3.8.2 (no changes). * Add build-dep on libtest-pod-perl, libtest-pod-coverage-perl, libdbm-deep-perl to enable additional tests. * Remove duplicated word from package description. * Do not install unhelpful examples/README. * add "makefile.patch" fixing installed POD manual page extension -- Ansgar Burchardt Sun, 21 Jun 2009 19:52:39 +0200 libnet-mac-vendor-perl (1.18-1) unstable; urgency=low * Initial Release. (Closes: #501717) -- Matt Zagrabelny Wed, 8 Apr 2009 13:31:24 -0500 debian/libnet-mac-vendor-perl.docs0000644000000000000000000000000712264326573014315 0ustar README debian/compat0000644000000000000000000000000212264326573010376 0ustar 8 debian/patches/0000755000000000000000000000000012264326573010627 5ustar debian/patches/no-network-tests.patch0000644000000000000000000000623312264326573015117 0ustar Description: skip tests that need internet access, if NO_NETWORK is set Author: Nuno Carvalho Forwarded: not-needed Last-Update: 2013-10-08 --- a/t/fetch_oui_from_ieee.t +++ b/t/fetch_oui_from_ieee.t @@ -5,13 +5,17 @@ use_ok( $class ); ok( defined &{"${class}::fetch_oui_from_ieee"}, "&fetch_oui_from_ieee is defined" ); -my $array = Net::MAC::Vendor::fetch_oui_from_ieee( '00:01:02' ); -isa_ok( $array, ref [], "Got back array reference" ); +SKIP: { + skip 'Tests require internet', 3 if $ENV{NO_NETWORK}; -my $html = join "\n", @$array; + my $array = Net::MAC::Vendor::fetch_oui_from_ieee( '00:01:02' ); + isa_ok( $array, ref [], "Got back array reference" ); -like( $html, qr/3COM CORPORATION/, "Fetched 3M's OUI entry" ); + my $html = join "\n", @$array; -unlike( $html, qr/PRIVATE/, "Still see PRIVATE in 3M entry" ); + like( $html, qr/3COM CORPORATION/, "Fetched 3M's OUI entry" ); + + unlike( $html, qr/PRIVATE/, "Still see PRIVATE in 3M entry" ); +} done_testing(); --- a/t/fetch_oui.t +++ b/t/fetch_oui.t @@ -13,15 +13,19 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -my $connected = head( 'http://standards.ieee.org/regauth/oui/oui.txt' ); +SKIP: { + skip 'Tests require internet', 1 if $ENV{NO_NETWORK}; + + my $connected = head( 'http://standards.ieee.org/regauth/oui/oui.txt' ); -ok( defined $connected, "Am connected to network" ); + ok( defined $connected, "Am connected to network" ); +} # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # SKIP: { -skip "Can't connect to the IEEE web site", 4 unless $connected; +skip "Can't connect to the IEEE web site", 4 unless ($connected or $ENV{NO_NETWORK}); Net::MAC::Vendor::fetch_oui( $oui[0] ); --- a/t/rt79369.t +++ b/t/rt79369.t @@ -11,10 +11,14 @@ my $private_mac = '00-00-6C'; subtest html => sub { - my $array = Net::MAC::Vendor::lookup( $private_mac ); - isa_ok( $array, ref [], "Got back array reference" ); + SKIP: { + skip 'Tests require internet', 2 if $ENV{NO_NETWORK}; - is( $array->[0], 'PRIVATE', 'This is a private entry' ); + my $array = Net::MAC::Vendor::lookup( $private_mac ); + isa_ok( $array, ref [], "Got back array reference" ); + + is( $array->[0], 'PRIVATE', 'This is a private entry' ); + } }; subtest local_cache => sub { --- a/t/run.t +++ b/t/run.t @@ -6,7 +6,9 @@ ok( defined &{"${class}::run"}, "run() method is defined" ); can_ok( $class, qw(run) ); -{ +SKIP: { +skip 'Tests require internet', 1 if $ENV{NO_NETWORK}; + local *STDOUT; open STDOUT, ">", \ my $output; --- a/t/load_cache.t +++ b/t/load_cache.t @@ -12,7 +12,9 @@ is( $rc, undef, "load_cache returns undef for bad source [not_there.txt]"); } -{ +SKIP: { +skip 'Tests require internet', 1 if $ENV{NO_NETWORK}; + local *STDERR; open STDERR, ">", \my $output; my $rc = Net::MAC::Vendor::load_cache(); debian/patches/series0000644000000000000000000000002712264326573012043 0ustar no-network-tests.patch debian/copyright0000644000000000000000000000204112264326573011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: https://metacpan.org/release/Net-MAC-Vendor/ Upstream-Contact: brian d foy Upstream-Name: Net-MAC-Vendor Files: * Copyright: 2004-2014, brian d foy License: Artistic or GPL-1+ Files: debian/* Copyright: 2009, Matt Zagrabelny 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/watch0000644000000000000000000000017212264326573010231 0ustar version=3 https://metacpan.org/release/Net-MAC-Vendor/ .*/Net-MAC-Vendor-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$