summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2004-07-04 00:38:43 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2004-07-04 00:38:43 +0000
commit7ae7e8a372fdd9cb94418a69fbc75e6b0a0dfbaf (patch)
treeef59aa72151cc75766e167bbf4a86b734356e12f /games-server
parentVersion bumped. (diff)
downloadhistorical-7ae7e8a372fdd9cb94418a69fbc75e6b0a0dfbaf.tar.gz
historical-7ae7e8a372fdd9cb94418a69fbc75e6b0a0dfbaf.tar.bz2
historical-7ae7e8a372fdd9cb94418a69fbc75e6b0a0dfbaf.zip
Initial import. Original ebuild submitted by James Jones <cuban@drunkstudents.net> with an init script submitted by Ken Smith <themyrmidon@mac.com>. Updated to 3236-1 patch by Davin Boling <davin@postmark.net> with some modifications by me. Closing bug #46057.
Diffstat (limited to 'games-server')
-rw-r--r--games-server/ut2004-ded/ChangeLog13
-rw-r--r--games-server/ut2004-ded/Manifest5
-rw-r--r--games-server/ut2004-ded/files/digest-ut2004-ded-32362
-rw-r--r--games-server/ut2004-ded/files/ut2004-ded.rc39
-rw-r--r--games-server/ut2004-ded/metadata.xml12
-rw-r--r--games-server/ut2004-ded/ut2004-ded-3236.ebuild84
6 files changed, 155 insertions, 0 deletions
diff --git a/games-server/ut2004-ded/ChangeLog b/games-server/ut2004-ded/ChangeLog
new file mode 100644
index 000000000000..570189e03cfb
--- /dev/null
+++ b/games-server/ut2004-ded/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for games-server/ut2004-ded
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v 1.1 2004/07/04 00:38:43 wolf31o2 Exp $
+
+*ut2004-ded-3236 (03 Jul 2004)
+
+ 03 Jul 2004; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +files/ut2004-ded.rc, +ut2004-ded-3236.ebuild:
+ Initial import. Original ebuild submitted by James Jones
+ <cuban@drunkstudents.net> with an init script submitted by Ken Smith
+ <themyrmidon@mac.com>. Updated to 3236-1 patch by Davin Boling
+ <davin@postmark.net> with some modifications by me. Closing bug #46057.
+
diff --git a/games-server/ut2004-ded/Manifest b/games-server/ut2004-ded/Manifest
new file mode 100644
index 000000000000..e129213f00ca
--- /dev/null
+++ b/games-server/ut2004-ded/Manifest
@@ -0,0 +1,5 @@
+MD5 a383dd2fc62e7674472543e5f0e0e8d8 ChangeLog 641
+MD5 f05d84780234f0c985ed7d5dc5f3ddb1 metadata.xml 646
+MD5 1e1627ad3114783442701478586d6c4b ut2004-ded-3236.ebuild 2567
+MD5 d01741a71f471ffeb77693d4aba27877 files/ut2004-ded.rc 2515
+MD5 8847b356e3b20a1d7bf18c02e8c4c1b2 files/digest-ut2004-ded-3236 155
diff --git a/games-server/ut2004-ded/files/digest-ut2004-ded-3236 b/games-server/ut2004-ded/files/digest-ut2004-ded-3236
new file mode 100644
index 000000000000..6fa84f306970
--- /dev/null
+++ b/games-server/ut2004-ded/files/digest-ut2004-ded-3236
@@ -0,0 +1,2 @@
+MD5 8618eb32607344dd1ce814edf6c9e34f ut2004-3186-dedicatedserver.zip 815502874
+MD5 05bc3d52b47655aa866f6a5640cb9bbc ut2004-lnxpatch3236-1.tar.bz2 19580813
diff --git a/games-server/ut2004-ded/files/ut2004-ded.rc b/games-server/ut2004-ded/files/ut2004-ded.rc
new file mode 100644
index 000000000000..88981a1060d9
--- /dev/null
+++ b/games-server/ut2004-ded/files/ut2004-ded.rc
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+#UT2004 Dedicated Server Runscript by Ken Smith
+#change the following two variables to customize this script
+#default script starts up a Onslaught Server
+#goto www.unrealadmin.org to learn how to edit your options
+
+UCCDIR="/opt/ut2004-ded/System"
+OPTIONS="server ONS-Torlan?game=Onslaught.ONSOnslaughtGame ini=Default.ini log=server.log -nohomedir"
+
+
+#don't edit below here or the world will explode
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting UT2004 Dedicated Server"
+ cd $UCCDIR
+ start-stop-daemon --make-pidfile --start --quiet --pidfile /var/run/ucc-bin.pid --exec ucc-bin -- $OPTIONS >> /dev/null &
+ eend $? "Failed to start UT2004 Dedicated Server"
+}
+
+stop() {
+ ebegin "Stopping UT2004 Dedicated Server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/ucc-bin.pid -- >> /dev/null
+ eend $? "Failed to stop UT2004 Dedicated Server"
+ sleep 1
+}
+
+reload() {
+ if [ ! -f /var/run/ucc-bin.pid ]; then
+ eerror "UT2004 Dedicated Server isn't running"
+ return 1
+ fi
+ ebegin "Reloading UT2004 Dedicated Server"
+ kill -HUP `cat /var/run/ucc-bin.pid` &>/dev/null
+ eend $?
+}
diff --git a/games-server/ut2004-ded/metadata.xml b/games-server/ut2004-ded/metadata.xml
new file mode 100644
index 000000000000..bbc22c5c7c1a
--- /dev/null
+++ b/games-server/ut2004-ded/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+<maintainer>
+ <email>wolf31o2@gentoo.org</email>
+ <name>Chris Gianelloni</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-3236.ebuild b/games-server/ut2004-ded/ut2004-ded-3236.ebuild
new file mode 100644
index 000000000000..8ffd012e1065
--- /dev/null
+++ b/games-server/ut2004-ded/ut2004-ded-3236.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ut2004-ded-3236.ebuild,v 1.1 2004/07/04 00:38:43 wolf31o2 Exp $
+
+inherit games
+
+DESCRIPTION="Unreal Tournament 2004 Linux Dedicated Server"
+HOMEPAGE="http://www.unrealtournament.com/"
+
+ORIG_P="ut2004-3186-dedicatedserver.zip"
+PATCH_P="ut2004-lnxpatch${PV}-1.tar.bz2"
+SRC_URI="mirror://3dgamers/pub/3dgamers5/games/unrealtourn2k4/${ORIG_P}
+ mirror://3dgamers/pub/3dgamers/games/unrealtourn2k4/${ORIG_P}
+ mirror://3dgamers/pub/3dgamers5/games/unrealtourn2k4/${PATCH_P}
+ mirror://3dgamers/pub/3dgamers/games/unrealtourn2k4/${PATCH_P}"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+RESTRICT="nostrip nomirror"
+IUSE=""
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ check_license || die "License check failed"
+ games_pkg_setup
+}
+
+src_unpack() {
+ unzip ${DISTDIR}/${ORIG_P}
+ unpack ${PATCH_P}
+}
+
+src_install() {
+ einfo "This will take a while ... go get a pizza or something"
+
+ dodir ${dir}
+ rm -f ${D}/ut2004-bi{n,n-linux-amd64} || die "Removing ut2004 binaries"
+ cp -r ${S}/UT2004-Patch/* ${S} || die "Patching server to current..."
+ rm -rf ${S}/UT2004-Patch
+ cp -r ${S}/* ${Ddir}
+
+ if use amd64 ; then
+ rm ${Ddir}/System/{ucc-bi{n,n-macosx},UCC.exe} \
+ || die "removing unused binaries"
+ mv ${Ddir}/System/ucc-bin-linux-amd64 ${Ddir}/System/ucc-bin \
+ || die "renaming ucc-bin-amd64 => ucc-bin"
+ else
+ rm ${Ddir}/System/{ucc-bin-{linux-amd64,macosx},UCC.exe} \
+ || die "removing unused binaries"
+ fi
+
+ fperms 0770 ${dir}/System/ucc-bin || die "fixing permissions on ucc-bin"
+ rm -f ${Ddir}/System/*.dll || die "removing windows dlls"
+
+ prepgamesdirs
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/ut2004-ded.rc ut2004-ded
+}
+
+pkg_postinst() {
+ echo
+ einfo "The server can be started with the /etc/init.d/ut2004-ded init script."
+ echo
+ ewarn "You should take the time to edit the default server INI."
+ ewarn "Consult the INI Reference at http://unrealadmin.net/"
+ ewarn "for assistance in adjusting the following file:"
+ ewarn " /opt/ut2004-ded/System/Default.ini"
+ echo
+ ewarn "NOTE: 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]"
+ echo
+ ewarn " http://unreal.epicgames.com/ut2004server/cdkey.php"
+ echo
+ games_pkg_postinst
+}