pkgsrc/www/ruby-rack/Makefile

25 lines
656 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.29 2020/06/17 10:33:49 taca Exp $
DISTNAME= rack-2.2.3
CATEGORIES= www
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://rack.github.io/
COMMENT= Modular Ruby webserver interface
Update www/ruby-rack to 1.2.1. * Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk. * Add LICENSE. * Remove default value of GEM_BUILD. == Changes * June 13th, 2010: Tenth public release 1.2.0. * Removed Camping adapter: Camping 2.0 supports Rack as-is * Removed parsing of quoted values * Add Request.trace? and Request.options? * Add mime-type for .webm and .htc * Fix HTTP_X_FORWARDED_FOR * Various multipart fixes * Switch test suite to bacon * January 3rd, 2009: Ninth public release 1.1.0. * Moved Auth::OpenID to rack-contrib. * SPEC change that relaxes Lint slightly to allow subclasses of the required types * SPEC change to document rack.input binary mode in greator detail * SPEC define optional rack.logger specification * File servers support X-Cascade header * Imported Config middleware * Imported ETag middleware * Imported Runtime middleware * Imported Sendfile middleware * New Logger and NullLogger middlewares * Added mime type for .ogv and .manifest. * Don't squeeze PATH_INFO slashes * Use Content-Type to determine POST params parsing * Update Rack::Utils::HTTP_STATUS_CODES hash * Add status code lookup utility * Response should call #to_i on the status * Add Request#user_agent * Request#host knows about forwared host * Return an empty string for Request#host if HTTP_HOST and SERVER_NAME are both missing * Allow MockRequest to accept hash params * Optimizations to HeaderHash * Refactored rackup into Rack::Server * Added Utils.build_nested_query to complement Utils.parse_nested_query * Added Utils::Multipart.build_multipart to complement Utils::Multipart.parse_multipart * Extracted set and delete cookie helpers into Utils so they can be used outside Response * Extract parse_query and parse_multipart in Request so subclasses can change their behavior * Enforce binary encoding in RewindableInput * Set correct external_encoding for handlers that don't use RewindableInput
2010-09-10 15:16:50 +02:00
LICENSE= mit
USE_LANGUAGES= # none
OVERRIDE_GEMSPEC= :executables rackup=rackup20 \
:files bin/rackup=bin/rackup20
RUBYGEM_OPTIONS+= --format-executable
Update ruby-rack to 1.5.2. == Changes Please note that this release includes a few potentially breaking changes. Of particular note are: * SessionHash is no longer a Hash sublcass * Rack::File cache_control parameter is removed in place of headers options Additonally, SPEC has been updated in several areas and is now at 1,2. A new SPEC section was introduced that provides two server-optional IO hijacking APIs. Further information on these APIs will be made available by the community in good time. In the mean time, some information can be found in the original pull request: https://github.com/rack/rack/pull/481 * January 21st, 2013: Thirty third public release 1.5.0 * Introduced hijack SPEC, for before-response and after-response hijacking * SessionHash is no longer a Hash subclass * Rack::File cache_control parameter is removed, in place of headers options * Rack::Auth::AbstractRequest#scheme now yields strings, not symbols * Rack::Utils cookie functions now format expires in RFC 2822 format * Rack::File now has a default mime type * rackup -b 'run Rack::File.new(".")', option provides command line configs * Rack::Deflater will no longer double encode bodies * Rack::Mime#match? provides convenience for Accept header matching * Rack::Utils#q_values provides splitting for Accept headers * Rack::Utils#best_q_match provides a helper for Accept headers * Rack::Handler.pick provides convenience for finding available servers * Puma added to the list of default servers (preferred over Webrick) * Various middleware now correctly close body when replacing it * Rack::Request#params is no longer persistent with only GET params * Rack::Request#update_param and #delete_param provide persistent operations * Rack::Request#trusted_proxy? now returns true for local unix sockets * Rack::Response no longer forces Content-Types * Rack::Sendfile provides local mapping configuration options * Rack::Utils#rfc2109 provides old netscape style time output * Updated HTTP status codes * Ruby 1.8.6 likely no longer passes tests, and is no longer fully supported * January 28th, 2013: Thirty fourth public release 1.5.1 * Rack::Lint check_hijack now conforms to other parts of SPEC * Added hash-like methods to Abstract::ID::SessionHash for compatibility * Various documentation corrections * February 7th, Thirty fifth public release 1.5.2 * Fix CVE-2013-0263, timing attack against Rack::Session::Cookie * Fix CVE-2013-0262, symlink path traversal in Rack::File * Add various methods to Session for enhanced Rails compatibility * Request#trusted_proxy? now only matches whole stirngs * Add JSON cookie coder, to be default in Rack 1.6+ due to security concerns * URLMap host matching in environments that don't set the Host header fixed * Fix a race condition that could result in overwritten pidfiles * Various documentation additions
2013-03-10 10:25:56 +01:00
Update www/ruby-rack to 1.2.1. * Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk. * Add LICENSE. * Remove default value of GEM_BUILD. == Changes * June 13th, 2010: Tenth public release 1.2.0. * Removed Camping adapter: Camping 2.0 supports Rack as-is * Removed parsing of quoted values * Add Request.trace? and Request.options? * Add mime-type for .webm and .htc * Fix HTTP_X_FORWARDED_FOR * Various multipart fixes * Switch test suite to bacon * January 3rd, 2009: Ninth public release 1.1.0. * Moved Auth::OpenID to rack-contrib. * SPEC change that relaxes Lint slightly to allow subclasses of the required types * SPEC change to document rack.input binary mode in greator detail * SPEC define optional rack.logger specification * File servers support X-Cascade header * Imported Config middleware * Imported ETag middleware * Imported Runtime middleware * Imported Sendfile middleware * New Logger and NullLogger middlewares * Added mime type for .ogv and .manifest. * Don't squeeze PATH_INFO slashes * Use Content-Type to determine POST params parsing * Update Rack::Utils::HTTP_STATUS_CODES hash * Add status code lookup utility * Response should call #to_i on the status * Add Request#user_agent * Request#host knows about forwared host * Return an empty string for Request#host if HTTP_HOST and SERVER_NAME are both missing * Allow MockRequest to accept hash params * Optimizations to HeaderHash * Refactored rackup into Rack::Server * Added Utils.build_nested_query to complement Utils.parse_nested_query * Added Utils::Multipart.build_multipart to complement Utils::Multipart.parse_multipart * Extracted set and delete cookie helpers into Utils so they can be used outside Response * Extract parse_query and parse_multipart in Request so subclasses can change their behavior * Enforce binary encoding in RewindableInput * Set correct external_encoding for handlers that don't use RewindableInput
2010-09-10 15:16:50 +02:00
pre-configure:
${FIND} ${WRKSRC} -type f -exec ${CHMOD} g-w {} \;
${FIND} ${WRKSRC}/bin -type f -exec ${CHMOD} ${BINMODE} {} \;
${TEST} -f ${WRKSRC}/bin/rackup20 || \
${MV} ${WRKSRC}/bin/rackup ${WRKSRC}/bin/rackup20
Update www/ruby-rack to 1.2.1. * Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk. * Add LICENSE. * Remove default value of GEM_BUILD. == Changes * June 13th, 2010: Tenth public release 1.2.0. * Removed Camping adapter: Camping 2.0 supports Rack as-is * Removed parsing of quoted values * Add Request.trace? and Request.options? * Add mime-type for .webm and .htc * Fix HTTP_X_FORWARDED_FOR * Various multipart fixes * Switch test suite to bacon * January 3rd, 2009: Ninth public release 1.1.0. * Moved Auth::OpenID to rack-contrib. * SPEC change that relaxes Lint slightly to allow subclasses of the required types * SPEC change to document rack.input binary mode in greator detail * SPEC define optional rack.logger specification * File servers support X-Cascade header * Imported Config middleware * Imported ETag middleware * Imported Runtime middleware * Imported Sendfile middleware * New Logger and NullLogger middlewares * Added mime type for .ogv and .manifest. * Don't squeeze PATH_INFO slashes * Use Content-Type to determine POST params parsing * Update Rack::Utils::HTTP_STATUS_CODES hash * Add status code lookup utility * Response should call #to_i on the status * Add Request#user_agent * Request#host knows about forwared host * Return an empty string for Request#host if HTTP_HOST and SERVER_NAME are both missing * Allow MockRequest to accept hash params * Optimizations to HeaderHash * Refactored rackup into Rack::Server * Added Utils.build_nested_query to complement Utils.parse_nested_query * Added Utils::Multipart.build_multipart to complement Utils::Multipart.parse_multipart * Extracted set and delete cookie helpers into Utils so they can be used outside Response * Extract parse_query and parse_multipart in Request so subclasses can change their behavior * Enforce binary encoding in RewindableInput * Set correct external_encoding for handlers that don't use RewindableInput
2010-09-10 15:16:50 +02:00
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"