summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-02-25 10:15:30 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-02-25 10:15:30 +0000
commitfb40acabd4ec02101c06f3bfb922c0f2f7d43ebf (patch)
tree4b95b1731a00ea8a0bbb3a864e6ce204048f942f /games-fps
parentSpeed up cleanup of staled zebra routes, thanks to Jan Oravec <jan.oravec at ... (diff)
downloadgentoo-2-fb40acabd4ec02101c06f3bfb922c0f2f7d43ebf.tar.gz
gentoo-2-fb40acabd4ec02101c06f3bfb922c0f2f7d43ebf.tar.bz2
gentoo-2-fb40acabd4ec02101c06f3bfb922c0f2f7d43ebf.zip
Initial commit, based on Paul Bredbury's ebuild from bug #110972
(Portage version: 2.1.2-r11)
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/alienarena/ChangeLog13
-rw-r--r--games-fps/alienarena/Manifest28
-rw-r--r--games-fps/alienarena/alienarena-20070224.ebuild87
-rw-r--r--games-fps/alienarena/files/alienarena-20070224-build.patch193
-rw-r--r--games-fps/alienarena/files/alienarena-20070224-exec-stack.patch9
-rw-r--r--games-fps/alienarena/files/alienarena-20070224-paths.patch43
-rw-r--r--games-fps/alienarena/files/digest-alienarena-200702243
-rw-r--r--games-fps/alienarena/metadata.xml5
8 files changed, 381 insertions, 0 deletions
diff --git a/games-fps/alienarena/ChangeLog b/games-fps/alienarena/ChangeLog
new file mode 100644
index 000000000000..3a6fa0fad3ed
--- /dev/null
+++ b/games-fps/alienarena/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for games-fps/alienarena
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/ChangeLog,v 1.1 2007/02/25 10:15:30 nyhm Exp $
+
+*alienarena-20070224 (25 Feb 2007)
+
+ 25 Feb 2007; Tristan Heaven <nyhm@gentoo.org>
+ +files/alienarena-20070224-build.patch,
+ +files/alienarena-20070224-exec-stack.patch,
+ +files/alienarena-20070224-paths.patch, +metadata.xml,
+ +alienarena-20070224.ebuild:
+ Initial commit, based on Paul Bredbury's ebuild from bug #110972
+
diff --git a/games-fps/alienarena/Manifest b/games-fps/alienarena/Manifest
new file mode 100644
index 000000000000..e09ca9517534
--- /dev/null
+++ b/games-fps/alienarena/Manifest
@@ -0,0 +1,28 @@
+AUX alienarena-20070224-build.patch 5240 RMD160 a5afb9454badb5ca01cbafcd3f34731de665bc77 SHA1 377f8a71e23f6ce201aa3a7ea142dbcf1d2863c5 SHA256 75de5ffe658da13893ba6d0a2987fb044b08518398584a11f31071ce6d2e9cc6
+MD5 1d4f8e12e2dde1e6667f7dcd8ce6ffae files/alienarena-20070224-build.patch 5240
+RMD160 a5afb9454badb5ca01cbafcd3f34731de665bc77 files/alienarena-20070224-build.patch 5240
+SHA256 75de5ffe658da13893ba6d0a2987fb044b08518398584a11f31071ce6d2e9cc6 files/alienarena-20070224-build.patch 5240
+AUX alienarena-20070224-exec-stack.patch 166 RMD160 0aba3db758691cb0e9f455a325576f25b88f367f SHA1 3898dc498731a3f6e56bb64aec61b76da9187e1f SHA256 7c94467bc8f0fca8db4390437f412331e31312d03f37bdb557329d2c095cce79
+MD5 c338665887152675dbe483bf0fa87966 files/alienarena-20070224-exec-stack.patch 166
+RMD160 0aba3db758691cb0e9f455a325576f25b88f367f files/alienarena-20070224-exec-stack.patch 166
+SHA256 7c94467bc8f0fca8db4390437f412331e31312d03f37bdb557329d2c095cce79 files/alienarena-20070224-exec-stack.patch 166
+AUX alienarena-20070224-paths.patch 1038 RMD160 f3714e668947ad175983507d4a352562b0cf203f SHA1 4c8282ff2bdc8dbe371780219208b69d6a1f0d8e SHA256 46a32ed8780530e7c3345207e014f799b5e8331e8d98a56806db392a3218d137
+MD5 3051a6536b7d190d895e1628c4364415 files/alienarena-20070224-paths.patch 1038
+RMD160 f3714e668947ad175983507d4a352562b0cf203f files/alienarena-20070224-paths.patch 1038
+SHA256 46a32ed8780530e7c3345207e014f799b5e8331e8d98a56806db392a3218d137 files/alienarena-20070224-paths.patch 1038
+DIST alienarena2007-linux20070224-x86.zip 195661108 RMD160 8ca8ac8f652d6b75d353ca9af7fff80d4e3fdd66 SHA1 7e9bb1069828091e077b6986e999d41765632847 SHA256 62f4a33b2b3975174d7893fcc95cfde4fadad02ab67da90b74827e5b854918d4
+EBUILD alienarena-20070224.ebuild 2481 RMD160 467fd40e51e0539f2b8e287d650f4a819ae5252d SHA1 b82136713b21d6ca58a769b60d0a008afbc954b7 SHA256 7fbc502e5e1a5ec3fd306e1aad1407d7582e1c778a11cb4637bd03962b1d4e2b
+MD5 a4b2310c3eecc117b98f56e69c468846 alienarena-20070224.ebuild 2481
+RMD160 467fd40e51e0539f2b8e287d650f4a819ae5252d alienarena-20070224.ebuild 2481
+SHA256 7fbc502e5e1a5ec3fd306e1aad1407d7582e1c778a11cb4637bd03962b1d4e2b alienarena-20070224.ebuild 2481
+MISC ChangeLog 450 RMD160 75f2625695be0e8aa6b16177fc80e547dce16c75 SHA1 ba3313f4a95b7b5039ea7ab21651060e037d3ac9 SHA256 4b6f0b6e0f69e3b265fac085015ece9b662fa3097baf2796ce14b3e62a75963f
+MD5 9767e81d9a2793d317cdf149f8bc02e6 ChangeLog 450
+RMD160 75f2625695be0e8aa6b16177fc80e547dce16c75 ChangeLog 450
+SHA256 4b6f0b6e0f69e3b265fac085015ece9b662fa3097baf2796ce14b3e62a75963f ChangeLog 450
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
+SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158
+MD5 bbbb88d8d843d358e0164ba74ad0e37a files/digest-alienarena-20070224 298
+RMD160 abf0835b2842366fa468974ec26eb3abc00b4f74 files/digest-alienarena-20070224 298
+SHA256 c3bfc994214b80376544c9265619bde383a537af3e6727fa635a1c5b8327c73a files/digest-alienarena-20070224 298
diff --git a/games-fps/alienarena/alienarena-20070224.ebuild b/games-fps/alienarena/alienarena-20070224.ebuild
new file mode 100644
index 000000000000..21d9eee92931
--- /dev/null
+++ b/games-fps/alienarena/alienarena-20070224.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/alienarena/alienarena-20070224.ebuild,v 1.1 2007/02/25 10:15:30 nyhm Exp $
+
+inherit eutils toolchain-funcs games
+
+MY_PN=${PN}${PV:0:4}
+DESCRIPTION="Fast paced multiplayer deathmatch game"
+HOMEPAGE="http://red.planetarena.org/"
+SRC_URI="http://cor.planetquake.gamespy.com/codered/files/${MY_PN}-linux${PV}-x86.zip
+ ftp://ftp.planetmirror.com/pub/gamershell/demo/${MY_PN}-linux${PV}-x86.zip
+ ftp://ftp.planetmirror.com/pub/worthplaying/${MY_PN}-linux${PV}-x86.zip"
+
+LICENSE="GPL-2 free-noncomm"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="dedicated opengl sdl"
+
+UIRDEPEND="media-libs/jpeg
+ virtual/glu
+ virtual/opengl
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm"
+UIDEPEND="x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+RDEPEND="opengl? ( ${UIRDEPEND} )
+ sdl? ( >=media-libs/libsdl-1.2.8-r1 ${UIRDEPEND} )
+ !opengl? ( !dedicated? ( !sdl? ( ${UIRDEPEND} ) ) )"
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ opengl? ( ${UIDEPEND} )
+ sdl? ( >=media-libs/libsdl-1.2.8-r1 ${UIDEPEND} )
+ !opengl? ( !dedicated? ( !sdl? ( ${UIDEPEND} ) ) )"
+
+S=${WORKDIR}/${MY_PN}/source/linux
+
+src_unpack() {
+ unpack ${A}
+ cd ${MY_PN}
+ rm -f */*.so
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-paths.patch \
+ "${FILESDIR}"/${P}-exec-stack.patch
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ GENTOO_LIBDIR="${GAMES_LIBDIR}"/${PN} \
+ GENTOO_DATADIR="${GAMES_DATADIR}"/${PN} \
+ $(use sdl && echo SDLSOUND=1) \
+ $(use opengl || use sdl && echo BUILD_ARENA=1) \
+ $(use opengl || use sdl || use dedicated || echo BUILD_ARENA=1) \
+ $(use dedicated && echo BUILD_DED=1) \
+ || die "emake failed"
+}
+
+src_install() {
+ cd build
+ exeinto "${GAMES_LIBDIR}"/${PN}
+ doexe arena/game.so || die "doexe failed"
+
+ if (use opengl || use sdl) || use opengl || use sdl || ! use dedicated ; then
+ newgamesbin crx ${PN}-oss || die "newgamesbin crx failed"
+ make_desktop_entry ${PN}-oss "Alien Arena (OSS audio)" ${PN}.xpm
+ use sdl || dosym ${PN}-oss "${GAMES_BINDIR}"/${PN}
+ fi
+
+ if use sdl ; then
+ newgamesbin crx.sdl ${PN}-sdl || die "newgamesbin crx.sdl failed"
+ make_desktop_entry ${PN}-sdl "Alien Arena (SDL audio)" ${PN}.xpm
+ dosym ${PN}-sdl "${GAMES_BINDIR}"/${PN}
+ fi
+
+ if use dedicated ; then
+ newgamesbin crded ${PN}-ded || die "newgamesbin crded failed"
+ fi
+
+ cd "${WORKDIR}"/${MY_PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r arena botinfo data1 || die "doins failed"
+ doicon ${PN}.xpm
+ dodoc README.txt version.txt
+ prepgamesdirs
+}
diff --git a/games-fps/alienarena/files/alienarena-20070224-build.patch b/games-fps/alienarena/files/alienarena-20070224-build.patch
new file mode 100644
index 000000000000..6f42ab9028b2
--- /dev/null
+++ b/games-fps/alienarena/files/alienarena-20070224-build.patch
@@ -0,0 +1,193 @@
+--- source/linux/Makefile
++++ source/linux/Makefile
+@@ -28,7 +28,8 @@
+
+ MOUNT_DIR=..
+
+-BUILD_DEBUG_DIR=debug$(ARCH)
++BUILDDIR=build
++BUILD_DEBUG_DIR=$(BUILDDIR)
+ BUILD_RELEASE_DIR=release$(ARCH)
+ CLIENT_DIR=$(MOUNT_DIR)/client
+ SERVER_DIR=$(MOUNT_DIR)/server
+@@ -50,7 +51,7 @@
+ _LIB := lib
+ endif
+
+-BASE_CFLAGS=-Dstricmp=strcasecmp -D_stricmp=strcasecmp -D__linux__
++CFLAGS+=-Dstricmp=strcasecmp -D_stricmp=strcasecmp -D__linux__
+
+ ifeq ($(ARCH),axp)
+ RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \
+@@ -79,8 +80,7 @@
+
+ ARENA_CFLAGS=-DARENA
+
+-DEBUG_CFLAGS=$(BASE_CFLAGS) -g
+-LDFLAGS=-ldl -lm
++LDFLAGS+=-ldl -lm
+ SVGALDFLAGS=-lvga -lm
+ XLDFLAGS=-L/usr/X11R6/$(_LIB) -lX11 -lXext -lXxf86dga
+ XCFLAGS=
+@@ -120,24 +120,27 @@
+ $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \
+ $(BUILDDIR)/arena/game$(ARCH).$(SHLIBEXT)
+ else
+-TARGETS=$(BUILDDIR)/crded.$(ARCH) \
+- $(BUILDDIR)/crx.$(ARCH) \
+- $(BUILDDIR)/game$(ARCH).$(SHLIBEXT) \
+- $(BUILDDIR)/arena/game$(ARCH).$(SHLIBEXT)
++TARGETS=$(BUILDDIR)/arena/game.so
++ifeq ($(BUILD_ARENA),1)
++TARGETS+=$(BUILDDIR)/crx
++endif
++ifeq ($(BUILD_DED),1)
++TARGETS+=$(BUILDDIR)/crded
++endif
+ endif
+
+ ifeq ($(strip $(SDLSOUND)),1)
+- TARGETS+=$(BUILDDIR)/crx.sdl.$(ARCH)
++ TARGETS+=$(BUILDDIR)/crx.sdl
+ endif
+
+-build_debug:
++targets: mkdirs $(TARGETS)
++mkdirs:
+ @-mkdir $(BUILD_DEBUG_DIR) \
+ $(BUILD_DEBUG_DIR)/client \
+ $(BUILD_DEBUG_DIR)/ded \
+ $(BUILD_DEBUG_DIR)/ref_gl \
+ $(BUILD_DEBUG_DIR)/game \
+ $(BUILD_DEBUG_DIR)/arena
+- $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
+
+ build_release:
+ @-mkdir $(BUILD_RELEASE_DIR) \
+@@ -150,7 +153,6 @@
+
+ all: build_debug build_release
+
+-targets: $(TARGETS)
+
+ #############################################################################
+ # CLIENT/SERVER
+@@ -242,14 +244,14 @@
+ endif
+
+
+-$(BUILDDIR)/crx.$(ARCH) : $(CODERED_OBJS) $(SOUND_OSS_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS)
++$(BUILDDIR)/crx : $(CODERED_OBJS) $(SOUND_OSS_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS)
+ $(CC) $(CFLAGS) -o $@ $(CODERED_OBJS) $(SOUND_OSS_OBJS) $(CODERED_AS_OBJS) $(LDFLAGS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS)
+
+-$(BUILDDIR)/crx.sdl.$(ARCH) : $(CODERED_OBJS) $(SOUND_SDL_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS)
++$(BUILDDIR)/crx.sdl : $(CODERED_OBJS) $(SOUND_SDL_OBJS) $(CODERED_AS_OBJS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS)
+ $(CC) $(CFLAGS) -o $@ $(CODERED_OBJS) $(SOUND_SDL_OBJS) $(CODERED_AS_OBJS) $(LDFLAGS) $(REF_GL_OBJS) $(REF_GL_GLX_OBJS) $(GLXLDFLAGS) $(SDLLDFLAGS)
+
+ $(BUILDDIR)/client/cl_cin.o : $(CLIENT_DIR)/cl_cin.c
+- $(DO_CC)
++ $(DO_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/client/cl_ents.o : $(CLIENT_DIR)/cl_ents.c
+ $(DO_CC)
+@@ -291,13 +293,13 @@
+ $(DO_CC)
+
+ $(BUILDDIR)/client/menu.o : $(CLIENT_DIR)/menu.c
+- $(DO_CC)
++ $(DO_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/client/snd_dma.o : $(CLIENT_DIR)/snd_dma.c
+ $(DO_CC)
+
+ $(BUILDDIR)/client/snd_mem.o : $(CLIENT_DIR)/snd_mem.c
+- $(DO_CC)
++ $(DO_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/client/snd_mix.o : $(CLIENT_DIR)/snd_mix.c
+ $(DO_CC)
+@@ -306,10 +308,10 @@
+ $(DO_CC)
+
+ $(BUILDDIR)/client/cmd.o : $(COMMON_DIR)/cmd.c
+- $(DO_CC)
++ $(DO_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/client/cmodel.o : $(COMMON_DIR)/cmodel.c
+- $(DO_CC)
++ $(DO_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/client/common.o : $(COMMON_DIR)/common.c
+ $(DO_CC)
+@@ -354,7 +356,7 @@
+ $(DO_CC)
+
+ $(BUILDDIR)/client/sv_user.o : $(SERVER_DIR)/sv_user.c
+- $(DO_CC)
++ $(DO_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/client/sv_world.o : $(SERVER_DIR)/sv_world.c
+ $(DO_CC)
+@@ -405,7 +407,7 @@
+ $(DO_GL_SHLIB_CC)
+
+ $(BUILDDIR)/ref_gl/r_script.o : $(REF_GL_DIR)/r_script.c
+- $(DO_GL_SHLIB_CC)
++ $(DO_GL_SHLIB_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/ref_gl/r_surf.o : $(REF_GL_DIR)/r_surf.c
+ $(DO_GL_SHLIB_CC)
+@@ -414,7 +416,7 @@
+ $(DO_GL_SHLIB_CC)
+
+ $(BUILDDIR)/ref_gl/r_image.o : $(REF_GL_DIR)/r_image.c
+- $(DO_GL_SHLIB_CC)
++ $(DO_GL_SHLIB_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/ref_gl/r_mesh.o : $(REF_GL_DIR)/r_mesh.c
+ $(DO_GL_SHLIB_CC)
+@@ -478,14 +480,14 @@
+ $(BUILDDIR)/ded/cl_null.o \
+ $(BUILDDIR)/ded/cd_null.o
+
+-$(BUILDDIR)/crded.$(ARCH) : $(CRDED_OBJS)
++$(BUILDDIR)/crded : $(CRDED_OBJS)
+ $(CC) $(CFLAGS) -o $@ $(CRDED_OBJS) $(LDFLAGS)
+
+ $(BUILDDIR)/ded/cmd.o : $(COMMON_DIR)/cmd.c
+- $(DO_DED_CC)
++ $(DO_DED_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/ded/cmodel.o : $(COMMON_DIR)/cmodel.c
+- $(DO_DED_CC)
++ $(DO_DED_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/ded/common.o : $(COMMON_DIR)/common.c
+ $(DO_DED_CC)
+@@ -530,7 +532,7 @@
+ $(DO_DED_CC)
+
+ $(BUILDDIR)/ded/sv_user.o : $(SERVER_DIR)/sv_user.c
+- $(DO_DED_CC)
++ $(DO_DED_CC) -fno-strict-aliasing
+
+ $(BUILDDIR)/ded/sv_world.o : $(SERVER_DIR)/sv_world.c
+ $(DO_DED_CC)
+@@ -597,7 +599,7 @@
+
+
+
+-$(BUILDDIR)/game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS)
++$(BUILDDIR)/game.so : $(GAME_OBJS)
+ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
+
+
+@@ -753,7 +755,7 @@
+ $(BUILDDIR)/arena/p_weapon.o \
+ $(BUILDDIR)/arena/vehicles.o
+
+-$(BUILDDIR)/arena/game$(ARCH).$(SHLIBEXT) : $(ARENA_OBJS)
++$(BUILDDIR)/arena/game.so : $(ARENA_OBJS)
+ $(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(ARENA_OBJS)
+
+
diff --git a/games-fps/alienarena/files/alienarena-20070224-exec-stack.patch b/games-fps/alienarena/files/alienarena-20070224-exec-stack.patch
new file mode 100644
index 000000000000..2bd10445e2f8
--- /dev/null
+++ b/games-fps/alienarena/files/alienarena-20070224-exec-stack.patch
@@ -0,0 +1,9 @@
+--- source/linux/snd_mixa.s
++++ source/linux/snd_mixa.s
+@@ -191,3 +191,6 @@
+
+ #endif // id386
+
++#ifdef __ELF__
++.section .note.GNU-stack,"",%progbits
++#endif
diff --git a/games-fps/alienarena/files/alienarena-20070224-paths.patch b/games-fps/alienarena/files/alienarena-20070224-paths.patch
new file mode 100644
index 000000000000..2acbb2dd5ef2
--- /dev/null
+++ b/games-fps/alienarena/files/alienarena-20070224-paths.patch
@@ -0,0 +1,43 @@
+--- source/linux/Makefile
++++ source/linux/Makefile
+@@ -1,3 +1,4 @@
++CFLAGS+=-DGENTOO_DATADIR=\"$(GENTOO_DATADIR)\" -DGENTOO_LIBDIR=\"$(GENTOO_LIBDIR)\"
+ #
+ # CodeRED Makefile
+ #
+--- source/linux/sys_linux.c
++++ source/linux/sys_linux.c
+@@ -217,6 +217,8 @@
+ char name[MAX_OSPATH];
+ char *path;
+ char *str_p;
++ const char *gamename = "game.so";
++/*
+ #if defined __i386__
+ const char *gamename = "gamei386.so";
+ #elif defined __x86_64__
+@@ -230,6 +232,7 @@
+ #else
+ #error Unknown arch
+ #endif
++*/
+
+ setreuid(getuid(), getuid());
+ setegid(getgid());
+@@ -246,7 +249,7 @@
+ path = FS_NextPath (path);
+ if (!path)
+ return NULL; // couldn't find one anywhere
+- snprintf (name, MAX_OSPATH, "%s/%s", path, gamename);
++ snprintf (name, MAX_OSPATH, "%s/%s", GENTOO_LIBDIR, gamename);
+
+ /* skip it if it just doesn't exist */
+ fp = fopen(name, "rb");
+@@ -320,6 +323,7 @@
+ saved_euid = geteuid();
+ seteuid(getuid());
+
++ chdir(GENTOO_DATADIR);
+ Qcommon_Init(argc, argv);
+
+ fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
diff --git a/games-fps/alienarena/files/digest-alienarena-20070224 b/games-fps/alienarena/files/digest-alienarena-20070224
new file mode 100644
index 000000000000..0c122c10025d
--- /dev/null
+++ b/games-fps/alienarena/files/digest-alienarena-20070224
@@ -0,0 +1,3 @@
+MD5 1348513890c6ba959e681e721add1fd4 alienarena2007-linux20070224-x86.zip 195661108
+RMD160 8ca8ac8f652d6b75d353ca9af7fff80d4e3fdd66 alienarena2007-linux20070224-x86.zip 195661108
+SHA256 62f4a33b2b3975174d7893fcc95cfde4fadad02ab67da90b74827e5b854918d4 alienarena2007-linux20070224-x86.zip 195661108
diff --git a/games-fps/alienarena/metadata.xml b/games-fps/alienarena/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-fps/alienarena/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>