--- libapache-htpasswd-perl-1.8.orig/META.yml +++ libapache-htpasswd-perl-1.8/META.yml @@ -6,7 +6,7 @@ installdirs: site requires: Crypt::PasswdMD5: 0 - Digest::SHA1: 2 + Digest::SHA: 0 MIME::Base64: 0 distribution_type: module --- libapache-htpasswd-perl-1.8.orig/Htpasswd.pm +++ libapache-htpasswd-perl-1.8/Htpasswd.pm @@ -84,9 +84,9 @@ } elsif (index($cryptPass, $SHA1Magic) == 0) { # This is an SHA1 password - require Digest::SHA1; + require Digest::SHA; require MIME::Base64; - return 1 if '{SHA}'.MIME::Base64::encode_base64( Digest::SHA1::sha1( $pass ), '' ) eq $cryptPass; + return 1 if '{SHA}'.MIME::Base64::encode_base64( Digest::SHA::sha1( $pass ), '' ) eq $cryptPass; } # See if it is encrypted using crypt @@ -726,7 +726,7 @@ If you are going to use MD5 encrypted passwords, you need to install L. -If you need to support SHA1 encrypted passwords, you need to install L and L. +If you need to support SHA1 encrypted passwords, you need to install L and L. =head1 DOCUMENTATION @@ -819,7 +819,7 @@ =head1 SEE ALSO -L, L, L, L +L, L, L, L =cut --- libapache-htpasswd-perl-1.8.orig/test.pl +++ libapache-htpasswd-perl-1.8/test.pl @@ -115,9 +115,9 @@ } # 19: check whether SHA1 passwords work - eval { require Digest::MD5; require MIME::Base64 }; + eval { require Digest::SHA; require MIME::Base64 }; if ($@) { - &report_skip('Digest::MD5 and MIME::Base64 required for this test'); + &report_skip('Digest::SHA and MIME::Base64 required for this test'); } else { &report_result($pwdFile->htCheckPassword("SHA1user","123"),$!); } --- libapache-htpasswd-perl-1.8.orig/Makefile.PL +++ libapache-htpasswd-perl-1.8/Makefile.PL @@ -9,7 +9,7 @@ 'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, 'clean' => { FILES => q[*% *.bak *.old *.test]}, 'PREREQ_PM' => { - 'Digest::SHA1' => 2.0, + 'Digest::SHA' => 0, 'MIME::Base64' => 0, 'Crypt::PasswdMD5' => 0, }, --- libapache-htpasswd-perl-1.8.orig/debian/copyright +++ libapache-htpasswd-perl-1.8/debian/copyright @@ -0,0 +1,16 @@ +This package was debianized by Tatsuki Sugiura on +Thu, 29 Mar 2001 07:36:02 +0900. + +It was downloaded from http://search.cpan.org/src/KMELTZ/Apache-Htpasswd/ + +Upstream Author: Kevin Meltzer + +Copyright: 1998..2005, Kevin Meltzer. All rights reserved. It may +be used and modified freely, but I do request that this copyright +notice remain attached to the file. You may modify this module as you +wish, but if you redistribute a modified version, please attach a note +listing the modifications you have made. + +This is released under the same terms as Perl itself (Artistic and GPL). +see /usr/share/common-licenses/Artistic and /usr/share/common-licenses/GPL +for details. --- libapache-htpasswd-perl-1.8.orig/debian/watch +++ libapache-htpasswd-perl-1.8/debian/watch @@ -0,0 +1,3 @@ +version=2 +http://www.cpan.org/authors/id/K/KM/KMELTZ/Apache-Htpasswd-(.*)\.tar\.gz \ + debian uupdate --- libapache-htpasswd-perl-1.8.orig/debian/control +++ libapache-htpasswd-perl-1.8/debian/control @@ -0,0 +1,19 @@ +Source: libapache-htpasswd-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 4.0.0), perl (>= 5.6.0-17), cdbs (>= 0.4.26-2), libcrypt-passwdmd5-perl +Maintainer: Tatsuki Sugiura +Homepage: http://search.cpan.org/~kmeltz/Apache-Htpasswd/ +Standards-Version: 3.8.0 + +Package: libapache-htpasswd-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, libcrypt-passwdmd5-perl +Description: Manage Unix crypt-style password file + This module comes with a set of methods to use with htaccess password + files. These files (and htaccess) are used to do Basic Authentication + on a web server. + . + The passwords file is a flat-file with login name and their associated + crypted password. You can use this for non-Apache files if you wish, but + it was written specifically for .htaccess style files. --- libapache-htpasswd-perl-1.8.orig/debian/changelog +++ libapache-htpasswd-perl-1.8/debian/changelog @@ -0,0 +1,80 @@ +libapache-htpasswd-perl (1.8-1.1) unstable; urgency=low + + * Non-maintainer upload. + * patch HTpasswd.pm, META.yml, Makefile.PL and test.pl to use + Digest::SHA from perl core instead of Digest::SHA1. The patch also + fixes the test to check for Digest::SHA instead of Digest::MD5 when + testing SHA1-hashed passwords. Drop libdigest-sha1-perl from + (Build-)Depends. (Closes: #636853). + + -- Salvatore Bonaccorso Sat, 20 Aug 2011 09:38:28 +0200 + +libapache-htpasswd-perl (1.8-1) unstable; urgency=low + + * New upstream release. (Closes: #468266, 493050) + NMU Patch was applied. Thanks Jaldhar H. Vyas. + + -- Tatsuki Sugiura Sat, 03 Jan 2009 23:50:57 +0900 + +libapache-htpasswd-perl (1.8-0.1) unstable; urgency=low + + * NMU. + * New upstream version (Closes: #439461) + * Added dependencies. + * Fixed lintian errors + + standards version 3.7.3 + + Build-Depends instead of Build-Depends-Indep + + proper copyright notice. + + -- Jaldhar H. Vyas Wed, 27 Feb 2008 19:38:30 -0500 + +libapache-htpasswd-perl (1.6.0-1) unstable; urgency=low + + * New upstream release (Closes: #329490, #177023) + + -- Tatsuki Sugiura Thu, 27 Oct 2005 20:49:45 +0900 + +libapache-htpasswd-perl (1.5.5-1) unstable; urgency=low + + * New upstream release + + -- Tatsuki Sugiura Sat, 31 Aug 2002 21:37:03 +0900 + +libapache-htpasswd-perl (1.5.3-3) unstable; urgency=low + + * build script has been changed; package was build with binary-indep (Closes: #157461) + + -- Tatsuki Sugiura Wed, 21 Aug 2002 07:13:56 +0900 + +libapache-htpasswd-perl (1.5.3-2) unstable; urgency=low + + * source package has been updated for new policy + * dependency has been fixed + * upload debian offical archive (Closes: #150195) + + -- Tatsuki Sugiura Mon, 17 Jun 2002 11:50:05 +0900 + +libapache-htpasswd-perl (1.5.3-1) unstable; urgency=low + + * New upstream release + + -- Tatsuki Sugiura Mon, 17 Jun 2002 11:44:53 +0900 + +libapache-htpasswd-perl (1.5.2-1) unstable; urgency=low + + * upstream update (applied 1.5.1p1-1's newline patch) + + -- Tatsuki Sugiura Sat, 7 Apr 2001 15:40:37 +0900 + +libapache-htpasswd-perl (1.5.1p1-1) unstable; urgency=low + + * upstream update + * newline patch applied + + -- Tatsuki Sugiura Wed, 4 Apr 2001 03:59:28 +0900 + +libapache-htpasswd-perl (1.5-1) unstable; urgency=low + + * Initial Release. + + -- Tatsuki Sugiura Thu, 29 Mar 2001 07:36:02 +0900 --- libapache-htpasswd-perl-1.8.orig/debian/rules +++ libapache-htpasswd-perl-1.8/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/perlmodule.mk