summaryrefslogtreecommitdiff
path: root/games-server/ut2004-ded
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-server/ut2004-ded
reinit the tree, so we can have metadata
Diffstat (limited to 'games-server/ut2004-ded')
-rw-r--r--games-server/ut2004-ded/Manifest9
-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, 150 insertions, 0 deletions
diff --git a/games-server/ut2004-ded/Manifest b/games-server/ut2004-ded/Manifest
new file mode 100644
index 000000000000..6967f55ae5c5
--- /dev/null
+++ b/games-server/ut2004-ded/Manifest
@@ -0,0 +1,9 @@
+AUX ut2004-ded.confd 228 SHA256 f585ee80c116f56ef1cca1429dfb143e8bde736e6b6db7d059fbc6b3685bb065 SHA512 f304c134139a29e43f6a297969462d8ca667071be898bf0b5495785eba7b0042e7103b5df2dc2c1fa333f4c16f75efcfdcd8ddc2dc88bf46d93cf8a9739eb300 WHIRLPOOL f1026a43d6c428c4b1c445b048dcae39385f96ad92d00a1ff08429a162d7d4fc45652982e71abd24324bfa56a6e4bf3d9ddee02aeb3412fcd2cfe47a31327ea7
+AUX ut2004-ded.initd 561 SHA256 67f76e917cddb94b8ed010b77194eacdbfb7a77476bb9d2ab45ff3192e094ee2 SHA512 0d5be8488cdbb357ab10223c4a5c6a3f302622782c0432d28e0a5ec7c38e886a44ea2931cde82403db807225bf6cf2ebcbb7f3abf62b8ea6bfd8ffb41c316c58 WHIRLPOOL 425e235c59b20cc933a299d5d3bc1063bec681374fa7659652d6dfc7a85528b346137f31122097c813b4cbe85e3b587435f5a3958b3145d7a62457ffcdcec152
+DIST dedicatedserver3339-bonuspack.zip 914213907 SHA256 b8fc94fc843483b18c225e100736d10cb2690ba8666d6abbb274ea6ad718b18e SHA512 353161a7c811ac5c688c6438e3ecfad1aa37bcfd13a3e17f2a9deaf510eda9311a423524bd4635fcf972001cfe24c1a1b71a2bb6a060c37a24351f3bce0c7f26 WHIRLPOOL e9a046530d5e1bddd38f3e4f2e3f424c665fbca4a2c38ef0c36eaea621cbd18f9ae28434c2b266ad69f90306cfa047fb205cc8757c356d5e597964894d3a8410
+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
+EBUILD ut2004-ded-3369.3-r1.ebuild 3271 SHA256 4a9141b6bcec285b84d108435397168a64311a10a27f5bfca44d75419577ca3d SHA512 c38b2504811995ea22a24e4bef6d0df68b749fc2d7cadb340fe927f0aa4d1af1cc52fa512fc5c5394b62fb8a687f626a548815f63dc301bbccf6cfd2a43ea56c WHIRLPOOL 6b402769e88a1ee54ca37661c7642f39c70a3399d1063d670418c305e70fc63fc60286d650c98dca20b12155565f3008e268ac6c0760642925274ab26aea5e92
+MISC ChangeLog 2803 SHA256 bed95bed8681add99e398b85dab22ffc7a81b5b2d1dbd758ab93b278e1989604 SHA512 2cdb8efd95a2d6e73efa2319469e8fa4c4bf9ad132cda3cc19b9a472fb20beb5e28d9aade5642ec0fec18bca0f028b3dc056832ff737d0296e0d6aa82c26e820 WHIRLPOOL 97095415cc3a1de00403520b67a72070a2adaf0386ba7e1ad43cd9c70cec963135f98a0877b5662cfcc42c60f3a67561f06e606124a74bf97cf2330d509227bc
+MISC ChangeLog-2015 4889 SHA256 2239e0c1f902eda14a781c1b1efa0d2013bb545fa74e815fa1eb3ff5948c00f6 SHA512 4e30f5410ecf36953fded317744eac388013b18fbfedb8521fea16c916b9593b079a3e88b3d402e30c70cbeee41a02a839d9f55a7b452644be9cded3144bf906 WHIRLPOOL d15623a6eb3e6a201604ada1c43709c4a03df124cd8e06794e09fac48df76b7625b82781fd5c42a42b0407488a4a8ac4a6b37ba840dc97227f5b7cca8c0693dc
+MISC metadata.xml 641 SHA256 f1f0174ce01a28a0ecd839534bb98d7cea9c705a10ee51a37357f6653e848ff8 SHA512 637588c313e117912d01da6345324d455f7c1c658e413d936b60f1fcceff88d8ecae084e11727479c8cf72438f14412336d9c81d94cccc1ffb54a5ec2d69ebc7 WHIRLPOOL 7bed9850275ce7afe2394702e2c97ab38fccbc0e7cf04722293e84f73aa7054f9b2db7e8061901035969e12478ee11c5182f6b6cee5e03ee284bdbc5b2088053
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..ebb5c1253b60
--- /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"
+}