diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-07-04 00:38:43 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2004-07-04 00:38:43 +0000 |
commit | c1f78a4dc8a10a5d50765616eb2fd2034e7fd3eb (patch) | |
tree | 7e4f80f8cdbb182984ad98a2133d51f8cef9f15f /games-server/ut2004-ded | |
parent | Version bumped. (Manifest recommit) (diff) | |
download | gentoo-2-c1f78a4dc8a10a5d50765616eb2fd2034e7fd3eb.tar.gz gentoo-2-c1f78a4dc8a10a5d50765616eb2fd2034e7fd3eb.tar.bz2 gentoo-2-c1f78a4dc8a10a5d50765616eb2fd2034e7fd3eb.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/ut2004-ded')
-rw-r--r-- | games-server/ut2004-ded/ChangeLog | 13 | ||||
-rw-r--r-- | games-server/ut2004-ded/Manifest | 3 | ||||
-rw-r--r-- | games-server/ut2004-ded/files/digest-ut2004-ded-3236 | 2 | ||||
-rw-r--r-- | games-server/ut2004-ded/files/ut2004-ded.rc | 39 | ||||
-rw-r--r-- | games-server/ut2004-ded/metadata.xml | 12 | ||||
-rw-r--r-- | games-server/ut2004-ded/ut2004-ded-3236.ebuild | 84 |
6 files changed, 153 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..50f2ed072890 --- /dev/null +++ b/games-server/ut2004-ded/Manifest @@ -0,0 +1,3 @@ +MD5 e96fbadc3e850777bd6eec4cf71a5198 ut2004-ded-3236.ebuild 2562 +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 +} |