diff --git a/packaging/debian/changelog b/packaging/debian/changelog new file mode 100644 index 00000000..84ecbce5 --- /dev/null +++ b/packaging/debian/changelog @@ -0,0 +1,5 @@ +free-poker-tools (0.10.99) unstable; urgency=low + + * Initial packaging release. + + -- Mika Bostrom Thu, 20 Aug 2009 06:30:53 +0300 diff --git a/packaging/debian/compat b/packaging/debian/compat new file mode 100644 index 00000000..7f8f011e --- /dev/null +++ b/packaging/debian/compat @@ -0,0 +1 @@ +7 diff --git a/packaging/debian/control b/packaging/debian/control new file mode 100644 index 00000000..93660791 --- /dev/null +++ b/packaging/debian/control @@ -0,0 +1,24 @@ +Source: free-poker-tools +Maintainer: Mika Bostrom +Section: games +Priority: extra +Build-Depends: debhelper, python-support +Standards-Version: 3.8.0 + +Package: python-fpdb +Architecture: any +Section: games +Priority: extra +Depends: ${python:Depends}, python-gtk2, python-matplotlib, + python-support, mysql-server | postgresql | python-pysqlite2, + python-psycopg2 | python-mysqldb +Suggests: wine +Description: free poker database with HUD + FPDB is a statistics tool for online poker. It supports most sites + and several games. Most prominent feature is its heads-up display + (HUD) which shows statistical details for players in real time. + . + Due to the fact that most online poker clients are Windows-only, + you may need to install wine. + . + FPDB is under heavy development. diff --git a/packaging/debian/copyright b/packaging/debian/copyright new file mode 100644 index 00000000..8796c11a --- /dev/null +++ b/packaging/debian/copyright @@ -0,0 +1,7 @@ +This package was debianised by Mika Bostrom + +Upstream authors: ... + +License: AGPL + +Copyright (C) 2008- The FPDB developers diff --git a/packaging/debian/links b/packaging/debian/links new file mode 100644 index 00000000..01d1c490 --- /dev/null +++ b/packaging/debian/links @@ -0,0 +1 @@ +/usr/share/python-support/python-fpdb/fpdb/fpdb.py /usr/bin/fpdb diff --git a/packaging/debian/python-fpdb.postinst b/packaging/debian/python-fpdb.postinst new file mode 100644 index 00000000..1f618958 --- /dev/null +++ b/packaging/debian/python-fpdb.postinst @@ -0,0 +1,5 @@ +#!/bin/sh + +# When installed into .../fpdb/ the script gets mode 644 +# Note: "dh_fixperms -Xfpdb.py" did not work, hence this hack +chmod 755 /usr/bin/fpdb diff --git a/packaging/debian/pyversions b/packaging/debian/pyversions new file mode 100644 index 00000000..8b253bc3 --- /dev/null +++ b/packaging/debian/pyversions @@ -0,0 +1 @@ +2.4- diff --git a/packaging/debian/rules b/packaging/debian/rules new file mode 100755 index 00000000..2ae2c776 --- /dev/null +++ b/packaging/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +PACKAGE := python-fpdb + +build: build-stamp +build-stamp: + dh_testdir + python setup.py build + touch $@ + +clean: + dh_testdir + dh_testroot + python setup.py clean + rm -rf build + dh_clean build-stamp + +install: build + dh_testdir + dh_testroot + dh_prep || dh_clean -k + dh_installdirs + # + python setup.py install --root=debian/$(PACKAGE) --prefix=/usr --no-compile + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_link + dh_compress + dh_fixperms + dh_pysupport + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + diff --git a/pyfpdb/Database.py b/pyfpdb/Database.py index 82001344..019f430e 100755 --- a/pyfpdb/Database.py +++ b/pyfpdb/Database.py @@ -1014,6 +1014,8 @@ class Database: c.execute("INSERT INTO Sites (name,currency) VALUES ('PartyPoker', 'USD')") if self.backend == self.SQLITE: c.execute("INSERT INTO TourneyTypes (id, siteId, buyin, fee) VALUES (NULL, 1, 0, 0);") + elif self.backend == self.PGSQL: + c.execute("insert into TourneyTypes values (0,1,0,0,0,'0','0',null,'0','0','0');") else: c.execute("insert into TourneyTypes values (0,1,0,0,0,0,0,null,0,0,0);") diff --git a/pyfpdb/SQL.py b/pyfpdb/SQL.py index c8639fbc..986f9762 100644 --- a/pyfpdb/SQL.py +++ b/pyfpdb/SQL.py @@ -400,7 +400,7 @@ class Sql: endTime timestamp without time zone, buyinChips INT, tourneyName varchar(40), - matrixIdProcessed SMALLINT UNSIGNED DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */ + matrixIdProcessed SMALLINT DEFAULT 0, /* Mask use : 1=Positionnal Winnings|2=Match1|4=Match2|...|pow(2,n)=Matchn */ rebuyChips INT DEFAULT 0, addonChips INT DEFAULT 0, rebuyAmount INT DEFAULT 0, diff --git a/setup.py b/setup.py new file mode 100644 index 00000000..668693cf --- /dev/null +++ b/setup.py @@ -0,0 +1,17 @@ +# setup.py +# Python packaging for fpdb + +from distutils.core import setup + +setup(name = 'fpdb', + description = 'Free Poker Database', + version = '0.10.999', + author = 'FPDB team', + author_email = 'fpdb-main@lists.sourceforge.net', + packages = ['fpdb'], + package_dir = { 'fpdb' : 'pyfpdb' }, + data_files = [ + ('/usr/share/doc/python-fpdb', + ['docs/readme.txt', 'docs/release-notes.txt', + 'docs/tabledesign.html', 'THANKS.txt'])] +)