--- libnet-ip-perl-1.20.orig/ipcount +++ libnet-ip-perl-1.20/ipcount @@ -1,4 +1,4 @@ -#!perl -w +#!/usr/bin/perl -w # Copyright (c) 2000 RIPE NCC # --- libnet-ip-perl-1.20.orig/iptab +++ libnet-ip-perl-1.20/iptab @@ -1,4 +1,4 @@ -#!perl +#!/usr/bin/perl use Net::IP; use strict; --- libnet-ip-perl-1.20.orig/Makefile.PL +++ libnet-ip-perl-1.20/Makefile.PL @@ -31,7 +31,7 @@ 'NAME' => 'Net::IP', 'VERSION_FROM' => 'IP.pm', 'PREREQ_PM' => {}, - 'EXE_FILES' => [qw(ipcount iptab)], +# 'EXE_FILES' => [qw(ipcount iptab)], 'PL_FILES' => { 'Net-IP.spec.PL' => 'Net-IP.spec' }, %PARAM ); --- libnet-ip-perl-1.20.orig/debian/watch +++ libnet-ip-perl-1.20/debian/watch @@ -0,0 +1,4 @@ +# Watch control file for uscan +version=2 +# Site Version Script +http://search.cpan.org/CPAN/authors/id/M/MA/MANU/Net-IP-(.+).tar.gz debian uupdate --- libnet-ip-perl-1.20.orig/debian/changelog +++ libnet-ip-perl-1.20/debian/changelog @@ -0,0 +1,6 @@ +libnet-ip-perl (1.20-1) unstable; urgency=low + + * Initial Release, closes: Bug#209349 + + -- Frederic Schutz Tue, 9 Sep 2003 22:08:59 +1000 + --- libnet-ip-perl-1.20.orig/debian/compat +++ libnet-ip-perl-1.20/debian/compat @@ -0,0 +1 @@ +4 --- libnet-ip-perl-1.20.orig/debian/dirs +++ libnet-ip-perl-1.20/debian/dirs @@ -0,0 +1 @@ +/usr/share/doc/libnet-ip-perl/examples --- libnet-ip-perl-1.20.orig/debian/copyright +++ libnet-ip-perl-1.20/debian/copyright @@ -0,0 +1,34 @@ +This package was debianized by Frédéric Schütz on +Sun, 31 Aug 2003 21:19:00 +1000. + +It was downloaded from +http://search.cpan.org/CPAN/authors/id/M/MA/MANU/Net-IP-1.20.tar.gz + +Upstream Author: Manuel Valente + +Copyright (according to the original COPYING file, except for the address +of the Free Software Foundation, which has been updated) : + +--- +Copyright (c) 1999-2000 by RIPE-NCC. All rights reserved. + +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +You should have received a copy of the Perl license along with +Perl; see the file README in Perl distribution. + +You should have received a copy of the GNU General Public License +along with Perl; see the file Copying. If not, write to +the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +MA 02111-1307, USA. + +You should have received a copy of the Artistic License +along with Perl; see the file Artistic. +--- + +On a Debian system, the GNU General Public License (GPL) can be found +in /usr/share/common-licenses/GPL. + +The Artistic License can be found in +/usr/share/common-licenses/Artistic. --- libnet-ip-perl-1.20.orig/debian/README.Debian +++ libnet-ip-perl-1.20/debian/README.Debian @@ -0,0 +1,11 @@ +libnet-ip-perl for Debian +------------------------- + +The original program provides 2 Perl scripts called ipcount and +iptab. In the Debian package, they are provided as examples on the use +of the Net::IP module, and can be found in directory +/usr/share/doc/libnet-ip-perl. If you believe that these scripts could +be useful to a wider audience (i.e. not only as an example), feel free +to submit a wishlist bug and I'll put them in /usr/bin instead. + + -- Frederic Schutz , Sun, 7 Sep 2003 13:34:55 +1000 --- libnet-ip-perl-1.20.orig/debian/rules +++ libnet-ip-perl-1.20/debian/rules @@ -0,0 +1,68 @@ +#!/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 + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +ifndef DESTDIR +DESTDIR=.. +endif + +TMP =`pwd`/debian/$(PACKAGE) + +build: build-stamp +build-stamp: + dh_testdir + + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) OPTIMIZE="-O2 -g -Wall" + + touch build-stamp + +clean: + dh_testdir + rm -f build-stamp + + -$(MAKE) clean + rm -f Makefile.old + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/libnet-ip-perl. + $(MAKE) install PREFIX=$(TMP)/usr + +# 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_installchangelogs Changes + dh_installdocs + dh_installexamples ipcount iptab +# dh_installman + dh_compress + dh_fixperms + dh_perl + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libnet-ip-perl-1.20.orig/debian/control +++ libnet-ip-perl-1.20/debian/control @@ -0,0 +1,18 @@ +Source: libnet-ip-perl +Section: perl +Priority: optional +Maintainer: Frederic Schutz +Build-Depends-Indep: debhelper (>> 4.0.0), perl (>= 5.6.0-17) +Standards-Version: 3.6.1 + +Package: libnet-ip-perl +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends} +Description: Perl extension for manipulating IPv4/IPv6 addresses + This package contains the Net::IP module, which provides functions + to deal with IPv4/IPv6 addresses. The module can be used as a class, + allowing the user to instantiate IP objects, which can be single IP + addresses, prefixes, or ranges of addresses. There is also a procedural + way of accessing most of the functions. Most subroutines can take either + IPv4 or IPv6 addresses transparently. + --- libnet-ip-perl-1.20.orig/debian/docs +++ libnet-ip-perl-1.20/debian/docs @@ -0,0 +1 @@ +README --- libnet-ip-perl-1.20.orig/Net-IP.spec +++ libnet-ip-perl-1.20/Net-IP.spec @@ -0,0 +1,33 @@ + +Summary: Net::IP Perl module +Name: perl-Net-IP +Version: 1.20 +Release: 1 +Source0: Net-IP-%{version}.tar.gz +License: Perl +Group: Development/Languages +BuildRoot: %{_tmppath}/%{name}-root + +%description +IP - Perl extension for manipulating IPv4/IPv6 addresses + +%prep +%setup -q -n Net-IP-%{version} +%{__perl} Makefile.PL INSTALLSCRIPT=%{_prefix}/bin +%build +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install PREFIX=$RPM_BUILD_ROOT%{_prefix} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_prefix}/lib/perl5/site_perl/*/Net +%{_prefix}/lib/perl5/man/man3/* +%{_prefix}/bin + +