p73 - updated and much improved ebuild
This commit is contained in:
		
							parent
							
								
									37e111067b
								
							
						
					
					
						commit
						6fc13a970b
					
				| 
						 | 
					@ -25,7 +25,7 @@ cp -R pyfpdb fpdb-$1/
 | 
				
			||||||
cp -R regression-test fpdb-$1/
 | 
					cp -R regression-test fpdb-$1/
 | 
				
			||||||
cp -R utils fpdb-$1/
 | 
					cp -R utils fpdb-$1/
 | 
				
			||||||
cd fpdb-$1
 | 
					cd fpdb-$1
 | 
				
			||||||
zip -r ../fpdb-$1.zip *
 | 
					zip -r ../fpdb-1.0_$1.zip *
 | 
				
			||||||
tar -cf - * | bzip2 > ../fpdb-$1.tar.bz2
 | 
					tar -cf - * | bzip2 > ../fpdb-1.0_$1.tar.bz2
 | 
				
			||||||
cd ..
 | 
					cd ..
 | 
				
			||||||
rm -r fpdb-$1
 | 
					rm -r fpdb-$1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,16 +6,15 @@ alpha3 (release 1Sep?)
 | 
				
			||||||
======
 | 
					======
 | 
				
			||||||
(fixed by ray) auto import only runs on one file per start
 | 
					(fixed by ray) auto import only runs on one file per start
 | 
				
			||||||
find correct sf logo link
 | 
					find correct sf logo link
 | 
				
			||||||
hud displayed 0/3 but a 2 digit percentage for W$SD?
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
show database version error in GUI and use fpdb_db class const for it, add it to title
 | 
					show database version error in GUI and use fpdb_db class const for it, add it to title
 | 
				
			||||||
 | 
					update install-in-gentoo.txt and install-in-ubuntu.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
anonymiser script to generate testdata without making a dozen find&replace all... remember to replace hand no with running no
 | 
					anonymiser script to generate testdata without making a dozen find&replace all... remember to replace hand no with running no
 | 
				
			||||||
specify NOT NULL on almost all table columns
 | 
					specify NOT NULL on almost all table columns
 | 
				
			||||||
store raw hand in db and write reimport function using the raw hand field
 | 
					store raw hand in db and write reimport function using the raw hand field
 | 
				
			||||||
make windows use correct language version of Appdata, e.g. Anwendungdaten. http://mail.python.org/pipermail/python-list/2005-September/341702.html
 | 
					make windows use correct language version of Appdata, e.g. Anwendungdaten. http://mail.python.org/pipermail/python-list/2005-September/341702.html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ebuild: symlink doesnt work, USE gtk, more automation, update install-in-gentoo.txt, set permissions in it, copy docs to correct place, use games eclass or whatever to get games group notice, print notice about install-in-gentoo.txt and mysql --config
 | 
					 | 
				
			||||||
ftp: read maxSeats
 | 
					ftp: read maxSeats
 | 
				
			||||||
make sure totalProfit shows actual profit rather than winnings.
 | 
					make sure totalProfit shows actual profit rather than winnings.
 | 
				
			||||||
update abbreviations.txt
 | 
					update abbreviations.txt
 | 
				
			||||||
| 
						 | 
					@ -28,6 +27,8 @@ printhand each and the 2/3 relevant printplayerflags respectively on ps-lhe-ring
 | 
				
			||||||
 | 
					
 | 
				
			||||||
before beta
 | 
					before beta
 | 
				
			||||||
===========
 | 
					===========
 | 
				
			||||||
 | 
					ebuild: USE gtk, set permissions in it, copy docs to correct place, use games eclass or whatever to get games group notice, git-ebuild, get it into sunrise
 | 
				
			||||||
 | 
					make hud display W$SD etc as fraction.
 | 
				
			||||||
add dedicated update page
 | 
					add dedicated update page
 | 
				
			||||||
update status or make a support matrix table for website
 | 
					update status or make a support matrix table for website
 | 
				
			||||||
separate db table design version and last bugfix in importer
 | 
					separate db table design version and last bugfix in importer
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,37 +0,0 @@
 | 
				
			||||||
# Copyright 1999-2008 Gentoo Foundation
 | 
					 | 
				
			||||||
# Distributed under the terms of the GNU General Public License v2
 | 
					 | 
				
			||||||
# $Header: /var/cvsroot/gentoo-x86/games-util/fpdb/fpdb-1.0_alpha1_p27.ebuild,v 1.0 2008/08/13 05:45:00 jer Exp $
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
NEED_PYTHON=2.3
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#inherit distutils
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
MY_P="fpdb-${PV}"
 | 
					 | 
				
			||||||
DESCRIPTION="A database program to track your online poker games"
 | 
					 | 
				
			||||||
HOMEPAGE="https://sourceforge.net/projects/fpdb/"
 | 
					 | 
				
			||||||
SRC_URI="mirror://sourceforge/fpdb/fpdb-alpha1-git27.tar.bz2"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
LICENSE="AGPL-3"
 | 
					 | 
				
			||||||
SLOT="0"
 | 
					 | 
				
			||||||
KEYWORDS="~amd64 ~x86"
 | 
					 | 
				
			||||||
#note: this should work on other architectures too, please send me your experiences
 | 
					 | 
				
			||||||
IUSE=""
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
RDEPEND="virtual/mysql
 | 
					 | 
				
			||||||
	dev-python/mysql-python
 | 
					 | 
				
			||||||
	>=x11-libs/gtk+-2.10
 | 
					 | 
				
			||||||
	dev-python/pygtk"
 | 
					 | 
				
			||||||
