pkgsrc/www/p5-libwww/Makefile

28 lines
907 B
Makefile
Raw Normal View History

Update to 5.805: 2005-12-08 Gisle Aas Release 5.805 HTTP::Date: The str2time function returned wrong values for years in the early 20th century, because timelocal() actually expects the year to be provided on a different scale than what localtime() returns. HTTP::Headers can now be constructed with field names that repeat. The $h->header function now also accept repeating field names and can also remove headers if passed undef as value. HTML::Form: The parse method now takes hash style optional arguments and the old verbose behaviour is now off by default. HTML::Form: Accept <select multiple=""> for compatibilty with other browsers. Patch by Josh Rai HTML::Form: Sane handling of 'disabled' for ListInput. Based on patch by Joao Lopes HTTP::Negotiate: Fixed matching of partial language tags. Patch contributed by Dan Kubb. HTTP::Response: The as_string method now returns a status line that doesn't add the "official" code name in the message field. This improves the ability to round-trip response objects via HTTP::Response->parse($res->as_string) and makes the first line of the string returned agree with $res->status_line. Net::HTTP: The host attribute can now be set undef in order to suppress this header for HTTP/1.0 requests. Net::HTTP: The default Host: header does not include the port number if it is the default (80 for plain HTTP). Some servers get confused by this. Net::HTTP: Ignore bogus Content-Length headers. Don't get confused by leading or trailing whitespace. LWP::Protocol::http: More efficient sending of small PUT/POST requests by trying harder to pass off the whole request in a single call to syswrite. lwp-request now give better error messages if you used the -o option without having the HTML-Tree distribution installed. Also document this dependency. 2005-12-06 Gisle Aas Release 5.804 HTTP::Message->parse did not work when the first line of the body was something that looked like a header. HTTP::Header::Auth needs HTTP::Headers to be loaded before it replace its functions. LWP::Protocol::nntp improvements by Ville Skyttä - Support the nntp: scheme. - Support hostname in news: and nntp: URIs. - Close connection and preserve headers also in non-OK responses. - HEAD support for URIs identifying a newsgroup. - Comment spelling fixes. Fix quotes in Net::HTTP example. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=283916 Detect EOF when expecting a chunk header. Should address the warnings shown in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286775 WWW::RobotRules: Improved parsing of not strictly valid robots.txt files Makefile.PL: Set name to LWP so that the .packlist ends up in the expected place.
2005-12-11 20:17:19 +01:00
# $NetBSD: Makefile,v 1.44 2005/12/11 19:17:19 wiz Exp $
1997-11-22 06:10:36 +01:00
Update to 5.805: 2005-12-08 Gisle Aas Release 5.805 HTTP::Date: The str2time function returned wrong values for years in the early 20th century, because timelocal() actually expects the year to be provided on a different scale than what localtime() returns. HTTP::Headers can now be constructed with field names that repeat. The $h->header function now also accept repeating field names and can also remove headers if passed undef as value. HTML::Form: The parse method now takes hash style optional arguments and the old verbose behaviour is now off by default. HTML::Form: Accept <select multiple=""> for compatibilty with other browsers. Patch by Josh Rai HTML::Form: Sane handling of 'disabled' for ListInput. Based on patch by Joao Lopes HTTP::Negotiate: Fixed matching of partial language tags. Patch contributed by Dan Kubb. HTTP::Response: The as_string method now returns a status line that doesn't add the "official" code name in the message field. This improves the ability to round-trip response objects via HTTP::Response->parse($res->as_string) and makes the first line of the string returned agree with $res->status_line. Net::HTTP: The host attribute can now be set undef in order to suppress this header for HTTP/1.0 requests. Net::HTTP: The default Host: header does not include the port number if it is the default (80 for plain HTTP). Some servers get confused by this. Net::HTTP: Ignore bogus Content-Length headers. Don't get confused by leading or trailing whitespace. LWP::Protocol::http: More efficient sending of small PUT/POST requests by trying harder to pass off the whole request in a single call to syswrite. lwp-request now give better error messages if you used the -o option without having the HTML-Tree distribution installed. Also document this dependency. 2005-12-06 Gisle Aas Release 5.804 HTTP::Message->parse did not work when the first line of the body was something that looked like a header. HTTP::Header::Auth needs HTTP::Headers to be loaded before it replace its functions. LWP::Protocol::nntp improvements by Ville Skyttä - Support the nntp: scheme. - Support hostname in news: and nntp: URIs. - Close connection and preserve headers also in non-OK responses. - HEAD support for URIs identifying a newsgroup. - Comment spelling fixes. Fix quotes in Net::HTTP example. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=283916 Detect EOF when expecting a chunk header. Should address the warnings shown in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286775 WWW::RobotRules: Improved parsing of not strictly valid robots.txt files Makefile.PL: Set name to LWP so that the .packlist ends up in the expected place.
2005-12-11 20:17:19 +01:00
DISTNAME= libwww-perl-5.805
PKGNAME= p5-${DISTNAME:S/-perl-/-/}
SVR4_PKGNAME= p5lww
Update libwww-perl to 5.46 Changes are: o Y2K fix to t/base/cookies.t. Netscape's original cookie example expires at 09-Nov-99. o Unbundled URI::URL modules. You now have to install the URI.pm module in order to get libwww-perl working. o Avoid warnings for lwp-request -t o referrer as alternative spelling for referer as suggested by tchrist. o More conservative selection of boundary for multipart messages in &HTTP::Request::Common::POST. o LWP::MediaTypes can now export &read_media_types. o Spelling corrections from Ben Tilly <Ben_Tilly@trepp.com> o The LWP SSL support better explained. Documentation in README.SSL and lwpcook.pod contributed by Marko Asplund <aspa@hip.fi>. o LWP::Protocol::https: Try loading IO::Socket::SSL if Net::SSL is not available. o defined(@ISA) eliminated. Patch by Nathan Torkington <gnat@frii.com> o LWP::Protocol::ftp: Protect against empty path_segments o 'lwp-request -HUser-Agent:foo' can now be used to set this header too. o Localize $/ to ensure standard record separator a few places in HTTP::Cookies o LWP::UserAgent will now set the Range header in requests if the $ua->max_size attribute is set. o New lwp-request command line option that allow you to put any header into the request (-H). o New HTTP::Date because of Y2K-problems with the old one. It refused to parse the ftp-listing (ls -l) dates missing year. Additional entry point is parse_date(). This function avoid any limitations caused by the time-representation (seconds since epoch). o Added another binmode() to LWP::Protocol::file as suggested by Matt Sergeant <matt-news@sergeant.org> o Documentation patch from Michael A. Chase <mchase@ix.netcom.com> o PREREQ_PM patch from Andreas Koenig <andreas.koenig@anima.de> o LWP::Simple::head fix by Richard Chen <richard@lexitech.com> o Allow "." in HTTP header names. Patch by Marc Langheinrich <marc@ccm.cl.nec.co.jp> o Fixed reference to $uri->netloc in lwp-request o Cute animation in lwp-download o HTTP::Cookies provide better Netscape cookies compliance. Send back cookies to any port, and allow origin host name to be specified as domain, and still be treated as a domain. Patch from Andreas Gustafsson <gson@araneus.fi>. o HTTP::Cookies now ignore the Expires field in Set-Cookie, if the date provided can't be parsed by HTTP::Date. o HTTP::Daemon will lowercase the hostname returned from Sys::Hostname::hostname(). This avoid some test failures in the test suite for people with upper- or mixed-cased hostnames. o LWP::Protocol::gopher: IO::Socket::INET ctor did not specify Proto => 'tcp'. This made it less portable to older IO::Socket versions. o No programs installed when you build the Makefile with 'perl Makefile.PL LIB=/my/lib' o LWP bundle mention Digest::MD5 instead of MD5 o headers-auth.t test suite bug triggered by perl5.005_5x. Patch by Albert Dvornik <bert@genscan.com> o The local/http.t test actually did try to unlink("."). This was very confusing on systems where it succeed. o Made library URI.pm compatible. Made all URI object instantiations based on $HTTP::URI_CLASS variable. o New lwp-rget option: --referer. Patch by INOUE Yoshinari <inoue@kusm.kyoto-u.ac.jp>. o One more binmode() to HTTP::Daemon as suggested by Markus Laker <mlaker@contax.co.uk>.
1999-12-02 16:16:19 +01:00
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=WWW/}
1997-11-22 06:10:36 +01:00
2003-07-18 00:50:55 +02:00
MAINTAINER= shell@NetBSD.org
Update to 5.803: 2004-12-11 Gisle Aas Release 5.803 HTTP::Message: $mess->decoded_content sometimes had the side effect of destroying $mess->content. HTTP::Message: $mess->decoded_content failed for "Content-Encoding: deflate" if the content was not in the zlib-format as specified for the HTTP protocol. Microsoft got this wrong, so we have to support raw deflate bytes as well. HTTP::Response->parse don't require the protocol to be specified any more. This allows HTTP::Response->parse($resp->as_string) to round-trip. Patch by Harald Joerg. HTTP::Response: $resp->base might now return undef. Previously it would croak if there was no associated request. Based on patch by Harald Joerg. HTML::Form now support <label> for check- and radio boxes. Patch contributed by Dan Kubb. Make HTTP::Daemon subclassable, patch by Kees Cook. lwp-download allow directory to save into to be specified. Patch by Radoslaw Zielinski lwp-download will validate filename derived from server controlled data and will fail if something looks not quite right. 2004-11-30 Gisle Aas Release 5.802 The HTTP::Message object now have a decoded_content() method. This will return the content after any Content-Encodings and charsets has been decoded. Compress::Zlib is now a prerequisite module. HTTP::Request::Common: The POST() function created an invalid Content-Type header for file uploads with no parameters. Net::HTTP: Allow Transfer-Encoding with trailing whitespace. <http://rt.cpan.org/Ticket/Display.html?id=3929> Net::HTTP: Don't allow empty content to be treated as a valid HTTP/0.9 response. <http://rt.cpan.org/Ticket/Display.html?id=4581> <http://rt.cpan.org/Ticket/Display.html?id=6883> File::Protocol::file: Fixup directory links in HTML generated for directories. Patch by Moshe Kaminsky Makefile.PL will try to discover misconfigured systems that can't talk to themselves and disable tests that depend on this. Makefile.PL will now default to 'n' when asking about whether to install the "GET", "HEAD", "POST" programs. There has been too many name clashes with these common names. 2004-11-12 Gisle Aas Release 5.801 HTTP::Message improved content/content_ref interaction. Fixes DYNAMIC_FILE_UPLOAD and other uses of code content in requests. HTML::Form: - Handle clicking on nameless image. - Don't let $form->click invoke a disabled submit button. HTTP::Cookies could not handle a "old-style" cookie named "Expires". HTTP::Headers work-around for thread safety issue in perl <= 5.8.4. HTTP::Request::Common improved documentation. LWP::Protocol: Check that we can write to the file specified in $ua->request(..., $file) or $ua->mirror. LWP::UserAgent clone() dies if proxy was not set. Patch by Andy Lester HTTP::Methods now avoid "use of uninitialized"-warning when server replies with incomplete status line. lwp-download will now actually tell you why it aborts if it runs out of disk space of fails to write some other way. WWW::RobotRules: only display warning when running under 'perl -w' and show which robots.txt file they correspond to. Based on patch by Bill Moseley. WWW::RobotRules: Don't empty cache when agent() is called if the agent name does not change. Patch by Ville Skyttä 2004-06-16 Gisle Aas Release 5.800 HTML::Form will allow individual menu entries to be disabled. This was needed to support <input type=radio disabled value=foo> and <select><option disabled>foo. HTML::Form now avoids name clashes between the <select> and <option> attributes. HTML::Form now implicitly close <select> elements when it sees another input or </form>. This is closer to the MSIE behaviour. HTML::Form will now "support" keygen-inputs. It will not calculate a key by itself. The user will have to set its value for it to be returned by the form. HTTP::Headers now special case field names that start with a ':'. This is used as an escape mechanism when you need the header names to not go through canonicalization. It means that you can force LWP to use a specific casing and even underscores in header names. The ugly $TRANSLATE_UNDERSCORE global has been undocumented as a result of this. HTTP::Message will now allow an external 'content_ref' to be set. This can for instance be used to let HTTP::Request objects pick up content data from some scalar variable without having to copy it. HTTP::Request::Common. The individual parts will no longer have a Content-Length header for file uploads. This improves compatibility with "normal" browsers. LWP::Simple doc patch for getprint. Contributed by Yitzchak Scott-Thoennes LWP::UserAgent: New methods default_header() and default_headers(). These can be used to set up headers that are automatically added to requests as they are sent. This can for instance be used to initialize various Accept headers. Various typo fixes by Ville Skyttä Fixed test failure under perl-5.005. LWP::Protocol::loopback: This is a new protocol handler that works like the HTTP TRACE method, it will return the request provided to it. This is sometimes useful for testing. It can for instance be invoked by setting the 'http_proxy' environment variable to 'loopback:'. 2004-04-13 Gisle Aas Release 5.79 HTML::Form now exposes the 'readonly' and 'disabled' attribute for inputs. This allows your program to simulate JavaScript code that modifies these attributes. RFC 2616 says that http: referer should not be sent with https: requests. The lwp-rget program, the $req->referer method and the redirect handling code now try to enforce this. Patch by Ville Skyttä WWW::RobotRules now look for the string found in robots.txt as a case insensitive substring from its own User-Agent string, not the other way around. Patch by Ville Skyttä HTTP::Headers: New method 'header_field_names' that return a list of names as suggested by its name. HTTP::Headers: $h->remove_content_headers will now also remove the headers "Allow", "Expires" and "Last-Modified". These are also part of the set that RFC 2616 denote as Entity Header Fields. HTTP::Headers: $h->content_type is now more careful in removing embedded space in the returned value. It also now returns all the parameters as the second return value as documented. HTTP::Headers: $h->header() now croaks. It used to silently do nothing. HTTP::Headers: Documentation tweaks. Documented a few bugs discovered during testing. Typo fixes to the documentation all over the place by Ville Skyttä Updated tests. 2004-04-07 Gisle Aas Release 5.78 Removed stray Data::Dump reference from test suite. Added the parse(), clear(), parts() and add_part() methods to HTTP::Message. The HTTP::MessageParts module of 5.77 is no more. Added clear() and remove_content_headers() methods to HTTP::Headers. The as_string() method of HTTP::Message now appends a newline if called without arguments and the non-empty content does not end with a newline. This ensures better compatibility with 5.76 and older versions of libwww-perl. Use case insensitive lookup of hostname in $ua->credentials. Patch by Andrew Pimlott 2004-04-06 Gisle Aas Release 5.77 LWP::Simple did not handle redirects properly when the "Location" header used uncommon letter casing. Patch by Ward Vandewege LWP::UserAgent passed the wrong request to redirect_ok(). Patch by Ville Skyttä https://rt.cpan.org/Ticket/Display.html?id=5828 LWP did not handle URLs like http://www.example.com?foo=bar properly. LWP::RobotUA construct now accept key/value arguments in the same way as LWP::UserAgent. Based on patch by Andy Lester LWP::RobotUA did not parse robots.txt files that contained "Disallow:" using uncommon letter casing. Patch by Liam Quinn WWW::RobotRules now allow leading space when parsing robots.txt file as suggested by Craig Macdonald We now also allow space before the colon. WWW::RobotRules did not handle User-Agent names that use complex version numbers. Patch by Liam Quinn Case insensitive handling of hosts and domain names in HTTP::Cookies. https://rt.cpan.org/Ticket/Display.html?id=4530 The bundled media.types file now match video/quicktime with the .mov extension, as suggested by Michel Koppelaar Experimental support for composite messages, currently implemented by the HTTP::MessageParts module. Based on ideas from Joshua Hoblitt Fixed libscan in Makefile.PL. Patch by Andy Lester The HTTP::Message constructor now accept a plain array reference as its $headers argument. The return value of the HTTP::Message as_string() method now better conforms to the HTTP wire layout. No additional "\n" are appended to the as_string value for HTTP::Request and HTTP::Response. The HTTP::Request as_string now replace missing method or URI with "-" instead of "[NO METHOD]" and "[NO URI]". We don't want values with spaces in them, because it makes it harder to parse.
2005-02-18 14:28:39 +01:00
HOMEPAGE= http://search.cpan.org/dist/libwww-perl/
COMMENT= Perl5 library for WWW access
1997-11-22 06:10:36 +01:00
DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
DEPENDS+= p5-Net>=1.09:../../net/p5-Net # for Net::FTP>=2.58
DEPENDS+= p5-HTML-Parser>=3.33:../../www/p5-HTML-Parser
DEPENDS+= p5-URI>=1.10:../../www/p5-URI
DEPENDS+= p5-Compress-Zlib-[0-9]*:../../devel/p5-Compress-Zlib
DEPENDS+= p5-IO-Socket-SSL-[0-9]*:../../security/p5-IO-Socket-SSL
DEPENDS+= p5-MIME-Base64>=2.1:../../converters/p5-MIME-Base64
1997-11-22 06:10:36 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
Update to 5.805: 2005-12-08 Gisle Aas Release 5.805 HTTP::Date: The str2time function returned wrong values for years in the early 20th century, because timelocal() actually expects the year to be provided on a different scale than what localtime() returns. HTTP::Headers can now be constructed with field names that repeat. The $h->header function now also accept repeating field names and can also remove headers if passed undef as value. HTML::Form: The parse method now takes hash style optional arguments and the old verbose behaviour is now off by default. HTML::Form: Accept <select multiple=""> for compatibilty with other browsers. Patch by Josh Rai HTML::Form: Sane handling of 'disabled' for ListInput. Based on patch by Joao Lopes HTTP::Negotiate: Fixed matching of partial language tags. Patch contributed by Dan Kubb. HTTP::Response: The as_string method now returns a status line that doesn't add the "official" code name in the message field. This improves the ability to round-trip response objects via HTTP::Response->parse($res->as_string) and makes the first line of the string returned agree with $res->status_line. Net::HTTP: The host attribute can now be set undef in order to suppress this header for HTTP/1.0 requests. Net::HTTP: The default Host: header does not include the port number if it is the default (80 for plain HTTP). Some servers get confused by this. Net::HTTP: Ignore bogus Content-Length headers. Don't get confused by leading or trailing whitespace. LWP::Protocol::http: More efficient sending of small PUT/POST requests by trying harder to pass off the whole request in a single call to syswrite. lwp-request now give better error messages if you used the -o option without having the HTML-Tree distribution installed. Also document this dependency. 2005-12-06 Gisle Aas Release 5.804 HTTP::Message->parse did not work when the first line of the body was something that looked like a header. HTTP::Header::Auth needs HTTP::Headers to be loaded before it replace its functions. LWP::Protocol::nntp improvements by Ville Skyttä - Support the nntp: scheme. - Support hostname in news: and nntp: URIs. - Close connection and preserve headers also in non-OK responses. - HEAD support for URIs identifying a newsgroup. - Comment spelling fixes. Fix quotes in Net::HTTP example. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=283916 Detect EOF when expecting a chunk header. Should address the warnings shown in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286775 WWW::RobotRules: Improved parsing of not strictly valid robots.txt files Makefile.PL: Set name to LWP so that the .packlist ends up in the expected place.
2005-12-11 20:17:19 +01:00
PERL5_PACKLIST= auto/LWP/.packlist
MAKE_PARAMS= -n
1997-11-22 06:10:36 +01:00
2002-10-27 21:48:55 +01:00
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"