tags 636853 + patch tags 636853 + pending thanks Dear maintainer,
I've prepared an NMU for libapache-htpasswd-perl (versioned as 1.8-1.1) and uploaded it to DELAYED/10. Please feel free to tell me if I should delay it longer. Regards. Salvatore
diff -u libapache-htpasswd-perl-1.8/debian/control libapache-htpasswd-perl-1.8/debian/control --- libapache-htpasswd-perl-1.8/debian/control +++ libapache-htpasswd-perl-1.8/debian/control @@ -1,14 +1,14 @@ Source: libapache-htpasswd-perl Section: perl Priority: optional -Build-Depends: debhelper (>= 4.0.0), perl (>= 5.6.0-17), cdbs (>= 0.4.26-2), libdigest-sha1-perl, libcrypt-passwdmd5-perl +Build-Depends: debhelper (>= 4.0.0), perl (>= 5.6.0-17), cdbs (>= 0.4.26-2), libcrypt-passwdmd5-perl Maintainer: Tatsuki Sugiura <[email protected]> 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, libdigest-sha1-perl +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 diff -u libapache-htpasswd-perl-1.8/debian/changelog libapache-htpasswd-perl-1.8/debian/changelog --- libapache-htpasswd-perl-1.8/debian/changelog +++ libapache-htpasswd-perl-1.8/debian/changelog @@ -1,3 +1,14 @@ +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 <[email protected]> Sat, 20 Aug 2011 09:38:28 +0200 + libapache-htpasswd-perl (1.8-1) unstable; urgency=low * New upstream release. (Closes: #468266, 493050) only in patch2: unchanged: --- 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 only in patch2: unchanged: --- 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<Crypt::PasswdMD5>. -If you need to support SHA1 encrypted passwords, you need to install L<Digest::SHA1> and L<MIME::Base64>. +If you need to support SHA1 encrypted passwords, you need to install L<Digest::SHA> and L<MIME::Base64>. =head1 DOCUMENTATION @@ -819,7 +819,7 @@ =head1 SEE ALSO -L<Apache::Htgroup>, L<Crypt::PasswdMD5>, L<Digest::SHA1>, L<MIME::Base64> +L<Apache::Htgroup>, L<Crypt::PasswdMD5>, L<Digest::SHA>, L<MIME::Base64> =cut only in patch2: unchanged: --- 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"),$!); } only in patch2: unchanged: --- 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, },
signature.asc
Description: Digital signature

