aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2008-02-02 07:44:06 +0800
committernivit <nivit@FreeBSD.org>2008-02-02 07:44:06 +0800
commit3545b5cdbe181587f464e6b0866e3eb567fe70a1 (patch)
tree0e74e4ff7c11236f399e9a9f7a2ce1293a5f96ff /games
parent6190af977fc071e085dee001066dcbbba389ea33 (diff)
downloadfreebsd-ports-gnome-3545b5cdbe181587f464e6b0866e3eb567fe70a1.tar.gz
freebsd-ports-gnome-3545b5cdbe181587f464e6b0866e3eb567fe70a1.tar.zst
freebsd-ports-gnome-3545b5cdbe181587f464e6b0866e3eb567fe70a1.zip
MKGI Chess Club is a chess playing server with a pure Web interface.
It features complete player profile management, full HTML email notification with embedded board display. It also includes an interface to match against chess engines such as gnuchess or phalanx. WWW: http://sourceforge.net/projects/mkgichessclub
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/mkgichessclub/Makefile57
-rw-r--r--games/mkgichessclub/distinfo3
-rw-r--r--games/mkgichessclub/files/pkg-message.in51
-rw-r--r--games/mkgichessclub/pkg-descr6
-rw-r--r--games/mkgichessclub/pkg-plist140
6 files changed, 258 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 410d0313c19c..91d28f42d789 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -473,6 +473,7 @@
SUBDIR += mindguard
SUBDIR += mirrormagic
SUBDIR += miscom
+ SUBDIR += mkgichessclub
SUBDIR += mkhexgrid
SUBDIR += monkeybubble
SUBDIR += monopd
diff --git a/games/mkgichessclub/Makefile b/games/mkgichessclub/Makefile
new file mode 100644
index 000000000000..83f80d1ed49a
--- /dev/null
+++ b/games/mkgichessclub/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: mkgichessclub
+# Date created: 2008-01-11
+# Whom: Nicola Vitale <nivit@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mkgichessclub
+PORTVERSION= 2.1.0
+#PORTREVISION= 0
+CATEGORIES= games
+MASTER_SITES= SF
+DISTNAME= MKGIChessClub-${PORTVERSION}
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= A chess playing server with a pure web interface
+
+RUN_DEPENDS= mysql-server>=4:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
+
+OPTIONS= GNUCHESS "Install gnuchess robot" on \
+ PHALANX "Install phalanx robot" on
+
+NO_BUILD= yes
+
+SUB_FILES= pkg-message
+
+USE_MYSQL= yes
+USE_PHP= mysql pcre session
+USE_PYTHON= yes
+
+WRKSRC= ${WRKDIR}/MKGIChessClub-${PORTVERSION}
+
+do-install:
+ ${MKDIR} ${DATADIR}; cd ${WRKSRC}; \
+ ${INSTALL_DATA} database/* ${DATADIR}; \
+ ${MKDIR} ${WWWDIR}; cd www; ${CP} -R . ${WWWDIR}
+
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}; \
+ ${INSTALL_DATA} ${WRKSRC}/README.INSTALL ${DOCSDIR}
+.endif
+
+# pkg-message taken from www/b2evolution
+post-install:
+ ${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.pre.mk>
+
+.if defined (WITH_GNUCHESS)
+RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess
+.endif
+
+.if defined (WITH_PHALANX)
+RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/games/mkgichessclub/distinfo b/games/mkgichessclub/distinfo
new file mode 100644
index 000000000000..a26ca6c64fb5
--- /dev/null
+++ b/games/mkgichessclub/distinfo
@@ -0,0 +1,3 @@
+MD5 (MKGIChessClub-2.1.0.tar.gz) = e844e026abf3ff05f875593234e39776
+SHA256 (MKGIChessClub-2.1.0.tar.gz) = 75de9539b1f0809ae71a7f02e6bc6a59a2e81ef3b611a69cf12d518891eb3897
+SIZE (MKGIChessClub-2.1.0.tar.gz) = 510388
diff --git a/games/mkgichessclub/files/pkg-message.in b/games/mkgichessclub/files/pkg-message.in
new file mode 100644
index 000000000000..1db8a0293653
--- /dev/null
+++ b/games/mkgichessclub/files/pkg-message.in
@@ -0,0 +1,51 @@
+======================================================================
+
+Minimal setup
+
+1. Make sure your mysql-server is running
+
+2. Create an account and a database on the MySQL server
+
+ # mysqladmin -u root -p create mkgichessclub
+
+ (in mysql root's password is empty unless you have set it in advance).
+
+3. Create a mysql user/password for the mkgichessclub database:
+ (change user and/or password if required)
+
+ # mysql -u root -p
+ mysql> GRANT ALL ON mkgichessclub.* TO mkgichessclub@localhost
+ IDENTIFIED BY 'mkgichessclubpassword';
+ mysql> FLUSH PRIVILEGES;
+ mysql> QUIT;
+
+4. Run the create_database.sql script to create all the tables.
+
+ # mysql mkgichessclub < %%DATADIR%%/create_database.sql
+
+5. Run the insert_initial_data.sql script to populate the database.
+
+ # mysql mkgichessclub < %%DATADIR%%/insert_initial_data.sql
+
+6. Copy
+
+ %%WWWDIR%%/local_settings.php_DIST
+ to
+ %%WWWDIR%%/local_settings.php.
+
+ Open it and customise it to match your settings.
+
+7. Add the following to your apache config (or a similar directive if
+ you use another web server), and restart.
+
+ #
+ # Directives to allow use of mkgichessclub
+ #
+ Alias /mkgichessclub/ "%%WWWDIR%%/"
+ #
+
+8. Open MKGI Chess Club page in your web browser
+
+ http://localhost/mkgichessclub/
+
+==================================================================
diff --git a/games/mkgichessclub/pkg-descr b/games/mkgichessclub/pkg-descr
new file mode 100644
index 000000000000..3abdbad4f838
--- /dev/null
+++ b/games/mkgichessclub/pkg-descr
@@ -0,0 +1,6 @@
+MKGI Chess Club is a chess playing server with a pure Web interface.
+It features complete player profile management, full HTML email notification
+with embedded board display. It also includes an interface to match against
+chess engines such as gnuchess or phalanx.
+
+WWW: http://sourceforge.net/projects/mkgichessclub
diff --git a/games/mkgichessclub/pkg-plist b/games/mkgichessclub/pkg-plist
new file mode 100644
index 000000000000..3631b6aa0748
--- /dev/null
+++ b/games/mkgichessclub/pkg-plist
@@ -0,0 +1,140 @@
+@comment $FreeBSD$
+%%PORTDOCS%%%%DOCSDIR%%/README.INSTALL
+%%DATADIR%%/create_database.sql
+%%DATADIR%%/db_migrate_1.5_to_1.6.sql
+%%DATADIR%%/insert_initial_data.sql
+%%WWWDIR%%/admin_flag_active_players.php
+%%WWWDIR%%/admin_notification.php
+%%WWWDIR%%/admin_remind_subscription.php
+%%WWWDIR%%/browser.php
+%%WWWDIR%%/chess.php
+%%WWWDIR%%/club.php
+%%WWWDIR%%/css/lightbox.css
+%%WWWDIR%%/css/style_common.css
+%%WWWDIR%%/css/style_email.css
+%%WWWDIR%%/css/style_print.css
+%%WWWDIR%%/css/style_web.css
+%%WWWDIR%%/favicon.ico
+%%WWWDIR%%/handle_move.php
+%%WWWDIR%%/help.php
+%%WWWDIR%%/images/club_logo.png
+%%WWWDIR%%/images/d0.png
+%%WWWDIR%%/images/d1.png
+%%WWWDIR%%/images/d2.png
+%%WWWDIR%%/images/d3.png
+%%WWWDIR%%/images/d4.png
+%%WWWDIR%%/images/d5.png
+%%WWWDIR%%/images/d6.png
+%%WWWDIR%%/images/d7.png
+%%WWWDIR%%/images/d8.png
+%%WWWDIR%%/images/d9.png
+%%WWWDIR%%/images/frame_background.png
+%%WWWDIR%%/images/frame_body_a.png
+%%WWWDIR%%/images/frame_body_b.png
+%%WWWDIR%%/images/frame_footer_a.png
+%%WWWDIR%%/images/frame_top_a.png
+%%WWWDIR%%/images/frame_top_b.png
+%%WWWDIR%%/images/frame_top_c.png
+%%WWWDIR%%/images/frame_top_d.png
+%%WWWDIR%%/images/h_backward.png
+%%WWWDIR%%/images/h_black.png
+%%WWWDIR%%/images/h_first.png
+%%WWWDIR%%/images/h_forward.png
+%%WWWDIR%%/images/h_last.png
+%%WWWDIR%%/images/h_right.png
+%%WWWDIR%%/images/h_white.png
+%%WWWDIR%%/images/histmark_b.png
+%%WWWDIR%%/images/histmark_w.png
+%%WWWDIR%%/images/lamp_green.png
+%%WWWDIR%%/images/lamp_red.png
+%%WWWDIR%%/images/lightbox/blank.gif
+%%WWWDIR%%/images/lightbox/close.gif
+%%WWWDIR%%/images/lightbox/closelabel.gif
+%%WWWDIR%%/images/lightbox/image-1.jpg
+%%WWWDIR%%/images/lightbox/loading.gif
+%%WWWDIR%%/images/lightbox/next.gif
+%%WWWDIR%%/images/lightbox/nextlabel.gif
+%%WWWDIR%%/images/lightbox/prev.gif
+%%WWWDIR%%/images/lightbox/prevlabel.gif
+%%WWWDIR%%/images/lightbox/thumb-1.jpg
+%%WWWDIR%%/images/scorebar_0.png
+%%WWWDIR%%/images/scorebar_a.png
+%%WWWDIR%%/images/scorebar_b.png
+%%WWWDIR%%/images/scorebar_c.png
+%%WWWDIR%%/images/scorebar_d.png
+%%WWWDIR%%/images/scorebar_e.png
+%%WWWDIR%%/images/shot_browser.jpg
+%%WWWDIR%%/images/shot_browser_icon.png
+%%WWWDIR%%/images/shot_chess.jpg
+%%WWWDIR%%/images/shot_chess_icon.png
+%%WWWDIR%%/images/shot_index.jpg
+%%WWWDIR%%/images/shot_index_icon.png
+%%WWWDIR%%/images/shot_profile.jpg
+%%WWWDIR%%/images/shot_profile_icon.png
+%%WWWDIR%%/images/spacer.png
+%%WWWDIR%%/images/wcg/bbishop.png
+%%WWWDIR%%/images/wcg/bking.png
+%%WWWDIR%%/images/wcg/bknight.png
+%%WWWDIR%%/images/wcg/bpawn.png
+%%WWWDIR%%/images/wcg/bqueen.png
+%%WWWDIR%%/images/wcg/brook.png
+%%WWWDIR%%/images/wcg/empty.png
+%%WWWDIR%%/images/wcg/height.png
+%%WWWDIR%%/images/wcg/sbbishop.png
+%%WWWDIR%%/images/wcg/sbknight.png
+%%WWWDIR%%/images/wcg/sbpawn.png
+%%WWWDIR%%/images/wcg/sbqueen.png
+%%WWWDIR%%/images/wcg/sbrook.png
+%%WWWDIR%%/images/wcg/sempty.png
+%%WWWDIR%%/images/wcg/swbishop.png
+%%WWWDIR%%/images/wcg/swknight.png
+%%WWWDIR%%/images/wcg/swpawn.png
+%%WWWDIR%%/images/wcg/swqueen.png
+%%WWWDIR%%/images/wcg/swrook.png
+%%WWWDIR%%/images/wcg/wbishop.png
+%%WWWDIR%%/images/wcg/width.png
+%%WWWDIR%%/images/wcg/wking.png
+%%WWWDIR%%/images/wcg/wknight.png
+%%WWWDIR%%/images/wcg/wpawn.png
+%%WWWDIR%%/images/wcg/wqueen.png
+%%WWWDIR%%/images/wcg/wrook.png
+%%WWWDIR%%/index.php
+%%WWWDIR%%/invitation.php
+%%WWWDIR%%/js/effects.js
+%%WWWDIR%%/js/lightbox.js
+%%WWWDIR%%/js/prototype.js
+%%WWWDIR%%/js/scriptaculous.js
+%%WWWDIR%%/local_settings.php_DIST
+%%WWWDIR%%/login.php
+%%WWWDIR%%/logout.php
+%%WWWDIR%%/mail_ticker.php
+%%WWWDIR%%/mcc_common.php
+%%WWWDIR%%/mcc_email.php
+%%WWWDIR%%/mcc_enums.php
+%%WWWDIR%%/mcc_graph.php
+%%WWWDIR%%/mcc_robots.php
+%%WWWDIR%%/mcc_scripts.php
+%%WWWDIR%%/mcc_templates.php
+%%WWWDIR%%/newgame.php
+%%WWWDIR%%/pgnformat.php
+%%WWWDIR%%/player_change_email.php
+%%WWWDIR%%/player_change_password.php
+%%WWWDIR%%/player_graphs.php
+%%WWWDIR%%/player_lostpassword.php
+%%WWWDIR%%/player_portrait.php
+%%WWWDIR%%/player_profile_edit.php
+%%WWWDIR%%/player_profile_portrait.php
+%%WWWDIR%%/player_profile_view.php
+%%WWWDIR%%/player_subscription.php
+%%WWWDIR%%/player_validation.php
+%%WWWDIR%%/rankings.php
+%%WWWDIR%%/sample_dnd.php
+%%WWWDIR%%/search.php
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%WWWDIR%%/css
+@dirrm %%WWWDIR%%/images/lightbox
+@dirrm %%WWWDIR%%/images/wcg
+@dirrm %%WWWDIR%%/images
+@dirrm %%WWWDIR%%/js
+@dirrmtry %%WWWDIR%%