debian/0000755000000000000000000000000012203446471007171 5ustar debian/patches/0000755000000000000000000000000012203445032010610 5ustar debian/patches/series0000644000000000000000000000003612203444750012032 0ustar 20skip_send_packet_test.patch debian/patches/20skip_send_packet_test.patch0000644000000000000000000000303712203444620016345 0ustar Author: Niko Tyni , Franck Joncourt Description: update tests for Debian The build dependency against Net:Pcap is dropped since it is only used to find out an active network interface. The ifconfig(8) command is used instead when DEBIAN_BUILD is set. . Sending ARP packets through the Net::ARP::send_packet function requires real root privileges. Thus, we skip the send_packet test. --- a/t/send_packet.t +++ b/t/send_packet.t @@ -5,7 +5,7 @@ # Last update: 22.06.2013 use Net::ARP; -use Test::More qw( no_plan ); +use Test::More skip_all => 'Requires real root privileges to build'; $dev="lo"; print "Using device $dev to test send_packet()\n"; --- a/test.pl +++ b/test.pl @@ -21,6 +21,31 @@ BEGIN { + if ($ENV{DEBIAN_BUILD}) { + print "Executing Debian-specific branch in test.pl\n"; + my $if_cmd = "/sbin/ifconfig"; + + open IFC, "$if_cmd |" or die "Could not execute $if_cmd: $!"; + my @ifconfig_out = ; + close IFC; + + for my $line (@ifconfig_out) { + if ($line =~ /^\s*(\w+)\s+Link/) { + + next unless ($1 ne "lo"); + $mac = Net::ARP::get_mac($1); + + if ($mac eq "unknown") { + print "Unable to find Mac Address for device $1\n"; + exit 1; + + } else { + print "MAC of $1: $mac\n"; + } + } + } + exit 0; + } eval{ require Net::Pcap; }; if($@ =~ /^Can\'t\slocate/) debian/docs0000644000000000000000000000000711671747272010054 0ustar README debian/watch0000644000000000000000000000022312101265360010210 0ustar # format version number, currently 3; this line is compulsory! version=3 https://metacpan.org/release/Net-ARP/ .*/Net-ARP-(.*).(?:tar.gz|tar|tgz) debian/copyright0000644000000000000000000000332212203446332011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Net::ARP Upstream-Contact: Bastian Ballmann Source: https://metacpan.org/release/Net-ARP/ Files: * Copyright: 2004-2013, Bastian Ballmann License: GPL-2 Files: ppport.h Copyright: Version 2.x, Copyright (C) 2001, Paul Marquess. Version 1.x, Copyright (C) 1999, Kenneth Albanowski. License: GPL-1+ or Artistic Files: debian/* Copyright: © 2006-2008, Gunnar Wolf © 2008, Niko Tyni © 2007-2009, Gregor Herrmann © 2009-2010, Franck Joncourt © 2013, Florian Schlichting License: GPL-1+ or Artistic 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'. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. . On Debian systems, the complete text of version 2 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000167012203446313010573 0ustar Source: libnet-arp-perl Section: perl Priority: optional Build-Depends: debhelper (>= 9.20120312), perl, net-tools Maintainer: Debian Perl Group Uploaders: Niko Tyni , Franck Joncourt , Ryan Niebur , Florian Schlichting Standards-Version: 3.9.4 Homepage: https://metacpan.org/release/Net-ARP/ Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libnet-arp-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libnet-arp-perl.git Package: libnet-arp-perl Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends} Recommends: libnet-pcap-perl Description: module to create ARP packets and lookup for ARP information Net::ARP module allows for creating arbitrary ARP packages from within your Perl code, as well as for looking up the ARP information for machines in your local network. debian/compat0000644000000000000000000000000212203444221010356 0ustar 9 debian/changelog0000644000000000000000000001340312203446471011044 0ustar libnet-arp-perl (1.0.8-1) unstable; urgency=low [ Franck Joncourt ] * Added patch t_upstream_missing_headers.diff. * Use a minimal rules file: + Refreshed debian/rules + Updated BD versions on debhelper to be able to use the override targets. * Refreshed both d.control and d.copyright with my new email address. * Switch to dpkg-source 3.0 (quilt) format. + Removed useless README.source which only documented the quilt usage. + Removed quilt framework (d.control, d.rules). * Removed useless versionned BD on perl. * Added new override_dh_auto_test target in d.rules and set DEBIAN_BUILD=1 only for the tests, rather than exporting the variable. [ Ryan Niebur ] * Add myself to Uploaders * remove buffer_overflows.patch, prototypes.patch, and return-value.patch, that are applied upstream * Update ryan52's email address [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs [ Florian Schlichting ] * Import Upstream version 1.0.8. * Bump Standards-Version to 3.9.4 (update to copyright-format 1.0, directly link GPL-1+). * Record upstream license change to GPL-2. * Switch dh compatibility to level 9 to enable passing of hardening flags. * Refresh 20skip_send_packet_test.patch (fuzz), drop t_upstream_missing_headers.diff (applied upstream). * Simply rules file even further. * Add myself to uploaders and copyright. -- Florian Schlichting Fri, 16 Aug 2013 18:01:44 +0200 libnet-arp-perl (1.0.4-1) unstable; urgency=low * New upstream release. + Removed the following patches (integrated upstream) - get_mac_func.diff - documentation.diff - 10alignment-and-headers.patch * Added header (author, bug number, description) to all patches. * Added buffer_overflows.patch to fix buffer overflows due to the use of strcpy (Closes: #528675). -- Franck Joncourt Fri, 22 May 2009 13:32:34 +0200 libnet-arp-perl (1.0.3-2) unstable; urgency=low [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). [ Franck Joncourt ] * Added patch to fix the get_mac function (Closes: #524559). * Added patch to fix the documentation (Closes: #524520). * Updated 20skip_send_packet_test.patch: + make it fail if an error occurs. + handle multiple interfaces. * Switched to dh7: + Updated d{control,compat,rules} accordingly. * Bumped up Standards-Version to 3.8.1 (no changes). * d.control: Add /me to Uploaders. * d.copyright: Refreshed format. [ gregor herrmann ] * debian/copyright: add information about ppport.h. * debian/control: minor update of short and long description. -- Franck Joncourt Sun, 19 Apr 2009 20:05:59 +0200 libnet-arp-perl (1.0.3-1) unstable; urgency=low [ gregor herrmann ] * Add debian/README.source to document quilt usage, as required by Debian Policy since 3.8.0. [ Gunnar Wolf ] * New upstream release * Bumped up standards-version to 3.8.0 (no changes needed) -- Gunnar Wolf Sat, 09 Aug 2008 20:10:19 -0500 libnet-arp-perl (1.0.2-1) unstable; urgency=low [ gregor herrmann ] * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). Removed: XS- Vcs-Svn fields. * debian/rules: delete /usr/share/perl5 only if it exists. [ Damyan Ivanov ] * [debian/watch] Stop capturing file extension [ Jose Luis Rivas ] * New upstream release * debian/rules: `touch $@' instead of `touch *-stamp' * debian/copyright: + Fixed formatting. + Added the copyright note missing. * debian/watch: updated to use-dist way. [ Roberto C. Sanchez ] * Update to debhelper compatibility level 6. [ Niko Tyni ] * Fix remains of merging errors from integrating the new upstream release. * Convert patch handling from dpatch to quilt. * Update 10alignment-and-headers.patch for the new release. + add some missing #includes in send_packet_linux.c. * Drop a documentation note from the .diff.gz, it was obsoleted in upstream version 1.0. * return-value.patch: make arp_lookup_linux() return 0 when it succeeds. * prototypes.patch: add prototypes for the *_linux and *_bsd functions in arp.h. * Switch to my @debian.org address. * 20skip_send_packet_test.patch: + make test.pl use ifconfig(8) instead of Net::Pcap to get the name of the first active network interface when DEBIAN_BUILD is set + don't try to send any ARP packets, that requires real root privileges * Change build-dependency on libnet-pcap-perl to net-tools for ifconfig(8). * Add a full stop at the end of the long description. -- Niko Tyni Sun, 17 Feb 2008 21:31:34 +0200 libnet-arp-perl (1.0.1-1) unstable; urgency=low * New upstream release. -- gregor herrmann Mon, 27 Aug 2007 00:17:12 +0200 libnet-arp-perl (1.0-1) unstable; urgency=low * New upstream release * Now recommends libnet-pcap-perl * Skips one of the tests, which requires real root access (and caused an ugly FTBFS) -- Gunnar Wolf Tue, 27 Feb 2007 19:04:50 -0600 libnet-arp-perl (0.8-2) unstable; urgency=low * Add dpatch framework. * debian/patches/10alignment-and-headers.dpatch: - fix FTBFS due to unaligned assignment problems. (Closes: #390020) - include all the needed header files. -- Niko Tyni Thu, 5 Oct 2006 21:40:31 +0300 libnet-arp-perl (0.8-1) unstable; urgency=low * Initial Release. (Closes: #387179) -- Gunnar Wolf Tue, 12 Sep 2006 13:49:56 -0500 debian/source/0000755000000000000000000000000011671747272010504 5ustar debian/source/format0000644000000000000000000000001411671747272011712 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000012312203445611010240 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_test: DEBIAN_BUILD=1 dh_auto_test