summaryrefslogtreecommitdiff
path: root/games-server/ut2004-ded
diff options
context:
space:
mode:
Diffstat (limited to 'games-server/ut2004-ded')
-rw-r--r--games-server/ut2004-ded/Manifest7
-rw-r--r--games-server/ut2004-ded/files/ut2004-ded.confd9
-rw-r--r--games-server/ut2004-ded/files/ut2004-ded.initd25
-rw-r--r--games-server/ut2004-ded/metadata.xml11
-rw-r--r--games-server/ut2004-ded/ut2004-ded-3369.3-r1.ebuild96
5 files changed, 148 insertions, 0 deletions
diff --git a/games-server/ut2004-ded/Manifest b/games-server/ut2004-ded/Manifest
new file mode 100644
index 000000000000..a157bc10833f
--- /dev/null
+++ b/games-server/ut2004-ded/Manifest
@@ -0,0 +1,7 @@
+AUX ut2004-ded.confd 228 BLAKE2B 18e5f0d823b266a4463cc5b83c4982fc662c4bdfb4b8f9f9e6ae22256d0ac2d463d0987db2fdf419dbcc9b3fbda777511adbf6ac7d0ad34a09184a08fc28f6b1 SHA512 f304c134139a29e43f6a297969462d8ca667071be898bf0b5495785eba7b0042e7103b5df2dc2c1fa333f4c16f75efcfdcd8ddc2dc88bf46d93cf8a9739eb300
+AUX ut2004-ded.initd 561 BLAKE2B a30dfd055e00d42df3b5214c7429203fb1188617ac469e1cb9e3fa66c99df3ed3691eff0a1d932b0cf1a44f300623d720e8c87ce47e8999d5607f969c883f7c9 SHA512 0d5be8488cdbb357ab10223c4a5c6a3f302622782c0432d28e0a5ec7c38e886a44ea2931cde82403db807225bf6cf2ebcbb7f3abf62b8ea6bfd8ffb41c316c58
+DIST dedicatedserver3339-bonuspack.zip 914213907 BLAKE2B 883253d9817b4ee7f9594bf611e9d440d7e90c8cd43d34b366cfb4e781d4ad78e2812a0aa4f5acaed4880b1bc47f0dffed6fbb0caf9cc53477c01bc92d891325 SHA512 353161a7c811ac5c688c6438e3ecfad1aa37bcfd13a3e17f2a9deaf510eda9311a423524bd4635fcf972001cfe24c1a1b71a2bb6a060c37a24351f3bce0c7f26
+DIST ut2004-lnxpatch3369-2.tar.bz2 22465217 BLAKE2B 9852f9d55804b7f2927a31be86aee1552aaebeb38d2a40fb206154c236e9d6eff47f7594024c0d9b25c7216d3ca62571b1f89f23f72ee9e135b2e6451bcb006a SHA512 0d6f26d5a811efd64be8c304e928e03f546d9a8eaba6b074843e2b7e76e0670b39df95200a2fe2040d72bbd204c7157ed0115649a5c85396a76d9e0b7ec284b1
+DIST ut2004-v3369-3-linux-dedicated.7z 5013927 BLAKE2B 72d24d7bc37c777f3697b767a03e052ad9b547005dd6da73833e439496e87a9c1ebbe01f88d62b29a41b2bf6380a3b3bd745e6883fbb6d0f2b7e52998d4af276 SHA512 3b2a7b64934a3647c02c9fec48565c5c2c35370d635b2af4059eb76587bfa13f46e6a4e14fdb0494ba7a4182497ed5963601986f4fcfa318e69a8a8a8c0178cf
+EBUILD ut2004-ded-3369.3-r1.ebuild 3273 BLAKE2B fc052f2618f8b77af31011463c30cdd2b7e681afd036bac582f7dc1e5bea4508456d8558ac7236eddaffea27a659dd70c142c5527f1716267b6d21ca8886b93a SHA512 840a3b1b7294e5007e04dbed8803cba6f209b43013e7a7fca3637cbc4f3bec8299cff1ad26ef08befbadc2f5e469d8eae07d2b4da8e3788f472969bee04c7c16
+MISC metadata.xml 641 BLAKE2B 6f4b33ffb4810e9161f185859d8a822bf655f70f40220968a1638398072506486a72180065d2f1589446f09d61416b2cc379bdfafd540162bf8b817834002849 SHA512 637588c313e117912d01da6345324d455f7c1c658e413d936b60f1fcceff88d8ecae084e11727479c8cf72438f14412336d9c81d94cccc1ffb54a5ec2d69ebc7
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..fe323a9e00ee
--- /dev/null
+++ b/games-server/ut2004-ded/files/ut2004-ded.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..6c7217507290
--- /dev/null
+++ b/games-server/ut2004-ded/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>
+<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..218fe1616d96
--- /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
+
+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://files.chaoticdreams.org/UT2004/DedicatedServer3339-BonusPack.zip -> ${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"
+}