--- libnet-google-safebrowsing2-perl-1.07.orig/debian/copyright +++ libnet-google-safebrowsing2-perl-1.07/debian/copyright @@ -0,0 +1,29 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libnet-google-safebrowsing2-perl +Source: http://search.cpan.org/~jsobrier/Net-Google-SafeBrowsing2/ + +Files: * +Copyright: 2012 Julien Sobrier +License: Perl + This library is free software; you can redistribute it and/or modify it under + the same terms as Perl itself, either Perl version 5.8.8 or, at your option, + any later version of Perl 5 you may have available. + +Files: debian/* +Copyright: 2013 Cyril Bouthors +License: GPL-2+ + This package 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 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". --- libnet-google-safebrowsing2-perl-1.07.orig/debian/rules +++ libnet-google-safebrowsing2-perl-1.07/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f +%: + dh $@ --- libnet-google-safebrowsing2-perl-1.07.orig/debian/compat +++ libnet-google-safebrowsing2-perl-1.07/debian/compat @@ -0,0 +1 @@ +8 --- libnet-google-safebrowsing2-perl-1.07.orig/debian/control +++ libnet-google-safebrowsing2-perl-1.07/debian/control @@ -0,0 +1,60 @@ +Source: libnet-google-safebrowsing2-perl +Priority: extra +Maintainer: Cyril Bouthors +Uploaders: Cyril Bouthors +Build-Depends: debhelper (>= 8.0.0), + libnet-ipaddress-perl, + libtext-trim-perl, + libmime-base64-urlsafe-perl, + libtext-string-hexconvert-perl, + libfile-slurp-perl, + libwww-perl, + libdigest-hmac-perl +Standards-Version: 3.9.4 +Section: perl +Homepage: http://search.cpan.org/~jsobrier/Net-Google-SafeBrowsing2/ + +Package: libnet-google-safebrowsing2-perl +Section: perl +Architecture: all +Depends: ${shlibs:Depends}, + ${misc:Depends}, + libtext-trim-perl, + libnet-ipaddress-perl, + libmime-base64-urlsafe-perl, + libtext-string-hexconvert-perl, + libwww-perl, + liburi-perl, + libdigest-hmac-perl, + libmime-base64-urlsafe-perl, + libfile-slurp-perl +Suggests: libdbd-sqlite3-perl +Description: Perl extension for the Google Safe Browsing v2 API + The library passes most of the unit tests listed in the API documentation. See + the documentation + (http://code.google.com/apis/safebrowsing/developers_guide_v2.html) for more + details about the failed tests. + . + The Google Safe Browsing database must be stored and managed locally. + Net::Google::SafeBrowsing2::Sqlite uses Sqlite as the storage back-end, + Net::Google::SafeBrowsing2::MySQL uses MySQL. Other storage mechanisms + (databases, memory, etc.) can be added and used transparently with this module. + . + You may want to look at "Google Safe Browsing v2: Implementation Notes" + (http://www.zscaler.com/research/Google%20Safe%20Browsing%20v2%20API.pdf), a + collection of notes and real-world numbers about the API. This is intended for + people who want to learn more about the API, whether as a user or to make their + own implementation. + . + The source code is available on github at + https://github.com/juliensobrier/Net-Google-SafeBrowsing2. + . + If you do not need to inspect more than 10,000 URLs a day, you can use + Net::Google::SafeBrowsing2::Lookup with the Google Safe Browsing v2 Lookup API + which does not require to store and maintain a local database. + . + IMPORTANT: If you start with an empty database, you will need to perform + several updates to retrieve all the Google Safe Browsing information. This may + require up to 24 hours. This is a limitation of the Google API, not of this + module. See "Google Safe Browsing v2: Implementation Notes" at + http://www.zscaler.com/research/Google%20Safe%20Browsing%20v2%20API.pdf. --- libnet-google-safebrowsing2-perl-1.07.orig/debian/changelog +++ libnet-google-safebrowsing2-perl-1.07/debian/changelog @@ -0,0 +1,35 @@ +libnet-google-safebrowsing2-perl (1.07-6) unstable; urgency=low + + * debian/control: add missing build-deps (closes: #706734). + + -- Cyril Bouthors Sat, 11 May 2013 12:04:11 +0200 + +libnet-google-safebrowsing2-perl (1.07-5) unstable; urgency=low + + * Changed maintainer email address to cyb@debian.org + + -- Cyril Bouthors Sat, 11 May 2013 12:01:47 +0200 + +libnet-google-safebrowsing2-perl (1.07-4) unstable; urgency=low + + * debian/control: fixed 'Architecture' + + -- Cyril Bouthors Fri, 12 Apr 2013 17:57:53 +0200 + +libnet-google-safebrowsing2-perl (1.07-3) unstable; urgency=low + + * debian/control: fixed 'Uploaders' field. + + -- Cyril Bouthors Fri, 12 Apr 2013 16:25:01 +0200 + +libnet-google-safebrowsing2-perl (1.07-2) unstable; urgency=low + + * debian/control: add missing dependency on libfile-slurp-perl + + -- Cyril Bouthors Fri, 12 Apr 2013 16:22:48 +0200 + +libnet-google-safebrowsing2-perl (1.07-1) unstable; urgency=low + + * Initial release (Closes: #704961) + + -- Cyril Bouthors Fri, 05 Apr 2013 16:41:23 +0200 --- libnet-google-safebrowsing2-perl-1.07.orig/lib/Net/Google/SafeBrowsing2.pm +++ libnet-google-safebrowsing2-perl-1.07/lib/Net/Google/SafeBrowsing2.pm @@ -133,6 +133,8 @@ =over 4 +=back + =head2 new() Create a Net::Google::SafeBrowsing2 object @@ -181,8 +183,6 @@ =back -=back - =cut sub new { @@ -217,6 +217,8 @@ =over 4 +=back + =head2 update() Perform a database update. @@ -609,14 +611,14 @@ =pod -=back - =head1 PRIVATE FUNCTIONS These functions are not intended to be used externally. =over 4 +=back + =head2 lookup_suffix() Lookup a host prefix. @@ -1726,8 +1728,6 @@ } -=back - =head1 CHANGELOG =over 4 @@ -1823,4 +1823,4 @@ =cut -1; \ No newline at end of file +1; --- libnet-google-safebrowsing2-perl-1.07.orig/lib/Net/Google/SafeBrowsing2/Lookup.pm +++ libnet-google-safebrowsing2-perl-1.07/lib/Net/Google/SafeBrowsing2/Lookup.pm @@ -45,6 +45,8 @@ =over 4 +=back + =head2 new() Create a Net::Google::SafeBrowsing2::Lookup object @@ -82,8 +84,6 @@ =back -=back - =cut sub new { @@ -109,6 +109,8 @@ =over 4 +=back + =head2 lookup() Lookup a list URLs against the Google Safe Browsing v2 lists. @@ -367,8 +369,6 @@ } -=back - =head1 CHANGELOG =over 4 --- libnet-google-safebrowsing2-perl-1.07.orig/lib/Net/Google/SafeBrowsing2/Postgres.pm +++ libnet-google-safebrowsing2-perl-1.07/lib/Net/Google/SafeBrowsing2/Postgres.pm @@ -40,6 +40,8 @@ =over 4 +=back + =head2 new() Create a Net::Google::SafeBrowsing2::Postgres object @@ -78,8 +80,6 @@ =back -=back - =cut sub new { @@ -115,14 +115,14 @@ See L for a complete list of public functions. +=back + =head2 close() Cleanup old full hashes, and close the connection to the database. $storage->close(); -=back - =cut sub init { --- libnet-google-safebrowsing2-perl-1.07.orig/lib/Net/Google/SafeBrowsing2/Sqlite.pm +++ libnet-google-safebrowsing2-perl-1.07/lib/Net/Google/SafeBrowsing2/Sqlite.pm @@ -36,6 +36,8 @@ =over 4 +=back + =head2 new() Create a Net::Google::SafeBrowsing2::Sqlite object @@ -56,9 +58,6 @@ =back - -=back - =cut sub new { @@ -85,15 +84,14 @@ See L for a complete list of public functions. +=back + =head2 close() Cleanup old full hashes, and close the connection to the database. $storage->close(); - -=back - =cut sub init { @@ -372,4 +370,4 @@ =cut -1; \ No newline at end of file +1; --- libnet-google-safebrowsing2-perl-1.07.orig/lib/Net/Google/SafeBrowsing2/MySQL.pm +++ libnet-google-safebrowsing2-perl-1.07/lib/Net/Google/SafeBrowsing2/MySQL.pm @@ -36,6 +36,8 @@ =over 4 +=back + =head2 new() Create a Net::Google::SafeBrowsing2::MySQL object @@ -78,8 +80,6 @@ =back -=back - =cut sub new { @@ -108,6 +108,8 @@ See L for a complete list of public functions. +=back + =head2 close() Cleanup old full hashes, and close the connection to the database. @@ -115,8 +117,6 @@ $storage->close(); -=back - =cut sub init { @@ -391,4 +391,4 @@ =cut -1; \ No newline at end of file +1; --- libnet-google-safebrowsing2-perl-1.07.orig/lib/Net/Google/SafeBrowsing2/DBI.pm +++ libnet-google-safebrowsing2-perl-1.07/lib/Net/Google/SafeBrowsing2/DBI.pm @@ -36,6 +36,8 @@ =over 4 +=back + =head2 new() This method should be overwritten. @@ -48,8 +50,6 @@ Optional. Set to 1 to keep old information (such as expiring full hashes) in the database. 0 (delete) by default. -=back - =back @@ -77,6 +77,8 @@ See L for a complete list of public functions. +=back + =head2 close() Cleanup old full hashes, and close the connection to the database. @@ -240,10 +242,6 @@ CORE::close(EXPORT); } -=back - -=cut - sub init { my ($self, %args) = @_; @@ -823,4 +821,4 @@ =cut -1; \ No newline at end of file +1; --- libnet-google-safebrowsing2-perl-1.07.orig/lib/Net/Google/SafeBrowsing2/Storage.pm +++ libnet-google-safebrowsing2-perl-1.07/lib/Net/Google/SafeBrowsing2/Storage.pm @@ -32,15 +32,14 @@ =over 4 +=back + =head2 new() Create a Net::Google::SafeBrowsing2::Storage object my $storage => Net::Google::SafeBrowsing2::Storage->new(); - -=back - =cut sub new { @@ -58,6 +57,8 @@ =over 4 +=back + =head2 add_chunks() Add chunk information to the local database @@ -889,14 +890,14 @@ } -=back - =head1 PRIVATE FUNCTIONS These functions are not intended for debugging purpose. =over 4 +=back + =head2 hex_to_ascii() Transform hexadecimal strings to printable ASCII strings. Used mainly for debugging. @@ -937,8 +938,6 @@ return $hex; } -=back - =head1 CHANGELOG =over 4 @@ -980,4 +979,4 @@ =cut -1; \ No newline at end of file +1;