# 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/" SRC_URI="ftp://3dgamers.in-span.net/pub/3dgamers4/games/unrealtourn2k4/ut2004-${PV}-dedicatedserver.zip" 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} 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 } pkg_postinst() { ewarn "NOTE: To have your server authenticate properly, you" ewarn " MUST visit the following site and request a key." ewarn "http://unreal.epicgames.com/ut2004server/cdkey.php" games_pkg_postinst }