--- liblwp-authen-wsse-perl-0.05.orig/META.yml +++ liblwp-authen-wsse-perl-0.05/META.yml @@ -9,7 +9,7 @@ - inc - t requires: - Digest::SHA1: 0 + Digest::SHA: 0 LWP: 0 MIME::Base64: 0 perl: 5.004 --- liblwp-authen-wsse-perl-0.05.orig/Makefile.PL +++ liblwp-authen-wsse-perl-0.05/Makefile.PL @@ -6,7 +6,7 @@ all_from 'lib/LWP/Authen/Wsse.pm'; requires 'LWP'; -requires 'Digest::SHA1'; +requires 'Digest::SHA'; requires 'MIME::Base64'; sign; --- liblwp-authen-wsse-perl-0.05.orig/debian/copyright +++ liblwp-authen-wsse-perl-0.05/debian/copyright @@ -0,0 +1,23 @@ +This is the debian package for the LWP-Authen-Wsse module. +It was created by Tim Peeler using dh-make-perl. + +This copyright info was automatically extracted from the perl module. +It may not be accurate, so you better check the module sources +if don't want to get into legal troubles. + +The upstream author is: + +Autrijus Tang . + + +Copyright 2004 by Autrijus Tang . + +This program is free software; you can redistribute it and/or +modify it under the same terms as Perl itself. + +See http://www.perl.com/perl/misc/Artistic.html + +Perl is distributed under your choice of the GNU General Public License or +the Artistic License. On Debian GNU/Linux systems, the complete text of the +GNU General Public License can be found in `/usr/share/common-licenses/GPL' +and the Artistic Licence in `/usr/share/common-licenses/Artistic'. --- liblwp-authen-wsse-perl-0.05.orig/debian/watch +++ liblwp-authen-wsse-perl-0.05/debian/watch @@ -0,0 +1,5 @@ +version=3 +# URL to the package page followed by a regex to search +http://search.cpan.org/dist/LWP-Authen-Wsse/ .*/LWP-Authen-Wsse-v?(\d[\d_.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip) + + --- liblwp-authen-wsse-perl-0.05.orig/debian/control +++ liblwp-authen-wsse-perl-0.05/debian/control @@ -0,0 +1,23 @@ +Source: liblwp-authen-wsse-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 4.0.2) +Build-Depends-Indep: perl (>= 5.8.0-7) +Maintainer: Debian Perl Group +Uploaders: Stephen Gran +Standards-Version: 3.7.3 +Homepage: http://search.cpan.org/dist/LWP-Authen-Wsse/ +Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/liblwp-authen-wsse-perl/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/liblwp-authen-wsse-perl/ + +Package: liblwp-authen-wsse-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, +Description: Library for enabling X-WSSE authentication in LWP + LWP::Authen::Wsse allows LWP to authenticate against servers that are using + the X-WSSE authentication scheme, as required by the Atom Authentication API. + . + The module is used indirectly through LWP, rather than including it directly in + your code. The LWP system will invoke the WSSE authentication when it + encounters the authentication scheme while attempting to retrieve a URL from a + server. --- liblwp-authen-wsse-perl-0.05.orig/debian/changelog +++ liblwp-authen-wsse-perl-0.05/debian/changelog @@ -0,0 +1,40 @@ +liblwp-authen-wsse-perl (0.05-2) unstable; urgency=low + + * Team upload. + * Use Digest::SHA instead of Digest::SHA1 + libdigest-sha1-perl package was reoved from Debian. Digest::SHA is part + of Perl core modules included with the perl interpreter since 5.10. + Thanks to Ansgar Burchardt (Closes: #694486) + + -- Salvatore Bonaccorso Tue, 27 Nov 2012 17:38:50 +0100 + +liblwp-authen-wsse-perl (0.05-1) unstable; urgency=low + + * New upstream version + * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser + field (source stanza); Homepage field (source stanza). + * Add watch file + + -- Stephen Gran Sun, 02 Mar 2008 02:34:26 +0000 + +liblwp-authen-wsse-perl (0.04-2) unstable; urgency=low + + * Adding to the Debian Perl group + + -- Stephen Gran Sun, 02 Mar 2008 01:51:19 +0000 + +liblwp-authen-wsse-perl (0.04-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Conditionally remove $(TMP)/usr/lib/perl5 (closes: #467916) + * Update Standards Version (no changes) + * Don't ignore failure in clean target + + -- Stephen Gran Sat, 01 Mar 2008 16:10:49 +0000 + +liblwp-authen-wsse-perl (0.04-1) unstable; urgency=low + + * Initial Release (closes #288000) + + -- Tim Peeler Fri, 31 Dec 2004 10:24:09 -0500 + --- liblwp-authen-wsse-perl-0.05.orig/debian/rules +++ liblwp-authen-wsse-perl-0.05/debian/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt 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)" + + touch build-stamp + +clean: + dh_testdir + dh_testroot + + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean build-stamp install-stamp + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + + #$(MAKE) test + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + + # As this is a architecture independent package, we are not supposed to install + # stuff to /usr/lib. MakeMaker creates the dirs, we delete them from the deb: + [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5 + + touch install-stamp + +binary-arch: +# We have nothing to do by default. + +binary-indep: build install + dh_testdir + dh_testroot +# dh_installcron +# dh_installmenu +# dh_installexamples + dh_installdocs README + dh_installchangelogs Changes + dh_perl + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + 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 --- liblwp-authen-wsse-perl-0.05.orig/debian/compat +++ liblwp-authen-wsse-perl-0.05/debian/compat @@ -0,0 +1 @@ +4 --- liblwp-authen-wsse-perl-0.05.orig/lib/LWP/Authen/Wsse.pm +++ liblwp-authen-wsse-perl-0.05/lib/LWP/Authen/Wsse.pm @@ -6,7 +6,7 @@ $LWP::Authen::Wsse::VERSION = '0.05'; -use Digest::SHA1 (); +use Digest::SHA (); use MIME::Base64 (); =head1 NAME @@ -75,7 +75,7 @@ my $nonce = $class->make_nonce; my $nonce_enc = MIME::Base64::encode_base64( $nonce, WITHOUT_LINEBREAK ); my $digest = MIME::Base64::encode_base64( - Digest::SHA1::sha1( $nonce . $now . $pass ), WITHOUT_LINEBREAK + Digest::SHA::sha1( $nonce . $now . $pass ), WITHOUT_LINEBREAK ); my $auth_header = ( $proxy ? 'Proxy-Authorization' : 'Authorization' ); @@ -114,7 +114,7 @@ } sub make_nonce { - Digest::SHA1::sha1( time() . {} . rand() . $PID ); + Digest::SHA::sha1( time() . {} . rand() . $PID ); } sub now_w3cdtf {