# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/games-server/ut2003-ded/ut2003-ded-2225.ebuild,v 1.2 2004/02/20 07:31:48 mr_bones_ Exp $ inherit games DESCRIPTION="Unreal Tournament 2004 Linux Dedicated Server" HOMEPAGE="http://www.unrealtournament.com/" # Can't use ${PV} for the base package, for now we have to download the # initial release and patch it to current. # SRC_URI="ftp://3dgamers.in-span.net/pub/3dgamers5/games/unrealtourn2k4/ut2004-${PV}-dedicatedserver.zip" # Can't use $(PV) for patch URI on 3236 due to the -1 subversion. # The following line should work with future releases though. #SRC_URI="ftp://3dgamers.in-span.net/pub/3dgamers5/games/unrealtourn2k4/ut2004-3186-dedicatedserver.zip ftp://3dgamers.in-span.net/pub/3dgamers5/games/unrealtourn2k4/ut2004-lnxpatch${PV}.tar.bz2" # Static URI for patch version 3236. Sigh. SRC_URI="ftp://3dgamers.in-span.net/pub/3dgamers5/games/unrealtourn2k4/ut2004-3186-dedicatedserver.zip ftp://3dgamers.in-span.net/pub/3dgamers5/games/unrealtourn2k4/ut2004-lnxpatch3236-1.tar.bz2" LICENSE="ut2004" SLOT="0" KEYWORDS="x86 ~amd64" RESTRICT="nostrip" DEPEND="virtual/glibc unzip" S=${WORKDIR} src_install() { einfo "This will take a while ... go get a pizza or something" local dir=${GAMES_PREFIX_OPT}/${PN} dodir ${dir} cp -Rf UT2004-Patch/* . || die "Patching server to current..." rm -Rf UT2004-Patch mv * ${D}/${dir}/ if [ "`use amd64`" ]; then rm ${D}/${dir}/System/{ucc-bin,ucc-bin-macosx,UCC.exe} || die "removing unused binaries" mv ${D}/${dir}/System/ucc-bin-linux-amd64 ${D}/${dir}/System/ucc-bin || die "renaming ucc-bin-amd64 => ucc-bin" else rm ${D}/${dir}/System/{ucc-bin-linux-amd64,ucc-bin-macosx,UCC.exe} || die "removing unused binaries" fi chmod 0770 ${D}/${dir}/System/ucc-bin || die "fixing permissions on ucc-bin" rm -f ${D}/${dir}/System/*.dll || die "removing windows dlls" prepgamesdirs exeinto /etc/init.d newexe ${FILESDIR}/ut2004-ded.init ut2004-ded } pkg_postinst() { ewarn " " ewarn "The server can be started with the /etc/init.d/ut2004-ded" ewarn "initscript." ewarn " " 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" ewarn " " 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]" ewarn " " ewarn " http://unreal.epicgames.com/ut2004server/cdkey.php" ewarn " " games_pkg_postinst }