summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-09 18:10:15 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-09 18:10:15 +0000
commitc22ea1f9962983b3583d00085024413d77102212 (patch)
treeacd80fa59d92f27b0609b3d58893ef500cd09925 /games-fps/ut2003-demo
parentNew version 'n cleanup (diff)
downloadgentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.gz
gentoo-2-c22ea1f9962983b3583d00085024413d77102212.tar.bz2
gentoo-2-c22ea1f9962983b3583d00085024413d77102212.zip
games-fps uNF uNF uNF
Diffstat (limited to 'games-fps/ut2003-demo')
-rw-r--r--games-fps/ut2003-demo/ChangeLog104
-rw-r--r--games-fps/ut2003-demo/Manifest9
-rw-r--r--games-fps/ut2003-demo/files/benchmark37
-rw-r--r--games-fps/ut2003-demo/files/digest-ut2003-demo-2206-r22
-rw-r--r--games-fps/ut2003-demo/files/misc.tar.bz2bin0 -> 31851 bytes
-rw-r--r--games-fps/ut2003-demo/files/results.py61
-rw-r--r--games-fps/ut2003-demo/files/results.sh79
-rw-r--r--games-fps/ut2003-demo/files/ut2003-demo30
-rw-r--r--games-fps/ut2003-demo/files/ut2003-demo.desktop8
-rw-r--r--games-fps/ut2003-demo/ut2003-demo-2206-r2.ebuild80
10 files changed, 410 insertions, 0 deletions
diff --git a/games-fps/ut2003-demo/ChangeLog b/games-fps/ut2003-demo/ChangeLog
new file mode 100644
index 000000000000..ddb4e88d96ea
--- /dev/null
+++ b/games-fps/ut2003-demo/ChangeLog
@@ -0,0 +1,104 @@
+# ChangeLog for app-games/ut2003-demo
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-demo/ChangeLog,v 1.1 2003/09/09 18:10:15 vapier Exp $
+
+ 30 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org>
+ ut2003-demo-2206-r2.ebuild:
+ Adding menu entry. Closes bug #27594.
+
+*ut2003-demo-2206-r2 (23 May 2003)
+
+ 23 Jun 2003; Mike Frysinger <vapier@gentoo.org> :
+ Updated results.sh script to fix #19392.
+
+ 23 May 2003; Daniel Robbins <drobbins@gentoo.org>: Aliz's security "fix"
+ actually totally broke this ebuild. In the absence of a working fix, it's
+ being removed. Also removing use of evil "games" group.
+
+ 18 May 2003; Daniel Ahlberg <aliz@gentooo.org> : Added missing desktop file.
+
+*ut2003-demo-2206-r1 (16 May 2003)
+
+ 16 May 2003; Daniel Ahlberg <aliz@gentoo.org> :
+ Security update. Ebuild contributed by Chris Gianelloni wolf31o2@hotmail.com in #20993.
+
+*ut2003-demo-2206 (25 Feb 2003)
+
+ 25 Feb 2003; Daniel Robbins <drobbins@gentoo.org> : A new release from
+ icculus.org with lots of nice fixes. I'm removing all the older versions of
+ ut2003-demo from CVS because this one is clearly preferable and also has a new
+ versioning scheme (by build number rather than timestamp.) There still seems
+ to be some trouble with the benchmarking, particularly MinDetail. MaxDetail works
+ perfectly for me, while MinDetail seems to look for WinDrv for some reason. But
+ it works fine when I run the command manually. Weird.
+
+ 06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+
+*ut2003-demo-20020925-r2 (06 Oct 2002)
+
+ 06 Oct 2002; phoen][x <phoenix@gentoo.org> ChangeLog, ut2003-demo-20020925-r2.ebuild,
+ files/digest-ut2003-demo-20020925-r2, files/benchmark:
+
+ Fixed the benchmarking.
+
+*ut2003-demo-20020925-r1 (25 Sep 2002)
+
+ 25 Sep 2002; phoen][x <phoenix@gentoo.org> ChangeLog, ut2003-demo-20020925-r1.ebuild,
+ files/digest-ut2003-demo-20020925-r1, files/results.sh, files/ut2003-demo:
+
+ Removed results.py and added results.sh. This makes the ebuild compatible with the
+ LiveCD (the LiveCD doesnt come with python).
+
+*ut2003-demo-20020925 (25 Sep 2002)
+
+ 25 Sep 2002; Mike Frysinger <vapier@gentoo.org> ChangeLog, ut2003-demo-20020925.ebuild :
+
+ My bad, 1080c is not a new patch, but a supplement to 1080b ... this fixes that ... #8313
+
+*ut2003-demo-20020919 (19 Sep 2002)
+
+ 19 Sep 2002; Mike Frysinger <vapier@gentoo.org> ChangeLog, ut2003-demo-20020919.ebuild :
+
+ 1080c is out, fixes #8081
+
+*ut2003-demo-20020918-r1 (19 Sep 2002)
+
+ 18 Sep 2002; phoen][x <phoenix@gentoo.org> ChangeLog, ut2003-demo-20020918-r1.ebuild,
+ files/digest-ut2003-demo-20020918, files/results.py, files/ut2003-demo, files/benchmark:
+
+ Revision bump. Added a wrapper which is able to benchmark ut2003. Made the game
+ executable by users who aren't in group games. Fixed a few minor bugs.
+
+
+*ut2003-demo-20020918 (18 Sep 2002)
+
+ 18 Sep 2002; phoen][x <phoenix@gentoo.org> ChangeLog, ut2003-demo-20020918.ebuild,
+ files/digest-ut2003-demo-20020918 :
+
+ This version includes the patch 1080. Installation directory switched to /opt
+ again, sorry for that (this was the last location change, i promise).
+
+*ut2003-demo-20020915 (15 Sep 2002)
+
+ 17 Sep 2002; phoen][x <phoenix@gentoo.org> ChangeLog, ut2003-demo-20020915.ebuild:
+
+ chmod'ed the whole game to "o-rwx" - that prevent users who aren't members of
+ group 'games' from playing the game. Added a message about that to pkg_postinst().
+
+ 16 Sep 2002; phoen][x <phoenix@gentoo.org> ChangeLog, ut2003-demo-20020915.ebuild:
+
+ Added "-f" to "rm ${S}/${FILENAME}",
+
+ Changed install location to /usr/local/games.
+
+ Fixed the permissions.
+
+ 15 Sep 2002; phoen][x <phoenix@gentoo.org> ChangeLog, ut2003-demo-20020915.ebuild
+ files/digest-ut2003-demo-20020915, files/misc.tar.bz2:
+
+ Initial import. This package installs the official Unreal Tournament 2003 demo to
+ /opt/ut2003-demo.
+
+ Modified DEPEND.
+
+ Added --nox11 to prevent the installer from starting.
diff --git a/games-fps/ut2003-demo/Manifest b/games-fps/ut2003-demo/Manifest
new file mode 100644
index 000000000000..f6d217fe404c
--- /dev/null
+++ b/games-fps/ut2003-demo/Manifest
@@ -0,0 +1,9 @@
+MD5 dbbfbd5282e10205d299f235cf78234f ChangeLog 4052
+MD5 ebcca0b6443fb03456c0af5dd673d37d ut2003-demo-2206-r2.ebuild 2772
+MD5 65c92c0f20bdebbc7369012b63a17f52 files/benchmark 1130
+MD5 1a1e434e7d953a057cf4c388b848f463 files/misc.tar.bz2 31851
+MD5 1cc2aecbe8968fa325a6e49b7f71f2ca files/results.py 1461
+MD5 b9b76d93d292d5f73481c37ff7c41454 files/results.sh 2103
+MD5 4605ca0fbc6b80d2980c183e00771be3 files/ut2003-demo 679
+MD5 fda26e9125bc82d968da4db95a839554 files/digest-ut2003-demo-2206-r2 131
+MD5 e3fbaa34b381bf635b9792339862c47a files/ut2003-demo.desktop 159
diff --git a/games-fps/ut2003-demo/files/benchmark b/games-fps/ut2003-demo/files/benchmark
new file mode 100644
index 000000000000..0e2f39d9b525
--- /dev/null
+++ b/games-fps/ut2003-demo/files/benchmark
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Originally from linuxforen.de
+# Modified by phoen][x <phoenix@gentoo.org>, Sep/19/2002
+# Modifications, enhancements or bugs? Mail me.
+
+# Tweaks by Daniel Robbins <drobbins@gentoo.org> 25 Feb 2003
+
+STUFF=/opt/ut2003-demo/Benchmark/Stuff
+MYPATH=${HOME}/.ut2003/Benchmark
+TEMPLOG=${MYPATH}/benchmark.log
+LOG=${MYPATH}/bench.log
+
+[ -d ${MYPATH} ] || mkdir -p ${MYPATH}
+
+rm -f ${TEMPLOG} ${LOG}
+touch ${TEMPLOG} ${LOG}
+
+date > $LOG
+
+echo ">> Starting benchmark"
+cd /opt/ut2003-demo/System
+for BENCH in /opt/ut2003-demo/Benchmark/*-*.sh
+do
+ echo "Running ${BENCH} with MinDetail"
+ ${BENCH} -ini=${STUFF}/MinDetail.ini -userini=${STUFF}/MinDetailUser.ini &> /dev/null
+ echo -n "${BENCH} / MinDetail / " >> ${LOG}
+ cat ${TEMPLOG} | tail -n1 >> ${LOG}
+
+ echo "Running ${BENCH} with MaxDetail"
+ ${BENCH} -ini=${STUFF}/MaxDetail.ini -userini=${STUFF}/MaxDetailUser.ini &> /dev/null
+ echo -n "${BENCH} / MaxDetail / " >> ${LOG}
+ cat ${TEMPLOG} | tail -n1 >> ${LOG}
+done
+
+echo ">> Benchmark complete"
+/opt/ut2003-demo/Benchmark/results.sh
+echo ">> Use 'ut2003-demo --results' to show these results again (without benchmarking)"
diff --git a/games-fps/ut2003-demo/files/digest-ut2003-demo-2206-r2 b/games-fps/ut2003-demo/files/digest-ut2003-demo-2206-r2
new file mode 100644
index 000000000000..eeb6ae1dca3e
--- /dev/null
+++ b/games-fps/ut2003-demo/files/digest-ut2003-demo-2206-r2
@@ -0,0 +1,2 @@
+MD5 b28acb17aca17bd2865771de8b75eb89 ut2003demo-lnx-2206.sh.bin 137253079
+MD5 8543c4841a07e9e17f9222f868d9dbe4 IpDrv.so.bz2 124394
diff --git a/games-fps/ut2003-demo/files/misc.tar.bz2 b/games-fps/ut2003-demo/files/misc.tar.bz2
new file mode 100644
index 000000000000..c015a5de81a8
--- /dev/null
+++ b/games-fps/ut2003-demo/files/misc.tar.bz2
Binary files differ
diff --git a/games-fps/ut2003-demo/files/results.py b/games-fps/ut2003-demo/files/results.py
new file mode 100644
index 000000000000..3e626239129d
--- /dev/null
+++ b/games-fps/ut2003-demo/files/results.py
@@ -0,0 +1,61 @@
+#!/usr/bin/env python
+# Written by phoen][x <phoenix@gentoo.org>, Sep/19/2002
+# Modifications, enhancements or bugs? Mail me.
+import sys
+
+def help():
+ print "Usage"
+ print " results.py logfile"
+
+def stats(data,mode):
+ print(
+""">> Score for %s
+MinDetail: %f (%d tests)
+MaxDetail: %f (%d tests)
+Average : %f (%d tests)
+""" % (mode,data[0][0]/data[0][1],data[0][1],data[1][0]/data[1][1],data[1][1],
+ (data[0][0]+data[1][0])/(data[0][1]+data[1][1]),data[0][1]+data[1][1]))
+
+args = sys.argv[1:]
+if "--help" in args:
+ help()
+else:
+ if len(args):
+ file = args[0]
+ else:
+ import user
+ file = "%s/.ut2003/Benchmark/bench.log" % user.home
+ try:
+ myfile = open(file)
+ date = myfile.readline()
+ print(">> Results of the UT2003-demo benchmark")
+ print(">> created on %s" % date)
+
+ botmatch = ([0,0],[0,0])
+ flyby = ([0,0],[0,0])
+
+ for line in myfile.readlines():
+ results = line.split()
+ category = results[0].split("-")[0]
+
+ if results[2] == "MinDetail":
+ detail = 0
+ elif results[2] == "MaxDetail":
+ detail = 1
+ else:
+ assert "Neither MinDetail nor MaxDetail?"
+
+ if category == "botmatch":
+ botmatch[detail][0] += float(results[13])
+ botmatch[detail][1] += 1
+ elif category == "flyby":
+ flyby[detail][0] += float(results[13])
+ flyby[detail][1] += 1
+ else:
+ assert "Neither botmach nor flyby?"
+
+ stats(botmatch,"Botmatch")
+ stats(flyby,"FlyBy")
+
+ except IOError:
+ print("Unable to open file %s" % file)
diff --git a/games-fps/ut2003-demo/files/results.sh b/games-fps/ut2003-demo/files/results.sh
new file mode 100644
index 000000000000..6810f4dbc805
--- /dev/null
+++ b/games-fps/ut2003-demo/files/results.sh
@@ -0,0 +1,79 @@
+#!/bin/bash
+# Written by phoen][x <phoenix@gentoo.org>, Sep/21/2002
+# Modifications, enhancements or bugs? Contact games@gentoo.org
+
+[ -z "${1}" ] \
+ && FILE="${HOME}/.ut2003/Benchmark/bench.log" \
+ || FILE="${1}"
+
+CURLINE=0
+
+BM_MIN_SCORE=0
+BM_MIN_COUNT=0
+BM_MAX_SCORE=0
+BM_MAX_COUNT=0
+
+FB_MIN_SCORE=0
+FB_MIN_COUNT=0
+FB_MAX_SCORE=0
+FB_MAX_COUNT=0
+
+while read LINE ; do
+ CURLINE=`expr $CURLINE + 1`
+ if [ ${CURLINE} -eq 1 ] ; then
+ echo ">> Results of the UT2003-demo benchmark"
+ echo ">> Created on ${LINE}"
+ continue
+ fi
+
+ set -- ${LINE}
+ TYPE=$(echo $(basename ${1}) | cut -d- -f1)
+ DETAIL=${3}
+ SCORE=${14}
+
+ case ${TYPE} in
+ "botmatch")
+ case ${DETAIL} in
+ "MinDetail")
+ BM_MIN_SCORE=`echo ${BM_MIN_SCORE} + ${SCORE} | bc`
+ BM_MIN_COUNT=`expr ${BM_MIN_COUNT} + 1`
+ ;;
+ "MaxDetail")
+ BM_MAX_SCORE=`echo ${BM_MAX_SCORE} + ${SCORE} | bc`
+ BM_MAX_COUNT=`expr ${BM_MAX_COUNT} + 1`
+ ;;
+ esac
+ ;;
+ "flyby")
+ case ${DETAIL} in
+ "MinDetail")
+ FB_MIN_SCORE=`echo ${FB_MIN_SCORE} + ${SCORE} | bc`
+ FB_MIN_COUNT=`expr ${FB_MIN_COUNT} + 1`
+ ;;
+ "MaxDetail")
+ FB_MAX_SCORE=`echo ${FB_MAX_SCORE} + ${SCORE} | bc`
+ FB_MAX_COUNT=`expr ${FB_MAX_COUNT} + 1`
+ ;;
+ esac
+ ;;
+ esac
+done < ${FILE}
+
+BM_MIN_AVG=`echo "scale=6; ${BM_MIN_SCORE} / ${BM_MIN_COUNT}" | bc`
+BM_MAX_AVG=`echo "scale=6; ${BM_MAX_SCORE} / ${BM_MAX_COUNT}" | bc`
+BM_ALL_AVG=`echo "scale=6; (${BM_MIN_SCORE} + ${BM_MAX_SCORE}) / (${BM_MIN_COUNT} + ${BM_MAX_COUNT})" | bc`
+
+FB_MIN_AVG=`echo "scale=6; ${FB_MIN_SCORE} / ${FB_MIN_COUNT}" | bc`
+FB_MAX_AVG=`echo "scale=6; ${FB_MAX_SCORE} / ${FB_MAX_COUNT}" | bc`
+FB_ALL_AVG=`echo "scale=6; (${FB_MIN_SCORE} + ${FB_MAX_SCORE}) / (${FB_MIN_COUNT} + ${FB_MAX_COUNT})" | bc`
+
+echo "
+>> Score for Botmatch
+MinDetail: ${BM_MIN_AVG} (${BM_MIN_COUNT} tests)
+MaxDetail: ${BM_MAX_AVG} (${BM_MAX_COUNT} tests)
+Average : ${BM_ALL_AVG} (`expr ${BM_MIN_COUNT} + ${BM_MAX_COUNT}` tests)
+
+>> Score for FlyBy
+MinDetail: ${FB_MIN_AVG} (${FB_MIN_COUNT} tests)
+MaxDetail: ${FB_MAX_AVG} (${FB_MAX_COUNT} tests)
+Average : ${FB_ALL_AVG} (`expr ${FB_MIN_COUNT} + ${FB_MAX_COUNT}` tests)"
diff --git a/games-fps/ut2003-demo/files/ut2003-demo b/games-fps/ut2003-demo/files/ut2003-demo
new file mode 100644
index 000000000000..592cd17ad1c7
--- /dev/null
+++ b/games-fps/ut2003-demo/files/ut2003-demo
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Written by phoen][x <phoenix@gentoo.org>, Sep/19/2002
+# Modifications, enhancements or bugs? Mail me.
+
+INSTALL="/opt/ut2003-demo"
+
+case ${1} in
+ "--results")
+ pushd ${INSTALL}/Benchmark &> /dev/null
+ ./results.sh
+ popd &> /dev/null
+ ;;
+ "--bench")
+ pushd ${INSTALL}/Benchmark &> /dev/null
+ ./benchmark
+ popd &> /dev/null
+ ;;
+ "--help")
+ echo "Usage:"
+ echo " ut2003-demo [--bench] || [--results]"
+ echo " Optional parameters, only one at a time."
+ echo " --bench : starts ut2003-demo in benchmark mode"
+ echo " --results : outputs the results of your last benchmark"
+ ;;
+ *)
+ pushd ${INSTALL} &> /dev/null
+ ./ut2003_demo
+ popd &> /dev/null
+ ;;
+esac
diff --git a/games-fps/ut2003-demo/files/ut2003-demo.desktop b/games-fps/ut2003-demo/files/ut2003-demo.desktop
new file mode 100644
index 000000000000..14681a951004
--- /dev/null
+++ b/games-fps/ut2003-demo/files/ut2003-demo.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=UT2003-demo
+Comment=Unreal Tournament 2003 Demo
+Exec=ut2003-demo
+Icon=ut2003.png
+Terminal=0
+Type=Application
+Categories=Application;Game;
diff --git a/games-fps/ut2003-demo/ut2003-demo-2206-r2.ebuild b/games-fps/ut2003-demo/ut2003-demo-2206-r2.ebuild
new file mode 100644
index 000000000000..c7a752ba8629
--- /dev/null
+++ b/games-fps/ut2003-demo/ut2003-demo-2206-r2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-demo/ut2003-demo-2206-r2.ebuild,v 1.1 2003/09/09 18:10:15 vapier Exp $.
+
+inherit games
+
+DESCRIPTION="Unreal Tournament 2003 Demo"
+HOMEPAGE="http://www.ut2003.com/"
+SRC_URI="http://unreal.epicgames.com/linux/ut2003/ut2003demo-lnx-${PV}.sh.bin"
+
+LICENSE="ut2003-demo"
+SLOT="0"
+KEYWORDS="-* x86"
+RESTRICT="nostrip"
+
+DEPEND="virtual/opengl"
+
+S=${WORKDIR}
+
+src_unpack() {
+ tail +266 ${DISTDIR}/${A} | tar xf - || die
+ tar -zxf setupstuff.tar.gz || die
+}
+
+src_install() {
+ einfo "This will take a while ... go get a pizza or something"
+
+ local dir=${GAMES_PREFIX_OPT}/${PN}
+ dodir ${dir}
+
+ tar -jxvf ut2003lnx_demo.tar.bz2 -C ${D}/${dir} || die
+ tar -jxvf ${FILESDIR}/misc.tar.bz2 -C ${D}/${dir} || die
+
+ # fix the benchmark configurations to use SDL rather than the Windows driver
+ cd ${D}/${dir}/Benchmark/Stuff
+ for f in MaxDetail.ini MinDetail.ini ; do
+ dosed 's/RenderDevice=D3DDrv.D3DRenderDevice/\;RenderDevice=D3DDrv.D3DRenderDevice/' ${dir}/Benchmark/Stuff/${f}
+ dosed 's/ViewportManager=WinDrv.WindowsClient/\;ViewportManager=WinDrv.WindowsClient/' ${dir}/Benchmark/Stuff/${f}
+ dosed 's/\;RenderDevice=OpenGLDrv.OpenGLRenderDevice/RenderDevice=OpenGLDrv.OpenGLRenderDevice/' ${dir}/Benchmark/Stuff/${f}
+ dosed 's/\;ViewportManager=SDLDrv.SDLClient/ViewportManager=SDLDrv.SDLClient/' ${dir}/Benchmark/Stuff/${f}
+ done
+
+ # have the benchmarks run the nifty wrapper script rather than ../System/ut2003-bin directly
+ cd ${D}/opt/ut2003-demo/Benchmark
+ for f in ${D}/${dir}/Benchmark/*-*.sh ; do
+ dosed 's:\.\./System/ut2003-bin:../ut2003_demo:' ${f}
+ done
+
+ # Wrapper and benchmark-scripts
+ insinto ${GAMES_BINDIR}
+ dogamesbin ${FILESDIR}/ut2003-demo
+ exeinto ${dir}/Benchmark
+ doexe ${FILESDIR}/{benchmark,results.sh}
+
+ # create menu entry (closes bug #27594)
+ insinto /usr/share/applications
+ newins ${D}/opt/ut2003-demo/Unreal.xpm UT2003-demo.xpm
+ make_desktop_entry ut2003-demo "UT2003 Demo" UT2003-demo.xpm
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ echo
+ einfo "Type 'ut2003-demo' to start the game."
+ einfo "You can run benchmarks by typing 'ut2003-demo --bench' (MinDetail seems"
+ einfo "to not be working for some unknown reason :/)"
+ echo
+ einfo "This version of ut2003 works well with NVIDIA cards, somewhat OK with"
+ einfo "the ATI unified drivers (emerge ati-drivers) and may also work"
+ einfo "with some recent versions of the commercial Xi Graphics drivers"
+ einfo "(http://www.xig.com/), although this has not yet been confirmed by me."
+ echo
+ einfo "Read ${dir}/README.linux for instructions on how to run a"
+ einfo "dedicated server."
+ echo
+ einfo "Have fun :)"
+
+ games_pkg_postinst
+}