[DRE-commits] r4859 - in trunk: . liboauth-ruby liboauth-ruby/debian liboauth-ruby/debian/help2man liboauth-ruby/debian/patches liboauth-ruby/debian/source

Will Daniels wdaniels-guest at alioth.debian.org
Sun Feb 28 23:49:32 UTC 2010


Author: wdaniels-guest
Date: 2010-02-28 23:49:31 +0000 (Sun, 28 Feb 2010)
New Revision: 4859

Added:
   trunk/liboauth-ruby/
   trunk/liboauth-ruby/debian/
   trunk/liboauth-ruby/debian/README.source
   trunk/liboauth-ruby/debian/changelog
   trunk/liboauth-ruby/debian/compat
   trunk/liboauth-ruby/debian/control
   trunk/liboauth-ruby/debian/copyright
   trunk/liboauth-ruby/debian/help2man/
   trunk/liboauth-ruby/debian/help2man/oauth
   trunk/liboauth-ruby/debian/liboauth-ruby-doc.doc-base
   trunk/liboauth-ruby/debian/liboauth-ruby-doc.examples
   trunk/liboauth-ruby/debian/liboauth-ruby1.8.manpages
   trunk/liboauth-ruby/debian/oauth.1
   trunk/liboauth-ruby/debian/patches/
   trunk/liboauth-ruby/debian/patches/repack-deprecate-rubygems
   trunk/liboauth-ruby/debian/patches/series
   trunk/liboauth-ruby/debian/rules
   trunk/liboauth-ruby/debian/source/
   trunk/liboauth-ruby/debian/source/format
   trunk/liboauth-ruby/debian/watch
Log:
liboauth-ruby: initial upload

Added: trunk/liboauth-ruby/debian/README.source
===================================================================
--- trunk/liboauth-ruby/debian/README.source	                        (rev 0)
+++ trunk/liboauth-ruby/debian/README.source	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,5 @@
+This package uses quilt to manage all modifications to the upstream source.
+Changes are stored in the source package as diffs in debian/patches and
+applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explanation.

