[DRE-commits] r3635 - in packages/libhttp-access2-ruby/trunk: . debian debian/patches
Ryan Niebur
ryan52-guest at alioth.debian.org
Thu Jun 18 22:31:19 UTC 2009
Author: ryan52-guest
Date: 2009-06-18 22:31:19 +0000 (Thu, 18 Jun 2009)
New Revision: 3635
Added:
packages/libhttp-access2-ruby/trunk/debian/
packages/libhttp-access2-ruby/trunk/debian/README.Debian
packages/libhttp-access2-ruby/trunk/debian/changelog
packages/libhttp-access2-ruby/trunk/debian/compat
packages/libhttp-access2-ruby/trunk/debian/control
packages/libhttp-access2-ruby/trunk/debian/copyright
packages/libhttp-access2-ruby/trunk/debian/docs
packages/libhttp-access2-ruby/trunk/debian/examples
packages/libhttp-access2-ruby/trunk/debian/libhttp-access2-ruby1.8.README.Debian
packages/libhttp-access2-ruby/trunk/debian/patches/
packages/libhttp-access2-ruby/trunk/debian/patches/lib___http-access2.rb.patch
packages/libhttp-access2-ruby/trunk/debian/rules
Log:
[svn-inject] Applying Debian modifications to trunk
Property changes on: packages/libhttp-access2-ruby/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/libhttp-access2-ruby/trunk/debian/README.Debian
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/README.Debian (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/README.Debian 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1,10 @@
+libhttp-access2 for Debian
+--------------------------
+
+Ruby's http-access2, HTTP accessing library
+
+see /usr/share/doc/libhttp-access2-ruby/examples/howto.rb how to use APIs.
+see http://dev.ctor.org/http-access2 for more details.
+
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp>, Mon, 30 Oct 2006 00:58:52 +0900
Added: packages/libhttp-access2-ruby/trunk/debian/changelog
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/changelog (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/changelog 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1,63 @@
+libhttp-access2-ruby (2.0.6-3) unstable; urgency=low
+
+ * lib/http-access2.rb: apply patches
+ http://dev.ctor.org/http-access2/changeset/128
+ http://dev.ctor.org/http-access2/changeset/129
+ closes: Bug#391530
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Mon, 6 Nov 2006 01:26:19 +0900
+
+libhttp-access2-ruby (2.0.6-2) unstable; urgency=low
+
+ * debian/control: recommends: libopenssl-ruby1.8
+ closes: Bug#396014
+ * lib/http-access2.rb: support Proxy authentication.
+ apply patch http://dev.ctor.org/http-access2/ticket/6
+ closes: Bug#391530
+ * debian/docs: install README.txt
+ debian/README.Debian: add some references
+ closes: Bug#391843
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Mon, 30 Oct 2006 00:43:22 +0900
+
+libhttp-access2-ruby (2.0.6-1) unstable; urgency=low
+
+ * New upstream release
+ * stop building ruby1.6 module
+ closes: Bug#366585
+ * detailed description. closes: Bug#209745
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Fri, 12 May 2006 01:25:37 +0900
+
+libhttp-access2-ruby (2.0.4-1) unstable; urgency=medium
+
+ * New upstream release
+ * required by ruby1.8's soap4r in sarge. closes: Bug#268732
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Sun, 29 Aug 2004 08:22:05 +0900
+
+libhttp-access2-ruby (0.0.J-2) unstable; urgency=low
+
+ * copy Ruby's license from ruby source.
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Tue, 16 Sep 2003 13:06:13 +0900
+
+libhttp-access2-ruby (0.0.J-1) unstable; urgency=low
+
+ * New upstream release
+ * build for both ruby1.6 and ruby1.8
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Mon, 8 Sep 2003 02:46:36 +0900
+
+libhttp-access2-ruby (0.0.F-1) unstable; urgency=low
+
+ * Initial Release. closes: Bug#153897
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Wed, 24 Jul 2002 00:45:22 +0900
+
+libhttp-access2-ruby (0.0.F-0) experimental; urgency=low
+
+ * Initial Release.
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp> Fri, 12 Jul 2002 13:24:05 +0900
+
Added: packages/libhttp-access2-ruby/trunk/debian/compat
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/compat (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/compat 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1 @@
+4
Added: packages/libhttp-access2-ruby/trunk/debian/control
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/control (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/control 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1,32 @@
+Source: libhttp-access2-ruby
+Section: web
+Priority: optional
+Maintainer: Fumitoshi UKAI <ukai at debian.or.jp>
+Build-Depends: debhelper (>> 4.0.0)
+Standards-Version: 3.6.1
+
+Package: libhttp-access2-ruby
+Architecture: all
+Depends: libhttp-access2-ruby1.8
+Description: HTTP accessing library for ruby
+ This is dependency package to libhttp-access2-ruby for
+ default version of ruby.
+
+Package: libhttp-access2-ruby1.8
+Architecture: all
+Depends: libruby1.8
+Recommends: libopenssl-ruby1.8
+Description: HTTP accessing library for ruby
+ http-access2 gives something like the functionality of
+ libwww-perl (LWP) in Ruby.
+ .
+ * methods like GET/HEAD/POST via HTTP/1.1.
+ * asynchronous HTTP request
+ * by contrast with net/http in standard distribution;
+ * you don't have to care HTTP/1.1 persistent connection
+ (http-access2 cares instead of you).
+ * MT-safe
+ * streaming POST
+ .
+ This is packaged for ruby1.8
+
Added: packages/libhttp-access2-ruby/trunk/debian/copyright
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/copyright (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/copyright 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1,80 @@
+This package was debianized by Fumitoshi UKAI <ukai at debian.or.jp> on
+Fri, 12 Jul 2002 13:24:05 +0900.
+
+It was downloaded from http://raa.ruby-lang.org/list.rhtml?name=http-access2
+
+Upstream Author: nahi at keynauts.com
+
+Copyright:
+
+ This module is copyrighted free software by NAKAMURA, Hiroshi.
+ You can redistribute it and/or modify it under the same term as Ruby.
+
+and
+
+ 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 2 of the License, or (at your option) any later
+ version.
+
+----------------
+Ruby is copyrighted free software by Yukihiro Matsumoto <matz at netlab.co.jp>.
+You can redistribute it and/or modify it under either the terms of the GPL
+(see COPYING file), or the conditions below:
+
+ 1. You may make and give away verbatim copies of the source form of the
+ software without restriction, provided that you duplicate all of the
+ original copyright notices and associated disclaimers.
+
+ 2. You may modify your copy of the software in any way, provided that
+ you do at least ONE of the following:
+
+ a) place your modifications in the Public Domain or otherwise
+ make them Freely Available, such as by posting said
+ modifications to Usenet or an equivalent medium, or by allowing
+ the author to include your modifications in the software.
+
+ b) use the modified software only within your corporation or
+ organization.
+
+ c) rename any non-standard executables so the names do not conflict
+ with standard executables, which must also be provided.
+
+ d) make other distribution arrangements with the author.
+
+ 3. You may distribute the software in object code or executable
+ form, provided that you do at least ONE of the following:
+
+ a) distribute the executables and library files of the software,
+ together with instructions (in the manual page or equivalent)
+ on where to get the original distribution.
+
+ b) accompany the distribution with the machine-readable source of
+ the software.
+
+ c) give non-standard executables non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 4. You may modify and include the part of the software into any other
+ software (possibly commercial). But some files in the distribution
+ are not written by the author, so that they are not under this terms.
+ They are gc.c(partly), utils.c(partly), regex.[ch], fnmatch.[ch],
+ glob.c, st.[ch] and some files under the ./missing directory. See
+ each file for the copying condition.
+
+ 5. The scripts and library files supplied as input to or produced as
+ output from the software do not automatically fall under the
+ copyright of the software, but belong to whomever generated them,
+ and may be sold commercially, and may be aggregated with this
+ software.
+
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE.
+
+--
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
Added: packages/libhttp-access2-ruby/trunk/debian/docs
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/docs (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/docs 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1 @@
+README.txt
Added: packages/libhttp-access2-ruby/trunk/debian/examples
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/examples (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/examples 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1 @@
+sample/*
Added: packages/libhttp-access2-ruby/trunk/debian/libhttp-access2-ruby1.8.README.Debian
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/libhttp-access2-ruby1.8.README.Debian (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/libhttp-access2-ruby1.8.README.Debian 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1,9 @@
+libhttp-access2 for Debian
+--------------------------
+
+Ruby 1.8's http-access2, HTTP accessing library
+
+see /usr/share/doc/libhttp-access2-ruby/examples/howto.rb how to use APIs.
+see http://dev.ctor.org/http-access2 for more details.
+
+ -- Fumitoshi UKAI <ukai at debian.or.jp>, Mon, 30 Oct 2006 01:00:17 +0900
Added: packages/libhttp-access2-ruby/trunk/debian/patches/lib___http-access2.rb.patch
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/patches/lib___http-access2.rb.patch (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/patches/lib___http-access2.rb.patch 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1,102 @@
+--- libhttp-access2-ruby-2.0.6.orig/lib/http-access2.rb
++++ libhttp-access2-ruby-2.0.6/lib/http-access2.rb
+@@ -95,6 +95,7 @@
+ #
+ def initialize(proxy = nil, agent_name = nil, from = nil)
+ @proxy = nil # assigned later.
++ @proxy_auth = nil
+ @no_proxy = nil
+ @agent_name = agent_name
+ @from = from
+@@ -164,16 +165,17 @@
+ def proxy=(proxy)
+ if proxy.nil?
+ @proxy = nil
++ @proxy_auth = nil
+ else
+ if proxy.is_a?(URI)
+ @proxy = proxy
+ else
+ @proxy = URI.parse(proxy)
+ end
+- if @proxy.scheme == nil or @proxy.scheme.downcase != 'http' or
+- @proxy.host == nil or @proxy.port == nil
++ if !@proxy.is_a?(URI::HTTP) or @proxy.host == nil or @proxy.port == nil
+ raise ArgumentError.new("unsupported proxy `#{proxy}'")
+ end
++ @proxy_auth = [@proxy.user, @proxy.password]
+ end
+ reset_all
+ @proxy
+@@ -378,6 +380,10 @@
+ if extheader.is_a?(Hash)
+ extheader = extheader.to_a
+ end
++ if @proxy_auth
++ proxy_cred = ["#{@proxy_auth[0]}:#{@proxy_auth[1]}"].pack('m').strip
++ extheader << ['Proxy-Authorization', "Basic " << proxy_cred]
++ end
+ cred = @basic_auth.get(uri)
+ if cred
+ extheader << ['Authorization', "Basic " << cred]
+@@ -745,21 +751,33 @@
+ attr_accessor :scheme
+ attr_accessor :host
+ attr_reader :port
++ attr_accessor :user
++ attr_accessor :password
+
+ def initialize(uri = nil)
+ if uri
+ @scheme = uri.scheme
+ @host = uri.host
+ @port = uri.port.to_i
++ @user = uri.user
++ @password = uri.password
+ else
+ @scheme = 'tcp'
+ @host = '0.0.0.0'
+ @port = 0
++ @user = nil
++ @password = nil
+ end
+ end
+
+ def addr
+- "#{@scheme}://#{@host}:#{@port.to_s}"
++ credential = ""
++ if @user
++ credential << @user
++ credential << ":XXX" if @password
++ credential << "@"
++ end
++ "#{@scheme}://#{credential}#{@host}:#{@port.to_s}"
+ end
+
+ def port=(port)
+@@ -768,7 +786,9 @@
+
+ def ==(rhs)
+ if rhs.is_a?(Site)
+- ((@scheme == rhs.scheme) and (@host == rhs.host) and (@port == rhs.port))
++ ((@scheme == rhs.scheme) and (@host == rhs.host) and
++ (@port == rhs.port) and (@user == rhs.user) and
++ (@password == rhs.password))
+ else
+ false
+ end
+@@ -1402,7 +1422,13 @@
+ end
+
+ def connect_ssl_proxy(socket)
+- socket << sprintf("CONNECT %s:%s HTTP/1.1\r\n\r\n", @dest.host, @dest.port)
++ socket << sprintf("CONNECT %s:%s HTTP/1.1\r\n", @dest.host, @dest.port)
++ if @proxy.user
++ credential = ["#{@proxy.user}:#{@proxy.password}"].pack('m')
++ credential.delete!("\r\n")
++ socket << sprintf("Proxy-Authorization: Basic %s\r\n", credential)
++ end
++ socket << "\r\n"
+ parse_header(socket)
+ unless @status == 200
+ raise BadResponse.new(
Added: packages/libhttp-access2-ruby/trunk/debian/rules
===================================================================
--- packages/libhttp-access2-ruby/trunk/debian/rules (rev 0)
+++ packages/libhttp-access2-ruby/trunk/debian/rules 2009-06-18 22:31:19 UTC (rev 3635)
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+destdir=debian/libhttp-access2-ruby
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ # Add here commands to configure the package.
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/libhttp-access2.
+ for v in 1.8; \
+ do \
+ mkdir -p $(destdir)$$v/usr/lib/ruby/$$v/http-access2; \
+ install -m 644 lib/http-access2/*.rb $(destdir)$$v/usr/lib/ruby/$$v/http-access2/; \
+ install -m 644 lib/http-access2.rb $(destdir)$$v/usr/lib/ruby/$$v/; \
+ done
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+# dh_installdebconf
+ dh_installdocs
+ dh_installexamples
+# dh_installmenu
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_installinit
+# dh_installcron
+# dh_installman
+# dh_installinfo
+# dh_undocumented
+ dh_installchangelogs
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+# dh_makeshlibs
+ dh_installdeb
+# dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# Build architecture-dependent files here.
+binary-arch: build install
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
Property changes on: packages/libhttp-access2-ruby/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
More information about the Pkg-ruby-extras-commits
mailing list