--- poker-network-1.7.7.orig/debian/python-poker-network.config +++ poker-network-1.7.7/debian/python-poker-network.config @@ -0,0 +1,40 @@ +#!/bin/bash + +# taken from phpgroupeware config + template + +set -e + +. /usr/share/debconf/confmodule + +db_version 2.0 + +# db_capb backup + +db_input high "python-poker-network/configure" || true +db_go + +db_input high "python-poker-network/host" || true +db_go + +db_input high "python-poker-network/www" || true +db_go + +db_get "python-poker-network/configure" + +if [ "$RET" = "false" ] ; then + db_input high "python-poker-network/abort" || true + db_go + exit 0 +fi + +db_input low "python-poker-network/bots" || true +db_go + +. /usr/share/dbconfig-common/dpkg/config.mysql +dbc_go python-poker-network $@ + +db_stop + +# db_purge # remove me (for debug) + +exit 0 --- poker-network-1.7.7.orig/debian/control.lenny +++ poker-network-1.7.7/debian/control.lenny @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, python-gtk2-dev, libjson-perl, apg, rsync, coreutils, python-xml +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.3-poker-network (<< 1.0.21), python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-mysqldb, python-soappy, python-pyopenssl, python-simplejson, python-memcache, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.3-python-poker2d (<< 1.0.21), python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Priority: optional +Architecture: all +Depends: ${misc:Depends}, dbconfig-common, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/control.edgy +++ poker-network-1.7.7/debian/control.edgy @@ -0,0 +1,75 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-central, python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, libjson-perl, apg, rsync, coreutils, language-pack-fr +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-zopeinterface, python-mysqldb, python-soappy, python-pyopenssl, python-simplejson, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Depends: ${misc:Depends}, dbconfig-common, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/python-poker-prizes.install +++ poker-network-1.7.7/debian/python-poker-prizes.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/python???/*-packages/pokerprizes/*.py +debian/tmp/usr/share/poker-network/conf/poker.prizes.xml +debian/tmp/usr/share/poker-network/prizes/*.sql --- poker-network-1.7.7.orig/debian/control.jaunty +++ poker-network-1.7.7/debian/control.jaunty @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-central, python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, libjson-perl, apg, rsync, coreutils, python-xml, language-pack-fr +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-zopeinterface, python-mysqldb, python-soappy, python-pyopenssl, python-simplejson, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Pre-Depends: dbconfig-common +Depends: ${misc:Depends}, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/python-poker-stats.postrm +++ poker-network-1.7.7/debian/python-poker-stats.postrm @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Establish the preliminaries. +db_version 2.0 + +. /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql +dbc_go python-poker-stats $@ + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- poker-network-1.7.7.orig/debian/control.feisty +++ poker-network-1.7.7/debian/control.feisty @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-central, python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, libjson-perl, apg, rsync, coreutils, language-pack-fr +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-zopeinterface, python-mysqldb, python-soappy, python-pyopenssl, python-simplejson, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Pre-Depends: dbconfig-common +Depends: ${misc:Depends}, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/compat +++ poker-network-1.7.7/debian/compat @@ -0,0 +1 @@ +5 --- poker-network-1.7.7.orig/debian/python-poker-network.docs +++ poker-network-1.7.7/debian/python-poker-network.docs @@ -0,0 +1 @@ +examples --- poker-network-1.7.7.orig/debian/control +++ poker-network-1.7.7/debian/control @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.4), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-openssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, python-gtk2-dev, libjson-perl, apg, rsync, python-central +XS-Python-Version: >=2.4 +Standards-Version: 3.8.1 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.3-poker-network (<< 1.0.21), python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-mysqldb, python-soappy, python-openssl, python-simplejson, python-memcache, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: games +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, python-openssl, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.3-python-poker2d (<< 1.0.21), python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Priority: optional +Architecture: all +Depends: ${misc:Depends}, dbconfig-common, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/control.hardy +++ poker-network-1.7.7/debian/control.hardy @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-central, python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, libjson-perl, apg, rsync, coreutils, python-xml, language-pack-fr +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-zopeinterface, python-mysqldb, python-soappy, python-pyopenssl, python-simplejson, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Pre-Depends: dbconfig-common +Depends: ${misc:Depends}, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/control.dapper +++ poker-network-1.7.7/debian/control.dapper @@ -0,0 +1,75 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 4.0.0), python-dev, automake1.9, cdbs, pkg-config, debconf, po-debconf, mysql-client, python2.4-mysqldb, python2.4-pyopenssl, python-simplejson, python-soappy, python2.4-glade2, python2.4-twisted, python2.4-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-cgi, php5-mysql, cvs, libjson-perl, apg, rsync, language-pack-fr +XS-Python-Version: >=2.4 +Standards-Version: 3.6.1.1 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python2.4-twisted, python2.4-mysqldb, python-soappy, python2.4-pyopenssl, python-simplejson, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${Source-Version}), python2.4-glade2, python2.4-pygame, python2.4-gtk2, gtk2-engines-pixbuf, libsdl1.2debian-alsa, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Depends: ${misc:Depends}, ucf, dbconfig-common, php5 | php5-cgi, php5-mysql, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${Source-Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${Source-Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/copyright +++ poker-network-1.7.7/debian/copyright @@ -0,0 +1,705 @@ +This package was debianized by Loic Dachary (OuoU) on +Sat, 21 Feb 2005 13:35:33 +0100. + +It was downloaded from http://gna.org/projects/pokersource + +Upstream Author: Loic Dachary , Johan Euphrosine , Bradley M. Kuhn + +Copyright: + Copyright (C) 2002, 2005, 2006, 2007, 2008 Loic Dachary + Copyright (C) 2008 Johan Euphrosine + Copyright (C) 2008 Bradley M. Kuhn + Copyright (C) 2006 Jerome Jeannin + Copyright (C) 2004, 2005, 2006 Mekensleep + +License: + This software's license gives you freedom; you can copy, convey, + propagate, redistribute and/or modify this program under the terms of + the GNU Affero General Public License (AGPL) as published by the Free + Software Foundation (FSF), either version 3 of the License, or (at your + option) any later version of the AGPL published by the FSF. + + 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 Affero + General Public License (below) for more details. + + You should have received a copy of the GNU Affero General Public License + at the bottom of this file. If not, see . + +Copyright: + The following authors have made minor contributions to poker-network, + and license their copyrights under GPLv3-or-later. Per section 13 of + GPLv3 and AGPLv3, this is compatible with the AGPLv3. + + Copyright (C) 1993-2006, Free Software Foundation, Inc. + Copyright (C) 2007 Miguel Figueiredo + Copyright (C) Helge Kreutzmann , 2007. + + On Debian systems, the complete text of the GNU General Public License + can be found in `/usr/share/common-licenses/GPL'. + +AGPLv3: + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero 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 Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. + + --- poker-network-1.7.7.orig/debian/poker-web.postinst +++ poker-network-1.7.7/debian/poker-web.postinst @@ -0,0 +1,143 @@ +#!/bin/bash + +set -e +if [ "${DH_VERBOSE:-0}" -gt 0 ] ; then set -x ; fi + +. /usr/share/debconf/confmodule +db_version 2.0 + +if [ "$1" = "configure" ]; then + db_get poker-web/reconfigure-webserver + webservers="$RET" + restart="" + + for webserver in $webservers; do + webserver=${webserver%,} + test -x /usr/sbin/$webserver || continue + + case "$webserver" in + apache|apache-perl|apache-ssl) + if [ -x /usr/sbin/modules-config ]; then + if [ -f /usr/lib/apache/1.3/libphp4.so ]; then + if ! grep -qs "^LoadModule php4_module " /etc/$webserver/modules.conf && \ + ! grep -qs "^LoadModule php5_module " /etc/$webserver/modules.conf; then + modules-config $webserver enable mod_php4 + fi + elif [ -f /usr/lib/apache/1.3/mod_php5.so ]; then + if ! grep -qs "^LoadModule php4_module " /etc/$webserver/modules.conf && \ + ! grep -qs "^LoadModule php5_module " /etc/$webserver/modules.conf; then + modules-config $webserver enable mod_php5 + fi + else + if [ -f /usr/lib/apache/1.3/mod_actions.so ]; then + if ! grep -qs "^LoadModule action_module " /etc/$webserver/modules.conf; then + modules-config $webserver enable mod_actions + fi + fi + if [ -f /usr/lib/apache/1.3/mod_cgi.so ]; then + if ! grep -qs "^LoadModule cgi_module " /etc/$webserver/modules.conf && \ + ! grep -qs "^LoadModule fastcgi_module " /etc/$webserver/modules.conf; then + modules-config $webserver enable mod_cgi + fi + fi + fi + fi + ;; + apache2) + if [ -d /etc/$webserver/mods-enabled ]; then + if [ ! -f /etc/$webserver/mods-enabled/actions.load -a ! -h /etc/$webserver/mods-enabled/actions.load ]; then + ln -s /etc/$webserver/mods-available/actions.load /etc/$webserver/mods-enabled/actions.load + fi + if [ -f /etc/apache2/mods-available/php4.load -a -f /usr/lib/apache2/modules/libphp4.so ]; then + if [ ! -f /etc/$webserver/mods-enabled/php4.load -a ! -h /etc/$webserver/mods-enabled/php4.load -a \ + ! -f /etc/$webserver/mods-enabled/php5.load -a ! -h /etc/$webserver/mods-enabled/php5.load -a \ + ! -f /etc/$webserver/mods-enabled/php5_filter.load -a ! -h /etc/$webserver/mods-enabled/php5_filter.load -a \ + ! -f /etc/$webserver/mods-enabled/fcgid.load -a ! -h /etc/$webserver/mods-enabled/fcgid.load -a \ + ! -f /etc/$webserver/mods-enabled/fastcgi.load -a ! -h /etc/$webserver/mods-enabled/fastcgi.load ]; then + ln -s /etc/$webserver/mods-available/php4.conf /etc/$webserver/mods-enabled/php4.conf + ln -s /etc/$webserver/mods-available/php4.load /etc/$webserver/mods-enabled/php4.load + fi + elif [ -f /etc/apache2/mods-available/php5.load -a -f /usr/lib/apache2/modules/mod_php5.so ]; then + if [ ! -f /etc/$webserver/mods-enabled/php4.load -a ! -h /etc/$webserver/mods-enabled/php4.load -a \ + ! -f /etc/$webserver/mods-enabled/php5.load -a ! -h /etc/$webserver/mods-enabled/php5.load -a \ + ! -f /etc/$webserver/mods-enabled/php5_filter.load -a ! -h /etc/$webserver/mods-enabled/php5_filter.load -a \ + ! -f /etc/$webserver/mods-enabled/fcgid.load -a ! -h /etc/$webserver/mods-enabled/fcgid.load -a \ + ! -f /etc/$webserver/mods-enabled/fastcgi.load -a ! -h /etc/$webserver/mods-enabled/fastcgi.load ]; then + ln -s /etc/$webserver/mods-available/php5.conf /etc/$webserver/mods-enabled/php5.conf + ln -s /etc/$webserver/mods-available/php5.load /etc/$webserver/mods-enabled/php5.load + fi + else + if [ ! -f /etc/$webserver/mods-enabled/cgi.load -a ! -h /etc/$webserver/mods-enabled/cgi.load -a \ + ! -f /etc/$webserver/mods-enabled/fastcgi.load -a ! -h /etc/$webserver/mods-enabled/fastcgi.load -a \ + ! -f /etc/$webserver/mods-enabled/fcgid.load -a ! -h /etc/$webserver/mods-enabled/fcgid.load ]; then + ln -s /etc/$webserver/mods-available/cgi.load /etc/$webserver/mods-enabled/cgi.load + fi + fi + fi + ;; + esac + + if [ -x "$(which a2ensite)" ] ; then + a2ensite poker-web || true + fi + + case "$webserver" in + apache|apache-perl|apache-ssl|apache2) + newfile=false + if [ -d /etc/$webserver/conf.d ] && [ ! -f /etc/$webserver/conf.d/poker-web.conf ] && [ ! -h /etc/$webserver/conf.d/poker-web.conf ]; then + ln -s /etc/poker-web/apache.conf /etc/$webserver/conf.d/poker-web.conf + newfile=true + fi + if $newfile = true || ! md5sum -c /etc/poker-web/apache.conf.dpkg-md5sum >/dev/null 2>&1; then + db_reset poker-web/restart-webserver || true + db_subst poker-web/restart-webserver webserver "$webserver" + db_input high poker-web/restart-webserver || true + db_go + db_get poker-web/restart-webserver + if [ "$RET" = "true" ]; then + restart="$restart $webserver" + fi + fi + ;; + esac + done + + for webserver in $restart; do + webserver=${webserver%,} + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d $webserver restart + else + /etc/init.d/$webserver restart + fi + done + + rm -f /etc/poker-web/apache.conf.dpkg-md5sum + + db_get "poker-web/host" + poker_network_host="$RET" + sed -e "s/\%HOST\%/$poker_network_host/" < /usr/share/poker-web/constants.php.ref > /etc/poker-web/constants.php.new + ucf --debconf-ok /etc/poker-web/constants.php.new /etc/poker-web/constants.php + + chown www-data:www-data /var/cache/poker-web + + . /usr/share/dbconfig-common/dpkg/postinst.mysql + dbc_dbname=currency_one + dbc_go poker-web-currency-one $@ + dbc_generate_include="php:/etc/poker-web/database.php" + dbc_dbname=pokerweb + dbc_go poker-web $@ + + . /etc/dbconfig-common/poker-web-currency-one.conf + perl -pi -e "s/currency_db_user'] = '.*/currency_db_user'] = '$dbc_dbuser';/" /usr/share/poker-web/currency_one.php + perl -pi -e "s/currency_db_password'] = '.*/currency_db_password'] = '$dbc_dbpass';/" /usr/share/poker-web/currency_one.php + +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +db_stop + +exit 0 --- poker-network-1.7.7.orig/debian/python-poker2d.install +++ poker-network-1.7.7/debian/python-poker2d.install @@ -0,0 +1,10 @@ +debian/tmp/usr/lib/python???/*-packages/pokerclient2d +debian/tmp/usr/lib/python???/*-packages/_pokerinterface*.so* +debian/tmp/usr/lib/poker-network +debian/tmp/usr/share/poker-network/poker2d +debian/tmp/usr/games/poker2d +debian/tmp/usr/share/man/man6 +debian/tmp/usr/share/pixmaps +debian/tmp/usr/share/applications +debian/tmp/usr/share/apps +debian/tmp/usr/share/locale --- poker-network-1.7.7.orig/debian/python-poker-network.init +++ poker-network-1.7.7/debian/python-poker-network.init @@ -0,0 +1,146 @@ +#! /bin/sh +# +# Copyright (C) 2004, 2005, 2006 Mekensleep +# 24 rue vieille du temple, 75004 Paris +# +# This software's license gives you freedom; you can copy, convey, +# propagate, redistribute and/or modify this program under the terms of +# the GNU Affero General Public License (AGPL) as published by the Free +# Software Foundation, either version 3 of the License, or (at your +# option) any later version of the AGPL. +# +# 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 Affero +# General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program in a file in the toplevel directory called +# "AGPLv3". If not, see . +# +# Authors: +# Loic Dachary +# +# http://wiki.debian.org/LSBInitScripts +# +### BEGIN INIT INFO +# Provides: python-poker-network +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Should-Start: mysql +# Should-Stop: mysql +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: poker-network server and bots +# Description: Multi player online poker server with +# bots running according to /etc/poker-network +### END INIT INFO + +# +# Run bots that will connect to the poker server as instructed +# in /etc/poker-network/poker.bot.xml +# +RUN_BOTS=false + +# Include python-poker-network defaults if available +if [ -f /etc/default/python-poker-network ] ; then + . /etc/default/python-poker-network +fi + +twistd=/usr/bin/twistd +reactor=poll + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +name=poker-network +desc='poker server ' + +python=/usr/bin/python +pv=$(python -c 'import sys; print sys.version[:3]') + +lockfile=/etc/poker-network/lockfile + +serverpidfile=/var/run/poker-network-server.pid +serverlogfile=/var/log/poker-network-server.log +serverplugin=pokerserver +#serverconfig=/etc/poker-network/poker.server2.xml + +botpidfile=/var/run/poker-network-bot.pid +botlogfile=/var/log/poker-network-bot.log +botscript=/usr/share/pyshared/pokernetwork/pokerbot.py +if ! [ -f $botscript ] ; then + botscript=/usr/lib/python$pv/site-packages/pokernetwork/pokerbot.py +fi +more_args=--no_save + +test -x ${twistd} || exit 0 +test -r ${botscript} || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting ${desc}: " + if [ -f $lockfile ]; then + echo " not configured, abort." + exit 0; + fi + ${python} ${twistd} \ + --pidfile=${serverpidfile} \ + --logfile=${serverlogfile} --quiet ${more_args} \ + --reactor=${reactor} \ + ${serverplugin} #--config=${serverconfig} + if $RUN_BOTS ; then + ${python} ${twistd} \ + --pidfile=${botpidfile} --python ${botscript} \ + --logfile=${botlogfile} --quiet ${more_args} \ + --reactor=${reactor} + else + echo "Bots are disabled, edit /etc/default/python-poker-network to enable them." + fi + echo ${name} + ;; + stop) + echo -n "Stopping poker server ..." + start-stop-daemon --stop --quiet --retry forever/-2/3 --pidfile=${serverpidfile} || true + echo " done." + if $RUN_BOTS ; then + echo -n "Stopping poker bots ..." + start-stop-daemon --stop --quiet --retry forever/-2/3 --pidfile=${botpidfile} || true + echo "done" + fi + ;; + rebot) + if $RUN_BOTS ; then + echo -n "Stopping poker bots ..." + start-stop-daemon --stop --quiet --retry forever/-2/3 --pidfile=${botpidfile} || true + echo "done" + echo -n "Wait 10 minutes ..." + sleep 600 + echo "done" + echo -n "Starting poker bots ..." + ${python} ${twistd} \ + --pidfile=${botpidfile} --python ${botscript} \ + --logfile=${botlogfile} --quiet ${more_args} \ + --reactor=${reactor} + echo "done" + else + echo "Bots are disabled" + fi + ;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + $0 stop + $0 start + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload|rebot}" >&2 + exit 1 + ;; +esac + +exit 0 --- poker-network-1.7.7.orig/debian/poker-web.dirs +++ poker-network-1.7.7/debian/poker-web.dirs @@ -0,0 +1,2 @@ +var/www +var/cache/poker-web --- poker-network-1.7.7.orig/debian/python-poker-network.prerm +++ poker-network-1.7.7/debian/python-poker-network.prerm @@ -0,0 +1,11 @@ +#!/bin/sh -e + +. /usr/share/debconf/confmodule + +db_get "python-poker-network/configure" +if [ $RET != "false" ]; then + . /usr/share/dbconfig-common/dpkg/prerm.mysql + dbc_go python-poker-network $@ +fi + +#DEBHELPER# --- poker-network-1.7.7.orig/debian/control.intrepid +++ poker-network-1.7.7/debian/control.intrepid @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-central, python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, libjson-perl, apg, rsync, coreutils, python-xml, language-pack-fr +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-zopeinterface, python-mysqldb, python-soappy, python-pyopenssl, python-simplejson, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Pre-Depends: dbconfig-common +Depends: ${misc:Depends}, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/rules +++ poker-network-1.7.7/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +#export DH_VERBOSE=1 + +# +# Help backward compatibility for those distributions that do +# not distinguish /usr/lib and /usr/share for pkgconfig (i.e. +# /usr/share/pkgconfig is not part of the path in the standard +# pkg-config command. +# +export PKG_CONFIG_PATH=/usr/share/pkgconfig + +include /usr/share/cdbs/1/rules/debhelper.mk + +clean:: # $(DEB_BUILDDIR)/config.status + rm -f $(DEB_SRCDIR)/*cdbs-* + +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/class/gnome.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +#DEB_MAKE_CLEAN_TARGET = maintainer-clean + +#DEB_CONFIGURE_EXTRA_FLAGS = --enable-maintainer-mode --disable-static +DEB_CONFIGURE_EXTRA_FLAGS = --disable-static + +DEB_CONFIGURE_EXTRA_FLAGS += \ + --with-poker-server-host=%HOST% \ + --with-poker-www-host=%WWW% \ + --with-wwwbrowser=/usr/bin/x-www-browser \ + --with-poker-database=_DBC_DBNAME_ \ + --with-poker-dbhost=_DBC_DBSERVER_ \ + --with-poker-dbuser=_DBC_DBUSER_ \ + --with-poker-dbuser-password=_DBC_DBPASS_ + + +DEB_MAKE_CHECK_TARGET = $(if $(findstring nocheck,$(DEB_BUILD_OPTIONS)),,check) + +is_debug_package=$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),yes,) + +#$(DEB_SRCDIR)/configure:: $(DEB_SRCDIR)/configure.ac +# AUTOMAKE=automake-1.9 ACLOCAL=aclocal-1.9 autoreconf --install +# chmod a+x $@ + +# override in order to add dependency to configure (should be a :: rule instead of a : rule) +#$(DEB_BUILDDIR)/config.status: $(DEB_SRCDIR)/configure +# chmod a+x $(DEB_CONFIGURE_SCRIPT) +# $(DEB_CONFIGURE_INVOKE) $(cdbs_configure_flags) $(DEB_CONFIGURE_EXTRA_FLAGS) $(DEB_CONFIGURE_USER_FLAGS) + +binary-install/python-poker-network:: + -dh_pycentral -ppython-poker-network + dh_python -ppython-poker-network + +DEB_DH_MAKESHLIBS_ARGS_python-poker2d := -n + +binary-install/python-poker2d:: + -dh_pycentral -ppython-poker2d + dh_python -ppython-poker2d + +binary-install/python-poker-stats:: + -dh_pycentral -ppython-poker-stats + dh_python -ppython-poker-stats + +binary-install/python-poker-prizes:: + -dh_pycentral -ppython-poker-prizes + dh_python -ppython-poker-prizes + + --- poker-network-1.7.7.orig/debian/python-poker-network.templates +++ poker-network-1.7.7/debian/python-poker-network.templates @@ -0,0 +1,37 @@ +Template: python-poker-network/configure +Type: boolean +Default: false +_Description: Do you want to configure and run the poker-network server? + If you want to configure and run a poker-network server, make sure you + have administrative rights on a running MySQL server. If you do not want + to run the poker-network server on this machine, you will be prompted for + the hostname or the IP address of a running poker-network server. + +Template: python-poker-network/abort +Type: note +_Description: Skipping poker-network server installation + If you want to run poker-network at a later time, you will need to + configure it by hand or by running dpkg-reconfigure + python-poker-network. + +Template: python-poker-network/host +Type: string +Default: poker.pokersource.info +_Description: Hostname or IP address of the default poker-network server: + The clients based on poker-network installed on the same machine will be + able to use this poker-network server host as a default, if needed. + +Template: python-poker-network/www +Type: string +Default: pokersource.info +_Description: Hostname or IP address of the default poker-network web server: + The clients based on poker-network installed on the same machine will be + able to use this address to connect to the web part of the poker server. + +Template: python-poker-network/bots +Type: boolean +Default: false +_Description: Do you want to run the poker-network robots? + Robot players are simple minded poker players that can be used to + exercise the poker server when there are not enough human players + connected. --- poker-network-1.7.7.orig/debian/python-poker-prizes.postinst +++ poker-network-1.7.7/debian/python-poker-prizes.postinst @@ -0,0 +1,66 @@ +#! /bin/sh +# postinst script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/frontend.postinst.mysql + +db_version 2.0 + +pokernetwork_group=pokernetwork +pokernetwork_user=pokernetwork + +# +# Must be done first otherwise the init script will fail. +# There should be a way to order the invocation of the +# DEBHELPER scripts. +# +# It does not harm to call pycentral twice. +# +if which pycentral >/dev/null 2>&1; then + pycentral pkginstall python-poker-network +fi + +prevver="$2" + +case "$1" in + configure) + dbc_generate_include="template:/etc/poker-network/poker.prizes.xml" + dbc_generate_include_args="-O $pokernetwork_user:$pokernetwork_group -m 600 -o template_infile=/usr/share/poker-network/conf/poker.prizes.xml" + dbc_go python-poker-prizes $@ + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +db_stop + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- poker-network-1.7.7.orig/debian/poker-web.config +++ poker-network-1.7.7/debian/poker-web.config @@ -0,0 +1,30 @@ +#!/bin/sh + +set -e +if [ "${DH_VERBOSE:-0}" -gt 0 ] ; then set -x ; fi + +. /usr/share/debconf/confmodule +db_version 2.0 + +db_input medium poker-web/reconfigure-webserver || true +db_go + +db_input medium poker-web/host || true +db_go + +. /usr/share/dbconfig-common/dpkg/config.mysql +dbc_dbuser=currency +dbc_dbname=currency_one +dbc_go poker-web-currency-one $@ +dbc_dbuser=pokerweb +dbc_dbname=pokerweb +dbc_go poker-web $@ + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +db_stop + +exit 0 --- poker-network-1.7.7.orig/debian/control.gutsy +++ poker-network-1.7.7/debian/control.gutsy @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-central, python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, libjson-perl, apg, rsync, coreutils, language-pack-fr +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-zopeinterface, python-mysqldb, python-soappy, python-pyopenssl, python-simplejson, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Pre-Depends: dbconfig-common +Depends: ${misc:Depends}, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/python-poker-stats.cron.hourly +++ poker-network-1.7.7/debian/python-poker-stats.cron.hourly @@ -0,0 +1,23 @@ +#! /bin/sh +# +# -*- coding: iso-8859-1 -*- +# +# Copyright (C) 2008 Johan Euphrosine +# +# This software's license gives you freedom; you can copy, convey, +# propagate, redistribute and/or modify this program under the terms of +# the GNU Affero General Public License (AGPL) as published by the Free +# Software Foundation, either version 3 of the License, or (at your +# option) any later version of the AGPL. +# +# 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 Affero +# General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program in a file in the toplevel directory called +# "AGPLv3". If not, see . +# + +/usr/bin/pokerstats --one-time --- poker-network-1.7.7.orig/debian/control.etch +++ poker-network-1.7.7/debian/control.etch @@ -0,0 +1,75 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.3.5-11), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-pyopenssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, python-gtk2-dev, libjson-perl, apg, rsync +XS-Python-Version: >=2.4 +Standards-Version: 3.7.2 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.3-poker-network (<< 1.0.21), python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-mysqldb, python-soappy, python-simplejson, libjson-perl, python-pyopenssl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: python +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, python-poker-network (= ${Source-Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian-all, rsync, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.3-python-poker2d (<< 1.0.21), python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Architecture: all +Depends: ${misc:Depends}, ucf, dbconfig-common, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/python-poker-network.links +++ poker-network-1.7.7/debian/python-poker-network.links @@ -0,0 +1,18 @@ +usr/share/poker-network/schema.sql usr/share/dbconfig-common/data/python-poker-network/install/mysql +usr/share/poker-network/1.7.4-1.7.5.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.7.5 +usr/share/poker-network/1.7.3-1.7.4.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.7.4 +usr/share/poker-network/1.6.0-1.7.0.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.7.0 +usr/share/poker-network/1.4.0-1.5.0.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.5.0 +usr/share/poker-network/1.0.5-1.0.6.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.6 +usr/share/poker-network/1.0.6-1.0.7.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.7 +usr/share/poker-network/1.0.7-1.0.8.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.8 +usr/share/poker-network/1.0.11-1.0.12.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.12 +usr/share/poker-network/1.0.16-1.0.17.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.17 +usr/share/poker-network/1.0.17-1.0.18.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.18 +usr/share/poker-network/1.0.21-1.0.22.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.22 +usr/share/poker-network/1.0.22-1.0.23.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.23 +usr/share/poker-network/1.0.25-1.0.26.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.26 +usr/share/poker-network/1.0.30-1.0.31.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.31 +usr/share/poker-network/1.0.31-1.0.32.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.32 +usr/share/poker-network/1.0.32-1.0.33.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.33 +usr/share/poker-network/1.0.36-1.0.37.sql usr/share/dbconfig-common/data/python-poker-network/upgrade/mysql/1.0.37 --- poker-network-1.7.7.orig/debian/python-poker-network.postrm +++ poker-network-1.7.7/debian/python-poker-network.postrm @@ -0,0 +1,31 @@ +#!/bin/bash + +set -e + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + + db_get "python-poker-network/configure" + if [ $RET != "false" ]; then + . /usr/share/dbconfig-common/dpkg/postrm.mysql + dbc_go python-poker-network $@ + fi + + rm -f /etc/munin/plugins/poker_* + + if [ "$1" = "purge" ]; then + for file in /etc/poker-network/poker.bot.xml /etc/poker-network/poker.client.xml /etc/poker-network/poker.server.xml ; do + ucf --debconf-ok --purge $file >/dev/null 2>&1 + rm -f $file + done + rm -f /etc/poker-network/poker.pem + rm -f /etc/poker-network/lockfile + fi +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- poker-network-1.7.7.orig/debian/python-poker-prizes.postrm +++ poker-network-1.7.7/debian/python-poker-prizes.postrm @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Establish the preliminaries. +db_version 2.0 + +. /usr/share/dbconfig-common/dpkg/frontend.postrm.mysql +dbc_go python-poker-prizes $@ + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- poker-network-1.7.7.orig/debian/control.unstable +++ poker-network-1.7.7/debian/control.unstable @@ -0,0 +1,76 @@ +Source: poker-network +Section: python +Priority: extra +Maintainer: Loic Dachary (OuoU) +Build-Depends: debhelper (>= 5.0.37.2), python-all-dev (>= 2.4), automake1.9, cdbs, pkg-config, debconf | debconf-2.0, po-debconf, mysql-client, python-mysqldb, python-openssl, python-simplejson, python-soappy, python-glade2, python-twisted, python-pygame, python-poker-engine (>= 1.3.4), libglade2-dev, libtool, perl, valgrind [amd64 i386 powerpc], xvfb, php-pear, php5-dev, php5-mysql, graphviz, cvs, python-gtk2-dev, libjson-perl, apg, rsync, python-central +XS-Python-Version: >=2.4 +Standards-Version: 3.8.1 + +Package: python-poker-network +Section: python +Architecture: all +Suggests: mysql-server, munin-node +Conflicts: python2.3-poker-network (<< 1.0.21), python2.4-poker-network (<< 1.0.21) +XB-Python-Version: ${python:Versions} +Depends: ${python:Depends}, ${misc:Depends}, ucf, adduser, python-poker-engine (>= 1.3.4), python-twisted, python-mysqldb, python-soappy, python-openssl, python-simplejson, python-memcache, libjson-perl, dbconfig-common, mysql-client, apg, rsync +Description: multiplayer poker server and client library + The server deals the cards and checks the user actions using a poker + game engine (poker-engine). It can handle all the poker variants + implemented by the poker game engine (holdem, omaha, omaha high/low, + stud 7 ...) in ring games, sit and go or multitables tournaments. + The client library can be used to implement simple clients such as + robots (<1000 LOC example robot provided) or a graphical user + interface. + . + The poker server has its own TCP/IP based protocol. The client + library decodes the protocol. An abstract user interface library + provides a framework to implement graphical clients. + +Package: python-poker2d +Section: games +Architecture: any +Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-poker-network (= ${source:Version}), python-glade2, python-pygame, python-gtk2, gtk2-engines-pixbuf, libsdl1.2debian, rsync, python-openssl, ttf-freefont +XB-Python-Version: ${python:Versions} +Provides: ${python:Provides} +Conflicts: python2.3-python-poker2d (<< 1.0.21), python2.4-python-poker2d (<< 1.0.21) +Description: GTK poker client to play on a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: poker-web +Section: web +Priority: optional +Architecture: all +Depends: ${misc:Depends}, dbconfig-common, ucf, php5 | php5-cgi, php5-mysql, php5-gd, apache2, php-pear, gettext +Description: Web interface to a poker-network server + Play poker with other players connected on a poker-network server + (holdem, omaha, omaha high/low, stud 7 ...) in ring games, sit and go + or multitables tournaments. poker2d will automaticaly reconnect to + the table if the connection is lost and allows playing on multiple + tables simultaneously. + +Package: python-poker-stats +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: statistics poker-network client + poker-stats collects statistics from running poker-network servers + and consolidate them in a separate set of tables, in a separate + database. + +Package: python-poker-prizes +Section: python +Architecture: all +Priority: optional +Provides: ${python:Provides} +XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends}, python-poker-network (= ${source:Version}), ucf +Description: real prizes addon for poker-network + poker-prizes adds support for real prizes to the poker-network + multiplayer online poker server. --- poker-network-1.7.7.orig/debian/python-poker-stats.postinst +++ poker-network-1.7.7/debian/python-poker-stats.postinst @@ -0,0 +1,66 @@ +#! /bin/sh +# postinst script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/frontend.postinst.mysql + +db_version 2.0 + +pokernetwork_group=pokernetwork +pokernetwork_user=pokernetwork + +# +# Must be done first otherwise the init script will fail. +# There should be a way to order the invocation of the +# DEBHELPER scripts. +# +# It does not harm to call pycentral twice. +# +if which pycentral >/dev/null 2>&1; then + pycentral pkginstall python-poker-network +fi + +prevver="$2" + +case "$1" in + configure) + dbc_generate_include="template:/etc/poker-network/poker.stats.xml" + dbc_generate_include_args="-O $pokernetwork_user:$pokernetwork_group -m 600 -o template_infile=/usr/share/poker-network/conf/poker.stats.xml" + dbc_go python-poker-stats $@ + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +db_stop + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- poker-network-1.7.7.orig/debian/python-poker-prizes.prerm +++ poker-network-1.7.7/debian/python-poker-prizes.prerm @@ -0,0 +1,12 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Establish the preliminaries. +db_version 2.0 + +. /usr/share/dbconfig-common/dpkg/frontend.prerm.mysql +dbc_go python-poker-network $@ + +#DEBHELPER# --- poker-network-1.7.7.orig/debian/poker-web.preinst +++ poker-network-1.7.7/debian/poker-web.preinst @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +if [ "${DH_VERBOSE:-0}" -gt 0 ] ; then set -x ; fi + +if pear channel-discover pear.phpunit.de > /dev/null 2>&1 && pear install --alldeps phpunit/PHPUnit-beta > /dev/null 2>&1 ; then + if pecl install channel://pecl.php.net/xdebug-2.0.0RC4 > /dev/null 2>&1 ; then + if ! php --modules | grep xdebug ; then + ext_dir=$(pecl config-get ext_dir) + echo "zend_extension=${ext_dir}/xdebug.so" >> /etc/php5/cli/php.ini + echo "xdebug installed in /etc/php5/cli/php.ini" + fi + fi + echo "http://www.phpunit.de/ installed" +fi + +if [ -f /etc/poker-web/apache.conf ]; then + md5sum /etc/poker-web/apache.conf 2>/dev/null >/etc/poker-web/apache.conf.dpkg-md5sum || true +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- poker-network-1.7.7.orig/debian/changelog +++ poker-network-1.7.7/debian/changelog @@ -0,0 +1,528 @@ +poker-network (1.7.7-1) unstable; urgency=low + + * new upstream version + * use dh_python when possible (Closes: #566051) + + -- Loic Dachary (OuoU) Sat, 06 Feb 2010 02:40:23 +0100 + +poker-network (1.7.6-2) unstable; urgency=low + + * patches/01-pokersite-checkexpired-ignore-already-expired-session.patch: + Backport patch for bug#13717 + * patches/02-pokerexplain-arrive-no-seat-left.patch: + Backport patch for bug#15044 + * patches/03-testpokerdatabase-reconnect.patch: + Fix test suite + * debian/rules, debian/python-poker-network.init: + Apply ubuntu fixes: + python-poker-prizes, call dh_pycentral, fix FTBFS on i386. + Use /usr/share/pyshared/pokernetwork/pokerbot.py as botscript. + + -- Johan Euphrosine (proppy) Tue, 19 Jan 2010 17:05:13 +0100 + +poker-network (1.7.6-1) unstable; urgency=low + + * new upstream version + * remove prototype.js (Closes: #555237) (Closes: #555238) (Closes: #475290) + * use *-packages instead of site-package (Closes: #557916) + * acknowledge NMU (Closes: #550285) + + -- Loic Dachary (OuoU) Sun, 17 Jan 2010 17:33:23 +0100 + +poker-network (1.7.5-4) unstable; urgency=low + + * debian/patches/03-pokertable-destroyplayer-add-assert-bug-15016.patch: + Add assert for bug#15016 in pokertable.destroyPlayer. + + -- Johan Euphrosine (proppy) Tue, 12 Jan 2010 10:22:42 +0100 + +poker-network (1.7.5-3) unstable; urgency=low + + * debian/patches/02-pokertable-muckable-serials-copy.patch: + Fix tables hanging in MUCK state and tourneys hanging in + BREAK_WAIT state. + + -- Johan Euphrosine (proppy) Tue, 24 Nov 2009 16:40:59 +0100 + +poker-network (1.7.5-2) unstable; urgency=low + + * Apply Ubuntu changes: + debian/python-poker{-network, 2d, -prizes,-stats}.install: use wildcards + * debian/rules: Include cdbs simple patch system + * debian/patches/01-pokerdatabase-reconnect.patch: Fix mysql + connection timeout with python-mysqldb >= 1.2.2 + + -- Johan Euphrosine (proppy) Fri, 30 Oct 2009 18:59:10 +0100 + +poker-network (1.7.5-1.1) unstable; urgency=low + + * Non-maintainer upload to fix release goal. + * Fix init.d script dependencies (Closes: #546930). + * Run examples/run-pokerserver using bash (Closes: #530173). + * Drop python-xml from build dependencies. It is included in + python now according to #540475 (Closes: #543135). + * Drop essential package coreutils from build-depends. + + -- Petter Reinholdtsen Thu, 08 Oct 2009 21:29:13 +0200 + +poker-network (1.7.5-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Tue, 05 May 2009 17:59:57 +0200 + +poker-network (1.7.4-2) unstable; urgency=low + + * diffs have been integrated (Closes: #499090). + * add --debconf-ok option to ucf (Closes: #523991). + + -- Loic Dachary (OuoU) Tue, 14 Apr 2009 13:48:25 +0200 + +poker-network (1.7.4-1) unstable; urgency=low + + * upstream sync + * add misc:Depends to poker2d + * moved poker2d to section games + * poker-web.preinst no longer depends on debconf + * remove absolute paths to pokerconfigupgrade from + python-poker-network.postinst + * python-poker-network.postinst uses which instead of type + * debian/compat is now 5 + * in sid this bug cannot be reproduced, poker2d runs and displays + a window (Closes: #493724). + * s/python-pyopenssl/python-openssl/ in control (Closes: #494903). + * using the suggested modification for bots since server no longer + requires locating the py file (Closes: #489875). + * added debian/po/sv.po (Closes: #508756). + + -- Loic Dachary (OuoU) Sun, 12 Apr 2009 09:52:19 +0200 + +poker-network (1.7.3-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Mon, 22 Dec 2008 21:52:48 +0100 + +poker-network (1.7.2-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Wed, 10 Dec 2008 17:18:15 +0100 + +poker-network (1.7.1-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Fri, 28 Nov 2008 13:10:13 +0100 + +poker-network (1.7.0-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Sat, 12 Jul 2008 17:41:02 +0200 + +poker-network (1.6.0-1.2) unstable; urgency=low + + * Non-maintainer upload. + * Really remove python 2.3 support, allowing the package to install if + python 2.3 is also installed. The 2.3-supporting packages were dropped + from the package nearly two years ago but the control file was still + declaring compatibility. (Closes: #498497) + * Bump the python-all-dev build-dependency to >=2.4. + + -- Adam D. Barratt Fri, 12 Sep 2008 13:42:22 +0100 + +poker-network (1.6.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Added build dependency on python-xml to fix FTBFS if built twice in a row + (closes: 442702) + + -- Peter Eisentraut Sat, 28 Jun 2008 23:23:42 +0200 + +poker-network (1.6.0-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Mon, 19 May 2008 12:17:21 +0200 + +poker-network (1.5.0-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Mon, 24 Mar 2008 14:56:07 +0100 + +poker-network (1.4.0-1) unstable; urgency=low + + * upstream sync + + * use pycentral to locate scripts instead of guessing (closes: 471604) + + * pypoker-eval and poker-engine uploaded to use pycentral new version (closes: 471644) + + -- Loic Dachary (OuoU) Mon, 17 Mar 2008 23:42:02 +0100 + +poker-network (1.3.0-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Wed, 3 Oct 2007 11:04:41 +0200 + +poker-network (1.2.0-1) unstable; urgency=low + + * upstream sync + + * rm config files if ucf is not available (closes: 431524) + + * upstream includes fix for autoconnect bug (closes: 440485) + + -- Loic Dachary (OuoU) Wed, 1 Aug 2007 18:07:20 +0200 + +poker-network (1.1.1-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Wed, 11 Jul 2007 11:33:47 +0200 + +poker-network (1.1.0-1) unstable; urgency=low + + * upstream sync + + * Apply NMU patch (closes: 425253) + + -- Loic Dachary (OuoU) Sun, 27 May 2007 14:41:33 +0200 + +poker-network (1.0.37-1.1) unstable; urgency=high + + * Non-maintainer upload during BSP. + * Fix unconditional use of debconf in postrm (Closes: #417012). + * Add python-gtk2-dev as build-dependency (Closes: #424439). + * Updated Czech debconf translation (Closes: #408656). + * Add German debconf translation (Closes: #414583). + * Move poker-web to web - optional to match overrides. + + -- Luk Claes Sun, 20 May 2007 12:18:18 +0200 + +poker-network (1.0.37-1) unstable; urgency=low + + * upstream sync + + * dutch translation (closes: #423054) + + * portugese translation (closes: #423527) + + -- Loic Dachary (OuoU) Tue, 13 Mar 2007 17:12:52 +0100 + +poker-network (1.0.36-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Mon, 12 Feb 2007 14:07:44 +0100 + +poker-network (1.0.35-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Wed, 7 Feb 2007 15:39:55 +0100 + +poker-network (1.0.34-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Wed, 10 Jan 2007 17:02:37 +0100 + +poker-network (1.0.33-1) unstable; urgency=low + + * upstream sync + + * python-poker-network.links: add missing 1.0.32 + + * french translation (closes: #402798) + + * spanish translation (closes: #404707) + + * poker2d depends on gtk2-engines-pixbuf + + -- Loic Dachary (OuoU) Tue, 12 Dec 2006 22:26:17 +0100 + +poker-network (1.0.32-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Sat, 2 Dec 2006 20:40:13 +0100 + +poker-network (1.0.31-1) unstable; urgency=low + + * upstream sync + + * was solved by dropping 2.3 support (closes: #392157) + + * replace www-config with dbconfig-common (closes: #384603) + + * poker2d depends on a web browser (closes: #374630) + + * defaults is now pokersource.info that has the proper URLs (closes: #374635) + + * libsdl1.2debian depends on libsdl1.2debian-alsa by default therefore remove + the -all dependency (closes: #385552) + + -- Loic Dachary (OuoU) Mon, 20 Nov 2006 13:34:00 +0100 + +poker-network (1.0.30-1) unstable; urgency=low + + * upstream sync + + * drop support for python2.3 because of RC bug + http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=396840 (closes: #396240) + + -- Loic Dachary (OuoU) Wed, 8 Nov 2006 12:38:01 +0100 + +poker-network (1.0.29-1) unstable; urgency=low + + * upstream sync + + * don't link python module with python libs (closes: #395864) + + -- Loic Dachary (OuoU) Sat, 28 Oct 2006 19:22:25 +0200 + +poker-network (1.0.28-1) unstable; urgency=low + + * upstream sync + + * remove non free font (closes: #393719) + + -- Loic Dachary (OuoU) Sat, 14 Oct 2006 16:45:48 +0200 + +poker-network (1.0.27-1) unstable; urgency=low + + * upstream sync + + * Miroslav Kure updates (closes: #389626) + + * build dep on mysql-client otherwise @MYSQL@ not properly substituted and upgrade + fails + + -- Loic Dachary (OuoU) Mon, 25 Sep 2006 14:33:24 +0200 + +poker-network (1.0.26-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Sat, 16 Sep 2006 19:34:57 +0200 + +poker-network (1.0.25-1) unstable; urgency=low + + * upstream sync + + * fr translation from Thomas Huriaux (closes: #386705) + + * edgy & etch control files + + -- Loic Dachary (OuoU) Sun, 10 Sep 2006 01:02:54 +0200 + +poker-network (1.0.24-1) unstable; urgency=low + + * upstream sync + + -- Loic Dachary (OuoU) Thu, 31 Aug 2006 08:51:10 +0200 + +poker-network (1.0.23-1) unstable; urgency=low + + * upstream sync + + * template fixes from Thomas Huriaux (closes: #384605) + + * python2.3-pyopenssl is now python-pyopenssl (closes: #384718) + + -- Loic Dachary (OuoU) Sat, 26 Aug 2006 12:26:47 +0200 + +poker-network (1.0.22-1) unstable; urgency=low + + * upstream sync + + * use pycentral + + * libsdl1.2debian-all : give alsa a chance to be chosen instead of dsp / oss + + * switched to pycentral and adapt to new python policy (closes: #376207) + + -- Loic Dachary (OuoU) Sat, 22 Jul 2006 11:11:22 +0200 + +poker-network (1.0.20-1) unstable; urgency=low + + * upstream sync + + * valgrind only required for some architectures (closes: #364216) + + -- Loic Dachary (OuoU) Sun, 21 May 2006 10:35:35 +0200 + +poker-network (1.0.19-1) unstable; urgency=low + + * upstream sync + + * valgrind build dep for unstable + + -- Loic Dachary (OuoU) Fri, 21 Apr 2006 10:11:13 +0200 + +poker-network (1.0.18-1) unstable; urgency=low + + * upstream sync + + * use autoreconf instead of custom made script + + * depends on pygame + + -- Loic Dachary (OuoU) Sun, 26 Mar 2006 13:02:26 +0200 + +poker-network (1.0.17-1) unstable; urgency=low + + * upstream version + + * pokerweb: s/encodage/encoding/ (closes: #358151) + + -- Loic Dachary (OuoU) Tue, 21 Mar 2006 12:57:19 +0100 + +poker-network (1.0.16-1) unstable; urgency=low + + * upstream version + + * python-poker-network.templates: by default poker-network is not configured + + * python-poker-network.config: empty password for user was not properly tested + (missing quotes) + + -- Loic Dachary (OuoU) Tue, 14 Mar 2006 17:29:34 +0100 + +poker-network (1.0.15-1) unstable; urgency=low + + * upstream version + + * import bugous backward compatibility dispatch.py from twisted-2.2.0 (closes: #355049) + + * control*: change priority to extra (twisted is extra) + + -- Loic Dachary (OuoU) Mon, 13 Mar 2006 10:22:07 +0100 + +poker-network (1.0.14-1) unstable; urgency=low + + * upstream version + + * apply patch to po from Thomas Huriaux (closes: #338136) + + * french translation (closes: #340083) + + * rename soapclient to nusoapclient (closes: #355116) + + -- Loic Dachary (OuoU) Tue, 3 Jan 2006 17:49:24 +0100 + +poker-network (1.0.13-1) unstable; urgency=low + + * upstream version + + -- Loic Dachary (OuoU) Mon, 21 Nov 2005 10:15:29 +0100 + +poker-network (1.0.12-1) unstable; urgency=low + + * upstream version + + -- Loic Dachary (OuoU) Thu, 13 Oct 2005 11:25:15 +0200 + +poker-network (1.0.11-1) unstable; urgency=low + + * poker-web package for www interface to poker server + + * poker2d and poker-network fake packages + + * dependency to adduser for *poker-network + + * python2.4 packages + + * upstream version + + * depend on debconf-2.0 (closes: #332072) + + -- Loic Dachary (OuoU) Wed, 5 Oct 2005 10:24:41 +0200 + +poker-network (1.0.10-1) unstable; urgency=low + + * upstream version + + -- Loic Dachary (OuoU) Tue, 27 Sep 2005 14:58:23 +0200 + +poker-network (1.0.9-1) unstable; urgency=low + + * upstream version + + -- Loic Dachary (OuoU) Sun, 25 Sep 2005 23:00:20 +0200 + +poker-network (1.0.8-1) unstable; urgency=low + + * upstream version + + * swtich to cdbs + + * fr.po update from Guilhelm (closes: #329445) + + * install files in /etc before attempting to patch them (closes: #329968) + + -- Loic Dachary (OuoU) Sun, 25 Sep 2005 14:35:58 +0200 + +poker-network (1.0.7-1) unstable; urgency=low + + * upstream version + + -- Loic Dachary (OuoU) Thu, 25 Aug 2005 19:04:25 +0200 + +poker-network (1.0.6-1) unstable; urgency=low + + * upstream version + + * remove dependency on libxml2-python2.3, was added to poker-engine (closes: #32251) + + * fix templates prompts according to Christian Perrier remarks (closes: #318996) + + -- Loic Dachary (OuoU) Thu, 18 Aug 2005 01:48:02 +0200 + +poker-network (1.0.5-1) unstable; urgency=low + + * upstream version + + * French translation courtesy Guilhelm (closes: #319766) + + * Czech translation courtesy Miroslav Kure (closes: #318925) + + -- Loic Dachary (OuoU) Fri, 5 Aug 2005 19:18:55 +0200 + +poker-network (1.0.4-1) unstable; urgency=low + + * upstream version + + * s/Build-Depends-Indep/Build-Depends/ in control (closes: #318355) + + -- Loic Dachary (OuoU) Sat, 16 Jul 2005 08:59:41 +0200 + +poker-network (1.0.3-1) unstable; urgency=low + + * upstream version + + -- Loic Dachary (OuoU) Fri, 24 Jun 2005 22:39:34 +0200 + +poker-network (1.0.2-1) unstable; urgency=low + + * Fill ITP (closes: #308576) + + * upstream version + + -- Loic Dachary (OuoU) Tue, 21 Jun 2005 10:09:40 +0200 + +poker-network (1.0.1-1) unstable; urgency=low + + * upstream version + + -- Loic Dachary (OuoU) Wed, 11 May 2005 17:53:08 +0200 + +poker-network (1.0.0-1) unstable; urgency=low + + * initial revision + + -- Loic Dachary (OuoU) Wed, 11 May 2005 11:51:28 +0200 --- poker-network-1.7.7.orig/debian/poker-web.postrm +++ poker-network-1.7.7/debian/poker-web.postrm @@ -0,0 +1,39 @@ +#!/bin/bash + +set -e + +if [ "${DH_VERBOSE:-0}" -gt 0 ] ; then set -x ; fi + +if [ "$1" = "purge" ]; then + + rm -f /etc/poker-web/apache.conf.dpkg-md5sum + + for ext in '' '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist; do + rm -f "/etc/poker-web/apache.conf$ext" + rm -f "/etc/apache/conf.d/poker-web.conf$ext" + rm -f "/etc/apache-perl/conf.d/poker-web.conf$ext" + rm -f "/etc/apache-ssl/conf.d/poker-web.conf$ext" + rm -f "/etc/apache2/conf.d/poker-web.conf$ext" + done + + rmdir --ignore-fail-on-non-empty /etc/poker-web || true + + ucf --purge /etc/poker-web/constants.php + +fi + +if [ -f /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule +fi +. /usr/share/dbconfig-common/dpkg/postrm.mysql +dbc_dbname=currency_one +dbc_go poker-web-currency-one $@ +dbc_dbname=pokerweb +dbc_go poker-web $@ + +# Dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- poker-network-1.7.7.orig/debian/poker-web.templates +++ poker-network-1.7.7/debian/poker-web.templates @@ -0,0 +1,21 @@ +Template: poker-web/reconfigure-webserver +Type: multiselect +Choices: apache, apache-ssl, apache-perl, apache2 +_Description: Web server(s) to reconfigure automatically: + poker-web supports any web server that PHP does, but this automatic + configuration process only supports Apache. + +Template: poker-web/restart-webserver +Type: boolean +Default: false +_Description: Restart ${webserver} now? + Remember that in order to activate the new configuration + ${webserver} has to be restarted. You can also restart ${webserver} + manually executing /etc/init.d/${webserver} restart + +Template: poker-web/host +Type: string +Default: localhost +_Description: Hostname or IP address of the poker-network server: + The poker-network server for which poker-web provides a web + based interface. It will be queried via its SOAP interface. --- poker-network-1.7.7.orig/debian/python-poker-network.install +++ poker-network-1.7.7/debian/python-poker-network.install @@ -0,0 +1,14 @@ +debian/tmp/usr/lib/python???/*-packages/pokernetwork +debian/tmp/usr/lib/python???/*-packages/pokerui +debian/tmp/usr/lib/python???/*-packages/twisted/plugins +debian/tmp/usr/share/poker-network/*.sql +debian/tmp/usr/sbin +debian/tmp/usr/lib/cgi-bin +debian/tmp/usr/share/poker-network/conf/poker.server.xml +debian/tmp/usr/share/poker-network/conf/poker.bot.xml +debian/tmp/usr/share/poker-network/conf/poker.pem +debian/tmp/usr/share/poker-network/conf/poker.client.xml +debian/tmp/usr/share/poker-network/upgrades +debian/tmp/usr/share/munin/plugins +debian/tmp/usr/share/man/man8 +debian/tmp/usr/lib/pkgconfig --- poker-network-1.7.7.orig/debian/poker-web.prerm +++ poker-network-1.7.7/debian/poker-web.prerm @@ -0,0 +1,58 @@ +#!/bin/bash + +set -e + +if [ "${DH_VERBOSE:-0}" -gt 0 ] ; then set -x ; fi + +. /usr/share/debconf/confmodule +db_version 2.0 || [ $? -lt 30 ] + +# Package maintainer's commands follow: +if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then + db_get poker-web/reconfigure-webserver + webservers="$RET" + restart="" + + for webserver in $webservers; do + webserver=${webserver%,} + + case "$webserver" in + apache|apache-perl|apache-ssl|apache2) + rm -f /etc/$webserver/conf.d/poker-web.conf + test -x /usr/sbin/$webserver || continue + db_reset poker-web/restart-webserver + db_subst poker-web/restart-webserver webserver "$webserver" + db_input high poker-web/restart-webserver || true + db_go + db_get poker-web/restart-webserver + if [ "$RET" = "true" ]; then + restart="$restart $webserver" + fi + ;; + esac + done + + for webserver in $restart; do + webserver=${webserver%,} + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d $webserver restart + else + /etc/init.d/$webserver restart + fi + done +fi + +. /usr/share/dbconfig-common/dpkg/prerm.mysql +dbc_dbname=currency_one +dbc_go poker-web-currency-one $@ +dbc_dbname=pokerweb +dbc_go poker-web $@ + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +db_stop + +exit 0 --- poker-network-1.7.7.orig/debian/python-poker-stats.prerm +++ poker-network-1.7.7/debian/python-poker-stats.prerm @@ -0,0 +1,12 @@ +#!/bin/sh -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Establish the preliminaries. +db_version 2.0 + +. /usr/share/dbconfig-common/dpkg/frontend.prerm.mysql +dbc_go python-poker-network $@ + +#DEBHELPER# --- poker-network-1.7.7.orig/debian/python-poker-network.default +++ poker-network-1.7.7/debian/python-poker-network.default @@ -0,0 +1,9 @@ +# +# python-poker-network default +# + +# +# Run bots that will connect to the poker server as instructed +# in /etc/poker-network/poker.bot.xml +# +RUN_BOTS=false --- poker-network-1.7.7.orig/debian/python-poker2d.postinst +++ poker-network-1.7.7/debian/python-poker2d.postinst @@ -0,0 +1,60 @@ +#! /bin/sh +# postinst script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +. /usr/share/debconf/confmodule +db_version 2.0 + +case "$1" in + configure) + db_get "python-poker-network/host" + poker_network_host="$RET" + db_get "python-poker-network/www" + poker_network_www="$RET" + sed -e "s/\%HOST\%/$poker_network_host/" \ + -e "s/\%WWW\%/$poker_network_www/" \ + < /usr/share/poker-network/poker2d/poker2d.xml.ref > /usr/share/poker-network/poker2d/poker2d.xml + # + # Try to update the kde khotkeys of the currently running session + # so that the user can use it right away. + # + if [ -x /usr/lib/kconf_update_bin/khotkeys_update ] ; then + /usr/lib/kconf_update_bin/khotkeys_update --id poker2d || true + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +db_stop + +exit 0 + + --- poker-network-1.7.7.orig/debian/python-poker-stats.config +++ poker-network-1.7.7/debian/python-poker-stats.config @@ -0,0 +1,22 @@ +#!/bin/bash + +# taken from phpgroupeware config + template + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Establish the preliminaries. +db_version 2.0 + +dbc_dbuser="poker" +dbc_dbname="pythonpokernetwork" +. /usr/share/dbconfig-common/dpkg/frontend.config.mysql +dbc_go python-poker-stats $@ + +db_stop + +# db_purge # remove me (for debug) + +exit 0 --- poker-network-1.7.7.orig/debian/python-poker2d.menu +++ poker-network-1.7.7/debian/python-poker2d.menu @@ -0,0 +1,9 @@ +?package(python-poker2d):\ + needs="x11"\ + section="Games/Card"\ + hints="KDE"\ + title="Poker2D"\ + icon32x32="/usr/share/pixmaps/poker2D.xpm"\ + icon16x16="/usr/share/pixmaps/poker2D-16.xpm"\ + command="/usr/games/poker2d" + --- poker-network-1.7.7.orig/debian/python-poker-network.postinst +++ poker-network-1.7.7/debian/python-poker-network.postinst @@ -0,0 +1,150 @@ +#! /bin/sh +# postinst script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +. /usr/share/debconf/confmodule +. /usr/share/dbconfig-common/dpkg/postinst.mysql + +db_version 2.0 + +pokernetwork_group=pokernetwork +pokernetwork_user=pokernetwork +pokernetwork_dir=/var/lib/pokernetwork + +# +# Must be done first otherwise the init script will fail. +# There should be a way to order the invocation of the +# DEBHELPER scripts. +# +# It does not harm to call pycentral twice. +# +if which pycentral >/dev/null 2>&1; then + pycentral pkginstall python-poker-network +fi + +prevver="$2" + +init_munin() { + if which munin-node-configure > /dev/null 2>&1 ; then + if [ "$prevver" ]; then + echo -n "Initializing new munin.." + munin-node-configure --families poker-network --shell --newer "${prevver%-*}" | sh + else + echo -n "Initializing munin.." + munin-node-configure --families poker-network --shell | sh + fi + echo "done." + /etc/init.d/munin-node restart + fi +} + +case "$1" in + configure) +# +# inspired by the mldonkey-server postinst +# + + # Creating pokernetwork group if he isn't already there + if ! getent group $pokernetwork_group > /dev/null ; then + addgroup --quiet $pokernetwork_group + fi + + # Creating pokernetwork user if he isn't already there + if ! getent passwd $pokernetwork_user > /dev/null ; then + adduser --quiet --system --ingroup $pokernetwork_group \ + --home $pokernetwork_dir --no-create-home $pokernetwork_user + fi + + if [ ! -d $pokernetwork_dir ]; then + echo -n "Creating pokernetwork home directory : " + mkdir $pokernetwork_dir + echo "done." + fi + + server_conf=/etc/poker-network/poker.server.xml + if [ ! -f $server_conf ] ; then + server_conf_did_not_exist=true + else + server_conf_did_not_exist=false + fi + pokerconfigupgrade --verbose=1 --module=pokernetwork.pokernetworkconfig --reference=/usr/share/poker-network/conf /etc/poker-network + for file in bot client server ; do + pokerconfigupgrade --verbose=1 --module=pokernetwork.pokernetworkconfig --upgrades=/usr/share/poker-network/upgrades/poker.$file /etc/poker-network/poker.$file.xml + done + + db_get "python-poker-network/host" + poker_network_host="$RET" + db_get "python-poker-network/www" + poker_network_www="$RET" + + db_get "python-poker-network/configure" + tmpfile=`mktemp` + if [ $RET = "false" ]; then + touch /etc/poker-network/lockfile + else + if $server_conf_did_not_exist ; then rm -f $server_conf ; fi + dbc_generate_include="template:$server_conf" + dbc_generate_include_args="-O $pokernetwork_user:$pokernetwork_group -m 600 -o template_infile=/usr/share/poker-network/conf/poker.server.xml" + dbc_first_version="1.0.31" + dbc_go python-poker-network $@ + + db_get "python-poker-network/bots" + sed -e "s/^RUN_BOTS=.*/RUN_BOTS=$RET/" < /etc/default/python-poker-network > $tmpfile + ucf --debconf-ok $tmpfile /etc/default/python-poker-network + + rm -f /etc/poker-network/lockfile + fi + + for conf_file in poker.client.xml poker.bot.xml ; do + if egrep '%(HOST|WWW)%' /etc/poker-network/$conf_file > /dev/null + then + sed -e "s/\%HOST\%/$poker_network_host/" \ + -e "s/\%WWW\%/$poker_network_www/" \ + < /etc/poker-network/$conf_file > $tmpfile + mv $tmpfile /etc/poker-network/$conf_file + chmod 644 /etc/poker-network/$conf_file + fi + done + + init_munin + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +db_stop + +# regenerate twisted plugins cache as advised on: +# http://twistedmatrix.com/projects/core/documentation/howto/plugin.html#auto3 +python -c 'from twisted.plugin import IPlugin, getPlugins;list(getPlugins(IPlugin));' + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- poker-network-1.7.7.orig/debian/python-poker-network.dirs +++ poker-network-1.7.7/debian/python-poker-network.dirs @@ -0,0 +1 @@ +etc/poker-network --- poker-network-1.7.7.orig/debian/poker-web.install +++ poker-network-1.7.7/debian/poker-web.install @@ -0,0 +1,2 @@ +debian/tmp/etc/poker-web +debian/tmp/usr/share/poker-web --- poker-network-1.7.7.orig/debian/pycompat +++ poker-network-1.7.7/debian/pycompat @@ -0,0 +1 @@ +2 --- poker-network-1.7.7.orig/debian/python-poker-prizes.config +++ poker-network-1.7.7/debian/python-poker-prizes.config @@ -0,0 +1,22 @@ +#!/bin/bash + +# taken from phpgroupeware config + template + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Establish the preliminaries. +db_version 2.0 + +dbc_dbuser="poker" +dbc_dbname="pythonpokernetwork" +. /usr/share/dbconfig-common/dpkg/frontend.config.mysql +dbc_go python-poker-prizes $@ + +db_stop + +# db_purge # remove me (for debug) + +exit 0 --- poker-network-1.7.7.orig/debian/python-poker-stats.install +++ poker-network-1.7.7/debian/python-poker-stats.install @@ -0,0 +1,4 @@ +debian/tmp/usr/lib/python???/*-packages/pokerstats +debian/tmp/usr/bin/pokerstats +debian/tmp/usr/share/poker-network/conf/poker.stats.xml +debian/tmp/usr/share/man/man1 --- poker-network-1.7.7.orig/debian/poker-web.links +++ poker-network-1.7.7/debian/poker-web.links @@ -0,0 +1,2 @@ +user/share/poker-web/database/schema.sql usr/share/dbconfig-common/data/poker-web/install/mysql +etc/poker-web/apache.conf etc/apache2/sites-available/poker-web.conf --- poker-network-1.7.7.orig/debian/python-poker-network.preinst +++ poker-network-1.7.7/debian/python-poker-network.preinst @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +if [ "${DH_VERBOSE:-0}" -gt 0 ] ; then set -x ; fi + +if [ "$1" = "upgrade" -a -n "$2" ] && dpkg --compare-versions "$2" lt-nl "1.0.21"; then + # + # Major changes, forget about upgrading + # + rm -f /etc/poker-network/poker.server.xml +fi + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- poker-network-1.7.7.orig/debian/po/sv.po +++ poker-network-1.7.7/debian/po/sv.po @@ -0,0 +1,154 @@ +# translation of poker-network.po to swedish +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Martin Bagge , 2008. +msgid "" +msgstr "" +"Project-Id-Version: poker-network\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: 2008-12-15 01:35+0100\n" +"Last-Translator: Martin Bagge \n" +"Language-Team: swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "Webbservrar som ska ställas in automatiskt:" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "" +"poker-web supports any web server that PHP does, but this automatic " +"configuration process only supports Apache." +msgstr "" +"power-web kan köras på alla webbservrar som stödjer PHP, endast Apache kan " +"dock ställas in automatiskt." + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "Ska ${webserver} startas om nu?" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "" +"Remember that in order to activate the new configuration ${webserver} has to " +"be restarted. You can also restart ${webserver} manually executing /etc/init." +"d/${webserver} restart" +msgstr "" +"Kom ihåg att för att aktivera de nya inställningarna måste ${webserver} " +"startas om. Du kan också starta om ${webserver} manuellt genom att köra /etc/" +"init.d/${webserver} restart" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "Värdnamn eller IP-adress tiill power-network-server:" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "" +"The poker-network server for which poker-web provides a web based interface. " +"It will be queried via its SOAP interface." +msgstr "" +"poker-network-servern som poker-web tillhandahåller ett webbaserat " +"gränssnitt. Den kommer att kontaktas via SOAP-gränssnittet." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "Vill du göra inställningar och sedan starta poker-network-servern?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "" +"If you want to configure and run a poker-network server, make sure you have " +"administrative rights on a running MySQL server. If you do not want to run " +"the poker-network server on this machine, you will be prompted for the " +"hostname or the IP address of a running poker-network server." +msgstr "" +"Om du vill ställa in och köra en poker-network-server behöver du ha " +"administrativa rättigheter på en fungerande MySQL-server. Om du inte vill " +"köra poker-network-server på den här maskinen kommer du att ombes ange ett " +"värdnamn eller en IP-adress till en fungernade poker-network-server." + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "Hoppar över installation av poker-network-server" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "" +"If you want to run poker-network at a later time, you will need to configure " +"it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "" +"Vill du installera poker-network-server vid ett senare tillfälle kan du köra " +"inställningsguiden genom kommandot dpkg-reconfigure python-poker-network " +"eller manuellt redigera inställningsfilerna." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "" +"Värdnamn eller IP-adress till den poker-network-server som ska användas som " +"standardvärde." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this poker-network server host as a default, if needed." +msgstr "" +"poker-network-klienter på samma maskin som servern kommer att kunna använda " +"denna som standardserver om det behövs." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "Värdnamn eller IP-adress till standardwebserver för poker-network." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this address to connect to the web part of the poker server." +msgstr "" +"poker-network-klienter på samma maskin som servern kommer att kunna använda " +"denna adress som standard vid anslutningar till webbdelen för pokerserver." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "Vill du köra poker-networks robotar?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "" +"Robot players are simple minded poker players that can be used to exercise " +"the poker server when there are not enough human players connected." +msgstr "" +"Robotspelare är enkla pokerspelare som kan användas för att fylla ut " +"platserna på servern när det saknas mänskliga spelare." --- poker-network-1.7.7.orig/debian/po/nl.po +++ poker-network-1.7.7/debian/po/nl.po @@ -0,0 +1,114 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: poker-network\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: 2007-04-30 13:33+0100\n" +"Last-Translator: Bart Cornelis \n" +"Language-Team: debian-l10n-dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Dutch\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "Automatisch te herconfigureren webserver(s):" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "poker-web supports any web server that PHP does, but this automatic configuration process only supports Apache." +msgstr "poker-web ondersteund alle webservers die PHP ondersteunen, maar dit automatische configuratieproces ondersteund enkel Apache." + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "Wilt u ${webserver} nu herstarten?" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Remember that in order to activate the new configuration ${webserver} has to be restarted. You can also restart ${webserver} manually executing /etc/init.d/${webserver} restart" +msgstr "Vergeet niet dat de nieuwe configuratie pas van kracht wordt eens u ${webserver} herstart heeft. U kunt ${webserver} ook handmatig herstarten via het commando '/etc/init,d/${webserver} restart'." + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "Computernaam of IP-adres van de poker-network-server:" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "The poker-network server for which poker-web provides a web based interface. It will be queried via its SOAP interface." +msgstr "De poker-network-server waarvoor poker-web een web-interface voorziet. Deze wordt via zijn SOAP-interface aangesproken." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "Wilt u de poker-network-server configureren en draaien?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "If you want to configure and run a poker-network server, make sure you have administrative rights on a running MySQL server. If you do not want to run the poker-network server on this machine, you will be prompted for the hostname or the IP address of a running poker-network server." +msgstr "Als u een poker-network-server wilt installeren en draaien dient u beheerdersrechten te hebben op een draaiende MySQL-server. Als u geen poker-network-server wilt draaien op deze machine wordt u gevraagd om de computernaam of het IP-adres van een draaiende poker-network-server." + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "Installatie van een poker-network-server wordt overgeslagen" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "If you want to run poker-network at a later time, you will need to configure it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "Als u later poker-network toch wilt draaien zult u dit of handmatig moeten instellen of via het commando 'dpkg-reconfigure python-poker-network'." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "Computernaam of IP-adres van de standaard poker-network-server:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "The clients based on poker-network installed on the same machine will be able to use this poker-network server host as a default, if needed." +msgstr "De op poker-network gebaseerde clients op deze machine kunnen deze poker-network-server standaard gebruiken." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "Computernaam of IP-adres van de standaard poker-network-webserver:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "The clients based on poker-network installed on the same machine will be able to use this address to connect to the web part of the poker server." +msgstr "De op poker-network gebaseerde clients op deze machine kunnen dit adres gebruiken om verbinding te maken met het web-gedeelte van de pokerserver." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "Wilt u de poker-network-robots draaien?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Robot players are simple minded poker players that can be used to exercise the poker server when there are not enough human players connected." +msgstr "Robot-spelers zijn simpele poker-spelers die gebruikt kunnen worden op de poker-server tot er genoeg menselijke spelers verbonden zijn." + --- poker-network-1.7.7.orig/debian/po/es.po +++ poker-network-1.7.7/debian/po/es.po @@ -0,0 +1,267 @@ +# Spanish/Spain translation of poker-network. +# This file is distributed under the same license as the poker-network package. +# +# Initial translator: +# - Jose Ignacio Méndez González , 2006. +# Updated by: +# - Javier Fernández-Sanguino , 2006 +# +# +# +# Traductores, si no conoce el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/ +# especialmente las notas y normas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Si tiene dudas o consultas sobre esta traducción consulte con el último +# traductor (campo Last-Translator) y ponga en copia a la lista de +# traducción de Debian al español () +msgid "" +msgstr "" +"Project-Id-Version: poker-network 1.0.32-1\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: 2006-12-27 19:31+0100\n" +"Last-Translator: Javier Fernández-Sanguino \n" +"Language-Team: Debian l10n Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "Servidor/es web a reconfigurar automáticamente:" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "" +"poker-web supports any web server that PHP does, but this automatic " +"configuration process only supports Apache." +msgstr "" +"poker-web da soporte a cualquier servidor web que tenga soporte de PHP, pero " +"este proceso de configuración automática sólo da soporte a Apache." + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "¿Quiere que reinicie ${webserver} ahora?" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "" +"Remember that in order to activate the new configuration ${webserver} has to " +"be restarted. You can also restart ${webserver} manually executing /etc/init." +"d/${webserver} restart" +msgstr "Recuerde, que para activar la nueva configuración ${webserver} tiene que reiniciarse. Usted también puede reiniciar ${webserver} manualmente ejecutando «/etc/init.d/${webserver} restart»." + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "Nombre o dirección IP del servidor poker-network:" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "" +"The poker-network server for which poker-web provides a web based interface. " +"It will be queried via its SOAP interface." +msgstr "" +"El servidor de poker-network cuyo poker-web proporciona una interfaz basada " +"en web, Recibirá peticiones a través de su interfaz SOAP." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "¿Quiere configurar y ejecutar el servidor de poker-network?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "" +"If you want to configure and run a poker-network server, make sure you have " +"administrative rights on a running MySQL server. If you do not want to run " +"the poker-network server on this machine, you will be prompted for the " +"hostname or the IP address of a running poker-network server." +msgstr "" +"Si usted quiere configurar y ejecutar un servidor de poker-network, " +"asegúrese de que tiene permisos de administrador en el servidor MySQL. Si no " +"quiere ejecutar el servidor de poker-network en este equipo, se le pedirá el " +"nombre del servidor o la dirección IP de un servidor poker-network que se " +"esté ejecutando." + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "Omitiendo instalación del servidor poker-network" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "" +"If you want to run poker-network at a later time, you will need to configure " +"it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "Si quiere ejecutar poker-network más tarde, necesitará configurarlo manualmente o ejecutando «dpkg-reconfigure python-poker-network»." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "" +"Nombre del servidor o dirección IP del servidor poker-network por omisión:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this poker-network server host as a default, if needed." +msgstr "" +"Los clientes basados en poker-network instalados en el mismo equipo, serán " +"capaces de usar este servidor por omisión de poker-network, si se necesita." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "" +"Nombre del servidor o dirección IP del servidor poker-network por omisión:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this address to connect to the web part of the poker server." +msgstr "Los clientes basados en poker-network y que estén instalados en el mismo equipo utilizarán este servidor de poker-network para conectarse al interfaz web del servidor de poker." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "¿Quiere ejecutar los robots de poker-network?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "" +"Robot players are simple minded poker players that can be used to exercise " +"the poker server when there are not enough human players connected." +msgstr "Los jugadores robot son jugadores de poker de mente muy simple que pueden utilizarse para probar el servidor de poker cuando no hay suficientes jugadores humanos conectados." + +#~ msgid "MySQL server host name:" +#~ msgstr "Nombre del servidor servidor de MySQL:" + +#~ msgid "" +#~ "Please enter the the hostname or the IP address of the machine where the " +#~ "MySQL server is running." +#~ msgstr "" +#~ "Por favor, introduzca el nombre o la dirección IP del equipo donde se " +#~ "está ejecutando el servidor MySQL." + +#~ msgid "poker-network database name:" +#~ msgstr "Nombre de la base de datos de poker-network:" + +#~ msgid "" +#~ "This is the name of the database that poker-network will use. A new " +#~ "database of that name will be created on the MySQL server." +#~ msgstr "" +#~ "Éste es el nombre de la base de datos que usará poker-network. Se creará " +#~ "una nueva base de datos con ese nombre en el servidor MySQL." + +#~ msgid "MySQL user name dedicated to poker-network:" +#~ msgstr "Nombre del usuario de MySQL dedicado a poker-network:" + +#~ msgid "" +#~ "This is the user name that poker-network will use to access the database. " +#~ "A MySQL user of that name will be created on the MySQL server, with " +#~ "permissions restricted to the database dedicated to poker-network." +#~ msgstr "" +#~ "Éste es el nombre de usuario que poker-network usará para acceder a la " +#~ "base de datos. Se creará un usuario en el servidor MySQL con ese nombre " +#~ "con permisos restringidos a la base de datos dedicada a poker-network." + +#~ msgid "Password for the poker-network MySQL user:" +#~ msgstr "Contraseña del usuario de MySQL para poker-network:" + +#~ msgid "Retype the password of the poker-network MySQL user:" +#~ msgstr "Reescriba la contraseña del usuario de MySQL para poker-network:" + +#~ msgid "" +#~ "This is the password that poker-network will use, along with the MySQL " +#~ "user name you chose, to access the poker-network database." +#~ msgstr "" +#~ "Ésta es la contraseña que usará poker-network junto con el nombre del " +#~ "usuario de MySQL que eligió para acceder a la base de datos poker-network." + +#~ msgid "Passwords mismatch" +#~ msgstr "Las contraseñas no coinciden" + +#~ msgid "" +#~ "The poker-network MySQL user passwords you entered do not match. Please " +#~ "try again." +#~ msgstr "" +#~ "Las contraseñas del usuario de MySQL de poker-network que ha introducido " +#~ "no coinciden. Por favor, inténtelo de nuevo." + +#~ msgid "MySQL server administrator user name:" +#~ msgstr "Nombre del usuario administrador del servidor MySQL:" + +#~ msgid "" +#~ "The MySQL server administrator user will be used only during the " +#~ "installation process to do the following:" +#~ msgstr "" +#~ "El usuario administrador del servidor MySQL se usará sólo durante el " +#~ "proceso de instalación para lo hacer lo siguiente:" + +#~ msgid "" +#~ " (1) The poker-network database\n" +#~ " (2) The MySQL user that poker-network will use to access the\n" +#~ "database" +#~ msgstr "" +#~ " (1) La base de datos poker-network\n" +#~ " (2)El usuario de MySQL que usará poker-network para acceder a la base de " +#~ "datos\n" + +#~ msgid "" +#~ "The 'root' user usually have permission to create databases and users." +#~ msgstr "" +#~ "El usuario «root» normalmente tiene permisos para crear bases de datos y " +#~ "usuarios." + +#~ msgid "MySQL server administrator password (if any):" +#~ msgstr "Contraseña de administrador del servidor MySQL (si hay alguna):" + +#~ msgid "" +#~ "This is the password that will be used along with the MySQL server " +#~ "administrator name." +#~ msgstr "" +#~ "Ésta es la contraseña que se usará junto con el nombre del administrador " +#~ "del servidor MySQL." + +#~ msgid "" +#~ "NOTE: This password will not be asked twice, since it's not a new " +#~ "password." +#~ msgstr "" +#~ "NOTA: Esta contraseña no se preguntará dos veces, ya que no es una " +#~ "contraseña nueva." --- poker-network-1.7.7.orig/debian/po/cs.po +++ poker-network-1.7.7/debian/po/cs.po @@ -0,0 +1,252 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: poker-network\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: 2007-01-27 16:24+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "Webové servery, které se mají nastavit automaticky:" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "" +"poker-web supports any web server that PHP does, but this automatic " +"configuration process only supports Apache." +msgstr "" +"poker-web podporuje libovolný webový server, který podporuje PHP, ale " +"automatické nastavení si rozumí pouze se serverem Apache." + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "Restartovat nyní ${webserver}?" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "" +"Remember that in order to activate the new configuration ${webserver} has to " +"be restarted. You can also restart ${webserver} manually executing /etc/init." +"d/${webserver} restart" +msgstr "" +"Aby se nové nastavení projevilo, ${webserver} se musí restartovat. " +"${webserver} můžete restartovat také ručně příkazem /etc/init.d/${webserver} " +"restart" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "Jméno počítače nebo IP adresa výchozího serveru poker-network:" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "" +"The poker-network server for which poker-web provides a web based interface. " +"It will be queried via its SOAP interface." +msgstr "" +"poker-network server, ke kterému poker-web poskytuje webové rozhraní. Dotazy " +"budou na server kladeny skrze jeho SOAP rozhraní." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "Chcete nastavit a používat server poker-network?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "" +"If you want to configure and run a poker-network server, make sure you have " +"administrative rights on a running MySQL server. If you do not want to run " +"the poker-network server on this machine, you will be prompted for the " +"hostname or the IP address of a running poker-network server." +msgstr "" +"Jestliže chcete nakonfigurovat a spustit poker-network server, ujistěte se, " +"že máte administrátorská práva na běžícím MySQL serveru. Nechcete-li na " +"tomto počítači provozovat server poker-network, budete dotázáni na jméno " +"počítače nebo IP adresu běžícího poker-network serveru." + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "Přeskakuji serverovou instalaci poker-network" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "" +"If you want to run poker-network at a later time, you will need to configure " +"it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "" +"Budete-li chtít poker-network spustit později, můžete to provést ručně, nebo " +"příkazem dpkg-reconfigure python-poker-network." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "Jméno počítače nebo IP adresa výchozího serveru poker-network:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this poker-network server host as a default, if needed." +msgstr "" +"Klienti sídlící na stejném počítači jako serverová instalace poker-network " +"budou moci tento server využívat jako výchozí." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "Jméno nebo IP adresa výchozího webového serveru poker-network:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this address to connect to the web part of the poker server." +msgstr "" +"Klienti sídlící na stejném počítači jako serverová instalace poker-network " +"budou moci využívat tuto adresu pro připojení k webové části poker serveru." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "Chcete v poker-network používat roboty?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "" +"Robot players are simple minded poker players that can be used to exercise " +"the poker server when there are not enough human players connected." +msgstr "" +"Hráči-roboti jsou hráči pokeru s jednoduchým myšlením, kteří mohou na serveru " +"zaskočit v případě, že není dostatek lidských hráčů." + +#~ msgid "MySQL server host name:" +#~ msgstr "Jméno počítače s MySQL serverem:" + +#~ msgid "" +#~ "Please enter the the hostname or the IP address of the machine where the " +#~ "MySQL server is running." +#~ msgstr "" +#~ "Zadejte prosím jméno nebo IP adresu počítače, na kterém běží MySQL server." + +#~ msgid "poker-network database name:" +#~ msgstr "Jméno databáze pro poker-network:" + +#~ msgid "" +#~ "This is the name of the database that poker-network will use. A new " +#~ "database of that name will be created on the MySQL server." +#~ msgstr "" +#~ "Toto je jméno databáze, kterou bude poker-network používat. Databáze " +#~ "tohoto jména se vytvoří na MySQL serveru." + +#~ msgid "MySQL user name dedicated to poker-network:" +#~ msgstr "Jméno MySQL uživatele určeného pro poker-network:" + +#~ msgid "" +#~ "This is the user name that poker-network will use to access the database. " +#~ "A MySQL user of that name will be created on the MySQL server, with " +#~ "permissions restricted to the database dedicated to poker-network." +#~ msgstr "" +#~ "Toto je uživatelské jméno, které poker-network využije pro přístup k " +#~ "databázi. Na MySQL serveru se vytvoří uživatel tohoto jména s právy " +#~ "omezenými na databázi vyhrazenou pro poker-network." + +#~ msgid "Password for the poker-network MySQL user:" +#~ msgstr "Heslo pro MySQL uživatele poker-network:" + +#~ msgid "" +#~ "This is the password that poker-network will use, along with the MySQL " +#~ "user name you chose, to access the poker-network database." +#~ msgstr "" +#~ "Toto je heslo, které poker-network použije společně se jménem MySQL " +#~ "uživatele (již jste jej zadali) pro přístup k databázi." + +#~ msgid "Retype the password of the poker-network MySQL user:" +#~ msgstr "Zopakujte prosím heslo pro MySQL uživatele poker-network:" + +#~ msgid "Passwords mismatch" +#~ msgstr "Hesla nesouhlasí" + +#~ msgid "" +#~ "The poker-network MySQL user passwords you entered do not match. Please " +#~ "try again." +#~ msgstr "" +#~ "Zadaná hesla pro přístup k databázi MySQL nesouhlasí. Zkuste je prosím " +#~ "zadat znovu." + +#~ msgid "MySQL server administrator user name:" +#~ msgstr "Uživatelské jméno správce MySQL serveru:" + +#~ msgid "" +#~ "The MySQL server administrator user will be used only during the " +#~ "installation process to do the following:" +#~ msgstr "" +#~ "Účet správce MySQL serveru se použije pouze během instalace pro vytvoření:" + +#~ msgid "" +#~ " (1) The poker-network database\n" +#~ " (2) The MySQL user that poker-network will use to access the\n" +#~ "database" +#~ msgstr "" +#~ " (1) Databáze poker-network\n" +#~ " (2) Nového MySQL účtu, který bude poker-network používat pro přístup k " +#~ "databázi" + +#~ msgid "" +#~ "The 'root' user usually have permission to create databases and users." +#~ msgstr "" +#~ "Práva pro vytváření databází a uživatelů má obvykle uživatel 'root'." + +#~ msgid "MySQL server administrator password (if any):" +#~ msgstr "Heslo administrátora MySQL serveru (pokud používáte):" + +#~ msgid "" +#~ "This is the password that will be used along with the MySQL server " +#~ "administrator name." +#~ msgstr "" +#~ "Toto je heslo, které se použije spolu s uživatelským jménem správce MySQL " +#~ "serveru." + +#~ msgid "" +#~ "NOTE: This password will not be asked twice, since it's not a new " +#~ "password." +#~ msgstr "" +#~ "POZNÁMKA: O zadání hesla budete dotázáni pouze jednou, protože se nejedná " +#~ "o nové heslo." --- poker-network-1.7.7.orig/debian/po/de.po +++ poker-network-1.7.7/debian/po/de.po @@ -0,0 +1,153 @@ +# Translation of poker-network debconf templates to German +# Copyright (C) Helge Kreutzmann , 2007. +# This file is distributed under the same license as the poker-network package. +# +msgid "" +msgstr "" +"Project-Id-Version: poker-network 1.0.35-1\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: 2007-03-09 23:12+0100\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "Automatisch zu rekonfigurierende(n) Webserver:" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "" +"poker-web supports any web server that PHP does, but this automatic " +"configuration process only supports Apache." +msgstr "" +"Poker-Web unterstützt jeden von PHP unterstützen Webserver, aber dieser " +"automatische Konfigurationsprozess unterstützt nur Apache." + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "${webserver} jetzt neustarten?" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "" +"Remember that in order to activate the new configuration ${webserver} has to " +"be restarted. You can also restart ${webserver} manually executing /etc/init." +"d/${webserver} restart" +msgstr "" +"Denken Sie daran, dass für die Aktivierung der neuen Konfiguration " +"${webserver} neu gestartet werden muss. Sie können ${webserver} auch " +"manuell mittels »/etc/init.d/${webserver} restart« neu starten." + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "Hostname oder IP-Adresse des Poker-Network-Servers:" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "" +"The poker-network server for which poker-web provides a web based interface. " +"It will be queried via its SOAP interface." +msgstr "" +"Der Poker-Network-Server, für den Poker-Web die webbasierte Schnittstelle " +"bereitstellt. Es wird mittels seiner SOAP-Schnittstelle abgefragt." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "Möchten Sie den Poker-Network-Server konfigurieren und betreiben?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "" +"If you want to configure and run a poker-network server, make sure you have " +"administrative rights on a running MySQL server. If you do not want to run " +"the poker-network server on this machine, you will be prompted for the " +"hostname or the IP address of a running poker-network server." +msgstr "" +"Falls Sie einen Poker-Network-Server konfigurieren und betreiben wollen, " +"stellen Sie sicher, dass Sie die administrativen Rechte zum Betrieb des " +"MySQL-Servers haben. Falls Sie den Poker-Network-Server auf dieser Maschine " +"nicht ausführen wollen, werden Sie aufgefordert, den Hostname oder die IP-" +"Adresse für den laufenden Poker-Network-Server einzugeben." + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "Poker-Network-Server-Installation überspringen" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "" +"If you want to run poker-network at a later time, you will need to configure " +"it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "" +"Falls Sie Poker-Network zu einem späteren Zeitpunkt ausführen wollen, müssen " +"Sie es von Hand konfigurieren oder »dpkg-reconfigure python-poker-network« " +"ausführen." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "Hostname oder IP-Adresse des Standard-Poker-Network-Servers:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this poker-network server host as a default, if needed." +msgstr "" +"Die Clients basierend auf dem auf der gleichen Maschine installierten " +"Poker-Network werden in der Lage sein, diesen Poker-Network-Server falls " +"notwendig als Standard zu verwenden." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "Hostname oder IP-Adresse des Standard-Poker-Network-Webservers:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this address to connect to the web part of the poker server." +msgstr "" +"Die Clients basierend auf dem auf der gleichen Maschine installierten " +"Poker-Network, werden in der Lage sein, sich mit dem Webteil des Poker-" +"Servers zu verbinden." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "Möchten Sie die Poker-Network-Roboter betreiben?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "" +"Robot players are simple minded poker players that can be used to exercise " +"the poker server when there are not enough human players connected." +msgstr "" +"Roboter-Spieler sind einfach-gestrickte Pokerspieler, die den Poker-Server " +"verwenden können, wenn nicht genug menschliche Spieler angebunden sind." --- poker-network-1.7.7.orig/debian/po/POTFILES.in +++ poker-network-1.7.7/debian/po/POTFILES.in @@ -0,0 +1,2 @@ +[type: gettext/rfc822deb] poker-web.templates +[type: gettext/rfc822deb] python-poker-network.templates --- poker-network-1.7.7.orig/debian/po/fr.po +++ poker-network-1.7.7/debian/po/fr.po @@ -0,0 +1,162 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# Initial translator: Guilhelm Panaget +msgid "" +msgstr "" +"Project-Id-Version: poker-network\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: 2006-12-03 15:20+0200\n" +"Last-Translator: Thomas Huriaux \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "Serveur(s) web à reconfigurer automatiquement :" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "" +"poker-web supports any web server that PHP does, but this automatic " +"configuration process only supports Apache." +msgstr "" +"Poker-web peut gérer les mêmes serveurs web que PHP, mais la configuration " +"automatique n'est possible qu'avec Apache." + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "Faut-il redémarrer ${webserver} maintenant ?" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "" +"Remember that in order to activate the new configuration ${webserver} has to " +"be restarted. You can also restart ${webserver} manually executing /etc/init." +"d/${webserver} restart" +msgstr "" +"Pour activer la nouvelle configuration, ${webserver} doit être redémarré. " +"Vous pouvez aussi redémarrer ${webserver} en utilisant la commande « /etc/" +"init.d/${webserver} restart »." + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "Nom d'hôte ou adresse IP du serveur poker-network :" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "" +"The poker-network server for which poker-web provides a web based interface. " +"It will be queried via its SOAP interface." +msgstr "" +"Veuillez indiquer le serveur poker-network pour lequel poker-web fournira " +"une interface web. Il sera interrogé via son interface SOAP." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "Faut-il configurer et démarrer le serveur poker-network ?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "" +"If you want to configure and run a poker-network server, make sure you have " +"administrative rights on a running MySQL server. If you do not want to run " +"the poker-network server on this machine, you will be prompted for the " +"hostname or the IP address of a running poker-network server." +msgstr "" +"Vous allez configurer et démarrer le serveur poker-network. Assurez-vous de " +"posséder les droits d'administration sur un serveur MySQL opérationnel. Si " +"vous ne souhaitez pas exécuter poker-network en mode serveur sur cette " +"machine, il vous sera demandé le nom d'hôte ou l'adresse IP d'un serveur " +"poker-network actif." + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "Annulation de l'installation du serveur poker-network" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "" +"If you want to run poker-network at a later time, you will need to configure " +"it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "" +"Si vous souhaitez exécuter poker-network ultérieurement, vous devrez le " +"configurer vous-même ou utiliser la commande « dpkg-reconfigure python-poker-" +"network »." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "Nom d'hôte ou adresse IP du serveur poker-network par défaut :" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this poker-network server host as a default, if needed." +msgstr "" +"Vous pouvez indiquer le serveur poker-network que les clients installés sur " +"cette même machine pourront utiliser par défaut." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "Nom d'hôte ou adresse IP du serveur web poker-network par défaut :" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this address to connect to the web part of the poker server." +msgstr "" +"Veuillez indiquer l'adresse que les clients basés sur poker-network, " +"installés sur la même machine, pourront utiliser pour se connecter au " +"serveur web de poker-network." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "Faut-il lancer les robots poker-network ?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "" +"Robot players are simple minded poker players that can be used to exercise " +"the poker server when there are not enough human players connected." +msgstr "" +"Les robots sont des joueurs de poker rudimentaires qui peuvent être utilisés " +"si le nombre de joueurs humains connectés n'est pas suffisant." --- poker-network-1.7.7.orig/debian/po/pt.po +++ poker-network-1.7.7/debian/po/pt.po @@ -0,0 +1,154 @@ +# Portuguese translations for poker-network package. +# Copyright (C) 2007 Miguel Figueiredo +# This file is distributed under the same license as the poker-network package. +# Miguel Figueiredo , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: poker-network 1.0.36-1\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: 2007-05-11 22:22+0100\n" +"Last-Translator: Miguel Figueiredo \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "Servidor(es) web a reconfigurar automaticamente:" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "" +"poker-web supports any web server that PHP does, but this automatic " +"configuration process only supports Apache." +msgstr "" +"O poker-web suporta qualquer servidor web que o PHP também suporte, mas " +"este processo de configuração automática apenas suporta o Apache." + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "Reiniciar agora o ${webserver}" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "" +"Remember that in order to activate the new configuration ${webserver} has to " +"be restarted. You can also restart ${webserver} manually executing /etc/init." +"d/${webserver} restart" +msgstr "" +"Lembre-se que para activar a nova configuração o ${webserver} tem de ser " +"reiniciado. Você pode também reiniciar manualmente o ${apache} executando " +"/etc/init.d/${webserver} restart" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "Nome da máquina ou endereço IP do servidor poker-network:" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "" +"The poker-network server for which poker-web provides a web based interface. " +"It will be queried via its SOAP interface." +msgstr "" +"O servidor poker-network para o qual o poker-web disponibiliza um interface " +"baseado na web. Será questionado através do seu interface SOAP." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "Deseja configurar e correr o servidor poker-network?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "" +"If you want to configure and run a poker-network server, make sure you have " +"administrative rights on a running MySQL server. If you do not want to run " +"the poker-network server on this machine, you will be prompted for the " +"hostname or the IP address of a running poker-network server." +msgstr "" +"Se deseja configurar e correr um servidor poker-network, assegure-se que tem " +"direitos administrativos num servidor MySQL em execução. Se não deseja correr " +"o servidor poker-network nesta máquina, ser-lhe-á perguntado o nome da " +"máquina ou o endereço IP de um servidor poker-network em execução." + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "Saltar a instalação do servidor poker-network" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "" +"If you want to run poker-network at a later time, you will need to configure " +"it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "" +"Se você quiser correr posteriormente o poker-network, você terá de " +"configurá-lo manualmente ou correr dpkg-reconfigure python-poker-network." + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "Nome da máquina ou endereço IP do servidor poker-network por omissão:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this poker-network server host as a default, if needed." +msgstr "" +"Os clientes baseados no poker-network instalados na mesma máquina serão " +"capazes de utilizar esta máquina servidor poker-network por omissão se " +"necessário." + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "Nome da máquina ou endereço IP do servidor web, por omissão poker-network:" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this address to connect to the web part of the poker server." +msgstr "" +"Os clientes baseados no poker-network instalados na mesma máquina serão " +"capazes de utilizar este endereço para ligar à parte do servidor web do " +"servidor de poker." + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "Deseja correr os robots poker-network?" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "" +"Robot players are simple minded poker players that can be used to exercise " +"the poker server when there are not enough human players connected." +msgstr "" +"Jogadores robot são jogadores de poker simples que podem ser utilizados para " +"tomarem lugar no servidor de poker quando não estão ligados jogadores humanos " +"suficientes." --- poker-network-1.7.7.orig/debian/po/templates.pot +++ poker-network-1.7.7/debian/po/templates.pot @@ -0,0 +1,132 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2002-2008, Various Authors. See LICENSE file for details. +# This file is distributed under the same license as the poker-network package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: loic@debian.org\n" +"POT-Creation-Date: 2006-11-30 12:19+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "Web server(s) to reconfigure automatically:" +msgstr "" + +#. Type: multiselect +#. Description +#: ../poker-web.templates:1001 +msgid "" +"poker-web supports any web server that PHP does, but this automatic " +"configuration process only supports Apache." +msgstr "" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "Restart ${webserver} now?" +msgstr "" + +#. Type: boolean +#. Description +#: ../poker-web.templates:2001 +msgid "" +"Remember that in order to activate the new configuration ${webserver} has to " +"be restarted. You can also restart ${webserver} manually executing /etc/init." +"d/${webserver} restart" +msgstr "" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "Hostname or IP address of the poker-network server:" +msgstr "" + +#. Type: string +#. Description +#: ../poker-web.templates:3001 +msgid "" +"The poker-network server for which poker-web provides a web based interface. " +"It will be queried via its SOAP interface." +msgstr "" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "Do you want to configure and run the poker-network server?" +msgstr "" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:1001 +msgid "" +"If you want to configure and run a poker-network server, make sure you have " +"administrative rights on a running MySQL server. If you do not want to run " +"the poker-network server on this machine, you will be prompted for the " +"hostname or the IP address of a running poker-network server." +msgstr "" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "Skipping poker-network server installation" +msgstr "" + +#. Type: note +#. Description +#: ../python-poker-network.templates:2001 +msgid "" +"If you want to run poker-network at a later time, you will need to configure " +"it by hand or by running dpkg-reconfigure python-poker-network." +msgstr "" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "Hostname or IP address of the default poker-network server:" +msgstr "" + +#. Type: string +#. Description +#: ../python-poker-network.templates:3001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this poker-network server host as a default, if needed." +msgstr "" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "Hostname or IP address of the default poker-network web server:" +msgstr "" + +#. Type: string +#. Description +#: ../python-poker-network.templates:4001 +msgid "" +"The clients based on poker-network installed on the same machine will be " +"able to use this address to connect to the web part of the poker server." +msgstr "" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "Do you want to run the poker-network robots?" +msgstr "" + +#. Type: boolean +#. Description +#: ../python-poker-network.templates:5001 +msgid "" +"Robot players are simple minded poker players that can be used to exercise " +"the poker server when there are not enough human players connected." +msgstr "" --- poker-network-1.7.7.orig/gentoo/dev-games/poker-network/poker-network-1.0.34-r1.ebuild +++ poker-network-1.7.7/gentoo/dev-games/poker-network/poker-network-1.0.34-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header$ + +inherit eutils + +DESCRIPTION="poker-network is a python library that implements a poker game (server and client)" +HOMEPAGE="http://gna.org/projects/pokersource" +MY_P="${PN}-${PV}.tar.gz" +SRC_URI="http://download.gna.org/pokersource/sources/${MY_P}" +SLOT="0" +LICENSE="GPL-2.1" +KEYWORDS="x86 amd64" +IUSE="" + +DEPEND=">=sys-devel/automake-1.9.0 + dev-util/pkgconfig + >=dev-lang/python-2.4.0 + dev-python/soappy + dev-python/mysql-python + dev-python/pygtk + dev-python/twisted + dev-util/glade + dev-libs/glib + >=dev-games/poker-engine-1.0.22 + dev-games/pypoker-eval + net-misc/rsync" + +src_unpack() { + unpack ${MY_P} + if ls ${FILESDIR}/${PVR}*.patch 2>/dev/null + then + for i in ${FILESDIR}/${PVR}*.patch + do + epatch $i + done + fi +} + + +src_install () { + make install DESTDIR=${D} || die "einstall failed" +} --- poker-network-1.7.7.orig/pokernetwork/pokerbothandeval.py +++ poker-network-1.7.7/pokernetwork/pokerbothandeval.py @@ -0,0 +1,313 @@ +# +# Copyright (C) 2007, 2008 Loic Dachary +# +# This software's license gives you freedom; you can copy, convey, +# propagate, redistribute and/or modify this program under the terms of +# the GNU Affero General Public License (AGPL) as published by the Free +# Software Foundation (FSF), either version 3 of the License, or (at your +# option) any later version of the AGPL published by the FSF. +# +# 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 Affero +# General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program in a file in the toplevel directory called +# "AGPLv3". If not, see . +# Authors: +# Thomas Johnson +# +from pokereval import PokerEval +class PokerHandEval: + def __init__(self): + self.hand_groups = { + "A":["AA", "AKs", "KK"], + "B":["AK", "QQ"], + "C":["JJ", "TT"], + "D":["AQs", "AQ", "AJs", "99", "88"], + "E":["AJ","ATs","KQs", "77","66","55"], + "F":["AT","KQ","KJs","QJs","44","33","22"], + "G":["A9s","A8s","A7s","A6s","A5s","A4s","A3s","A2s","KTs","QTs","JTs","J9s","T9s","98s"], + "H":["KJ","KT","QJ","J8s","T8s","87s","76s"] + } + self.hand_values = {"A":13,"K":12,"Q":11,"J":10, "T":9,"9":8,"8":7,"7":6,"6":5,"5":4,"4":3,"3":2,"2":1} + self.odds_map = { + "flop":{1:0.045,2:0.088,3:0.13,4:0.172,5:0.212,6:0.252,7:0.29,8:0.327,9:0.364,10:0.399,11:0.433,12:0.467,13:0.499,14:0.53,15:0.561,16:0.59,17:0.618}, + "turn":{1:0.023,2:0.045,3:0.68,4:0.091,5:0.114,6:0.136,7:0.159,8:0.182,9:0.205,10:0.227,11:0.25,12:0.273,13:0.295,14:0.318,15:0.341,16:0.364,17:0.386} + } + self.eval = PokerEval() + def prepareHand(self, hand): + h = hand.split(" ") + if self.hand_values[h[1][0]] > self.hand_values[h[0][0]]: + self.hand = "%s%s" % (h[1][0],h[0][0]) + else: + self.hand = "%s%s" % (h[0][0],h[1][0]) + if h[0][1] == h[1][1]: + self.hand += "s" + def getHandGroup(self): + for group in self.hand_groups: + if self.hand in self.hand_groups[group]: + return group + return False + def getHandValue(self, game, serial): + hand = game.getHandAsString(serial) + board = game.getBoardAsString() + board_list = board.split(" ") + if len(board_list) < 5: + for i in range(len(board_list), 5): + board_list.append("__") + hand_list = hand.split(" ") + cards = hand_list + board_list + return self.eval.best_hand("hi", self.eval.string2card(cards), [] ) + def parseHistory(self, hist): + self.round_action = {} + self.action2serials = { + "call":[], + "raise":[], + "fold":[] + } + self.serial2action = {} + ret = "" + for event in hist: + type = event[0] + if type in ["fold","check","call","raise"]: + if len(event) == 3: + (action, serial, amount) = event + else: + (action,serial) = event + amount = False + ret = "action: %s, serial:%d" % (action, serial) + if amount: + ret += ", amount = %d" % amount + self.round_action[serial] = [action, amount] + else: + self.round_action[serial] = [action] + self.serial2action[serial] = action + if action in self.action2serials.keys(): + if not serial in self.action2serials[action]: + self.action2serials[action].append(serial) + def getPosition(self, game, serial): + me = game.serial2player[serial] + players = game.serialsAllSorted() + for player in players: + user = game.serial2player[player] + user_positions = {} + player_seats = {} + i=1 + for p in game.serialsAllSorted(): + user = game.serial2player[p] + player_seats[user.seat] = p + max_seat = len(player_seats) + early = max_seat / 3 + middle = early * 2 + self.my_seat = me.seat + self.serial2position = {} + self.position2serials = { + "early":[], + "middle":[], + "late":[] + } + for p in player_seats.keys(): + player_serial = player_seats[p] + if i <= early: + position = "early" + elif i >= (early + 1) and i <= middle: + position = "middle" + else: + position = "late" + if not player_serial in self.serial2position.keys(): + self.serial2position[player_serial] = position + if not player_serial in self.position2serials[position]: + self.position2serials[position].append(player_serial) + if p == self.my_seat: + self.position = position + i += 1 +class PreFlopHandEval(PokerHandEval): + def hasPreflopRaise(self, game): + self.parseHistory(game.historyGet()) + if len(self.action2serials["raise"]) != 0: + return True + return False + def evalHand(self, hand, game, serial): + self.prepareHand(hand) + self.hand_group = self.getHandGroup() + action = "fold" + s = game.serialsAllSorted() + big_blind = game.serial2player[s[1]] + small_blind = game.serial2player[s[0]] + me = game.serial2player[serial] + self.getPosition(game, serial) + raised = self.hasPreflopRaise(game) + if me.name in [big_blind.name,small_blind.name]: + in_blinds = True + else: + in_blinds = False + if self.hand_group != False: + if raised != False: + user = game.serial2player[self.action2serials["raise"][0]] + self.raised_from = self.serial2position[self.action2serials["raise"][0]] + if self.position == "early": + if in_blinds: + if self.raised_from == "early": + if self.hand_group == "A": + action = "raise" + elif self.hand_group in ["B","C","D"]: + action = "call" + else: + action = "fold" + elif self.raised_from == "middle": + if self.hand_group in ["A","B","C"]: + action = "raise" + elif self.hand_group in ["D","E"]: + action = "call" + else: + action = "fold" + else: + if self.hand_group in ["A","B","C","D"]: + action = "raise" + elif self.hand_group in ["E","F"]: + action = "call" + else: + action = "fold" + else: + if self.hand_group == "A": + action = "raise" + elif self.hand_group in ["B","C"]: + action = "call" + else: + action = "fold" + elif self.position == "middle": + if self.hand_group in ["A","B"]: + action = "raise" + elif self.hand_group == "C": + action = "call" + else: + action = "fold" + else: + if self.hand_group in ["A", "B"]: + action = "raise" + elif self.hand_group in ["C","D"]: + action = "call" + else: + action = "fold" + else: + if self.position == "early": + if self.hand_group in ["A","B","C","D"]: + action = "raise" + else: + action = "fold" + elif self.position == "middle": + if self.hand_group in ["A","B","C","D", "E"]: + action = "raise" + elif self.hand_group in ["F", "G"]: + action = "call" + else: + action = "fold" + else: + if self.hand_group in ["A","B","C","D", "E", "F"]: + action = "raise" + elif self.hand_group in ["G","H"]: + action = "call" + else: + actions = game.possibleActions(serial) + if not "fold" in actions: + action = "check" + else: + action = "fold" + return action +class PostFlopHandEval(PokerHandEval): + def evalHand(self, ev, game, serial): + action = "fold" + hand = game.getHandAsString(serial) + board = game.getBoardAsString() + hand_value = self.getHandValue(game, serial) + me = game.serial2player[serial] + if hand_value[0] == "NoPair": + if not game.betsNull() and game.state in ["flop","third","turn","fourth"]: + pot = game.getPotAmount() + bet = game.getUncalled() + draw = EvalDraws(self.hand_values, hand, board) + has_draw = draw.lookForDraws() + if has_draw != False: + odds_map = False + if game.state in ["flop", "third"]: + odds_map = self.odds_map["flop"] + elif game.state in ["turn", "fourth"]: + odds_map = self.odds_map["turn"] + if odds_map != False: + outs_map = {"GutShotStraight":4,"OpenEndedStraight":8,"FlushDraw":9} + outs_map["GutShotStraightFlush"] = outs_map["FlushDraw"] + (outs_map["GutShotStraight"] - 1) + outs_map["OpenEndedStraightFlush"] = outs_map["FlushDraw"] + (outs_map["OpenEndedStraight"] - 2) + odds_win = odds_map[outs_map[has_draw]] + my_ev = (pot * odds_win) - (bet * (1 - odds_win)) + if my_ev >= 0: + action = "call" + else: + action = "fold" + else: + action = "check" + else: + action = "check" + elif hand_value[0] == "OnePair": + board_list = [] + hand_list = hand.split(" ") + draw = EvalDraws(self.hand_values, hand, board) + has_draw = draw.lookForDraws() + for card in board.split(" "): + if self.hand_values[card[0]] > self.hand_values[hand_list[0][0]]: + if has_draw != False: + action = "call" + else: + action = "check" + elif hand_value[0] in ["TwoPair","Trips","Straight","Flush","Flhouse","Quads","StFlush"]: + action = "raise" + return action +class EvalDraws: + def __init__(self, had_values, hand, board): + self.eval = PokerEval() + self.hand_values = {"A":13,"K":12,"Q":11,"J":10, "T":9,"9":8,"8":7,"7":6,"6":5,"5":4,"4":3,"3":2,"2":1} + self.hand = hand + self.board = board + def convertHandValue(self, cards): + deck = [] + for card in cards: + deck.append(self.hand_values[card[0]]) + return sorted(deck) + def lookForDraws(self): + h = self.hand.split(" ") + b = self.board.split(" ") + cards = h + b + has_flush = self.lookForFlushDraw(cards) + if has_flush != False: + return has_flush + has_straight = self.lookForStraightDraw(cards, False) + if has_straight != False: + return has_straight + return False + def lookForFlushDraw(self, cards): + suits = {"s":0,"c":0,"h":0,"d":0} + for card in cards: + if card != "__": + suits[card[1]] += 1 + for suit in suits: + if suits[suit] > 3: + has_straight = self.lookForStraightDraw(cards, True) + if has_straight != False: + return "%s%s" %(has_straight, "Flush") + return "FlushDraw" + return False + def lookForStraightDraw(self, cards, flush = False): + if flush != False: + deck = sorted(self.eval.string2card(cards)) + else: + deck = self.convertHandValue(cards) + for k,v in enumerate(deck): + max_len = 3 + if (k + max_len) < len(deck) : + my_range = range(v, (v + (max_len + 1))) + if deck[k+max_len] == my_range[len(my_range) - 1]: + return "OpenEndedStraight" + elif deck[k+max_len] == ((my_range[len(my_range) - 1] +1) or (my_range[len(my_range) - 1] - 1)): + return "GutShotStraight" + return False