--- libauthen-radius-perl-0.12.orig/debian/control +++ libauthen-radius-perl-0.12/debian/control @@ -0,0 +1,16 @@ +Source: libauthen-radius-perl +Section: perl +Priority: extra +Maintainer: Debian Perl Group +Uploaders: Niko Tyni +Standards-Version: 3.6.2 +Build-Depends: debhelper (>= 5), dpatch (>= 2.0.9) + +Package: libauthen-radius-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends} +Replaces: libradius-authen-perl +Conflicts: libradius-authen-perl +Description: user authentication against radius + With this perl module you can check users and credentials against a + radius database, or you can change a user's settings. --- libauthen-radius-perl-0.12.orig/debian/compat +++ libauthen-radius-perl-0.12/debian/compat @@ -0,0 +1 @@ +5 --- libauthen-radius-perl-0.12.orig/debian/watch +++ libauthen-radius-perl-0.12/debian/watch @@ -0,0 +1,7 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=2 +http://mirrors.kernel.org/cpan/authors/id/M/MA/MANOWAR/RadiusPerl-(\d+\.\d+)\.tar\.gz debian uupdate + --- libauthen-radius-perl-0.12.orig/debian/patches/00list +++ libauthen-radius-perl-0.12/debian/patches/00list @@ -0,0 +1,2 @@ +01_radius_port +02_use_dumper --- libauthen-radius-perl-0.12.orig/debian/patches/02_use_dumper.dpatch +++ libauthen-radius-perl-0.12/debian/patches/02_use_dumper.dpatch @@ -0,0 +1,38 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_use_dumper.dpatch by Stephen Quinney +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: This removes the dependency on Data::HexDump which was being +## DP: used exclusively for debugging purposes. It is switched instead +## DP: to using Data::Dumper (which is a core Perl module). + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./Radius.pm /tmp/dpep-work.kAk2ft/libauthen-radius-perl-0.12/Radius.pm +--- ./Radius.pm 2005-07-09 12:21:20.000000000 +0100 ++++ /tmp/dpep-work.kAk2ft/libauthen-radius-perl-0.12/Radius.pm 2005-07-09 12:22:24.000000000 +0100 +@@ -22,7 +22,6 @@ + use IO::Select; + use Digest::MD5; + use Data::Dumper; +-use Data::HexDump; + + use vars qw($VERSION @ISA @EXPORT); + +@@ -114,7 +113,7 @@ + $request_id = ($request_id + 1) & 0xff; + if ($debug) { + print STDERR "Sending request:\n"; +- print HexDump $data; ++ print STDERR Data::Dumper::Dumper($data); + } + $self->{'sock'}->send ($data) || $self->set_error('ESENDFAIL'); + } +@@ -131,7 +130,7 @@ + $self->{'sock'}->recv ($data, 65536) or return $self->set_error('ERECVFAIL'); + if ($debug) { + print STDERR "Received response:\n"; +- print HexDump $data; ++ print STDERR Data::Dumper::Dumper($data); + } + ($type, $id, $length, $auth, $self->{'attributes'}) = unpack('C C n a16 a*', $data); + return $self->set_error('EBADAUTH') if $auth ne $self->calc_authenticator($type, $id, $length); --- libauthen-radius-perl-0.12.orig/debian/patches/01_radius_port.dpatch +++ libauthen-radius-perl-0.12/debian/patches/01_radius_port.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_radius_port.dpatch by Stephen Quinney +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: The standard radius port on Debian is 1812 rather than +## DP: 1645 which is now "old-radius". + +@DPATCH@ +diff -urNad --exclude=CVS --exclude=.svn ./Radius.pm /tmp/dpep-work.2C18Ag/libauthen-radius-perl-0.12/Radius.pm +--- ./Radius.pm 2004-12-18 04:46:44.000000000 +0000 ++++ /tmp/dpep-work.2C18Ag/libauthen-radius-perl-0.12/Radius.pm 2005-07-09 12:19:38.000000000 +0100 +@@ -73,7 +73,7 @@ + $port = getservbyname($service, 'udp') unless $port; + + unless ($port) { +- my %services = ( radius => 1645, radacct => 1646, ++ my %services = ( radius => 1812, radacct => 1646, + 'radius-acct' => 1813 ); + if (exists($services{$service})) { + $port = $services{$service}; +@@ -467,7 +467,7 @@ + The default C is C, the alternative is C. + If you do not specify port in the C as a C, then port + specified in your F will be used. If there is nothing +-there, and you did not specify port either then default is 1645 for ++there, and you did not specify port either then default is 1812 for + C and 1813 for C. + + Optional parameter C with a Perl "true" value turns on debugging --- libauthen-radius-perl-0.12.orig/debian/changelog +++ libauthen-radius-perl-0.12/debian/changelog @@ -0,0 +1,100 @@ +libauthen-radius-perl (0.12-2) unstable; urgency=low + + * Adopt the package for the Debian Perl Group. (Closes: #314851) + * Don't ignore the result of 'make distclean'. + * Move debhelper and dpatch to Build-Depends, as they are required + for the 'clean' target. + * Add dependency on dpatch >= 2.0.9, for /usr/share/dpatch/dpatch-run. + * Upgrade to debhelper compatibility level 5. + * Add dependency on ${misc:Depends}, as recommended by debhelper. + * Point debian/watch to mirrors.kernel.org/cpan instead of www.cpan.org. + + -- Niko Tyni Mon, 13 Feb 2006 21:01:30 +0200 + +libauthen-radius-perl (0.12-1) unstable; urgency=low + + * QA Group Upload + * New upstream release, closes: #296563, #234505. + * debian/control - Added build-dependency on dpatch + * debian/rules: + - Completely replaced with something more standard that works with + the latest upstream version. + - Added dpatch bits. + * Moved Debian changes to dpatch for easier maintenance. There are now + 01_radius_port and 02_use_dumper to separate out the two different + changes that have been made previously. + * debian/watch - Added + * debian/README.Debian - Added to explain about the RADIUS dictionaries + now provided by upstream. + + -- Stephen Quinney Sat, 9 Jul 2005 12:44:24 +0100 + +libauthen-radius-perl (0.09-2) unstable; urgency=low + + * Orphaning: set maintainer to QA. + + -- Ivo Timmermans Mon, 20 Jun 2005 17:31:13 +0200 + +libauthen-radius-perl (0.09-1) unstable; urgency=low + + * New upstream release. + * Radius.pm: Use Data::Dumper instead of Data::Hexdump. + (Closes: #200835) + + -- Ivo Timmermans Sun, 28 Dec 2003 23:27:28 +0100 + +libauthen-radius-perl (0.08-1) unstable; urgency=low + + * New upstream release. + * Radius.pm: Change default port number to 1812 (radius). + (Closes: #197765) + * debian/control: + - Changed section to perl. + - Updated debhelper build dependency. + + -- Ivo Timmermans Tue, 17 Jun 2003 13:58:48 +0200 + +libauthen-radius-perl (0.05-3) unstable; urgency=low + + * Fix "Use of uninitialized value in numeric eq". (Closes: #153017) + + -- Ivo Timmermans Sun, 11 Aug 2002 03:14:06 +0200 + +libauthen-radius-perl (0.05-2) unstable; urgency=low + + * Applied patch from Craig Sanders to make it work with newer perl + packages. (Closes: 139950) + + -- Ivo Timmermans Sun, 7 Apr 2002 10:56:22 +0200 + +libauthen-radius-perl (0.05-1) unstable; urgency=low + + * Took over the packaging from those amateurs :-) (Closes: #100865) + * Changed name to libauthen-radius-perl to satisfy common perl package + naming conventions. + * Add build dependencies. + * Rebuild from original upstream sources. + * Radius.pm uses Digest::MD5 rather than MD5. + * Redo of rules, starting from dh-make's template. + * Change the package's description. + * Added Replaces,Conflicts: libradius-authen-perl. + + -- Ivo Timmermans Fri, 15 Jun 2001 11:54:19 +0200 + +libradius-authen-perl (1.0-1.1.1) unstable; urgency=low + + * Built on potato. + + -- J.H.M. Dassen (Ray) Thu, 15 Feb 2001 18:53:59 +0100 + +libradius-authen-perl (1.0-1.1) unstable; urgency=low + + * Include "build" rule so "debuild" etc. work. + + -- J.H.M. Dassen (Ray) Thu, 15 Feb 2001 18:53:03 +0100 + +libradius-authen-perl (1.0-1) unstable; urgency=low + + * Initial packaging + + -- Pieter Jansen Thu, 22 Jun 2000 13:30:18 +0200 --- libauthen-radius-perl-0.12.orig/debian/copyright +++ libauthen-radius-perl-0.12/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Ivo Timmermans on +Fri Jun 15 10:37:08 CEST 2001. + +It was downloaded from CPAN: http://cpan.perl.org/modules/by-authors/Carl_Declerck/ + +Upstream Author: Carl Declerck . + +Copyright: + + This program is free software; you can redistribute it and/or modify it + under the terms of the "Artistic License" which comes with Debian. + + THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED + WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES + OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +On Debian GNU/Linux systems, the complete text of the Artistic License +can be found in `/usr/share/common-licenses/Artistic'. + --- libauthen-radius-perl-0.12.orig/debian/rules +++ libauthen-radius-perl-0.12/debian/rules @@ -0,0 +1,74 @@ +#!/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 + +# Define the perl interpreter + +include /usr/share/dpatch/dpatch.make + +PACKAGE = $(shell dh_listpackages) + +TMP =`pwd`/debian/$(PACKAGE) + +PERL = /usr/bin/perl + +configure: configure-stamp +configure-stamp: + dh_testdir + + perl Makefile.PL verbose INSTALLDIRS=vendor + + touch configure-stamp + +build: patch build-stamp +build-stamp: configure-stamp + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean build-stamp configure-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install PREFIX=$(TMP)/usr + + # Remove any empty directories + + find $(TMP)/usr -type d -empty -print0 | xargs --no-run-if-empty --null rmdir -p --ignore-fail-on-non-empty + +# Build architecture-independent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_perl + dh_installdocs README raddb + dh_installman + dh_installchangelogs Changes + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- libauthen-radius-perl-0.12.orig/debian/README.Debian +++ libauthen-radius-perl-0.12/debian/README.Debian @@ -0,0 +1,16 @@ +libauthen-radius-perl (0.12-1) unstable; urgency=low + +upstream now provides a set of radius dictionaries so that you can use +this module without having to install extra components of the RADIUS +server onto your client machine. + +They are not installed into the standard location as in many +situations they are not required. If they were installed this package +would conflict with radiusd-cistron and xtradius which is not a good +thing. They are provided by this package in the directory +/usr/share/doc/libauthen-radius-perl/raddb. If you need any of these +dictionaries you should copy the relevant files into somewhere where +the code using this module can read them. By default the module will +look for dictionaries in the directory named /etc/raddb/dictionary. + + -- Stephen Quinney , Sat Jul 9 12:42:24 2005