summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 17:46:27 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 17:46:27 +0000
commitfb8c4cf310fc6a66ecddbe48c1b77a183baa6141 (patch)
tree179b6d7697d589a3888e34ab007a4d76082e89ee /games-board/gnocatan
parentChanges to make the eclass more flexible (diff)
downloadhistorical-fb8c4cf310fc6a66ecddbe48c1b77a183baa6141.tar.gz
historical-fb8c4cf310fc6a66ecddbe48c1b77a183baa6141.tar.bz2
historical-fb8c4cf310fc6a66ecddbe48c1b77a183baa6141.zip
board board games
Diffstat (limited to 'games-board/gnocatan')
-rw-r--r--games-board/gnocatan/ChangeLog30
-rw-r--r--games-board/gnocatan/Manifest10
-rw-r--r--games-board/gnocatan/files/digest-gnocatan-0.7.11
-rw-r--r--games-board/gnocatan/files/digest-gnocatan-0.7.1-r11
-rw-r--r--games-board/gnocatan/files/digest-gnocatan-0.7.1-r21
-rw-r--r--games-board/gnocatan/files/digest-gnocatan-0.7.1-r31
-rw-r--r--games-board/gnocatan/files/gnocatan-wijnen-patch.diff187
-rw-r--r--games-board/gnocatan/gnocatan-0.7.1-r1.ebuild27
-rw-r--r--games-board/gnocatan/gnocatan-0.7.1-r2.ebuild34
-rw-r--r--games-board/gnocatan/gnocatan-0.7.1-r3.ebuild39
-rw-r--r--games-board/gnocatan/gnocatan-0.7.1.ebuild27
11 files changed, 358 insertions, 0 deletions
diff --git a/games-board/gnocatan/ChangeLog b/games-board/gnocatan/ChangeLog
new file mode 100644
index 000000000000..f55de3eaba1e
--- /dev/null
+++ b/games-board/gnocatan/ChangeLog
@@ -0,0 +1,30 @@
+# ChangeLog for app-games/gnocatan
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/gnocatan/ChangeLog,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+*gnocatan-0.7.1-r3 (28 Jun 2003)
+
+ 28 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Security update. Ebuild and patch contributed by Sybren Harmsma <S.Harmsma@student.rug.nl>.
+
+*gnocatan-0.7.1-r2 (18 Jun 2003)
+
+ 29 Jun 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Added missing changelog entry.
+
+ 18 Jun 2003; msterret :
+ Change default metaserver per Bug 23015
+
+ 19 May 2003; Patrick Kursawe <phosphan@gentoo.org> gnocatan-0.7.1-r1.ebuild,
+ gnocatan-0.7.1.ebuild:
+ Fixed homepage typo (bug 21238)
+
+*gnocatan-0.7.1-r1 (20 Mar 2003)
+
+ 20 Mar 2003; Graham Forest <vladimir@gentoo.org> gnocatan-0.7.1-r1.ebuild:
+ Removed usage of pic USE flag
+
+*gnocatan-0.7.1 (02 Mar 2003)
+
+ 02 Mar 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by Craig Joly <craig@taipan.mudshark.org> #8871.
diff --git a/games-board/gnocatan/Manifest b/games-board/gnocatan/Manifest
new file mode 100644
index 000000000000..f8166fb9de0d
--- /dev/null
+++ b/games-board/gnocatan/Manifest
@@ -0,0 +1,10 @@
+MD5 9c5bb345c2053b5e8d4967a1114e7331 files/digest-gnocatan-0.7.1 67
+MD5 9c5bb345c2053b5e8d4967a1114e7331 files/digest-gnocatan-0.7.1-r1 67
+MD5 9c5bb345c2053b5e8d4967a1114e7331 files/digest-gnocatan-0.7.1-r2 67
+MD5 9c5bb345c2053b5e8d4967a1114e7331 files/digest-gnocatan-0.7.1-r3 67
+MD5 dcde661f2b2d171c64e989779ceaa2ec files/gnocatan-wijnen-patch.diff 6134
+MD5 6266d9981164a67b0e41d4423708246b ChangeLog 1033
+MD5 be2bb1d32ac07cf508da0571dc15b626 gnocatan-0.7.1.ebuild 702
+MD5 96708b277e24915929dfb5a865403f27 gnocatan-0.7.1-r1.ebuild 705
+MD5 a3cede2bd5178a3648fd22531bf5aa94 gnocatan-0.7.1-r2.ebuild 873
+MD5 bcf65e6e03e82471271a81802b41190c gnocatan-0.7.1-r3.ebuild 1022
diff --git a/games-board/gnocatan/files/digest-gnocatan-0.7.1 b/games-board/gnocatan/files/digest-gnocatan-0.7.1
new file mode 100644
index 000000000000..e27094155277
--- /dev/null
+++ b/games-board/gnocatan/files/digest-gnocatan-0.7.1
@@ -0,0 +1 @@
+MD5 09021d43e52e0058dc8da8ec232e3732 gnocatan-0.7.1.tar.gz 1639979
diff --git a/games-board/gnocatan/files/digest-gnocatan-0.7.1-r1 b/games-board/gnocatan/files/digest-gnocatan-0.7.1-r1
new file mode 100644
index 000000000000..e27094155277
--- /dev/null
+++ b/games-board/gnocatan/files/digest-gnocatan-0.7.1-r1
@@ -0,0 +1 @@
+MD5 09021d43e52e0058dc8da8ec232e3732 gnocatan-0.7.1.tar.gz 1639979
diff --git a/games-board/gnocatan/files/digest-gnocatan-0.7.1-r2 b/games-board/gnocatan/files/digest-gnocatan-0.7.1-r2
new file mode 100644
index 000000000000..e27094155277
--- /dev/null
+++ b/games-board/gnocatan/files/digest-gnocatan-0.7.1-r2
@@ -0,0 +1 @@
+MD5 09021d43e52e0058dc8da8ec232e3732 gnocatan-0.7.1.tar.gz 1639979
diff --git a/games-board/gnocatan/files/digest-gnocatan-0.7.1-r3 b/games-board/gnocatan/files/digest-gnocatan-0.7.1-r3
new file mode 100644
index 000000000000..e27094155277
--- /dev/null
+++ b/games-board/gnocatan/files/digest-gnocatan-0.7.1-r3
@@ -0,0 +1 @@
+MD5 09021d43e52e0058dc8da8ec232e3732 gnocatan-0.7.1.tar.gz 1639979
diff --git a/games-board/gnocatan/files/gnocatan-wijnen-patch.diff b/games-board/gnocatan/files/gnocatan-wijnen-patch.diff
new file mode 100644
index 000000000000..5f8934bde1a7
--- /dev/null
+++ b/games-board/gnocatan/files/gnocatan-wijnen-patch.diff
@@ -0,0 +1,187 @@
+diff --unified --recursive --new-file gnocatan-0.7.1/ai/client.c gnocatan-0.7.1-patched/ai/client.c
+--- gnocatan-0.7.1/ai/client.c 2002-06-09 14:59:33.000000000 +0200
++++ gnocatan-0.7.1-patched/ai/client.c 2003-06-19 23:47:02.000000000 +0200
+@@ -155,12 +155,12 @@
+ client_exit();
+ return TRUE;
+ case SM_RECV:
+- if (sm_recv(sm, "ERR %S", str)) {
++ if (sm_recv(sm, "ERR %S", str, sizeof (str))) {
+ log_message( MSG_ERROR, "Error (%s): %s\n", sm_current_name(sm), str);
+ exit(0);
+ return TRUE;
+ }
+- if (sm_recv(sm, "%S", str)) {
++ if (sm_recv(sm, "%S", str, sizeof (str))) {
+ log_message( MSG_ERROR, "Error (%s): %s\n", sm_current_name(sm), str);
+ return TRUE;
+ }
+@@ -228,7 +228,7 @@
+ gint player_num;
+ char str[512];
+
+- if (sm_recv(sm, "player %d chat %S", &player_num, str)) {
++ if (sm_recv(sm, "player %d chat %S", &player_num, str, sizeof (str))) {
+ /*
+ log_message( MSG_INFO, _("%s said: "), player_name(player_num, TRUE));
+ log_message( MSG_CHAT, "%s\n", str);
+@@ -239,7 +239,7 @@
+ player_change_name(player_num, NULL);
+ return TRUE;
+ }
+- if (sm_recv(sm, "player %d is %S", &player_num, str)) {
++ if (sm_recv(sm, "player %d is %S", &player_num, str, sizeof (str))) {
+ player_change_name(player_num, str);
+ return TRUE;
+ }
+@@ -490,7 +490,7 @@
+ return TRUE;
+ }
+ if (sm_recv(sm, "player %d of %d, welcome to gnocatan server %S",
+- &player_num, &total_num, version)) {
++ &player_num, &total_num, version, sizeof (version))) {
+ player_set_my_num(player_num);
+ player_set_total_num(total_num);
+ if (saved_name != NULL)
+@@ -576,7 +576,7 @@
+ }
+ if (check_other_players(sm))
+ return TRUE;
+- if (sm_recv(sm, "%S", str)) {
++ if (sm_recv(sm, "%S", str, sizeof (str))) {
+ params_load_line(game_params, str);
+ return TRUE;
+ }
+diff --unified --recursive --new-file gnocatan-0.7.1/client/client.c gnocatan-0.7.1-patched/client/client.c
+--- gnocatan-0.7.1/client/client.c 2002-06-08 23:57:33.000000000 +0200
++++ gnocatan-0.7.1-patched/client/client.c 2003-06-20 01:21:07.000000000 +0200
+@@ -185,15 +185,15 @@
+ sm_goto(sm, mode_offline);
+ return TRUE;
+ case SM_RECV:
+- if (sm_recv(sm, "ERR %S", str)) {
++ if (sm_recv(sm, "ERR %S", str , sizeof (str))) {
+ log_message( MSG_ERROR, "Error (%s): %s\n", sm_current_name(sm), str);
+ return TRUE;
+ }
+- if (sm_recv(sm, "NOTE %S", str)) {
++ if (sm_recv(sm, "NOTE %S", str, sizeof (str))) {
+ log_message( MSG_ERROR, "Notice: %s\n", str);
+ return TRUE;
+ }
+- if (sm_recv(sm, "%S", str)) {
++ if (sm_recv(sm, "%S", str, sizeof (str))) {
+ log_message( MSG_ERROR, "Unknown message in %s: %s\n", sm_current_name(sm), str);
+ return TRUE;
+ }
+@@ -246,7 +246,7 @@
+ gint player_num;
+ char str[512];
+
+- if (sm_recv(sm, "player %d chat %S", &player_num, str)) {
++ if (sm_recv(sm, "player %d chat %S", &player_num, str, sizeof (str))) {
+ chat_parser( player_num, str );
+ /*
+ log_message( MSG_INFO, _("%s said: "), player_name(player_num, TRUE));
+@@ -258,7 +258,7 @@
+ player_change_name(player_num, NULL);
+ return TRUE;
+ }
+- if (sm_recv(sm, "player %d is %S", &player_num, str)) {
++ if (sm_recv(sm, "player %d is %S", &player_num, str, sizeof (str))) {
+ player_change_name(player_num, str);
+ return TRUE;
+ }
+@@ -606,7 +606,7 @@
+ }
+ }
+ if (sm_recv(sm, "player %d of %d, welcome to gnocatan server %S",
+- &player_num, &total_num, version)) {
++ &player_num, &total_num, version, sizeof (version))) {
+ player_set_my_num(player_num);
+ player_set_total_num(total_num);
+ if (saved_name != NULL)
+@@ -694,7 +694,7 @@
+ }
+ if (check_other_players(sm))
+ return TRUE;
+- if (sm_recv(sm, "%S", str)) {
++ if (sm_recv(sm, "%S", str, sizeof (str))) {
+ params_load_line(game_params, str);
+ return TRUE;
+ }
+@@ -782,7 +782,7 @@
+ strcpy(rinfo.prevstate, "PLENTY");
+ return TRUE;
+ }
+- if (sm_recv(sm, "state %S", str)) {
++ if (sm_recv(sm, "state %S", str, sizeof (str))) {
+ strcpy(rinfo.prevstate, str);
+ return TRUE;
+ }
+diff --unified --recursive --new-file gnocatan-0.7.1/common/state.c gnocatan-0.7.1-patched/common/state.c
+--- gnocatan-0.7.1/common/state.c 2002-06-08 23:32:05.000000000 +0200
++++ gnocatan-0.7.1-patched/common/state.c 2003-06-20 00:12:10.000000000 +0200
+@@ -150,7 +150,15 @@
+ break;
+ case NET_READ:
+ sm->line = line;
+- route_event(sm, SM_RECV);
++ /* Only handle data if there is a context. Fixes bug that
++ * clients starting to send data immediately crash the
++ * server */
++ if (sm->stack_ptr != -1)
++ route_event(sm, SM_RECV);
++ else {
++ dec_use_count (sm);
++ return;
++ }
+ break;
+ }
+ route_event(sm, SM_INIT);
+@@ -235,7 +243,9 @@
+ switch (*fmt++) {
+ case 'S': /* string from current position to end of line */
+ str = va_arg(ap, gchar*);
+- strcpy(str, line + offset);
++ len = va_arg(ap, gint);
++ strncpy(str, line + offset, len - 1);
++ str[len - 1] = '\0';
+ offset += strlen(str);
+ break;
+ case 'd': /* integer */
+diff --unified --recursive --new-file gnocatan-0.7.1/server/player.c gnocatan-0.7.1-patched/server/player.c
+--- gnocatan-0.7.1/server/player.c 2002-05-19 20:23:17.000000000 +0200
++++ gnocatan-0.7.1-patched/server/player.c 2003-06-19 23:55:54.000000000 +0200
+@@ -85,11 +85,11 @@
+ }
+ return TRUE;
+ case SM_RECV:
+- if (sm_recv(sm, "chat %S", text)) {
++ if (sm_recv(sm, "chat %S", text, sizeof (text))) {
+ player_broadcast(player, PB_ALL, "chat %s\n", text);
+ return TRUE;
+ }
+- if (sm_recv(sm, "name %S", text)) {
++ if (sm_recv(sm, "name %S", text, sizeof (text))) {
+ player_set_name(player, text);
+ return TRUE;
+ }
+@@ -446,7 +446,7 @@
+ break;
+
+ case SM_RECV:
+- if( sm_recv(sm, "version %S", version ) )
++ if( sm_recv(sm, "version %S", version, sizeof (version) ) )
+ {
+ player->client_version = g_strdup(version);
+ if( check_versions( version ) )
+@@ -482,7 +482,7 @@
+ player_setup(player, -1);
+ return TRUE;
+ }
+- else if( sm_recv(sm, "status reconnect %S", playername ) )
++ else if( sm_recv(sm, "status reconnect %S", playername, sizeof (playername) ) )
+ {
+ /* if possible, try to revive the player */
+ player_revive(player, playername);
diff --git a/games-board/gnocatan/gnocatan-0.7.1-r1.ebuild b/games-board/gnocatan/gnocatan-0.7.1-r1.ebuild
new file mode 100644
index 000000000000..f2a77c0c214d
--- /dev/null
+++ b/games-board/gnocatan/gnocatan-0.7.1-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/gnocatan/gnocatan-0.7.1-r1.ebuild,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+DESCRIPTION="A clone of the popular board game The Settlers of Catan"
+HOMEPAGE="http://gnocatan.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gnocatan/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="nls"
+
+DEPEND="=x11-libs/gtk+-1*
+ =dev-libs/glib-1*
+ gnome-base/gnome-libs
+ gnome-base/ORBit"
+
+src_compile() {
+ econf `use_enable nls` || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README
+}
diff --git a/games-board/gnocatan/gnocatan-0.7.1-r2.ebuild b/games-board/gnocatan/gnocatan-0.7.1-r2.ebuild
new file mode 100644
index 000000000000..6d590916164b
--- /dev/null
+++ b/games-board/gnocatan/gnocatan-0.7.1-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/gnocatan/gnocatan-0.7.1-r2.ebuild,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+DESCRIPTION="A clone of the popular board game The Settlers of Catan"
+HOMEPAGE="http://gnocatan.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gnocatan/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="nls"
+
+DEPEND="=x11-libs/gtk+-1*
+ =dev-libs/glib-1*
+ gnome-base/gnome-libs
+ >=sys-apps/sed-4
+ gnome-base/ORBit"
+
+src_unpack() {
+ unpack ${A}
+ sed -i -e "s/term1.dccs.com.au/gnocatan.debian.net/" ${S}/common/meta.h || \
+ die "sed meta.h failed"
+}
+
+src_compile() {
+ econf `use_enable nls` || die "econf failed"
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README
+}
diff --git a/games-board/gnocatan/gnocatan-0.7.1-r3.ebuild b/games-board/gnocatan/gnocatan-0.7.1-r3.ebuild
new file mode 100644
index 000000000000..78e2d2db6dd6
--- /dev/null
+++ b/games-board/gnocatan/gnocatan-0.7.1-r3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/gnocatan/gnocatan-0.7.1-r3.ebuild,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="A clone of the popular board game The Settlers of Catan"
+# http://gnocatan.sourceforge.net/ is terribly outdated
+HOMEPAGE="http://www.sourceforge.net/projects/gnocatan/"
+SRC_URI="mirror://sourceforge/gnocatan/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="nls"
+
+DEPEND="=x11-libs/gtk+-1*
+ =dev-libs/glib-1*
+ gnome-base/gnome-libs
+ >=sys-apps/sed-4
+ gnome-base/ORBit
+ sys-devel/patch"
+
+src_unpack() {
+ unpack ${A}
+ sed -i -e "s/term1.dccs.com.au/gnocatan.debian.net/" ${S}/common/meta.h || \
+ die "sed meta.h failed"
+ epatch ${FILESDIR}/gnocatan-wijnen-patch.diff
+}
+
+src_compile() {
+ econf `use_enable nls` || die "econf failed"
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README
+}
diff --git a/games-board/gnocatan/gnocatan-0.7.1.ebuild b/games-board/gnocatan/gnocatan-0.7.1.ebuild
new file mode 100644
index 000000000000..ea6f97db726d
--- /dev/null
+++ b/games-board/gnocatan/gnocatan-0.7.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/gnocatan/gnocatan-0.7.1.ebuild,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+DESCRIPTION="A clone of the popular board game The Settlers of Catan"
+HOMEPAGE="http://gnocatan.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gnocatan/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="nls"
+
+DEPEND="=x11-libs/gtk+-1*
+ =dev-libs/glib-1*
+ gnome-base/gnome-libs
+ gnome-base/ORBit"
+
+src_compile() {
+ econf `use_enable nls` || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ dodoc ABOUT-NLS AUTHORS ChangeLog NEWS README
+}