Added: trunk/liboauth-ruby/debian/changelog
===================================================================
--- trunk/liboauth-ruby/debian/changelog	                        (rev 0)
+++ trunk/liboauth-ruby/debian/changelog	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,5 @@
+liboauth-ruby (0.3.6-1) unstable; urgency=low
+
+  * Initial Debian release (Closes: #572016).
+
+ -- Will Daniels <mail at willdaniels.co.uk>  Mon, 01 Mar 2010 01:25:47 +0200

Added: trunk/liboauth-ruby/debian/compat
===================================================================
--- trunk/liboauth-ruby/debian/compat	                        (rev 0)
+++ trunk/liboauth-ruby/debian/compat	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1 @@
+7

Added: trunk/liboauth-ruby/debian/control
===================================================================
--- trunk/liboauth-ruby/debian/control	                        (rev 0)
+++ trunk/liboauth-ruby/debian/control	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,51 @@
+Source: liboauth-ruby
+Section: ruby
+Priority: optional
+Maintainer: Will Daniels <mail at willdaniels.co.uk>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Build-Depends: cdbs, debhelper (>> 7), ruby-pkg-tools, ruby1.8, quilt,
+ graphviz
+Standards-Version: 3.8.3
+Vcs-Browser: http://github.com/mojodna/oauth
+Vcs-Git: git://github.com/mojodna/oauth.git
+
+Package: liboauth-ruby
+Architecture: all
+Depends: liboauth-ruby1.8, ${misc:Depends}
+Suggests: liboauth-ruby-doc
+Homepage: http://oauth.rubyforge.org
+Description: The OAuth Ruby Library
+ A ruby library for implementing both OAuth clients and servers in Ruby
+ applications.
+ .
+ The OAuth protocol enables websites or applications (Consumers) to access
+ Protected Resources from a web service (Service Provider) via an API,
+ without requiring Users to disclose their Service Provider credentials
+ to the Consumers.
+ .
+ This is a dummy package to install the OAuth library for the default
+ version of Ruby.
+
+Package: liboauth-ruby1.8
+Architecture: all
+Depends: ruby1.8, libhmac-ruby1.8, libopenssl-ruby1.8, librack-ruby1.8,
+ libxmpp4r-ruby1.8, ${misc:Depends}
+Description: The OAuth Ruby Library
+ A ruby library for implementing both OAuth clients and servers in Ruby
+ applications.
+ .
+ The OAuth protocol enables websites or applications (Consumers) to access
+ Protected Resources from a web service (Service Provider) via an API,
+ without requiring Users to disclose their Service Provider credentials
+ to the Consumers.
+
+Package: liboauth-ruby-doc
+Section: doc
+Architecture: all
+Depends: libjson-ruby, ${misc:Depends}
+Description: Documentation for the OAuth Ruby Library
+ liboauth-ruby is a ruby library for implementing both OAuth clients and
+ servers in Ruby applications.
+ .
+ This is the documentation package, with upstream documentation as well as
+ generated rdoc.

Added: trunk/liboauth-ruby/debian/copyright
===================================================================
--- trunk/liboauth-ruby/debian/copyright	                        (rev 0)
+++ trunk/liboauth-ruby/debian/copyright	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,33 @@
+This package was debianized by:
+
+    Will Daniels <mail at willdaniels.co.uk> on Wed, 24 Feb 2010 00:23:28 +0200
+
+It was downloaded from:
+
+    <http://rubyforge.org/projects/oauth>
+
+Upstream Authors:
+
+    Pelle Braendgaard <pelleb at gmail.com>
+    Blaine Cook
+    Larry Halff
+    Jesse Clark
+    Jon Crosby
+    Seth Fitzsimmons
+    Matt Sanford
+
+Copyright:
+
+    Copyright (C) 2007 Blaine Cook, Larry Halff, Pelle Braendgaard
+
+License:
+
+    This code is free to use under the terms of the MIT license.
+    See License.txt for full license terms.
+
+The Debian packaging is:
+
+    Copyright (C) 2010 Will Daniels <mail at willdaniels.co.uk>
+
+    and is licensed under the GPL version 3,
+    see `/usr/share/common-licenses/GPL-3'.

Added: trunk/liboauth-ruby/debian/help2man/oauth
===================================================================
--- trunk/liboauth-ruby/debian/help2man/oauth	                        (rev 0)
+++ trunk/liboauth-ruby/debian/help2man/oauth	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,27 @@
+#!/usr/bin/ruby1.8
+
+# help2man expects the first line of output to be a description, else we end
+# up with USAGE as the command name in the header. So let's buffer the output
+# then rewrite with the description line, and remove the command's path prefix
+# for further consistency.
+
+# It is covnenient to script this anyways, so that we can alter the load path
+# here first. Aside from the standard ruby libs, we also need libhmac-ruby for
+# oauth to run (and of course help2man).
+
+$:.unshift(File.expand_path(File.dirname(__FILE__) + "/../../lib"))
+
+require "stringio"
+require "oauth/cli"
+
+if ARGV[0] == "--version"
+	OAuth::CLI.execute(STDOUT, STDIN, STDERR, ["version"])
+else
+	buffer = StringIO.new
+	buffer.write "A CLI program for the OAuth Ruby Library (liboauth-ruby).\n"
+	old_stdout, $stdout = $stdout, buffer
+	OAuth::CLI.execute($stdout, STDIN, "/dev/null", ["help"])
+	$stdout = old_stdout
+	puts(buffer.string.sub(/Usage: (.+\/)*/, "Usage: "))
+end
+


Property changes on: trunk/liboauth-ruby/debian/help2man/oauth
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/liboauth-ruby/debian/liboauth-ruby-doc.doc-base
===================================================================
--- trunk/liboauth-ruby/debian/liboauth-ruby-doc.doc-base	                        (rev 0)
+++ trunk/liboauth-ruby/debian/liboauth-ruby-doc.doc-base	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,9 @@
+Document: liboauth-ruby-doc
+Title: OAuth API documentation
+Abstract: RDoc-generated API documentation.
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/liboauth-ruby-doc/rdoc/index.html
+Files: /usr/share/doc/liboauth-ruby-doc/rdoc/*
+

Added: trunk/liboauth-ruby/debian/liboauth-ruby-doc.examples
===================================================================
--- trunk/liboauth-ruby/debian/liboauth-ruby-doc.examples	                        (rev 0)
+++ trunk/liboauth-ruby/debian/liboauth-ruby-doc.examples	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1 @@
+examples/*

Added: trunk/liboauth-ruby/debian/liboauth-ruby1.8.manpages
===================================================================
--- trunk/liboauth-ruby/debian/liboauth-ruby1.8.manpages	                        (rev 0)
+++ trunk/liboauth-ruby/debian/liboauth-ruby1.8.manpages	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,2 @@
+debian/oauth.1
+

Added: trunk/liboauth-ruby/debian/oauth.1
===================================================================
--- trunk/liboauth-ruby/debian/oauth.1	                        (rev 0)
+++ trunk/liboauth-ruby/debian/oauth.1	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,101 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
+.TH OAUTH "1" "February 2010" "Debian GNU/Linux" "User Commands"
+.SH NAME
+OAuth \- CLI for the OAuth Ruby Library
+.SH SYNOPSIS
+.B oauth
+[\fIoptions\fR] \fI<command>\fR
+.SH DESCRIPTION
+A CLI for the OAuth Ruby Library (liboauth\-ruby)
+.TP
+\fB\-B\fR, \fB\-\-body\fR
+Use the request body for OAuth parameters.
+.TP
+\fB\-\-consumer\-key\fR KEY
+Specifies the consumer key to use.
+.TP
+\fB\-\-consumer\-secret\fR SECRET
+Specifies the consumer secret to use.
+.TP
+\fB\-H\fR, \fB\-\-header\fR
+Use the 'Authorization' header for OAuth parameters (default).
+.TP
+\fB\-Q\fR, \fB\-\-query\-string\fR
+Use the query string for OAuth parameters.
+.TP
+\fB\-O\fR, \fB\-\-options\fR FILE
+Read options from a file
+.IP
+options for signing and querying
+.TP
+\fB\-\-method\fR METHOD
+Specifies the method (e.g. GET) to use when signing.
+.TP
+\fB\-\-nonce\fR NONCE
+Specifies the none to use.
+.TP
+\fB\-\-parameters\fR PARAMS
+Specifies the parameters to use when signing.
+.TP
+\fB\-\-signature\-method\fR METHOD
+Specifies the signature method to use; defaults to HMAC\-SHA1.
+.TP
+\fB\-\-secret\fR SECRET
+Specifies the token secret to use.
+.TP
+\fB\-\-timestamp\fR TIMESTAMP
+Specifies the timestamp to use.
+.TP
+\fB\-\-token\fR TOKEN
+Specifies the token to use.
+.TP
+\fB\-\-realm\fR REALM
+Specifies the realm to use.
+.TP
+\fB\-\-uri\fR URI
+Specifies the URI to use when signing.
+.TP
+\fB\-\-version\fR VERSION
+Specifies the OAuth version to use.
+.TP
+\fB\-\-no\-version\fR
+Omit oauth_version.
+.TP
+\fB\-\-xmpp\fR
+Generate XMPP stanzas.
+.TP
+\fB\-v\fR, \fB\-\-verbose\fR
+Be verbose.
+.IP
+options for authorization
+.TP
+\fB\-\-access\-token\-url\fR URL
+Specifies the access token URL.
+.TP
+\fB\-\-authorize\-url\fR URL
+Specifies the authorization URL.
+.TP
+\fB\-\-callback\-url\fR URL
+Specifies a callback URL.
+.TP
+\fB\-\-request\-token\-url\fR URL
+Specifies the request token URL.
+.TP
+\fB\-\-scope\fR SCOPE
+Specifies the scope (Google\-specific).
+.SS "Available commands:"
+.TP
+authorize
+Obtain an access token and secret for a user
+.TP
+version
+Display the current version of the library
+.TP
+sign
+Generate an OAuth signature
+.TP
+debug
+Verbosely generate an OAuth signature
+.TP
+query
+Query a protected resource

Added: trunk/liboauth-ruby/debian/patches/repack-deprecate-rubygems
===================================================================
--- trunk/liboauth-ruby/debian/patches/repack-deprecate-rubygems	                        (rev 0)
+++ trunk/liboauth-ruby/debian/patches/repack-deprecate-rubygems	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,16 @@
+--- a/bin/oauth
++++ b/bin/oauth
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby -w -rubygems
++#!/usr/bin/ruby1.8
+ 
+ require "oauth/cli"
+ 
+--- a/examples/yql.rb
++++ b/examples/yql.rb
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env ruby -rubygems
++#!/usr/bin/ruby1.8
+ 
+ # Sample queries:
+ #  ./yql.rb --consumer-key <key> --consumer-secret <secret> "show tables"

Added: trunk/liboauth-ruby/debian/patches/series
===================================================================
--- trunk/liboauth-ruby/debian/patches/series	                        (rev 0)
+++ trunk/liboauth-ruby/debian/patches/series	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1 @@
+repack-deprecate-rubygems

Added: trunk/liboauth-ruby/debian/rules
===================================================================
--- trunk/liboauth-ruby/debian/rules	                        (rev 0)
+++ trunk/liboauth-ruby/debian/rules	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+
+DEB_INSTALL_DOCS_liboauth-ruby += README.rdoc
+DEB_INSTALL_DOCS_liboauth-ruby-doc += README.rdoc
+
+install/liboauth-ruby1.8::
+	dh_installchangelogs -pliboauth-ruby1.8 History.txt
+
+get-orig-source:
+	-uscan --download --verbose
+
+help2man:
+	echo "NB: Extra Build-Depends to use this rule; libhmac-ruby, help2man"
+	rm -f debian/oauth.1
+	/usr/bin/help2man -N -S 'Debian GNU/Linux' -o debian/oauth.1 \
+    debian/help2man/oauth -n 'CLI for the OAuth Ruby Library'


Property changes on: trunk/liboauth-ruby/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/liboauth-ruby/debian/source/format
===================================================================
--- trunk/liboauth-ruby/debian/source/format	                        (rev 0)
+++ trunk/liboauth-ruby/debian/source/format	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: trunk/liboauth-ruby/debian/watch
===================================================================
--- trunk/liboauth-ruby/debian/watch	                        (rev 0)
+++ trunk/liboauth-ruby/debian/watch	2010-02-28 23:49:31 UTC (rev 4859)
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=4940 .*oauth-([\d.-]*)\.t.*




More information about the Pkg-ruby-extras-commits mailing list