diff options
Diffstat (limited to 'games-util/gslist')
-rw-r--r-- | games-util/gslist/Manifest | 7 | ||||
-rw-r--r-- | games-util/gslist/files/gslist-0.8.11a-build.patch | 41 | ||||
-rw-r--r-- | games-util/gslist/gslist-0.8.11a-r1.ebuild | 37 | ||||
-rw-r--r-- | games-util/gslist/gslist-0.8.11a.ebuild | 35 | ||||
-rw-r--r-- | games-util/gslist/metadata.xml | 11 |
5 files changed, 131 insertions, 0 deletions
diff --git a/games-util/gslist/Manifest b/games-util/gslist/Manifest new file mode 100644 index 000000000000..2f216c9384ef --- /dev/null +++ b/games-util/gslist/Manifest @@ -0,0 +1,7 @@ +AUX gslist-0.8.11a-build.patch 1178 SHA256 f2144c7de78966ffc73a183508a00a4617db3627f15b8201369b6411542f6732 SHA512 c938ce951c6042baa769019d274583610a9a5506c4ceeb2816ed372cae08bdfd5b228f3027064b6d92a5bf8beac88ad34f5fd8285ea0512baac7fcbbf6ae076c WHIRLPOOL ae130286c8927ad106600c407379c701eb5ab477f55ad5ceb901d3f512ca6065e1275b8ef72e1332c77758060c7917f712ceef298417be0c0d78a89d0bbcf3ad +DIST gslist-0.8.11a.zip 2599227 SHA256 6acd2aecae5b52b6e5c7cb80ab7c607d5fbaa80ce569dc997e24f7458fc63034 SHA512 082cda97bf82ba4763236ce142d65a90b3372a430436cdc9fdccd1101feb5a2741807dff5a00e81fc833048e81468473d90851d23574167e78166beef08d0734 WHIRLPOOL ecd4aca5ac3933c6d117d8d1a091a62a6cc9bde96042f37a95e4ee3a7dbe9211f0a321d1c0fc9847a1f79a08af3af9bab0a8022d2caeb88a0e17f5bf7875df6f +EBUILD gslist-0.8.11a-r1.ebuild 616 SHA256 68f83d236359da78c32946fdbe4719bfd2faa786a4a6575b3f99e48687cc6e34 SHA512 b8c3eddae6b24cc26fd655d45158f9b40c820c96499c4988fe41e617bdcbb6a7b703d072f61d55f150ff7bca1052d9b4a4d0fe920a24b97081285929b68b3251 WHIRLPOOL c74186fda363e955208eb0dda0784af554ea187412fc04852f12ea8fcf960bfe051b58f25ff94229dfd1b20640a95b7b5b32e8c706232dea2c966207dc7297e6 +EBUILD gslist-0.8.11a.ebuild 638 SHA256 07a5e3ebbc58fd094307d0d315819cb17bc51e1ba634a79b577f2cee99b80ff2 SHA512 67297bc5be1ec43b664d628a181667f8ec6493d3d8dfc455b322b45cc085d25ceb3cd73be0a29df85ed654931b176ba52126cf4101dc521dfd21500b8405ea0b WHIRLPOOL a5e4828230f104f2e3cd1891a862b410bccdfcf6551e31cf751c67f5d34fb9eb92806ac6a8ca683d5602d55fd805a31135ac483423cb893e16a026b2fcefd77a +MISC ChangeLog 3115 SHA256 6c81ad78ee8c029e3a7ee90d665aaced5a2e86014c5466d9c22e7dadaee243c2 SHA512 f040806cd6f16e9b9b26c3e26bf9b0dff92e02e72094414d8f9ab6a26b9aa38ee4842526c2d4023a6ed7f5a0351eba1135ec12e2b0dc66831dcec53cc1f289b8 WHIRLPOOL 8f8065ea6c2f22569df7df992636fce3dfac9c7826ac9a6de9c64374d5e979f947b92418f68eace7f34522352f008b2a74d725660e10206fcc2571699e7f6549 +MISC ChangeLog-2015 1955 SHA256 16a06316f24b081ccd964ac12563d426c33aabcee52a2045b2744d2f6378f5d1 SHA512 bf4a66c4dda8407429fcd5ea4f2656066873ed3ab1eedd535b09faedb58ba315212b78f1f7b88f53c8346fb6eda25107148e4da760dec28cddbdfb2aa8be75ad WHIRLPOOL e12ae47b269f056a942eb16831affbdfa2cb3b23b6dd1958fe75dc83850bfa89ae870b433cd9c24ec082cb957e83d9953387e85b4467ca77ee8c35fef428e87e +MISC metadata.xml 319 SHA256 57c13473c4fd8b1b14f888ee8ea4f341a821c2eac0905f39c9fe4385aa4c1076 SHA512 346a94d5d5aac11f3fcbd7ceac55b80462999debf98aa95d17479944873a0c08e1256def22b0e8225ef57b70deb249db0d93fe76a85a8897bb8b9f92750ea43f WHIRLPOOL 5abcc6fc04d52f0cfaea3082f7854015ebc15fa7be592aa13e5583d7c4431e7cbe3d23fa4c43397e5156970ee2c68ad9e3029f92531ede34246515d26c0a3d58 diff --git a/games-util/gslist/files/gslist-0.8.11a-build.patch b/games-util/gslist/files/gslist-0.8.11a-build.patch new file mode 100644 index 000000000000..4ffbfd94e012 --- /dev/null +++ b/games-util/gslist/files/gslist-0.8.11a-build.patch @@ -0,0 +1,41 @@ +--- work.orig/Makefile ++++ work/Makefile +@@ -1,26 +1,30 @@ +-CFLAGS += -O2 -s -fstack-protector-all ++CFLAGS += -Wall -D_GNU_SOURCE + PREFIX = /usr/local + BINDIR = $(PREFIX)/bin + SRC = src/gslist.c src/enctype1_decoder.c src/enctype2_decoder.c src/enctype_shared.c src/mydownlib.c + #LIBS = -lpthread /usr/lib/libGeoIP.a /usr/lib/i386-linux-gnu/libz.a + #SQLIBS = /usr/lib/i386-linux-gnu/libmysqlclient.a /usr/lib/i386-linux-gnu/libm.a -ldl + LIBS = -lpthread -lGeoIP -lz +-SQLIBS = -lmysqlclient + O = $(SRC:.c=.o) + +-all: gslist gslistsql ++ifneq ($(GSWEB),0) ++CFLAGS += -DGSWEB ++endif + +-gslist: +- $(CC) $(SRC) $(CFLAGS) -o gslist $(LIBS) -DGSWEB +- $(CC) $(SRC) $(CFLAGS) -o gslistsql $(SQLIBS) $(LIBS) -DGSWEB -DSQL ++ifneq ($(SQL),0) ++CFLAGS += -DSQL ++LIBS += -lmysqlclient ++endif ++ ++gslist: $(O) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o gslist $(O) $(LIBS) + + clean: +- rm -f gslist gslistsql src/gslist.o src/enctype1_decoder.o src/enctype2_decoder.o src/enctype_shared.o src/enctypex_decoder.o src/mydownlib.o ++ rm -f gslist $(O) + + install: + install -m 755 -d $(BINDIR) + install -m 755 gslist $(BINDIR)/gslist +- install -m 755 gslistsql $(BINDIR)/gslistsql + + .PHONY: + clean install diff --git a/games-util/gslist/gslist-0.8.11a-r1.ebuild b/games-util/gslist/gslist-0.8.11a-r1.ebuild new file mode 100644 index 000000000000..cbe916e10a66 --- /dev/null +++ b/games-util/gslist/gslist-0.8.11a-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="A GameSpy server browser" +HOMEPAGE="http://aluigi.altervista.org/papers.htm#gslist" +SRC_URI="mirror://gentoo/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="web" + +RDEPEND="dev-libs/geoip" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}"/${P}-build.patch +) + +src_prepare() { + default + rm -f gslist gslistsql *.exe *.dll || die +} + +src_compile() { + emake SQL=0 $(use web || echo GSWEB=0) +} + +src_install() { + dobin ${PN} + dodoc ${PN}.txt +} diff --git a/games-util/gslist/gslist-0.8.11a.ebuild b/games-util/gslist/gslist-0.8.11a.ebuild new file mode 100644 index 000000000000..669d0050e0cd --- /dev/null +++ b/games-util/gslist/gslist-0.8.11a.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="A GameSpy server browser" +HOMEPAGE="http://aluigi.altervista.org/papers.htm#gslist" +SRC_URI="mirror://gentoo/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~hppa x86" +IUSE="web" + +RDEPEND="dev-libs/geoip" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + rm -f gslist gslistsql *.exe *.dll || die + epatch "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + emake SQL=0 $(use web || echo GSWEB=0) +} + +src_install() { + dogamesbin ${PN} + dodoc ${PN}.txt + prepgamesdirs +} diff --git a/games-util/gslist/metadata.xml b/games-util/gslist/metadata.xml new file mode 100644 index 000000000000..aea04961416e --- /dev/null +++ b/games-util/gslist/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <use> + <flag name="web">Enable the web interface</flag> + </use> +</pkgmetadata> |