--- jpoker-2.0.1.orig/debian/control
+++ jpoker-2.0.1/debian/control
@@ -0,0 +1,23 @@
+Source: jpoker
+Maintainer: Loic Dachary (OuoU) <loic@dachary.org>
+Uploaders: Ola Lundqvist <opal@debian.org>, Johan Euphrosine (proppy) <proppy@aminche.com>
+Section: web
+Priority: optional
+Standards-Version: 3.8.1
+Build-Depends: debhelper (>= 5), cdbs, gettext, python, python-simplejson, python-libxml2, tidy, ruby, rubygems | rubygems1.8, wget, inkscape, rsync, libming-dev, vorbis-tools, jscoverage
+
+Package: jpoker
+Architecture: all
+Depends: ${misc:Depends}, apache2
+Suggests: python-poker-network
+Description: javascript online poker client
+ http://jspoker.pokersource.info/jpoker/ is a javascript client for
+ playing online poker. It displays the list of poker tables and when
+ the user choses one, it is displayed in the browser. The user can
+ join the game and play hands. It supports multi table
+ tournaments. The poker server to which jpoker connects must implement
+ a protocol compatible with
+ http://pokersource.info/poker-network/. jpoker user interface is
+ based on http://tiddlywiki.com/. However the underlying
+ http://jquery.com/ based library is independent and can be used to
+ implement alternate look and feel.
--- jpoker-2.0.1.orig/debian/compat
+++ jpoker-2.0.1/debian/compat
@@ -0,0 +1 @@
+4
--- jpoker-2.0.1.orig/debian/README.Debian
+++ jpoker-2.0.1/debian/README.Debian
@@ -0,0 +1,18 @@
+jpoker for Debian
+-----------------
+
+Jpoker requires access to a poker server in order to work. The poker
+server is provided by the python-poker-network package. By default the
+URL points to http://pokersource.eu/POKER_REST, it can be changed
+in /etc/jpoker.conf.
+
+On first installation the jpoker software is autmatically enabled using
+	a2ensite jpoker
+
+You can use the above command in order to enable it again.
+
+If you want to disable it you can run
+	a2dissite jpoker
+
+ -- Loic Dachary (OuoU) <loic@debian.org>, Sat, 16 Aug 2008 03:26:30 +0200
+ -- Ola Lundqvist <opal@debian.org>, Mon, 28 Jan 2008 20:08:06 +0100
--- jpoker-2.0.1.orig/debian/jpoker.postinst
+++ jpoker-2.0.1/debian/jpoker.postinst
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -e
+
+# If the option is configure then enable the site configuration.
+if [ "$1" = "configure" ] ; then
+    if [ -x "$(which a2ensite)" ] ; then
+	a2ensite jpoker || true
+    fi
+    if [ -x "$(which a2enmod)" ] ; then
+	a2enmod proxy_http 
+    fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- jpoker-2.0.1.orig/debian/rules
+++ jpoker-2.0.1/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+
+DEB_MAKE_BUILD_TARGET=build
+DEB_MAKE_INSTALL_TARGET=install DESTDIR=${DEB_DESTDIR}
+DEB_MAKE_CLEAN_TARGET=maintainer-clean
--- jpoker-2.0.1.orig/debian/jpoker.postrm
+++ jpoker-2.0.1/debian/jpoker.postrm
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+
+a2dissite jpoker || true
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- jpoker-2.0.1.orig/debian/jpoker.prerm
+++ jpoker-2.0.1/debian/jpoker.prerm
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+if [ "$1" = "remove" ] ; then
+    if [ -x "$(which a2dissite)" ] ; then
+	a2dissite jpoker || true
+    fi
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- jpoker-2.0.1.orig/debian/changelog
+++ jpoker-2.0.1/debian/changelog
@@ -0,0 +1,98 @@
+jpoker (2.0.1-2) unstable; urgency=low
+
+  * remove extra /binary/ in apache redirect
+
+ -- Loic Dachary (OuoU) <loic@debian.org>  Mon, 11 Oct 2010 11:42:51 +0200
+
+jpoker (2.0.0-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Loic Dachary <loic@dachary.org>  Sun, 19 Sep 2010 19:53:55 +0200
+
+jpoker (1.0.16-1) unstable; urgency=low
+
+  * New upstream version
+  * Fix debhelper-but-no-misc-depends
+
+ -- Johan Euphrosine (proppy) <proppy@aminche.com>  Tue, 05 May 2009 18:13:57 +0200
+
+jpoker (1.0.15-1) unstable; urgency=low
+
+  * New upstream version.
+  * tiddlywiki_cp is shipped as part of the sources (Closes: #477027).
+
+ -- Loic Dachary (OuoU) <loic@debian.org>  Sun, 12 Apr 2009 17:30:28 +0200
+
+jpoker (1.0.14-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Loic Dachary (OuoU) <loic@debian.org>  Thu, 29 May 2008 14:16:16 +0200
+
+jpoker (1.0.13-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Loic Dachary (OuoU) <loic@debian.org>  Fri, 09 May 2008 19:50:35 +0200
+
+jpoker (1.0.12-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Loic Dachary (OuoU) <loic@debian.org>  Wed, 16 Apr 2008 23:25:59 +0200
+
+jpoker (1.0.11-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Loic Dachary (OuoU) <loic@debian.org>  Tue, 08 Apr 2008 00:21:07 +0200
+
+jpoker (1.0.10-1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Loic Dachary (OuoU) <loic@debian.org>  Sat, 05 Apr 2008 12:38:34 +0200
+
+jpoker (1.0.9-1) unstable; urgency=low
+
+  * New upstream version
+  
+ -- Loic Dachary (OuoU) <loic@dachary.org>  Tue, 25 Mar 2008 21:41:54 +0000
+
+jpoker (1.0.8-1) unstable; urgency=low
+
+  * New upstream version
+  * Run rhino test at post-build
+  * Update packaging licensing to GPLv3+
+  * Add ProxyPass to jspoker.pokersource.info
+  * Enable jpoker site when upgrading
+
+ -- Johan Euphrosine (proppy) <proppy@aminche.com>  Thu, 13 Mar 2008 10:26:07 +0000
+
+jpoker (1.0.7-1) unstable; urgency=low
+
+  * New upstream release.
+  * Now url for the server is configurable in /etc/jpoker.conf
+  * Recommend of python-poker-network changed to suggests.
+  * Added Ola to the uploaders list.
+  * Added a README.Debian document to document the installation instructions.
+  * Modified the postinst and postrm scripts to work better and also to
+    honor disabled site configuration.
+  * Split the apache configuration file to an alias part and a generic part.
+  * Corrected the copyright file to show all copyright holders and the fact
+    that some files are licensed under both GPL and MIT licenses.
+
+ -- Ola Lundqvist <opal@debian.org>  Sun, 27 Jan 2008 09:39:21 +0100
+
+jpoker (1.0.6-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Johan Euphrosine (proppy) <proppy@aminche.com>  Tue, 27 Nov 2007 09:38:59 +0000
+
+jpoker (1.0.5-1) unstable; urgency=low
+
+  * Initial release. (Closes: #450897)
+
+ -- Johan Euphrosine (proppy) <proppy@aminche.com>  Tue,  6 Nov 2007 14:51:58 +0000
--- jpoker-2.0.1.orig/debian/jpoker.links
+++ jpoker-2.0.1/debian/jpoker.links
@@ -0,0 +1 @@
+/etc/apache2/sites-available/jpoker etc/jpoker.conf
--- jpoker-2.0.1.orig/debian/copyright
+++ jpoker-2.0.1/debian/copyright
@@ -0,0 +1,182 @@
+This package was debianized by Johan Euphrosine <proppy@aminche.com>
+Thu, 25 Oct 2007 01:35:05 +0200
+
+It was downloaded from http://jspoker.pokersource.info/
+
+Upstream Authors:
+	Johan Euphrosine <proppy@aminche.com>
+	Loic Dachary <loic@dachary.org>
+	Saq Imtiaz <lewcid@gmail.com>
+
+This package consists of files from different sources and with different
+copyright and license. All files are under a GPLv3+ compatible license. 
+The license or reference to license can be seen below.
+
+On Debian systems, the complete text of the GNU General
+Public License v3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+Copyright for all files not mentionned below:
+
+   (c) 2008 Loic Dachary <loic@dachary.org>
+   (c) 2008 Johan Euphrosine <proppy@aminche.com>
+   (c) 2008 Saq Imtiaz <lewcid@gmail.com>
+        Licensed under GPLv3+
+
+Copyright for:
+        mo2json.py jpoker/jquery.gettext.js jpoker/jquery.printf.js 
+
+   (c) 2008 Sabin Iacob (m0n5t3r) <iacobs@m0n5t3r.info>
+        Licensed under GPLv3+
+
+Copyright for:
+	jpoker/jquery.js jpoker/jquery.ajaxQueue.js
+
+   (c) 2007 John Resig (jquery.com)
+	Licensed under MIT
+
+Copyright for:
+	jpoker/jquery.tablesorter.js
+
+   (c) 2007 Christian Bach
+	Licensed under MIT
+
+Copyright for:
+	tiddlywiki as found in jpoker/poker.html
+
+   (c) UnaMesa Association 2004-2007
+	Licensed under Modified BSD
+
+Copyright for:
+        jpoker/index-fr/FrenchTranslationPlugin.tiddler
+
+   (c) 2008 ocalTW@gmail.com
+	Creative Commons Attribution-ShareAlike 3.0 
+
+Copyright for:
+        jpoker/index/404Plugin.js
+        jpoker/index/ActiveMenuLinksPlugin.js
+        jpoker/index/PublisherPluginBeta.js
+        jpoker/index/SplashScreenPlugin.js
+        jpoker/index/TiddlerSubtitleTweak.js
+        jpoker/index/TiddlyLightBoxPlugin.js
+
+   (c) 2006, 2007, 2008 Saq Imtiaz <lewcid@gmail.com>
+	Creative Commons Attribution-ShareAlike 3.0 
+        GPLv3+
+
+Copyright for:
+        jpoker/index/WebDavPlugin.js
+
+   (c) 2007, 2008 Saq Imtiaz <lewcid@gmail.com>
+                            Loic Dachary <loic@dachary.org>
+	Creative Commons Attribution-ShareAlike 3.0 
+        GPLv3+
+
+Copyright for:
+	jpoker/index/GenerateRssByTagPlugin.js
+
+   (c) 2007 BidiX@bidix.info
+	Licensed under Modified BSD
+
+
+---------------------------------------
+
+
+    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 3 of the License, or
+    (at your option) any later version.
+
+    This program 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 <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License v3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+---------------------------------------
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---------------------------------------
+
+TiddlyWiki created by Jeremy Ruston, (jeremy [at] osmosoft [dot] com)
+
+Copyright (c) UnaMesa Association 2004-2007
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this
+list of conditions and the following disclaimer.
+
+Redistributions in binary form must reproduce the above copyright notice, this
+list of conditions and the following disclaimer in the documentation and/or other
+materials provided with the distribution.
+
+Neither the name of the UnaMesa Association nor the names of its contributors may be
+used to endorse or promote products derived from this software without specific
+prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
+
+---------------------------------------
+
+Copyright (c) 2005-2008, BidiX (http://BidiX.info)
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.
+
+    * Neither the name of BidiX nor the names of its contributors may
+      be used to endorse or promote products derived from this
+      software without specific prior written permission.
+
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- jpoker-2.0.1.orig/debian/jpoker.install
+++ jpoker-2.0.1/debian/jpoker.install
@@ -0,0 +1,2 @@
+debian/apache2/conf.d/jpoker etc/apache2/conf.d
+debian/apache2/sites-available/jpoker etc/apache2/sites-available
--- jpoker-2.0.1.orig/debian/apache2/conf.d/jpoker
+++ jpoker-2.0.1/debian/apache2/conf.d/jpoker
@@ -0,0 +1,9 @@
+<Location /POKER_REST>
+    #
+    # The poker server does not honor KeepAlive and the
+    # proxy must be set accordingly, otherwise it will
+    # sometime return 502 errors.
+    #
+    SetEnv force-proxy-request-1.0 1
+    SetEnv proxy-nokeepalive 1
+</Location>
--- jpoker-2.0.1.orig/debian/apache2/sites-available/jpoker
+++ jpoker-2.0.1/debian/apache2/sites-available/jpoker
@@ -0,0 +1,10 @@
+Alias /jpoker /usr/share/jpoker
+RedirectMatch ^/jpoker/?$ /jpoker/sites/pokersource.eu/index.html
+ProxyRequests Off
+<Proxy *>
+  Order deny,allow
+  Allow from all
+</Proxy>
+ProxyPass /POKER_REST http://pokersource.eu/POKER_REST retry=1
+ProxyPass /AVATAR http://pokersource.eu/AVATAR retry=1
+ProxyPass /UPLOAD http://pokersource.eu/UPLOAD retry=1