DEPEND="${RDEPEND}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
src_install() {
 | 
					 | 
				
			||||||
	DIRINST="${D}usr/share/games/fpdb/"
 | 
					 | 
				
			||||||
	mkdir -p "${DIRINST}"
 | 
					 | 
				
			||||||
	cp -R * "${DIRINST}" || die
 | 
					 | 
				
			||||||
	
 | 
					 | 
				
			||||||
	DIRBIN="${D}usr/bin/games/"
 | 
					 | 
				
			||||||
	mkdir -p "${DIRBIN}"
 | 
					 | 
				
			||||||
	#echo "dirs"
 | 
					 | 
				
			||||||
	#echo "${DIRINST}pyfpdb/fpdb.py"
 | 
					 | 
				
			||||||
	#echo 
 | 
					 | 
				
			||||||
	ln -s "${DIRINST}pyfpdb/fpdb.py" "${DIRBIN}/fpdb.py" || die
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										59
									
								
								packaging/fpdb-1.0_alpha2_p68.ebuild
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										59
									
								
								packaging/fpdb-1.0_alpha2_p68.ebuild
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,59 @@
 | 
				
			||||||
 | 
					# Copyright 1999-2008 Gentoo Foundation
 | 
				
			||||||
 | 
					# Distributed under the terms of the GNU General Public License v2
 | 
				
			||||||
 | 
					# $Header: /var/cvsroot/gentoo-x86/games-util/fpdb/fpdb-1.0_alpha2_p68.ebuild,v 1.0 2008/08/31 23:00:00 steffen@sycamoretest.info Exp $
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					NEED_PYTHON=2.3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#inherit distutils
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					MY_P="fpdb-${PV}"
 | 
				
			||||||
 | 
					DESCRIPTION="A database program to track your online poker games"
 | 
				
			||||||
 | 
					HOMEPAGE="https://sourceforge.net/projects/fpdb/"
 | 
				
			||||||
 | 
					#SRC_URI="mirror://sourceforge/fpdb/${MY_P}.tar.bz2"
 | 
				
			||||||
 | 
					SRC_URI="mirror://sourceforge/fpdb/fpdb-alpha2-p68.tar.bz2"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					LICENSE="AGPL-3"
 | 
				
			||||||
 | 
					SLOT="0"
 | 
				
			||||||
 | 
					KEYWORDS="~amd64 ~x86"
 | 
				
			||||||
 | 
					#note: this should work on other architectures too, please send me your experiences
 | 
				
			||||||
 | 
					IUSE=""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RDEPEND="virtual/mysql
 | 
				
			||||||
 | 
						dev-python/mysql-python
 | 
				
			||||||
 | 
						>=x11-libs/gtk+-2.10
 | 
				
			||||||
 | 
						dev-python/pygtk"
 | 
				
			||||||
 | 
					DEPEND="${RDEPEND}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					src_install() {
 | 
				
			||||||
 | 
						DIRINST="${D}usr/share/games/fpdb/"
 | 
				
			||||||
 | 
						mkdir -p "${DIRINST}"
 | 
				
			||||||
 | 
						cp -R * "${DIRINST}" || die
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
						DIRBIN="${D}usr/games/bin/"
 | 
				
			||||||
 | 
						mkdir -p "${DIRBIN}"
 | 
				
			||||||
 | 
						echo "pathes"
 | 
				
			||||||
 | 
						echo "${DIRINST}pyfpdb/fpdb.py"
 | 
				
			||||||
 | 
						echo "${DIRBIN}fpdb.py"
 | 
				
			||||||
 | 
						echo 
 | 
				
			||||||
 | 
						echo "cd /usr/share/games/fpdb/pyfpdb/ && python fpdb.py" > "${DIRBIN}fpdb" || die
 | 
				
			||||||
 | 
						chmod 755 "${DIRBIN}fpdb" || die
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#src_test() {
 | 
				
			||||||
 | 
					#}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pkg_postinst() {
 | 
				
			||||||
 | 
						elog "Fpdb has been installed and can be called by executing /usr/games/bin/fpdb.py"
 | 
				
			||||||
 | 
						elog "You need to perform a couple more steps manually."
 | 
				
			||||||
 | 
						elog "Please also make sure you followed instructions from previous emerges, in particular make sure you configured mysql and set a root pw for it"
 | 
				
			||||||
 | 
						elog "Now run this command to connect to MySQL: mysql --user=root --password=yourPassword"
 | 
				
			||||||
 | 
						elog "In the mysql command line interface you need to type these two lines (make sure you get the ; at the end)"
 | 
				
			||||||
 | 
						elog "In the second line replace \"newPassword\" with a password of your choice"
 | 
				
			||||||
 | 
						elog "CREATE DATABASE fpdb;"
 | 
				
			||||||
 | 
						elog "GRANT ALL PRIVILEGES ON fpdb.* TO 'fpdb'@'localhost' IDENTIFIED BY 'newPassword' WITH GRANT OPTION;"
 | 
				
			||||||
 | 
						elog "Finally copy the default config file from ${DIRINST}docs/default.conf to ~/.fpdb/ for every user that is to use fpdb."
 | 
				
			||||||
 | 
						elog "You will need to edit the default.conf, in particular you need to replace the password with what you entered in the \"GRANT ALL...\""
 | 
				
			||||||
 | 
						elog "Finally run the GUI and click the menu database -> recreate tables"
 | 
				
			||||||
 | 
						elog "That's it! See our webpage at http://fpdb.sourceforge.net for more documentation"
 | 
				
			||||||
 | 
						elog " "
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user