diff -Nru libhtml-tagfilter-perl-1.03/debian/changelog libhtml-tagfilter-perl-1.03/debian/changelog --- libhtml-tagfilter-perl-1.03/debian/changelog 2014-04-27 00:45:27.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/changelog 2014-04-11 19:08:55.000000000 +0000 @@ -1,3 +1,38 @@ +libhtml-tagfilter-perl (1.03-4) unstable; urgency=low + + [ gregor herrmann ] + * debian/control: Added: ${misc:Depends} to Depends: field. + + [ Nathan Handler ] + * debian/watch: Update to ignore development releases. + + [ Salvatore Bonaccorso ] + * debian/control: Changed: Replace versioned (build-)dependency on + perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as + permitted by Debian Policy 3.8.3). + + [ Ansgar Burchardt ] + * debian/control: Convert Vcs-* fields to Git. + + [ Salvatore Bonaccorso ] + * Change Vcs-Git to canonical URI (git://anonscm.debian.org) + * Change search.cpan.org based URIs to metacpan.org based URIs + + [ gregor herrmann ] + * debian/watch: remove obsolete comment. + * Strip trailing slash from metacpan URLs. + * Don't install boilerplate README anymore. + + [ Daniel Lintott ] + * Migrate to short-format dh and compat 8 + * Refresh packaging using dh-make-perl + + Update debian/control + + Migrate copyright to format 1.0 + + Migrate package to source format 3.0(quilt) + * Add patch to fix POD errors/warnings + + -- Daniel Lintott Fri, 11 Apr 2014 19:39:21 +0100 + libhtml-tagfilter-perl (1.03-3) unstable; urgency=low [ gregor herrmann ] diff -Nru libhtml-tagfilter-perl-1.03/debian/compat libhtml-tagfilter-perl-1.03/debian/compat --- libhtml-tagfilter-perl-1.03/debian/compat 2014-04-27 00:45:27.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/compat 2014-04-11 19:08:55.000000000 +0000 @@ -1 +1 @@ -6 +8 diff -Nru libhtml-tagfilter-perl-1.03/debian/control libhtml-tagfilter-perl-1.03/debian/control --- libhtml-tagfilter-perl-1.03/debian/control 2014-04-27 00:45:27.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/control 2014-04-11 19:08:55.000000000 +0000 @@ -1,19 +1,24 @@ Source: libhtml-tagfilter-perl Section: perl Priority: optional -Build-Depends: debhelper (>= 6) -Build-Depends-Indep: perl (>= 5.6.0-16), liburi-perl, libhtml-parser-perl Maintainer: Debian Perl Group -Uploaders: Ernesto Hernández-Novich (USB) -Homepage: http://search.cpan.org/dist/HTML-TagFilter/ -Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libhtml-tagfilter-perl/ -Vcs-Browser: http://svn.debian.org/wsvn/pkg-perl/trunk/libhtml-tagfilter-perl/ -Standards-Version: 3.7.3 +Uploaders: Ernesto Hernández-Novich (USB) , + Daniel Lintott +Build-Depends: debhelper (>= 8) +Build-Depends-Indep: libhtml-parser-perl, + liburi-perl, + perl +Standards-Version: 3.9.5 +Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libhtml-tagfilter-perl.git +Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libhtml-tagfilter-perl.git +Homepage: https://metacpan.org/release/HTML-TagFilter Package: libhtml-tagfilter-perl Architecture: all -Depends: ${perl:Depends}, liburi-perl, libhtml-parser-perl -Description: A fine-grained HTML-filter, XSS-blocker and mailto-obfuscator +Depends: ${misc:Depends}, ${perl:Depends}, + libhtml-parser-perl, + liburi-perl +Description: fine-grained HTML-filter, XSS-blocker and mailto-obfuscator HTML::TagFilter is a subclass of HTML::Parser with a single purpose: it will remove unwanted HTML tags and attributes from a piece of text. It can act in a more or less fine-grained way: you can specify permitted tags, diff -Nru libhtml-tagfilter-perl-1.03/debian/copyright libhtml-tagfilter-perl-1.03/debian/copyright --- libhtml-tagfilter-perl-1.03/debian/copyright 2014-04-27 00:45:27.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/copyright 2014-04-11 19:08:55.000000000 +0000 @@ -1,22 +1,29 @@ -This package was debianized by Ernesto Hernández-Novich -on Wed, 03 May 2006 11:14:33 -0400 - -It was downloaded from http://search.cpan.org/dist/HTML-TagFilter/ - -Upstream Authors: - -William Ross - -Copyright: - -Copyright (c) 2001-2003 William Ross. - -This library is free software; you can redistribute it and/or modify it -under the same terms as Perl itself. - -Perl is distributed under your choice of the GNU General Public License or -the Artistic License. - -The complete text of the GNU General Public License can be found in -/usr/share/common-licenses/GPL and the Artistic License can be found -in /usr/share/common-licenses/Artistic. +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://metacpan.org/release/HTML-TagFilter +Upstream-Contact: William Ross +Upstream-Name: HTML-TagFilter + +Files: * +Copyright: 2001-2004, William Ross +License: Artistic or GPL-1+ + +Files: debian/* +Copyright: 2006-2008, Ernesto Hernández-Novich (USB) + 2014, Daniel Lintott +License: Artistic or GPL-1+ + +License: Artistic + This program is free software; you can redistribute it and/or modify + it under the terms of the Artistic License, which comes with Perl. + . + On Debian systems, the complete text of the Artistic License can be + found in `/usr/share/common-licenses/Artistic'. + +License: GPL-1+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 1, or (at your option) + any later version. + . + On Debian systems, the complete text of version 1 of the GNU General + Public License can be found in `/usr/share/common-licenses/GPL-1'. diff -Nru libhtml-tagfilter-perl-1.03/debian/docs libhtml-tagfilter-perl-1.03/debian/docs --- libhtml-tagfilter-perl-1.03/debian/docs 2014-04-27 00:45:27.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/docs 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -Changes -README diff -Nru libhtml-tagfilter-perl-1.03/debian/patches/fix_pod_errors.patch libhtml-tagfilter-perl-1.03/debian/patches/fix_pod_errors.patch --- libhtml-tagfilter-perl-1.03/debian/patches/fix_pod_errors.patch 1970-01-01 00:00:00.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/patches/fix_pod_errors.patch 2014-04-11 19:08:55.000000000 +0000 @@ -0,0 +1,97 @@ +Description: Fix errors in POD +Author: Daniel Lintott +Forwarded: https://rt.cpan.org/Ticket/Display.html?id=94646 +Last-Update: 2014-04-11 +--- a/TagFilter.pm ++++ b/TagFilter.pm +@@ -47,7 +47,7 @@ + my $cleaning_summary = $tf->report; + my @tags_removed = $tf->report; + my $error_log = $tf->error; +- ++ + =head1 DESCRIPTION + + HTML::TagFilter is a subclass of HTML::Parser with a single purpose: it will remove unwanted html tags and attributes from a piece of text. It can act in a more or less fine-grained way - you can specify permitted tags, permitted attributes of each tag, and permitted values for each attribute in as much detail as you like. +@@ -118,26 +118,26 @@ + skip_ltgt_entification => 1, + skip_mailto_entification => 1, + ); +- ++ + =over 4 + +-=head3 log_rejects ++=item log_rejects + + Set log to something true and the filter will keep a detailed log of all the tags it removes. The log can be retrieved by calling report(), which will return a summary in scalar context and a detailed AoH in list. + +-=head3 echo ++=item echo + + Set echo to 1, or anything true, and the output of the filter will be sent straight to STDOUT. Otherwise the filter is silent until you call output(). + +-=head3 verbose ++=item verbose + + Set verbose to 1, or anything true, and error messages will be output to STDERR as well as being stockpiled ready for a call to error(). + +-=head3 strip_comments ++=item strip_comments + + Set strip_comments to 1 and comments will be stripped. If you don't, they won't. + +-=head3 skip_xss_protection ++=item skip_xss_protection + + Unless you set skip_xss_protection to 1, the filter will postprocess some of its output to protect against common cross-site scripting attacks. + +@@ -145,21 +145,21 @@ + + $self->xss_risky_attributes( qw(your list of attributes) ); + +-=head3 skip_ltgt_entification ++=item skip_ltgt_entification + + Disables the entification of < and > even if cross-site protection is on. + +-=head3 skip_mailto_entification ++=item skip_mailto_entification + + Unless you specify otherwise, any mailto:url seen by the filter is completely turned into html entities. will becomes will. This should defeat most email-harvesting software, but note that it has no effect on the text of your link, only its address. Links like wross@cpan.org are only partly obscured and should be avoided. + +-=head3 other constructor parameters ++=item other constructor parameters + + You can also supply values that will be used as default values for the methods of the same name: + + xss_risky_attributes + xss_permitted_protocols +- ++ + each of which expects a list of strings, and + + xss_allow_local_links +@@ -174,11 +174,11 @@ + + =over 4 + +-=head3 tag filter ++=item tag filter + + Just checks that this tag is permitted, and blocks the whole thing if not. Applied to both opening and closing tags. + +-=head3 attribute filter ++=item attribute filter + + Any tag that passes the tag filter will remain in the text, but the attribute filter will strip out of it any attributes that are not permitted, or which have values that are not permitted for that tag/attribute combination. + +@@ -486,7 +486,7 @@ + but more useful, because it'll fit in a oneliner. eg: + + print $tf->filter( $pages{$_} ) for keys %pages; +- ++ + Note that calling filter() will clear anything that was waiting in the output buffer, and will clear the buffer again when it's finished. it's meant to be a one-shot operation and doesn't co-operate well. use parse() and output() if you want to daisychain. + + =cut diff -Nru libhtml-tagfilter-perl-1.03/debian/patches/series libhtml-tagfilter-perl-1.03/debian/patches/series --- libhtml-tagfilter-perl-1.03/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/patches/series 2014-04-11 19:08:55.000000000 +0000 @@ -0,0 +1 @@ +fix_pod_errors.patch diff -Nru libhtml-tagfilter-perl-1.03/debian/rules libhtml-tagfilter-perl-1.03/debian/rules --- libhtml-tagfilter-perl-1.03/debian/rules 2014-04-27 00:45:27.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/rules 2014-04-11 19:08:55.000000000 +0000 @@ -1,66 +1,4 @@ #!/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) - -build: build-stamp -build-stamp: - dh_testdir - $(PERL) Makefile.PL INSTALLDIRS=vendor - $(MAKE) - $(MAKE) test - touch build-stamp - -clean: - dh_testdir - dh_testroot - dh_clean build-stamp install-stamp - [ ! -f Makefile ] || $(MAKE) realclean - - -install: install-stamp -install-stamp: build-stamp - dh_testdir - dh_testroot - dh_clean -k - $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr - [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(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_installdocs README - dh_installchangelogs Changes - dh_perl - 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 +%: + dh $@ diff -Nru libhtml-tagfilter-perl-1.03/debian/source/format libhtml-tagfilter-perl-1.03/debian/source/format --- libhtml-tagfilter-perl-1.03/debian/source/format 1970-01-01 00:00:00.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/source/format 2014-04-11 19:08:55.000000000 +0000 @@ -0,0 +1 @@ +3.0 (quilt) diff -Nru libhtml-tagfilter-perl-1.03/debian/watch libhtml-tagfilter-perl-1.03/debian/watch --- libhtml-tagfilter-perl-1.03/debian/watch 2014-04-27 00:45:27.000000000 +0000 +++ libhtml-tagfilter-perl-1.03/debian/watch 2014-04-11 19:08:55.000000000 +0000 @@ -1,3 +1,2 @@ -# format version number, currently 2; this line is compulsory! version=3 -http://www.cpan.org/modules/by-module/HTML/HTML-TagFilter-([\d\.]+)\.(?:tar\.gz|tar|tgz) +https://metacpan.org/release/HTML-TagFilter .*/HTML-TagFilter-v?(\d[\d.]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)