r3714 - in /packages/libnet-arp-perl/trunk: ARP.pm debian/ debian/changelog debian/compat debian/control debian/copyright debian/rules debian/watch get_mac_bsd.c test.pl

gwolf at users.alioth.debian.org gwolf at users.alioth.debian.org
Tue Sep 12 21:07:26 UTC 2006


Author: gwolf
Date: Tue Sep 12 21:07:26 2006
New Revision: 3714

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=3714
Log:
Load libnet-arp-perl-0.8 into packages/libnet-arp-perl/trunk.

Added:
    packages/libnet-arp-perl/trunk/debian/
    packages/libnet-arp-perl/trunk/debian/changelog
    packages/libnet-arp-perl/trunk/debian/compat
    packages/libnet-arp-perl/trunk/debian/control
    packages/libnet-arp-perl/trunk/debian/copyright
    packages/libnet-arp-perl/trunk/debian/rules   (with props)
    packages/libnet-arp-perl/trunk/debian/watch
Modified:
    packages/libnet-arp-perl/trunk/ARP.pm
    packages/libnet-arp-perl/trunk/get_mac_bsd.c
    packages/libnet-arp-perl/trunk/test.pl   (props changed)

Modified: packages/libnet-arp-perl/trunk/ARP.pm
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/ARP.pm?rev=3714&op=diff
==============================================================================
--- packages/libnet-arp-perl/trunk/ARP.pm (original)
+++ packages/libnet-arp-perl/trunk/ARP.pm Tue Sep 12 21:07:26 2006
@@ -76,6 +76,8 @@
 This module can be used to create and send ARP packets and to
 get the mac address of an ethernet interface or ip address.
 
