diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/tetrinet |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/tetrinet')
-rw-r--r-- | games-puzzle/tetrinet/Manifest | 7 | ||||
-rw-r--r-- | games-puzzle/tetrinet/files/tetrinet-0.11-build.patch | 84 | ||||
-rw-r--r-- | games-puzzle/tetrinet/files/tetrinet-0.11-no-ipv6.patch | 11 | ||||
-rw-r--r-- | games-puzzle/tetrinet/metadata.xml | 8 | ||||
-rw-r--r-- | games-puzzle/tetrinet/tetrinet-0.11.ebuild | 33 |
5 files changed, 143 insertions, 0 deletions
diff --git a/games-puzzle/tetrinet/Manifest b/games-puzzle/tetrinet/Manifest new file mode 100644 index 000000000000..b3613fdeff9a --- /dev/null +++ b/games-puzzle/tetrinet/Manifest @@ -0,0 +1,7 @@ +AUX tetrinet-0.11-build.patch 2331 SHA256 1ebadb8011e4ad3015b994f8de1da656b8f7d1669437efbd0d0bb3b5b7843070 SHA512 e56a43ef53d9df84c4ba49b39ba2d77f99de1b616f9e81e105d4c49553b909f418f74cb13d431dbd658c41c99388321e0806dbeb63294817ec85f7148f2d2ae0 WHIRLPOOL 7f1518db81e8e677b1739524b944569a59f1bfd7e139847077305cfa0c1c69ad732c86f41b9c3aed0e14d2d105856de8ece48fb2685d914dd99199970cd26c93 +AUX tetrinet-0.11-no-ipv6.patch 185 SHA256 ad1d66cb1289030900cdf54f9706ed5078be4552ed5e4092248f3e309bcb1874 SHA512 1851623b20e2685548650d54f290a49f9572b65a2293848c0d83a6fdc1c1256ebcdd0f737b2f32f7fb4bd921aa69c17e7120cfc8acb1d8c5a97342741964890f WHIRLPOOL 340f01e3a0d88d417b0d06400a465fa1e3e7b72af84d7b0bc60292e86a65c1ade406bfc9fb1b22d11781df8d72d00b524f8059de4ec560e0813fa99537d72c2b +DIST tetrinet-0.11.tar.bz2 38607 SHA256 a7a32da072d0a7bb9f1a61ced5641336924c314692ed8ac3394147f3716b972c SHA512 8123a8c50a3c1b6326d3209272a60c8050afd2a9eb455814fd676d8c4de922f8b81a88df9e4825d1ff5e0c8b8a7ac46ebe9ce68994587f829e047a3d889880fa WHIRLPOOL c0331f1fb42560a46711c6545f0df4b2bdca7bc1694a0c3ff0f1fc14f4cd483dc13b993b8488909eff9ddc94cc7b8c7ed93da64227bfe70dd6da1afeefb2fea1 +EBUILD tetrinet-0.11.ebuild 718 SHA256 cd59794a586613df12ba8a4fd669e54047b24a7c436d655c037f1ac690cff93e SHA512 4281aa1d2eddefab7e099c73c182226dba945137e0367b8e0f5f37a8c68dedf332c30f767ac5f056c420cfb7d563545d4db470fd6b32277ee6974cde6594ccaa WHIRLPOOL b890f97fbfd7bad9398681b757ae3cd60d6fc8e50a775dd851946519ea43efdc5445c8e4fe34721dd23d4656ebb3120e246c9fefe6b0feda7a46409077ef9d07 +MISC ChangeLog 2659 SHA256 80eadb880a143b1efe1e2810b4fc38874e15780bba89a7361f7e2efffc1b3cca SHA512 3e1a09ee4129ed6a64f1d7d4e587f69d520406d520cd3f77f939eef9c82d912b9f5d20f073ad2a949ca12840df34d264dbbe616224ede11bdfb2a5ac53b54b04 WHIRLPOOL 013ee5d4f37bbdbf110a815ea04b3e0cd1b11157ea5d9aae6588ebd42734242c756f41d0547e1445ff140db6ddd5ec36e1b9e5407da62865572283f195239ed5 +MISC ChangeLog-2015 1760 SHA256 6f8f782cdd478a6bb40a3100b4eb766fe4e711dbf25fb45cfa583dcbf0e5e768 SHA512 cb6a28d72f0d3287c52dfa03a6686c3ddd5f6be3e1deb8c5160af7a3743a70bca6deff1b6d6f8d14238240e9a897e880ceff6c14e8ba42f0c2270dd830cd5e77 WHIRLPOOL f21fcd3a852c955bfe29cc7abfc4132ce030fe8abdf6f75f32d4dedc245b28bdceb1d1e1846c84bbd40fb9fe87b7dc3b4b87de1a6358c33df99e02b9fd44b930 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-puzzle/tetrinet/files/tetrinet-0.11-build.patch b/games-puzzle/tetrinet/files/tetrinet-0.11-build.patch new file mode 100644 index 000000000000..0540b7bc8ce9 --- /dev/null +++ b/games-puzzle/tetrinet/files/tetrinet-0.11-build.patch @@ -0,0 +1,84 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,4 @@ +-CC = cc +- +-CFLAGS = -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall ++CFLAGS += -I/usr/include/ncurses -g -Wall + OBJS = sockets.o tetrinet.o tetris.o tty.o xwin.o + + ### If you want to have -server tetrinet client option, comment the two lines +@@ -24,10 +22,10 @@ + ######## + + tetrinet: $(OBJS) +- $(CC) -o $@ $(OBJS) -lncurses ++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(shell ${PKG_CONFIG} --libs ncurses) + + tetrinet-server: server.c sockets.c tetrinet.c tetris.c server.h sockets.h tetrinet.h tetris.h +- $(CC) $(CFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c + + .c.o: + $(CC) $(CFLAGS) -c $< +--- a/sockets.c ++++ b/sockets.c +@@ -66,7 +66,7 @@ + if (c == 0xFF) + ptr--; + *ptr = 0; +- if (log) { ++ if (logging) { + if (!logfile) + logfile = fopen(logname, "a"); + if (logfile) { +@@ -89,7 +89,7 @@ + unsigned char c = 0xFF; + int n = 0; + +- if (log) { ++ if (logging) { + if (!logfile) + logfile = fopen(logname, "a"); + if (logfile) { +--- a/tetrinet.c ++++ b/tetrinet.c +@@ -21,7 +21,7 @@ + /*************************************************************************/ + + int fancy = 0; /* Fancy TTY graphics? */ +-int log = 0; /* Log network traffic to file? */ ++int logging = 0; /* Log network traffic to file? */ + char *logname; /* Log filename */ + int windows_mode = 0; /* Try to be just like the Windows version? */ + int noslide = 0; /* Disallow piece sliding? */ +@@ -82,8 +82,7 @@ + else + winlist[i].team = 0; + s++; +- strncpy(winlist[i].name, s, sizeof(winlist[i].name)-1); +- winlist[i].name[sizeof(winlist[i].name)] = 0; ++ snprintf(winlist[i].name, sizeof(winlist[i].name), "%s", s); + winlist[i].points = atoi(t); + if ((t = strchr(t, ';')) != NULL) + winlist[i].games = atoi(t+1); +@@ -590,7 +589,7 @@ + if (strcmp(av[i], "-fancy") == 0) { + fancy = 1; + } else if (strcmp(av[i], "-log") == 0) { +- log = 1; ++ logging = 1; + i++; + if (i >= ac) { + fprintf(stderr, "Option -log requires an argument\n"); +--- a/tetrinet.h ++++ b/tetrinet.h +@@ -74,7 +74,7 @@ + /* Externs */ + + extern int fancy; +-extern int log; ++extern int logging; + extern char *logname; + extern int windows_mode; + extern int noslide; diff --git a/games-puzzle/tetrinet/files/tetrinet-0.11-no-ipv6.patch b/games-puzzle/tetrinet/files/tetrinet-0.11-no-ipv6.patch new file mode 100644 index 000000000000..addfd9a0047c --- /dev/null +++ b/games-puzzle/tetrinet/files/tetrinet-0.11-no-ipv6.patch @@ -0,0 +1,11 @@ +--- a/sockets.c ++++ b/sockets.c +@@ -188,7 +188,7 @@ + return -1; + } + if (ipbuf) +- memcpy(retbuf, &sa.sin_addr, 4); ++ memcpy(ipbuf, &sa.sin_addr, 4); + #endif + + return sock; diff --git a/games-puzzle/tetrinet/metadata.xml b/games-puzzle/tetrinet/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-puzzle/tetrinet/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> diff --git a/games-puzzle/tetrinet/tetrinet-0.11.ebuild b/games-puzzle/tetrinet/tetrinet-0.11.ebuild new file mode 100644 index 000000000000..8dbd03ce0c4d --- /dev/null +++ b/games-puzzle/tetrinet/tetrinet-0.11.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic toolchain-funcs games + +DESCRIPTION="console based tetrinet inc. standalone server" +HOMEPAGE="http://tetrinet.or.cz/" +SRC_URI="http://tetrinet.or.cz/download/${P}.tar.bz2" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="ipv6" + +RDEPEND=">=sys-libs/ncurses-5:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-no-ipv6.patch \ + "${FILESDIR}"/${P}-build.patch + + use ipv6 && append-cflags -DHAVE_IPV6 + tc-export PKG_CONFIG +} + +src_install() { + dogamesbin tetrinet tetrinet-server + dodoc README TODO tetrinet.txt + prepgamesdirs +} |