summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-server')
-rw-r--r--games-server/bf1942-lnxded/Manifest2
-rw-r--r--games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild43
-rw-r--r--games-server/bf1942-lnxded/files/bf1942-lnxded3
-rw-r--r--games-server/bf1942-lnxded/metadata.xml5
-rw-r--r--games-server/crossfire-server/Manifest5
-rw-r--r--games-server/crossfire-server/crossfire-server-1.70.0.ebuild40
-rw-r--r--games-server/crossfire-server/crossfire-server-1.71.0.ebuild50
-rw-r--r--games-server/crossfire-server/metadata.xml8
-rw-r--r--games-server/cyphesis/Manifest1
-rw-r--r--games-server/cyphesis/cyphesis-0.6.2.ebuild60
-rw-r--r--games-server/cyphesis/files/cyphesis-0.6.2-gentoo.patch32
-rw-r--r--games-server/cyphesis/files/cyphesis-0.6.2-makefile.patch11
-rw-r--r--games-server/cyphesis/metadata.xml16
-rw-r--r--games-server/etqw-ded/Manifest1
-rw-r--r--games-server/etqw-ded/etqw-ded-1.5.ebuild45
-rw-r--r--games-server/etqw-ded/metadata.xml5
-rw-r--r--games-server/metadata.xml32
-rw-r--r--games-server/monopd/Manifest2
-rw-r--r--games-server/monopd/files/monopd.in20
-rw-r--r--games-server/monopd/metadata.xml5
-rw-r--r--games-server/monopd/monopd-0.9.7.ebuild39
-rw-r--r--games-server/monopd/monopd-0.9.8.ebuild39
-rw-r--r--games-server/mtavc/Manifest1
-rw-r--r--games-server/mtavc/files/mtavc3
-rw-r--r--games-server/mtavc/metadata.xml5
-rw-r--r--games-server/mtavc/mtavc-0.5.ebuild47
-rw-r--r--games-server/nwn-ded/Manifest2
-rw-r--r--games-server/nwn-ded/metadata.xml5
-rw-r--r--games-server/nwn-ded/nwn-ded-1.69.ebuild71
-rw-r--r--games-server/pvpgn/Manifest2
-rw-r--r--games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch233
-rwxr-xr-xgames-server/pvpgn/files/pvpgn.rc41
-rw-r--r--games-server/pvpgn/metadata.xml8
-rw-r--r--games-server/pvpgn/pvpgn-1.8.5-r1.ebuild91
-rw-r--r--games-server/ut2003-ded/Manifest2
-rw-r--r--games-server/ut2003-ded/metadata.xml8
-rw-r--r--games-server/ut2003-ded/ut2003-ded-2225-r2.ebuild72
-rw-r--r--games-server/ut2004-ded/Manifest3
-rw-r--r--games-server/ut2004-ded/files/ut2004-ded.confd9
-rw-r--r--games-server/ut2004-ded/files/ut2004-ded.initd26
-rw-r--r--games-server/ut2004-ded/metadata.xml8
-rw-r--r--games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild96
42 files changed, 1197 insertions, 0 deletions
diff --git a/games-server/bf1942-lnxded/Manifest b/games-server/bf1942-lnxded/Manifest
new file mode 100644
index 000000000000..c8acc6831ce0
--- /dev/null
+++ b/games-server/bf1942-lnxded/Manifest
@@ -0,0 +1,2 @@
+DIST bf1942-update-1.61.tar.gz 7768635 SHA256 6c60b6af994fba9e98f8e3a20ca04602f6f0ad2b40b4c549441918217bc02160 SHA512 041c1ad03daab592b799dec1560e15156e1da583919aa270220d53d308b5c1b8e7da771176eea6e3e1558407dbad37388d480199847c68ecf94b58f29d64a26b WHIRLPOOL 0d1e29b491821e349c7e586e2eea8186c7c6999f682c5a60ef4d6bf94f8a180d58b97c8ccea8b48b260f602fb17e775314549e79f6b12d2118203bc10a4a244c
+DIST bf1942_lnxded-1.6-rc2.run 108138508 SHA256 ca6e754a028e8d12a4f3efbbc90892d979035be7d144de1f64d99884902568f3 SHA512 9171eb8f729bd36fc76133563201332d91e434aa6a54813eb0ec5278f04e7132d4e5b74c92d69ad1e542c37a586aae6ee8d12b2e92d5a853d2682de530ad1db1 WHIRLPOOL 2cfb858500431c584f2c0b5a4ebc495239909240db716f28179f8b900fd7c17336fa2b5eb50f7eaa41662523bebe65eebeba550d93bdeaaa79b34574f6178da7
diff --git a/games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild b/games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild
new file mode 100644
index 000000000000..c400aedd26a0
--- /dev/null
+++ b/games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils unpacker games
+
+DESCRIPTION="dedicated server for Battlefield 1942"
+HOMEPAGE="http://www.battlefield.com/battlefield-1942"
+SRC_URI="http://ftp.games.skynet.be/pub/misc/${PN/-/_}-1.6-rc2.run
+ http://ftp.games.skynet.be/pub/misc/bf1942-update-${PV}.tar.gz"
+
+LICENSE="bf1942-lnxded"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+RESTRICT="mirror bindist strip"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/bf1942
+Ddir=${D}/${dir}
+
+QA_PREBUILT="${dir}/*.so ${dir}/bf1942_lnxded.*"
+
+src_unpack() {
+ mkdir bf1942 && cd bf1942
+ unpack_makeself ${PN/-/_}-1.6-rc2.run
+ cd ..
+ unpack bf1942-update-${PV}.tar.gz
+}
+
+src_install() {
+ dodir "${dir}"
+ mv -f "${S}"/bf1942/* "${S}" || die
+ rm -rf "${S}"/bf1942 || die
+
+ mv "${S}"/* "${Ddir}" || die
+ dosym bf1942_lnxded.dynamic "${dir}"/bf1942_lnxded
+ games_make_wrapper ${PN} ./bf1942_lnxded "${dir}"
+
+ prepgamesdirs
+}
diff --git a/games-server/bf1942-lnxded/files/bf1942-lnxded b/games-server/bf1942-lnxded/files/bf1942-lnxded
new file mode 100644
index 000000000000..256199b8b8be
--- /dev/null
+++ b/games-server/bf1942-lnxded/files/bf1942-lnxded
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./bf1942_lnxded "$@"
diff --git a/games-server/bf1942-lnxded/metadata.xml b/games-server/bf1942-lnxded/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-server/bf1942-lnxded/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>
diff --git a/games-server/crossfire-server/Manifest b/games-server/crossfire-server/Manifest
new file mode 100644
index 000000000000..e9ef2c65e2ca
--- /dev/null
+++ b/games-server/crossfire-server/Manifest
@@ -0,0 +1,5 @@
+DIST crossfire-1.70.0.maps.tar.gz 28911538 SHA256 64b1bccef796fde9559a84b4486cf380710b9db70c2c45a1b0f67adf3d822aa9 SHA512 6c6349033950fc0bc60938d9784e420a4f594fdb6c3e0f281591445ae6c9e073caf1c5bb6627f0fe7f4b7a7a8afeafa1b41e948dbdfd9fe8fef1f41857afa06a WHIRLPOOL b5d1869b84f314dc054eadb22a5cfa83bb1721fcc1417b83e36586f2e3f65a90f2593eaecbb0e808d200aed563a5060961a1312d0afb0d9885b2a304263a8c48
+DIST crossfire-1.70.0.tar.gz 6626864 SHA256 f6679aa19f7b041a779d26215a7f0062ab7a1fd96185527c207485e084b4654d SHA512 c19f52aaf2292cacb47f186603d6a48769e84aea2973d5fa9028594001706a3e13452e540f2352e279c2f49a839282efb2624a0fd177b1729a2a6df0a5db4fc5 WHIRLPOOL 39652a4dc9c2d1096721c1462378a5b9481194ab1e0188a4bcbe9b8ebbd4981d5dea176cf243a8d23ed133df97dfaebf4831e5a5a5a446d75aa8ebf37daa47d8
+DIST crossfire-1.71.0.arch.tar.bz2 3462161 SHA256 016ee33b15879a96e14932a9209d03ee9e3da69b3f3bd6b82c800f43345f064d SHA512 f9707dc5dab24d0ba74654c6433e016a58ab4e99da5dade6614491eca00736965bb7fd9a24db4188c3409a0479a88bb0ea55282e519ffcbabf23d82e6a5b975e WHIRLPOOL 3c2776bda5f14804eee234731e2cd14fc98d77d06fea24c4be5838c4df236b642dbada63e629e1268fb987fe6b00c98d5960fb5dc7c9e608e996103ffa16a441
+DIST crossfire-1.71.0.maps.tar.bz2 19463076 SHA256 f6df5fd605dd3b83dce1aa730390443b09569e6fae93bef058cd8f52fedc17da SHA512 c3940b0a48f1badc14eb81610cfcd4241d140b666b5cb123845dca6ad742a18977ad7ada1d75d738f15f44374896c4dd6047989122257d7cd87362a3af0f97e8 WHIRLPOOL 5ea6a027b8d0a04e89f77eae74308655d82936fa8f492a75238ee5b665b4cc5a49598db3f3119808ca9403bb62d32b4da8d1cfd981a8e7f43001571d178bd516
+DIST crossfire-1.71.0.tar.bz2 6712638 SHA256 cc1917db207628c34d2222f1b6c416481f72f185ac3bc9e49b9a53db94fe1e1d SHA512 d867f3393cb18ed78158c9a724d386dd642f0193ace86fef592e7bdc80885b7f7ce3c37be34b77d73b31c939d41e533029f2e7dea405c00d7a67aa3baebd146d WHIRLPOOL 484d57f2d7f0138b35e3eb4c2fc08a2e462de6ddccde3b413bd141161bc1239283a966a2a3ebeeabef56b311e90d9cd86cba4a322e6152d930fa7d9a5ceb4267
diff --git a/games-server/crossfire-server/crossfire-server-1.70.0.ebuild b/games-server/crossfire-server/crossfire-server-1.70.0.ebuild
new file mode 100644
index 000000000000..c8bd1b014e8e
--- /dev/null
+++ b/games-server/crossfire-server/crossfire-server-1.70.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+MY_P="${P/-server/}"
+DESCRIPTION="server for the crossfire clients"
+HOMEPAGE="http://crossfire.real-time.com/"
+SRC_URI="mirror://sourceforge/crossfire/${MY_P}.tar.gz
+ mirror://sourceforge/crossfire/crossfire-${PV}.maps.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="X"
+RESTRICT="test"
+
+DEPEND="net-misc/curl
+ X? (
+ x11-libs/libXaw
+ media-libs/libpng:0
+ )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ rm -f "${WORKDIR}"/maps/Info/combine.pl # bug #236205
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ keepdir "${GAMES_STATEDIR}"/crossfire/{datafiles,maps,players,template-maps,unique-items}
+ dodoc AUTHORS ChangeLog DEVELOPERS NEWS README TODO
+ insinto "${GAMES_DATADIR}/crossfire"
+ doins -r "${WORKDIR}/maps"
+ prepgamesdirs
+}
diff --git a/games-server/crossfire-server/crossfire-server-1.71.0.ebuild b/games-server/crossfire-server/crossfire-server-1.71.0.ebuild
new file mode 100644
index 000000000000..e0c191859bfd
--- /dev/null
+++ b/games-server/crossfire-server/crossfire-server-1.71.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+MY_P="${P/-server/}"
+DESCRIPTION="server for the crossfire clients"
+HOMEPAGE="http://crossfire.real-time.com/"
+SRC_URI="mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.tar.bz2
+ mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.maps.tar.bz2
+ mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.arch.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="X"
+RESTRICT="test"
+
+DEPEND="net-misc/curl
+ X? (
+ x11-libs/libXaw
+ media-libs/libpng:0
+ )"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ rm -f "${WORKDIR}"/maps/Info/combine.pl # bug #236205
+ ln -s "${WORKDIR}/arch" "${S}/lib" || die
+}
+
+src_configure() {
+ egamesconf --disable-static
+}
+
+src_compile() {
+ # work around the collect.pl locking
+ emake -j1 -C lib
+ emake
+}
+
+src_install() {
+ default
+ keepdir "${GAMES_STATEDIR}"/crossfire/{account,datafiles,maps,players,template-maps,unique-items}
+ insinto "${GAMES_DATADIR}/crossfire"
+ doins -r "${WORKDIR}/maps"
+ prune_libtool_files --modules
+ prepgamesdirs
+}
diff --git a/games-server/crossfire-server/metadata.xml b/games-server/crossfire-server/metadata.xml
new file mode 100644
index 000000000000..19f7d9af42ad
--- /dev/null
+++ b/games-server/crossfire-server/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">crossfire</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-server/cyphesis/Manifest b/games-server/cyphesis/Manifest
new file mode 100644
index 000000000000..9706cb87bf2b
--- /dev/null
+++ b/games-server/cyphesis/Manifest
@@ -0,0 +1 @@
+DIST cyphesis-0.6.2.tar.bz2 932099 SHA256 251f297b299834ae67abe6196f646ef8f14bc5be3096d03c6ff677ff20acfcfd SHA512 07783a99a47f105cd492b033fb1ded1c5fef089d01fa50d90103dc62c6e94dc58394f082674d9261db5fe9779d4694579119769de50177bfc2ead055c5740b2f WHIRLPOOL 91f46ed623f5cc6ef8305287220584e1a6f142588de6c3362bb01eecd9a3916bcd68ac5b876b7ae3bba46d86cad414bce6ca9a9d5d6e26a5a75d0c1c51b0e102
diff --git a/games-server/cyphesis/cyphesis-0.6.2.ebuild b/games-server/cyphesis/cyphesis-0.6.2.ebuild
new file mode 100644
index 000000000000..1158cc44c460
--- /dev/null
+++ b/games-server/cyphesis/cyphesis-0.6.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit toolchain-funcs autotools python-single-r1 eutils games
+
+DESCRIPTION="WorldForge server running small games"
+HOMEPAGE="http://worldforge.org/index.php/components/cyphesis/"
+SRC_URI="mirror://sourceforge/worldforge/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="test"
+
+RDEPEND=">=media-libs/skstream-0.3.9
+ >=dev-games/wfmath-1.0.1
+ >=dev-games/mercator-0.3.3
+ dev-libs/libgcrypt:0
+ dev-libs/libsigc++:2
+ sys-libs/ncurses
+ sys-libs/readline
+ >=media-libs/atlas-c++-0.6.3
+ >=media-libs/varconf-0.6.4
+ dev-db/postgresql"
+DEPEND="${RDEPEND}
+ >=dev-libs/boost-1.40
+ dev-libs/libxml2
+ virtual/pkgconfig"
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ games_pkg_setup
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-makefile.patch
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --localstatedir=/var
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ emake DESTDIR="${D}" confbackupdir="/usr/share/doc/${PF}/conf" \
+ install
+ dodoc AUTHORS ChangeLog FIXME NEWS README THANKS TODO
+ prepgamesdirs
+}
diff --git a/games-server/cyphesis/files/cyphesis-0.6.2-gentoo.patch b/games-server/cyphesis/files/cyphesis-0.6.2-gentoo.patch
new file mode 100644
index 000000000000..69aac409ba8d
--- /dev/null
+++ b/games-server/cyphesis/files/cyphesis-0.6.2-gentoo.patch
@@ -0,0 +1,32 @@
+diff -ru cyphesis-0.6.0.orig/Makefile.am cyphesis-0.6.0/Makefile.am
+--- cyphesis-0.6.0.orig/Makefile.am 2012-10-02 06:23:10.000000000 -0400
++++ cyphesis-0.6.0/Makefile.am 2012-11-12 16:54:19.306892135 -0500
+@@ -3,7 +3,6 @@
+ tools tests man dox
+
+ docdir = $(datadir)/doc/cyphesis-$(VERSION)
+-dist_doc_DATA = README COPYING AUTHORS THANKS NEWS FIXME
+
+ rulesetdir = $(datadir)/cyphesis/rulesets
+
+diff -ru cyphesis-0.6.0.orig/configure.ac cyphesis-0.6.0/configure.ac
+--- cyphesis-0.6.0.orig/configure.ac 2012-11-09 16:39:13.000000000 -0500
++++ cyphesis-0.6.0/configure.ac 2012-11-12 16:53:51.622839335 -0500
+@@ -381,17 +381,6 @@
+ libraries required and where to obtain them.])
+ ])
+
+-PKG_CHECK_MODULES(AVAHI, avahi-client,
+- [
+- CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS"
+- MDNS_LIBS="$MDNS_LIBS $AVAHI_LIBS"
+- AC_DEFINE(HAVE_AVAHI, 1, [Define to 1 if you have avahi libs.])
+- ],
+- [
+- AC_MSG_RESULT([no])
+- AC_MSG_NOTICE([Ommiting DNS-SD functionality.])
+- ])
+-
+ AM_PATH_PSQL(7.1.0,
+ [
+ if test "$PG_CFLAGS" != "-I/usr/include"; then
diff --git a/games-server/cyphesis/files/cyphesis-0.6.2-makefile.patch b/games-server/cyphesis/files/cyphesis-0.6.2-makefile.patch
new file mode 100644
index 000000000000..99ca3872c040
--- /dev/null
+++ b/games-server/cyphesis/files/cyphesis-0.6.2-makefile.patch
@@ -0,0 +1,11 @@
+--- Makefile.am.old 2013-09-25 14:26:30.518751250 +0200
++++ Makefile.am 2013-09-25 14:27:21.846257911 +0200
+@@ -13,8 +13,6 @@
+
+ # FIXME Remove the mkdir hack if it gets fixed in a future automake
+ install-data-hook:
+- mkdir -p $(DESTDIR)$(socketdir)
+- chmod 1777 $(DESTDIR)$(socketdir)
+ @echo
+ @echo "Cyphesis is not yet ready to run."
+ @echo "Unless you have configured the server to run without a database, Cyphesis"
diff --git a/games-server/cyphesis/metadata.xml b/games-server/cyphesis/metadata.xml
new file mode 100644
index 000000000000..5d147bfd158d
--- /dev/null
+++ b/games-server/cyphesis/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <longdescription lang="en">
+Cyphesis is an NPC engine using AI/A-Life techniques. It is the Artificial
+Intelligence and Artificial Life server used by STAGE and also is filling in as
+its first fully functional game server, featured in Acorn. Cyphesis is a
+prototype server designed to explore the possibilities of complex NPC
+interaction and scripting. Efficiency and support for large numbers of players
+are foregone in the quest for a more realistic and dynamic world framework.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">worldforge</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-server/etqw-ded/Manifest b/games-server/etqw-ded/Manifest
new file mode 100644
index 000000000000..ece718155cdc
--- /dev/null
+++ b/games-server/etqw-ded/Manifest
@@ -0,0 +1 @@
+DIST ETQW-server-1.5-full.x86.run 452679053 SHA256 7dc4cf69b3355063b4f8767e23b19d8224ff9b4f556ad906056063ddfe581ac0 SHA512 8daa5f192330be09b476d9633af79085f8b45d64e99fb50f6dc2ded085171f3d310218308b813bc7fc9a56b5fb34d52d72248a1e926a0e499ce096690407b0cd WHIRLPOOL d4306d1309e51d53cc2296d5ff1c6b995bca33b1eb5b225837f52bbdef17887e55cc056bf1c16ccd4a44af2e45e55e604c3ebc34cae2b55e1af714747c9df6fa
diff --git a/games-server/etqw-ded/etqw-ded-1.5.ebuild b/games-server/etqw-ded/etqw-ded-1.5.ebuild
new file mode 100644
index 000000000000..8c45c58f366a
--- /dev/null
+++ b/games-server/etqw-ded/etqw-ded-1.5.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Enemy Territory: Quake Wars dedicated server"
+HOMEPAGE="http://www.splashdamage.com/content/et-quake-wars-standalone-server-linux"
+SRC_URI="ETQW-server-${PV}-full.x86.run"
+
+LICENSE="ETQW"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="fetch strip"
+
+DEPEND="app-arch/unzip"
+RDEPEND="sys-libs/glibc"
+
+S=${WORKDIR}/data
+dir=${GAMES_PREFIX_OPT}/${PN}
+
+QA_TEXTRELS="${dir:1}/pb/*.so"
+QA_EXECSTACK="${dir:1}/*.x86
+ ${dir:1}/*.so*"
+
+pkg_nofetch() {
+ einfo "Please download ${A} from ${HOMEPAGE} and copy it to ${DISTDIR}"
+}
+
+src_unpack() {
+ tail -c +194885 "${DISTDIR}"/${A} > ${A}.zip
+ unpack ./${A}.zip
+ rm -f ${A}.zip
+}
+
+src_install() {
+ insinto "${dir}"
+ doins -r base pb *.txt
+ exeinto "${dir}"
+ doexe etqwded.x86 *.so*
+ games_make_wrapper ${PN} ./etqwded.x86 "${dir}" "${dir}"
+ prepgamesdirs
+}
diff --git a/games-server/etqw-ded/metadata.xml b/games-server/etqw-ded/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-server/etqw-ded/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>
diff --git a/games-server/metadata.xml b/games-server/metadata.xml
new file mode 100644
index 000000000000..65ad0509b916
--- /dev/null
+++ b/games-server/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The games-server category contains game servers.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie games-server enthält Spieleserver.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría games-server contiene servidores de juegos.
+ </longdescription>
+ <longdescription lang="ja">
+ games-serverカテゴリーにはゲーム・サーバーが含まれています。
+ </longdescription>
+ <longdescription lang="nl">
+ De games-server categorie bevat spelservers.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm games-server chứa các game server.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria games-server contiene server per i giochi multigiocatore.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria games-server contém servidores de jogos.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria games-server zawiera serwery gier.
+ </longdescription>
+</catmetadata>
+
diff --git a/games-server/monopd/Manifest b/games-server/monopd/Manifest
new file mode 100644
index 000000000000..397a9c4e29ab
--- /dev/null
+++ b/games-server/monopd/Manifest
@@ -0,0 +1,2 @@
+DIST monopd-0.9.7.tar.gz 180318 SHA256 34aa975c8ee410f661622f91a63c4199e68a333123218b3e48300be1bc7afc30 SHA512 55b2e3b6f16f20fc1928d79eaecbdceaf9b9a8c9fe44b2cf8a8489347c728a006df78043235504e3931bb71b90e7493375fb2b71285447ad4a11dd434aa3133f WHIRLPOOL 14c47c95b64fafe07dc37ea61579ad42cf09c535f35b8f22d7dbdfa1dd04c529173e22c99287d2c748266ab00cdd82e28340d945924681849a1209911d6fcd16
+DIST monopd-0.9.8.tar.gz 180509 SHA256 408321ea73f2e7cdee570973ff50a3ee1a2f7078f8f19e8861614f238574ec9a SHA512 c39806c51f27eb29f154db520bf1c49d10e5a8587b3d23411de43bd07cd3553c398ea31802473d9cdcf350f5432abeb7bde62478e1844abc93d73395951c87b1 WHIRLPOOL 9e18cfac665610f5372af16128b87095eeb19251cd511b489124c4e7d8845bcc123c6a1fc51d8d457cdabf6cacc6dcf704766b8ff1a96c0f5940bd4f66595272
diff --git a/games-server/monopd/files/monopd.in b/games-server/monopd/files/monopd.in
new file mode 100644
index 000000000000..640ab25eb219
--- /dev/null
+++ b/games-server/monopd/files/monopd.in
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use net
+}
+
+start() {
+ ebegin "Starting monopd server"
+ start-stop-daemon --start -q -b --exec GENTOO_DIR/monopd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping monopd server"
+ start-stop-daemon --stop -q --exec GENTOO_DIR/monopd
+ eend $?
+}
diff --git a/games-server/monopd/metadata.xml b/games-server/monopd/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-server/monopd/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>
diff --git a/games-server/monopd/monopd-0.9.7.ebuild b/games-server/monopd/monopd-0.9.7.ebuild
new file mode 100644
index 000000000000..b65372d86cda
--- /dev/null
+++ b/games-server/monopd/monopd-0.9.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils systemd games
+
+DESCRIPTION="server for atlantik games"
+HOMEPAGE="http://gtkatlantic.gradator.net/"
+SRC_URI="http://download.tuxfamily.org/gtkatlantic/monopd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="systemd"
+
+RDEPEND="systemd? ( sys-apps/systemd )"
+DEPEND="${RDEPEND}
+ >=sys-libs/libmath++-0.0.3"
+
+src_prepare() {
+ sed "s:GENTOO_DIR:\"${GAMES_BINDIR}\":" \
+ "${FILESDIR}"/monopd.in > "${T}"/monopd || die
+ sed -i \
+ -e '/C_SUBST(CXXFLAGS/s/CFLAGS/CXXFLAGS/' \
+ configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf $(use_with systemd systemd-daemon)
+}
+
+src_install() {
+ default
+ doinitd "${T}"/monopd
+ systemd_dounit doc/systemd/monopd.s*
+ prepgamesdirs
+}
diff --git a/games-server/monopd/monopd-0.9.8.ebuild b/games-server/monopd/monopd-0.9.8.ebuild
new file mode 100644
index 000000000000..c84c436780e2
--- /dev/null
+++ b/games-server/monopd/monopd-0.9.8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils systemd games
+
+DESCRIPTION="server for atlantik games"
+HOMEPAGE="http://gtkatlantic.gradator.net/"
+SRC_URI="http://download.tuxfamily.org/gtkatlantic/monopd/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="systemd"
+
+RDEPEND="systemd? ( sys-apps/systemd )"
+DEPEND="${RDEPEND}
+ >=sys-libs/libmath++-0.0.3"
+
+src_prepare() {
+ sed "s:GENTOO_DIR:\"${GAMES_BINDIR}\":" \
+ "${FILESDIR}"/monopd.in > "${T}"/monopd || die
+ sed -i \
+ -e '/C_SUBST(CXXFLAGS/s/CFLAGS/CXXFLAGS/' \
+ configure.ac || die
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf $(use_with systemd systemd-daemon)
+}
+
+src_install() {
+ default
+ doinitd "${T}"/monopd
+ systemd_dounit doc/systemd/monopd.s*
+ prepgamesdirs
+}
diff --git a/games-server/mtavc/Manifest b/games-server/mtavc/Manifest
new file mode 100644
index 000000000000..b2c70df8fce6
--- /dev/null
+++ b/games-server/mtavc/Manifest
@@ -0,0 +1 @@
+DIST MTAServer0_5-linux.tar.gz 229056 SHA256 0e4b58658299ac79b1ae6d0bbd4946fc22a7e063986896e69a0749a38c9d17b1 SHA512 eed0ec109427c53c9627826f1977b4a2454be0130d445b2ff7288e3f93b93d76d21b22ffdb706d306009baffd37bd317f9573a9650477e25146ff5d3b49f9c1f WHIRLPOOL d5ce31869569c3f322b4bc3cfeee5435c693cc9e16662425ac31bd1120a5528d1ad630fb055c82048ca51c2e5c07b1b205844f8bc5569b532d1e2cd28f603174
diff --git a/games-server/mtavc/files/mtavc b/games-server/mtavc/files/mtavc
new file mode 100644
index 000000000000..00b76f9d6f18
--- /dev/null
+++ b/games-server/mtavc/files/mtavc
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd GENTOO_DIR
+exec ./MTAServer "$@"
diff --git a/games-server/mtavc/metadata.xml b/games-server/mtavc/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-server/mtavc/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>
diff --git a/games-server/mtavc/mtavc-0.5.ebuild b/games-server/mtavc/mtavc-0.5.ebuild
new file mode 100644
index 000000000000..d3ad615f523e
--- /dev/null
+++ b/games-server/mtavc/mtavc-0.5.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="dedicated server for GTA3 multiplayer"
+HOMEPAGE="http://mtavc.com/"
+SRC_URI="http://files.gonnaplay.com/201/MTAServer0_5-linux.tar.gz"
+
+LICENSE="MTA-0.5"
+SLOT="0"
+KEYWORDS="-* ~x86"
+IUSE=""
+
+RDEPEND="virtual/libstdc++"
+DEPEND=""
+
+S=${WORKDIR}
+
+QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/MTAServer"
+QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/${PN}/MTAServer"
+
+src_prepare() {
+ sed -i 's:NoName:Gentoo:' mtaserver.conf || die
+}
+
+src_install() {
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ local files="banned.lst motd.txt mtaserver.conf"
+ local f
+
+ dogamesbin "${FILESDIR}"/mtavc
+ sed -i -e "s:GENTOO_DIR:${dir}:" "${D}${GAMES_BINDIR}"/mtavc
+
+ exeinto "${dir}"
+ newexe MTAServer${PV} MTAServer
+ insinto "${GAMES_SYSCONFDIR}"/${PN}
+ doins ${files}
+ dodoc README CHANGELOG
+ for f in ${files} ; do
+ dosym "${GAMES_SYSCONFDIR}"/${PN}/${f} "${dir}"/${f}
+ done
+
+ prepgamesdirs
+}
diff --git a/games-server/nwn-ded/Manifest b/games-server/nwn-ded/Manifest
new file mode 100644
index 000000000000..aecc9e4c415b
--- /dev/null
+++ b/games-server/nwn-ded/Manifest
@@ -0,0 +1,2 @@
+DIST NWNDedicatedServer1.69.zip 606293816 SHA256 9df63ea1bf24b43be2c7568a1379cb7197fb591b0c0454ec2d20cec96234a45c SHA512 0f91ab8d03d040389d9ad7ccc7d50079057d62d542fecfb2164a726511718ba982f7b2f9878bc1143f2c61b3ef7ab8f92e5e4007b515ad6aff51216c5b602ffd WHIRLPOOL 2f309f42a01c4fc01f600cb3d23e2e2c82e5ad42462e695cc56a90a59ab220bb6324a4aef9714567d8fdc9393624d63b310ff2fe225c49151932aa16d26f110a
+DIST NWNEnglish1.69dialog.zip 3200987 SHA256 357fd4c312d7598e9f563c61918f78c2235bd19acff8ac1b2d19140972828d66 SHA512 8c3214a3bcf137ea3b4b59d89055b7e22d15b8ab8d6007d81a9e70e156f8af611a8032ce5cf5c42ecd8c5af7eebe95f012a3f91723f273efa42701fd036482be WHIRLPOOL 09724f2ea25814ea98fe865207d6d7a160abfe0e582c71d2b8c649855a16b3596722525c52037f76a1cf9194053edbb19627eb16c27975646cc7247478554a1f
diff --git a/games-server/nwn-ded/metadata.xml b/games-server/nwn-ded/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-server/nwn-ded/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>
diff --git a/games-server/nwn-ded/nwn-ded-1.69.ebuild b/games-server/nwn-ded/nwn-ded-1.69.ebuild
new file mode 100644
index 000000000000..c82435d20ce0
--- /dev/null
+++ b/games-server/nwn-ded/nwn-ded-1.69.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit games
+
+LANGUAGES="linguas_en"
+DIALOG_URL_BASE=http://files.bioware.com/neverwinternights/dialog/
+
+DESCRIPTION="Neverwinter Nights Dedicated server"
+HOMEPAGE="http://nwn.bioware.com/downloads/standaloneserver.html"
+SRC_URI="http://files.bioware.com/neverwinternights/updates/windows/server/NWNDedicatedServer${PV}.zip
+ linguas_en? ( ${DIALOG_URL_BASE}/english/NWNEnglish${PV}dialog.zip )"
+
+LICENSE="NWN-EULA"
+SLOT="0"
+KEYWORDS="-* amd64 x86"
+IUSE="${LANGUAGES}"
+RESTRICT="mirror strip"
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+QA_PREBUILT="${dir:1}/common/nwserver"
+
+src_unpack() {
+ mkdir common || die
+ cd common || die
+ unpack NWNDedicatedServer${PV}.zip
+ tar -zxf linuxdedserver${PV/./}.tar.gz || die
+ rm -f *dedserver*.{tar.gz,sit,zip} *.exe *.dll
+ cd ..
+ local currentlocale=""
+ local a
+ for a in ${A}
+ do
+ if [ -z "${a/*dialog*/}" ] ; then
+ if [ -z "${a/*English*/}" ]; then currentlocale="en"; fi
+ if [ -z "${a/*French*/}" ]; then currentlocale="fr"; fi
+ if [ -z "${a/*German*/}" ]; then currentlocale="de"; fi
+ if [ -z "${a/*Italian*/}" ]; then currentlocale="it"; fi
+ if [ -z "${a/*Spanish*/}" ]; then currentlocale="es"; fi
+ if [ -z "${a/*Japanese*/}" ]; then currentlocale="ja"; fi
+ mkdir ${currentlocale} || die
+ cd ${currentlocale}
+ cp -rfl ../common/* . || die
+ unpack "${a}"
+ cd ..
+ fi
+ done
+}
+
+src_install() {
+ dodir ${dir}
+
+ local currentlocale
+ for currentlocale in * ; do
+ if [[ ${currentlocale} != "common" ]]
+ then
+ games_make_wrapper nwserver-${currentlocale} ./nwserver "${dir}/${currentlocale}" "${dir}/${currentlocale}"
+ fi
+ done
+
+ mv * "${D}/${dir}"/ || die
+
+ prepgamesdirs
+ chmod -R g+w "${D}/${dir}"
+}
diff --git a/games-server/pvpgn/Manifest b/games-server/pvpgn/Manifest
new file mode 100644
index 000000000000..817850b354fa
--- /dev/null
+++ b/games-server/pvpgn/Manifest
@@ -0,0 +1,2 @@
+DIST pvpgn-1.8.5.tar.bz2 982931 SHA256 229607bb52a0c8bdc01e310ff7e0ca23c91d63d2a2ed2f7decaa3ddac40e57d5 SHA512 7cbe141efe03efa4ce0fc1cc3b4e15afe2e85e3c83a27afdf36fec9e2dadf1c7b9aca1773e6a3e6566b62f5a7999cc040c9517786ca70eeb70f86eea84e9218e WHIRLPOOL 37880b5d160be67666f4bfbf7d7fae281c2c4be5f5b01552f43a11ce4980c4a563976763e426a5b6ee5d49599e0c0b095ad87f3a348628170d7322a826f2667d
+DIST pvpgn-support-1.3.tar.gz 123805 SHA256 bb51db26198691063e0b1065a21ddec823dc27b9560cd3975ef232ee272d2d07 SHA512 9002fcdb7da92e84af97319b9f1e38f5cf97466aef88549b1fe81b9070643f321011adf674424e2c4acc22f847c7fc61ca2cbf2da0223842e9b9e6c8f1427d76 WHIRLPOOL 2ac194d0b9655b9bb1b7ba10a40d0dac75368dcca2b87cf82ce72d69eec2c2dca0c59d37a1723d6a611b873f50016a92d6eaa331e513f1650ea13afabec33fbe
diff --git a/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch b/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch
new file mode 100644
index 000000000000..d1450b3ad178
--- /dev/null
+++ b/games-server/pvpgn/files/pvpgn-1.8.5-fhs.patch
@@ -0,0 +1,233 @@
+diff -ruN pvpgn-1.8.0rc2.orig/conf/bnetd.conf.in pvpgn-1.8.0rc2/conf/bnetd.conf.in
+--- pvpgn-1.8.0rc2.orig/conf/bnetd.conf.in 2005-09-19 08:17:50.000000000 -0400
++++ pvpgn-1.8.0rc2/conf/bnetd.conf.in 2006-08-16 23:34:10.000000000 -0400
+@@ -50,22 +50,22 @@
+ # - "prefix" : prefix to use for all pvpgn tables (default "") #
+ # #
+ # Examples: #
+-# storage_path = file:mode=plain;dir=/usr/local/var/users;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.plain
+-# storage_path = file:mode=cdb;dir=/usr/local/var/userscdb;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.cdb
++# storage_path = file:mode=plain;dir=%statedir%/users;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.plain
++# storage_path = file:mode=cdb;dir=%statedir%/userscdb;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.cdb
+ # storage_path = sql:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
+ # storage_path = sql:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn_
+-# storage_path = sql:mode=sqlite3;name=/usr/local/var/users.db;default=0;prefix=pvpgn_
++# storage_path = sql:mode=sqlite3;name=%statedir%/users.db;default=0;prefix=pvpgn_
+ # storage_path = sql:mode=odbc;name=PVPGN;prefix=pvpgn_
+ #
+ # WARNING!! you MUST change "DBlayoutfile" bellow configuration directive to
+ # sql_DB_layout2.conf to be able to use "sql2" !!!
+ # storage_path = sql2:mode=mysql;host=127.0.0.1;name=PVPGN;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn2_
+ # storage_path = sql2:mode=pgsql;host=127.0.0.1;name=pvpgn;user=pvpgn;pass=pvpgnrocks;default=0;prefix=pvpgn2_
+-# storage_path = sql2:mode=sqlite3;name=/usr/local/var/users.db;default=0;prefix=pvpgn2_
++# storage_path = sql2:mode=sqlite3;name=%statedir%/users.db;default=0;prefix=pvpgn2_
+ # storage_path = sql2:mode=odbc;name=PVPGN;prefix=pvpgn2_
+ #----------------------------------------------------------------------------#
+
+-storage_path = file:mode=plain;dir=/usr/local/var/users;clan=/usr/local/var/clans;team=/usr/local/var/teams;default=/usr/local/etc/bnetd_default_user.plain
++storage_path = file:mode=plain;dir=%statedir%/users;clan=%statedir%/clans;team=%statedir%/teams;default=%confdir%/bnetd_default_user.plain
+
+ # #
+ ##############################################################################
+@@ -76,35 +76,35 @@
+ # Use absolute paths in these lines to avoid problems! #
+ #----------------------------------------------------------------------------#
+
+-filedir = /usr/local/var/files
+-reportdir = /usr/local/var/reports
+-chanlogdir = /usr/local/var/chanlogs
+-motdfile = /usr/local/etc/bnmotd.txt
+-issuefile = /usr/local/etc/bnissue.txt
+-channelfile = /usr/local/etc/channel.conf
+-newsfile = /usr/local/etc/news.txt
+-adfile = /usr/local/etc/ad.conf
+-topicfile = /usr/local/etc/topics.conf
+-ipbanfile = /usr/local/etc/bnban.conf
+-helpfile = /usr/local/etc/bnhelp.conf
+-mpqfile = /usr/local/etc/autoupdate.conf
+-logfile = /usr/local/var/bnetd.log
+-realmfile = /usr/local/etc/realm.conf
+-maildir = /usr/local/var/bnmail
+-versioncheck_file = /usr/local/etc/versioncheck.conf
+-mapsfile = /usr/local/etc/bnmaps.conf
+-xplevelfile = /usr/local/etc/bnxplevel.conf
+-xpcalcfile = /usr/local/etc/bnxpcalc.conf
+-#pidfile = /usr/local/var/bnetd.pid
+-ladderdir = /usr/local/var/ladders
+-command_groups_file = /usr/local/etc/command_groups.conf
+-tournament_file = /usr/local/etc/tournament.conf
+-statusdir = /usr/local/var/status
+-aliasfile = /usr/local/etc/bnalias.conf
+-anongame_infos_file = /usr/local/etc/anongame_infos.conf
+-DBlayoutfile = /usr/local/etc/sql_DB_layout.conf
+-supportfile = /usr/local/etc/supportfile.conf
+-transfile = /usr/local/etc/address_translation.conf
++filedir = %datadir%
++reportdir = %statedir%/reports
++chanlogdir = %statedir%/chanlogs
++motdfile = %confdir%/bnmotd.txt
++issuefile = %confdir%/bnissue.txt
++channelfile = %confdir%/channel.conf
++newsfile = %confdir%/news.txt
++adfile = %confdir%/ad.conf
++topicfile = %confdir%/topics.conf
++ipbanfile = %confdir%/bnban.conf
++helpfile = %confdir%/bnhelp.conf
++mpqfile = %confdir%/autoupdate.conf
++logfile = %logdir%/bnetd.log
++realmfile = %confdir%/realm.conf
++maildir = %statedir%/bnmail
++versioncheck_file = %confdir%/versioncheck.conf
++mapsfile = %confdir%/bnmaps.conf
++xplevelfile = %confdir%/bnxplevel.conf
++xpcalcfile = %confdir%/bnxpcalc.conf
++#pidfile = /var/run/bnetd/bnetd.pid
++ladderdir = %confdir%/ladders
++command_groups_file = %confdir%/command_groups.conf
++tournament_file = %confdir%/tournament.conf
++statusdir = %statedir%/status
++aliasfile = %confdir%/bnalias.conf
++anongame_infos_file = %confdir%/anongame_infos.conf
++DBlayoutfile = %confdir%/sql_DB_layout.conf
++supportfile = %confdir%/supportfile.conf
++transfile = %confdir%/address_translation.conf
+
+ fortunecmd = /usr/games/fortune
+
+diff -ruN pvpgn-1.8.0rc2.orig/conf/d2cs.conf.in pvpgn-1.8.0rc2/conf/d2cs.conf.in
+--- pvpgn-1.8.0rc2.orig/conf/d2cs.conf.in 2005-09-29 01:37:33.000000000 -0400
++++ pvpgn-1.8.0rc2/conf/d2cs.conf.in 2006-08-16 23:35:43.000000000 -0400
+@@ -86,16 +86,16 @@
+ # Use absolute paths in these lines to avoid problems! #
+ #-------------------------------------------------------------------------------#
+ # #
+-logfile = /usr/local/var/d2cs.log
+-charsavedir = /usr/local/var/charsave
+-charinfodir = /usr/local/var/charinfo
+-bak_charsavedir = /usr/local/var/bak/charsave
+-bak_charinfodir = /usr/local/var/bak/charinfo
+-ladderdir = /usr/local/var/ladders
+-newbiefile = /usr/local/var/files/newbie.save
+-transfile = /usr/local/etc/address_translation.conf
+-d2gsconffile = /usr/local/etc/d2server.ini
+-#pidfile = /usr/local/var/d2cs.pid
++logfile = %logdir%/d2cs.log
++charsavedir = %statedir%/charsave
++charinfodir = %statedir%/charinfo
++bak_charsavedir = %statedir%/bak/charsave
++bak_charinfodir = %statedir%/bak/charinfo
++ladderdir = %statedir%/ladders
++newbiefile = %statedir%/files/newbie.save
++transfile = %confdir%/address_translation.conf
++d2gsconffile = %confdir%/d2server.ini
++#pidfile = /var/run/bnetd/d2cs.pid
+
+ # #
+ #################################################################################
+diff -ruN pvpgn-1.8.0rc2.orig/conf/d2dbs.conf.in pvpgn-1.8.0rc2/conf/d2dbs.conf.in
+--- pvpgn-1.8.0rc2.orig/conf/d2dbs.conf.in 2005-08-24 23:58:18.000000000 -0400
++++ pvpgn-1.8.0rc2/conf/d2dbs.conf.in 2006-08-16 23:36:58.000000000 -0400
+@@ -49,14 +49,14 @@
+ # File and Path section #
+ # Use absolute paths in these lines to avoid problems! #
+ #-------------------------------------------------------------------------------#
+-logfile = /usr/local/var/d2dbs.log
+-logfile-gs = /usr/local/var/d2dbs-gs.log
+-charsavedir = /usr/local/var/charsave
+-charinfodir = /usr/local/var/charinfo
+-ladderdir = /usr/local/var/ladders
+-bak_charsavedir = /usr/local/var/bak/charsave
+-bak_charinfodir = /usr/local/var/bak/charinfo
+-#pidfile = /usr/local/var/d2dbs.pid
++logfile = %logdir%/d2dbs.log
++logfile-gs = %logdir%/d2dbs-gs.log
++charsavedir = %statedir%/charsave
++charinfodir = %statedir%/charinfo
++ladderdir = %statedir%/ladders
++bak_charsavedir = %statedir%/bak/charsave
++bak_charinfodir = %statedir%/bak/charinfo
++#pidfile = /var/run/bnetd/d2dbs.pid
+
+ # #
+ #################################################################################
+
+diff -ruN pvpgn-1.8.0rc2.orig/src/Makefile.in pvpgn-1.8.0rc2/src/Makefile.in
+--- pvpgn-1.8.0rc2.orig/src/Makefile.in 2005-07-29 02:11:38.000000000 +0600
++++ pvpgn-1.8.0rc2/src/Makefile.in 2005-09-23 15:10:02.968342144 +0600
+@@ -23,22 +23,23 @@
+ bindir = @bindir@
+ sbindir = @sbindir@
+ mandir = @mandir@
+-confdir = @sysconfdir@
+-sharedir = @localstatedir@
+-filesdir = @localstatedir@/files
+-usersdir = @localstatedir@/users
+-userscdbdir = @localstatedir@/userscdb
+-clandir = @localstatedir@/clans
+-teamdir = @localstatedir@/teams
+-bnmaildir = @localstatedir@/bnmail
+-reportsdir = @localstatedir@/reports
+-chanlogsdir = @localstatedir@/chanlogs
+-charinfodir = @localstatedir@/charinfo
+-charsavedir = @localstatedir@/charsave
+-ladderdir = @localstatedir@/ladders
+-statusdir = @localstatedir@/status
+-bak_charsavedir = @localstatedir@/bak/charsave
+-bak_charinfodir = @localstatedir@/bak/charinfo
++confdir = @sysconfdir@/pvpgn
++statedir = @localstatedir@/pvpgn
++filesdir = @datadir@/pvpgn
++usersdir = @localstatedir@/pvpgn/users
++userscdbdir = @localstatedir@/pvpgn/userscdb
++clandir = @localstatedir@/pvpgn/clans
++bnmaildir = @localstatedir@/pvpgn/bnmail
++reportsdir = @localstatedir@/pvpgn/reports
++chanlogsdir = @localstatedir@/pvpgn/chanlogs
++charinfodir = @localstatedir@/pvpgn/charinfo
++charsavedir = @localstatedir@/pvpgn/charsave
++ladderdir = @localstatedir@/pvpgn/ladders
++statusdir = @localstatedir@/pvpgn/status
++bak_charsavedir = @localstatedir@/pvpgn/bak/charsave
++bak_charinfodir = @localstatedir@/pvpgn/bak/charinfo
++logdir = @localstatedir@/pvpgn/log
++
+
+ SRC_SRCDIR = @srcdir@
+ SRC_BINDIR = @srcdir@/../bin
+@@ -677,7 +678,8 @@
+
+ .PHONY: install-share
+ install-share:
+- ${INSTALL_DIRS} ${DESTDIR}/${sharedir} ${DESTDIR}/${filesdir} ${DESTDIR}/${usersdir} ${DESTDIR}/${userscdbdir} ${DESTDIR}/${bnmaildir} ${DESTDIR}/${reportsdir} \
++ ${INSTALL_DIRS} ${DESTDIR}/${datadir} ${DESTDIR}/${statedir} \
++ ${DESTDIR}/${filesdir} ${DESTDIR}/${usersdir} ${DESTDIR}/${userscdbdir} ${DESTDIR}/${bnmaildir} ${DESTDIR}/${reportsdir} \
+ ${DESTDIR}/${chanlogsdir} ${DESTDIR}/${charinfodir} ${DESTDIR}/${charsavedir} ${DESTDIR}/${bak_charsavedir} \
+ ${DESTDIR}/${bak_charinfodir} ${DESTDIR}/${ladderdir} ${DESTDIR}/${statusdir} \
+ ${DESTDIR}/${clandir} ${DESTDIR}/${teamdir}
+@@ -728,21 +730,21 @@
+ .PHONY: uninstall-share
+ uninstall-share:
+ @list='${SHARES}'; for p in $$list; do \
+- ${ECHO} " ${RMF} ${sharedir}/$$p"; \
+- ${RMF} ${sharedir}/$$p; \
++ ${ECHO} " ${RMF} ${filesdir}/$$p"; \
++ ${RMF} ${filesdir}/$$p; \
+ done
+
+ ${SRC_CONFDIR}/bnetd.conf: ${SRC_CONFDIR}/bnetd.conf.in ${SRC_SRCDIR}/config.status
+ @${RMF} $@
+- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/bnetd.conf.in > $@
++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/bnetd.conf.in > $@
+
+ ${SRC_CONFDIR}/d2cs.conf: ${SRC_CONFDIR}/d2cs.conf.in ${SRC_SRCDIR}/config.status
+ @${RMF} $@
+- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/d2cs.conf.in > $@
++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/d2cs.conf.in > $@
+
+ ${SRC_CONFDIR}/d2dbs.conf: ${SRC_CONFDIR}/d2dbs.conf.in ${SRC_SRCDIR}/config.status
+ @${RMF} $@
+- ${SED} -e "s@/usr/local/var/@${sharedir}/@g" -e "s@/usr/local/etc/@${confdir}/@g" ${SRC_CONFDIR}/d2dbs.conf.in > $@
++ ${SED} -e "s@%datadir%@${filesdir}/@g" -e "s@%confdir%@${confdir}/@g" -e "s@%statedir%@${statedir}@g" -e "s@%logdir%@${logdir}@g" ${SRC_CONFDIR}/d2dbs.conf.in > $@
+
+ ${SRC_ACDIR}/ansi2knr: ${SRC_ACDIR}/ansi2knr.o
+ @${RMF} $@
diff --git a/games-server/pvpgn/files/pvpgn.rc b/games-server/pvpgn/files/pvpgn.rc
new file mode 100755
index 000000000000..3fd782a7f708
--- /dev/null
+++ b/games-server/pvpgn/files/pvpgn.rc
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+extra_started_commands="reload"
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [[ ! -f /etc/games/pvpgn/NAME.conf ]] ; then
+ eerror "You must have a NAME.conf configuration file to start NAME"
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting PvPGN NAME"
+ start-stop-daemon --background --start --quiet \
+ --make-pidfile \
+ --pidfile /var/run/NAME.pid \
+ --exec GAMES_BINDIR/NAME -c GAMES_USER:GAMES_GROUP -- -f
+ eend $? "Failed to start NAME"
+}
+
+stop() {
+ ebegin "Stopping PvPGN NAME"
+ start-stop-daemon --stop --quiet --retry 20 \
+ --pidfile /var/run/NAME.pid
+ eend $?
+}
+
+reload() {
+ ebegin "Rehashing configuration for PvPGN NAME"
+ start-stop-daemon --stop --signal HUP --oknodo \
+ --pidfile /var/run/NAME.pid
+ eend $?
+}
diff --git a/games-server/pvpgn/metadata.xml b/games-server/pvpgn/metadata.xml
new file mode 100644
index 000000000000..36d3c90c042a
--- /dev/null
+++ b/games-server/pvpgn/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">pvpgn.berlios</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild b/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild
new file mode 100644
index 000000000000..07fbf10d5621
--- /dev/null
+++ b/games-server/pvpgn/pvpgn-1.8.5-r1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+SUPPORTP="${PN}-support-1.3"
+DESCRIPTION="A gaming server for Battle.Net compatible clients"
+HOMEPAGE="http://sourceforge.net/projects/pvpgn.berlios/"
+SRC_URI="mirror://sourceforge/pvpgn.berlios/${PN}-${PV/_/}.tar.bz2
+ mirror://sourceforge/pvpgn.berlios/${SUPPORTP}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86"
+IUSE="mysql postgres"
+
+DEPEND="mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql[server] )"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fhs.patch"
+}
+
+src_configure() {
+ cd src
+ # everything in GAMES_BINDIR (bug #63071)
+ egamesconf \
+ --sbindir="${GAMES_BINDIR}" \
+ $(use_with mysql) \
+ $(use_with postgres pgsql)
+}
+
+src_compile() {
+ emake -C src
+}
+
+src_install() {
+ local f
+
+ dodoc README README.DEV CREDITS BUGS TODO UPDATE version-history.txt
+ docinto docs
+ dodoc docs/*
+
+ emake -C src DESTDIR="${D}" install
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins "${WORKDIR}/${SUPPORTP}/"*
+
+ # GAMES_USER_DED here instead of GAMES_USER (bug #65423)
+ for f in bnetd d2cs d2dbs ; do
+ newinitd "${FILESDIR}/${PN}.rc" ${f}
+ sed -i \
+ -e "s:NAME:${f}:g" \
+ -e "s:GAMES_BINDIR:${GAMES_BINDIR}:g" \
+ -e "s:GAMES_USER:${GAMES_USER_DED}:g" \
+ -e "s:GAMES_GROUP:${GAMES_GROUP}:g" \
+ "${D}/etc/games/${PN}/${f}.conf" \
+ "${D}/etc/init.d/${f}" || die
+ done
+
+ keepdir $(find "${D}${GAMES_STATEDIR}"/${PN} -type d -printf "${GAMES_STATEDIR}/${PN}/%P ") "${GAMES_STATEDIR}"/${PN}/log
+ prepgamesdirs
+
+ chown -R ${GAMES_USER_DED}:${GAMES_GROUP} "${D}${GAMES_STATEDIR}/${PN}"
+ fperms 0775 "${GAMES_STATEDIR}/${PN}/log"
+ fperms 0770 "${GAMES_STATEDIR}/${PN}"
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "If this is a first installation you need to configure the package by"
+ elog "editing the configuration files provided in ${GAMES_SYSCONFDIR}/${PN}"
+ elog "Also you should read the documentation in /usr/share/docs/${PF}"
+ elog
+ elog "If you are upgrading you MUST read UPDATE in /usr/share/docs/${PF}"
+ elog "and update your configuration accordingly."
+ if use mysql ; then
+ elog
+ elog "You have enabled MySQL storage support. You will need to edit"
+ elog "bnetd.conf to use it. Read README.storage from the docs directory."
+ fi
+ if use postgres ; then
+ elog
+ elog "You have enabled PostgreSQL storage support. You will need to edit"
+ elog "bnetd.conf to use it. Read README.storage from the docs directory."
+ fi
+}
diff --git a/games-server/ut2003-ded/Manifest b/games-server/ut2003-ded/Manifest
new file mode 100644
index 000000000000..f436c56c65ed
--- /dev/null
+++ b/games-server/ut2003-ded/Manifest
@@ -0,0 +1,2 @@
+DIST UT2003CrashFix.zip 2764 SHA256 df1a6fdf81f388486b20abf301ef86fb72b0b12d96bec789d7cb7103da579813 SHA512 24fdaac873b08a0860c23f66b9bd93922fc4f64486adbe9bfefeb340f9d9374778b5e7bacd0e12cc79d819fb340e007ab2a7f1f45c9e4f27ab3ab6b11033d444 WHIRLPOOL ddea25bf472d5ca7f9c9dca1346820045504c10be90e914cd0c000a04c48ad4765e4b283a35cd91c2cb9f4cd8e1d2cabac660c2bfeccff05ecc42b1379242ff5
+DIST ut2003-lnxded-2225.tar.bz2 304132056 SHA256 eb74193dd4bcedfb0b50da3853027c0098cd2ec8673d115fbf31d6e29e010013 SHA512 33ea560fe2583c2c82d0d1499e5ad16fcd70efdede27e088cb9e5a14cf6ce72f57fad8783e4b5a3fe2dbfc9277fc4d0094d6ad854a1a2150a9d04d967516fee4 WHIRLPOOL 9f2678ea68e728b1cd30f0cb3c90be1d6846e8ac9b00685ea2f9463306d5dd75a00924f9e48008f87cc9bbd39c8ef1cccd987e22d1aa7ad350ff1486423cd009
diff --git a/games-server/ut2003-ded/metadata.xml b/games-server/ut2003-ded/metadata.xml
new file mode 100644
index 000000000000..de0596352e80
--- /dev/null
+++ b/games-server/ut2003-ded/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+Unreal Tounament 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This is the dedicated server portion of the game and does not require the retail discs to use.
+</longdescription>
+</pkgmetadata>
diff --git a/games-server/ut2003-ded/ut2003-ded-2225-r2.ebuild b/games-server/ut2003-ded/ut2003-ded-2225-r2.ebuild
new file mode 100644
index 000000000000..3b7d774ca8ac
--- /dev/null
+++ b/games-server/ut2003-ded/ut2003-ded-2225-r2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit games
+
+DESCRIPTION="Unreal Tournament 2003 Linux Dedicated Server"
+HOMEPAGE="http://www.ut2003.com/"
+SRC_URI="http://ftp.games.skynet.be/pub/misc/ut2003-lnxded-${PV}.tar.bz2
+ mirror://gentoo/UT2003CrashFix.zip"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="amd64 x86"
+RESTRICT="mirror strip"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+RDEPEND=""
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+QA_PREBUILT="${dir:1}/System/*"
+
+src_unpack() {
+ unpack ut2003-lnxded-${PV}.tar.bz2
+ unzip "${DISTDIR}"/UT2003CrashFix.zip || die
+}
+
+src_install() {
+ einfo "This will take a while ... go get a pizza or something"
+
+ dodir "${dir}"
+ mv "${S}"/ut2003_dedicated/* "${Ddir}"
+
+ # Here we apply DrSiN's crash patch
+ cp "${S}"/CrashFix/System/crashfix.u "${Ddir}"/System
+
+ ed "${Ddir}"/System/Default.ini >/dev/null 2>&1 <<EOT
+$
+?Engine.GameInfo?
+a
+AccessControlClass=crashfix.iaccesscontrolini
+.
+w
+q
+EOT
+
+ # Here we apply fix for bug #54726
+ sed -i \
+ -e "s:UplinkToGamespy=True:UplinkToGamespy=False:" \
+ "${D}${dir}"/System/Default.ini || die
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "NOTE: To have your server authenticate properly, you"
+ ewarn " MUST visit the following site and request a key."
+ ewarn "http://ut2003.epicgames.com/ut2003server/cdkey.php"
+ echo
+ ewarn "If you are not installing for the first time and you plan on running"
+ ewarn "a server, you will probably need to edit your"
+ ewarn "~/.ut2003/System/UT2003.ini file and add a line that says"
+ ewarn "AccessControlClass=crashfix.iaccesscontrolini to your"
+ ewarn "[Engine.GameInfo] section to close a security issue."
+}
diff --git a/games-server/ut2004-ded/Manifest b/games-server/ut2004-ded/Manifest
new file mode 100644
index 000000000000..40c2f3f4018c
--- /dev/null
+++ b/games-server/ut2004-ded/Manifest
@@ -0,0 +1,3 @@
+DIST dedicatedserver3339-bonuspack.zip 914213907 SHA256 b8fc94fc843483b18c225e100736d10cb2690ba8666d6abbb274ea6ad718b18e
+DIST ut2004-lnxpatch3369-2.tar.bz2 22465217 SHA256 438b9b13a367d46f23cce12b065382a55afa2fc68add1f1dd3db03b015f60bb3 SHA512 0d6f26d5a811efd64be8c304e928e03f546d9a8eaba6b074843e2b7e76e0670b39df95200a2fe2040d72bbd204c7157ed0115649a5c85396a76d9e0b7ec284b1 WHIRLPOOL 2e04124aa7eb4e2689b048aceeb8c085a5756bad4c0f084da764055ea7a403623107bc6bb29d00b9b93b45675f4475e145edb4e6a3faf208d9fe36f4a65c9e78
+DIST ut2004-v3369-3-linux-dedicated.7z 5013927 SHA256 799f00deccb7ee1e3db3963deeb50a41b05a262e6f7363654c4f0438e06d7192 SHA512 3b2a7b64934a3647c02c9fec48565c5c2c35370d635b2af4059eb76587bfa13f46e6a4e14fdb0494ba7a4182497ed5963601986f4fcfa318e69a8a8a8c0178cf WHIRLPOOL ef459d7c053ac70be6313c65edaff095053cab840588d5762834b4402e299d8782401ebf1341ff61a150efed8420bf377b7a7ba10dbed6608d86791e2569e733
diff --git a/games-server/ut2004-ded/files/ut2004-ded.confd b/games-server/ut2004-ded/files/ut2004-ded.confd
new file mode 100644
index 000000000000..a485b12d221e
--- /dev/null
+++ b/games-server/ut2004-ded/files/ut2004-ded.confd
@@ -0,0 +1,9 @@
+# User and group the server should run as
+ut2004_ded_user="@USER@"
+ut2004_ded_group="@GROUP@"
+
+# Directory to use for HOME
+ut2004_ded_home="@HOME@"
+
+# Any extra options you want to pass to the server
+ut2004_ded_opts="DM-Deck17"
diff --git a/games-server/ut2004-ded/files/ut2004-ded.initd b/games-server/ut2004-ded/files/ut2004-ded.initd
new file mode 100644
index 000000000000..90fadb66a21e
--- /dev/null
+++ b/games-server/ut2004-ded/files/ut2004-ded.initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting ut2004-ded"
+ start-stop-daemon --start --quiet --background --make-pidfile \
+ --pidfile /var/run/ut2004-ded.pid \
+ --chuid ${ut2004_ded_user}:${ut2004_ded_group} \
+ --env HOME="${ut2004_ded_home}" \
+ --exec "@DIR@/ut2004-ded" \
+ -- ${ut2004_ded_opts}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ut2004-ded"
+ start-stop-daemon --stop \
+ --pidfile /var/run/ut2004-ded.pid
+ eend $?
+}
diff --git a/games-server/ut2004-ded/metadata.xml b/games-server/ut2004-ded/metadata.xml
new file mode 100644
index 000000000000..1d87c44571d9
--- /dev/null
+++ b/games-server/ut2004-ded/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<longdescription>
+Unreal Tounament 2004 is a first-person 3-D shooter and sequel to the 2003 Game of the Year, Unreal Tournament 2003. The game was ported to Linux by Ryan "icculus" Gordon under contract from Epic Games and the Linux installer was released in the retail box. This is the dedicated server portion of the game and does not require the retail discs to use.
+</longdescription>
+</pkgmetadata>
diff --git a/games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild b/games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild
new file mode 100644
index 000000000000..afd15fbe42d8
--- /dev/null
+++ b/games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit games
+
+BONUSPACK_P="dedicatedserver3339-bonuspack.zip"
+PATCH_P="ut2004-lnxpatch${PV%.*}-2.tar.bz2"
+DESCRIPTION="Unreal Tournament 2004 Linux Dedicated Server"
+HOMEPAGE="http://www.unrealtournament.com/"
+SRC_URI="mirror://3dgamers/unrealtourn2k4/${BONUSPACK_P}
+ http://downloads.unrealadmin.org/UT2004/Server/${BONUSPACK_P}
+ http://sonic-lux.net/data/mirror/ut2004/${BONUSPACK_P}
+ mirror://3dgamers/unrealtourn2k4/${PATCH_P}
+ http://downloads.unrealadmin.org/UT2004/Patches/Linux/${PATCH_P}
+ http://sonic-lux.net/data/mirror/ut2004/${PATCH_P}
+ mirror://gentoo/ut2004-v${PV/./-}-linux-dedicated.7z"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+RESTRICT="mirror strip"
+
+DEPEND="app-arch/unzip
+ app-arch/p7zip"
+RDEPEND="sys-libs/glibc
+ !games-fps/ut2004[dedicated]
+ games-fps/ut2004-bonuspack-ece
+ games-fps/ut2004-bonuspack-mega"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+
+src_prepare() {
+ cp -rf UT2004-Patch/* . || die
+ rm -rf System/{ucc-bin*,ut2004-bin*,*.dll,*.exe} UT2004-Patch
+ if use amd64 ; then
+ mv -f ut2004-ucc-bin-09192008/ucc-bin-linux-amd64 System/ucc-bin || die
+ else
+ mv -f ut2004-ucc-bin-09192008/ucc-bin System/ || die
+ fi
+ rm -rf ut2004-ucc-bin-09192008
+ # Owned by ut2004-bonuspack-ece
+ rm -f Animations/{MetalGuardAnim,ONSBPAnimations,NecrisAnim,MechaSkaarjAnims}.ukx
+ rm -f Help/BonusPackReadme.txt
+ rm -f Maps/{ONS-Adara,ONS-IslandHop,ONS-Tricky,ONS-Urban}.ut2
+ rm -f Sounds/{CicadaSnds,DistantBooms,ONSBPSounds}.uax
+ rm -f StaticMeshes/{HourAdara,BenMesh02,BenTropicalSM01,ONS-BPJW1,PC_UrbanStatic}.usx
+ rm -f System/{ONS-IslandHop,ONS-Tricky,ONS-Adara,ONS-Urban,OnslaughtBP}.int
+ rm -f System/xaplayersl3.upl
+ rm -f Textures/{ONSBPTextures,BonusParticles,HourAdaraTexor,BenTex02,BenTropical01,PC_UrbanTex,AW-2k4XP,ONSBP_DestroyedVehicles,UT2004ECEPlayerSkins,CicadaTex,Construction_S}.utx
+ # Owned by ut2004-bonuspack-mega
+ rm -f System/{Manifest.ini,Manifest.int,Packages.md5}
+}
+
+src_install() {
+ einfo "This will take a while... go get a pizza or something"
+
+ games_make_wrapper ${PN} "./ucc-bin server" "${dir}"/System
+
+ insinto "${dir}"
+ doins -r *
+ fperms +x "${dir}"/System/ucc-bin
+
+ sed \
+ -e "s:@USER@:${GAMES_USER_DED}:" \
+ -e "s:@GROUP@:${GAMES_GROUP}:" \
+ -e "s:@HOME@:${GAMES_PREFIX}:" \
+ "${FILESDIR}"/${PN}.confd > "${T}"/${PN}.confd || die
+ newconfd "${T}"/${PN}.confd ${PN}
+
+ sed \
+ -e "s:@DIR@:${GAMES_BINDIR}:g" \
+ "${FILESDIR}"/${PN}.initd > "${T}"/${PN}.initd || die
+ newinitd "${T}"/${PN}.initd ${PN}
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ ewarn "You should take the time to edit the default server INI."
+ ewarn "Consult the INI Reference at http://www.unrealadmin.org/"
+ ewarn "for assistance in adjusting the following file:"
+ ewarn "${dir}/System/Default.ini"
+ ewarn
+ ewarn "To have your server authenticate properly to the"
+ ewarn "central server, you MUST visit the following site"
+ ewarn "and request a key. This is not required if you"
+ ewarn "want an unfindable private server. [DoUplink=False]"
+ ewarn
+ ewarn "http://unreal.epicgames.com/ut2004server/cdkey.php"
+}