+=over 4
+
 =item B<send_packet()>
 
   Net::ARP::send_packet('lo',                 # Device
@@ -106,6 +108,14 @@
   and stores it in the variable $mac. The return value is 
   "unknown" if the mac cannot be looked up.
 
+=back
+
+Please note that this module uses a C idiom that is not common in Perl:
+It expects the return value to be passed as one of the arguments. This
+means that both of the lookup functions (C<get_mac()> and C<arp_lookup>)
+should get a scalar variable as their last argument (C<$mac>). The
+scalar's value will be modified with the function's result.
+
 =head1 SEE ALSO
 
  man -a arp

Added: packages/libnet-arp-perl/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/debian/changelog?rev=3714&op=file
==============================================================================
--- packages/libnet-arp-perl/trunk/debian/changelog (added)
+++ packages/libnet-arp-perl/trunk/debian/changelog Tue Sep 12 21:07:26 2006
@@ -1,0 +1,6 @@
+libnet-arp-perl (0.8-1) unstable; urgency=low
+
+  * Initial Release. (Closes: #387179)
+
+ -- Gunnar Wolf <gwolf at debian.org>  Tue, 12 Sep 2006 13:49:56 -0500
+

Added: packages/libnet-arp-perl/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/debian/compat?rev=3714&op=file
==============================================================================
--- packages/libnet-arp-perl/trunk/debian/compat (added)
+++ packages/libnet-arp-perl/trunk/debian/compat Tue Sep 12 21:07:26 2006
@@ -1,0 +1,1 @@
+5

Added: packages/libnet-arp-perl/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/debian/control?rev=3714&op=file
==============================================================================
--- packages/libnet-arp-perl/trunk/debian/control (added)
+++ packages/libnet-arp-perl/trunk/debian/control Tue Sep 12 21:07:26 2006
@@ -1,0 +1,15 @@
+Source: libnet-arp-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 5.0.0), libnet-pcap-perl, perl (>= )
+Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
+Uploaders: Gunnar Wolf <gwolf at debian.org>
+Standards-Version: 3.7.2
+
+Package: libnet-arp-perl
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, 
+Description:  Create ARP packets and lookup for ARP information
+ This 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

Added: packages/libnet-arp-perl/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/debian/copyright?rev=3714&op=file
==============================================================================
--- packages/libnet-arp-perl/trunk/debian/copyright (added)
+++ packages/libnet-arp-perl/trunk/debian/copyright Tue Sep 12 21:07:26 2006
@@ -1,0 +1,24 @@
+This is the debian package for the Net::ARP module.
+It was created by Gunnar Wolf <gwolf at debian.org> using dh-make-perl.
+
+The upstream author for this module is: 
+
+Bastian Ballmann <Crazydj at chaostal.de>, http://www.datenterrorist.de/
+
+Updated versions can be found via the CPAN, at
+http://www.cpan.org/modules/by-module/Net
+
+From ARP.pm:
+
+    This library is free software; you can redistribute it and/or
+    modify it under the same terms as Perl itself, either Perl version
+    5.8.1 or, at your option, any later version of Perl 5 you may have
+    available.
+
+Perl is distributed under either the Artistic Licence or the GPL.
+
+The full text of the GPL is available on Debian systems in
+/usr/share/common-licenses/GPL
+
+The full text of the Artistic Licence is available on Debian systems in
+/usr/share/common-licenses/Artistic.

Added: packages/libnet-arp-perl/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/debian/rules?rev=3714&op=file
==============================================================================
--- packages/libnet-arp-perl/trunk/debian/rules (added)
+++ packages/libnet-arp-perl/trunk/debian/rules Tue Sep 12 21:07:26 2006
@@ -1,0 +1,97 @@
+#!/usr/bin/make -f
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add commands to compile the package here
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	# Add commands to clean up after the build process here
+	[ ! -f Makefile ] || $(MAKE) realclean
+
+	dh_clean build-stamp install-stamp
+
+install: build install-stamp
+install-stamp:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	# Add commands to install the package into debian/$PACKAGE_NAME here
+	$(MAKE) test
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+
+	# As this is a architecture dependent package, we are not
+	# supposed to install stuff to /usr/share. MakeMaker creates
+	# the dirs, we delete them from the deb:
+	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
+
+	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_testdir
+	dh_testroot
+	dh_installdocs README
+	dh_installexamples 
+#	dh_installmenu
+#	dh_installcron
+#	dh_installman
+	dh_installchangelogs Changes
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_perl 
+	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

Propchange: packages/libnet-arp-perl/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: packages/libnet-arp-perl/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/debian/watch?rev=3714&op=file
==============================================================================
--- packages/libnet-arp-perl/trunk/debian/watch (added)
+++ packages/libnet-arp-perl/trunk/debian/watch Tue Sep 12 21:07:26 2006
@@ -1,0 +1,3 @@
+# format version number, currently 2; this line is compulsory!
+version=2
+http://www.cpan.org/modules/by-module/Net/Net-ARP-(.*).(tar.gz|tar|tgz)

Modified: packages/libnet-arp-perl/trunk/get_mac_bsd.c
URL: http://svn.debian.org/wsvn/pkg-perl/packages/libnet-arp-perl/trunk/get_mac_bsd.c?rev=3714&op=diff
==============================================================================
--- packages/libnet-arp-perl/trunk/get_mac_bsd.c (original)
+++ packages/libnet-arp-perl/trunk/get_mac_bsd.c Tue Sep 12 21:07:26 2006
@@ -35,7 +35,7 @@
   if(strlen(dev) == 0)
     return -1;
 
-  strcpy(mac,"unkown");
+  strcpy(mac,"unknown");
   getifaddrs(&iface);
   
   while(iface->ifa_next != NULL)

Propchange: packages/libnet-arp-perl/trunk/test.pl
------------------------------------------------------------------------------
--- svn:executable (original)
+++ svn:executable Tue Sep 12 21:07:26 2006
@@ -1,0 +1,1 @@
+*




More information about the Pkg-perl-cvs-commits mailing list