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
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')
-rw-r--r--games-fps/ut2003/ChangeLog32
-rw-r--r--games-fps/ut2003/Manifest6
-rw-r--r--games-fps/ut2003/files/digest-ut2003-22251
-rw-r--r--games-fps/ut2003/files/ucc4
-rw-r--r--games-fps/ut2003/files/ut20034
-rw-r--r--games-fps/ut2003/metadata.xml12
-rw-r--r--games-fps/ut2003/ut2003-2225.ebuild191
7 files changed, 250 insertions, 0 deletions
diff --git a/games-fps/ut2003/ChangeLog b/games-fps/ut2003/ChangeLog
new file mode 100644
index 000000000000..4f8fc569b959
--- /dev/null
+++ b/games-fps/ut2003/ChangeLog
@@ -0,0 +1,32 @@
+# ChangeLog for app-games/ut2003
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003/ChangeLog,v 1.1 2003/09/09 18:10:15 vapier Exp $
+
+ 08 Sep 2003; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-2225.ebuild:
+ Fixed sound and player model picker issues. Closes bugs # 27357 and 27451.
+
+ 26 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-2225.ebuild:
+ Fixing problem with location of .ini files during installtion. Closing bug
+ #27357
+
+ 14 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-2225.ebuild,
+ files/ucc, files/ut2003:
+ Fixing bug #26396
+
+ 07 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-2225.ebuild:
+ Fixing ebuild to unpack file directly rather than using unpack_makeself.
+ Apparently, I wasn't paying much attention when updating some ebuilds and made
+ this change. Closing bug #26129. Thanks for pointing this out, Hendrik.
+
+ 06 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-2225.ebuild:
+ Fixed sandbox violation
+
+ 05 Aug 2003; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-2225.ebuild:
+ Fixed to use unpack_makeself
+
+*ut2003-2225 (21 Jul 2003)
+
+ 21 Jul 2003; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-2225.ebuild,
+ files/ucc, files/ut2003:
+ Initial import to portage. Ebuild submitted by me.
+
diff --git a/games-fps/ut2003/Manifest b/games-fps/ut2003/Manifest
new file mode 100644
index 000000000000..1ceafab0cd6d
--- /dev/null
+++ b/games-fps/ut2003/Manifest
@@ -0,0 +1,6 @@
+MD5 f6cae33c8caa476c3de7fee839fd3534 ChangeLog 1348
+MD5 4b63cb7e7f6443366fdd4f62f588d62a metadata.xml 776
+MD5 b7856ff66bc304c62424d4fe7a55b40f ut2003-2225.ebuild 6159
+MD5 5e8d480633edafa5d68b6571cb1e42b0 files/ucc 36
+MD5 046c03694cc792093c0a18d1b4cb8f94 files/ut2003 39
+MD5 80cad624a754f13b032630aaecace59f files/digest-ut2003-2225 73
diff --git a/games-fps/ut2003/files/digest-ut2003-2225 b/games-fps/ut2003/files/digest-ut2003-2225
new file mode 100644
index 000000000000..5ade972c85d4
--- /dev/null
+++ b/games-fps/ut2003/files/digest-ut2003-2225
@@ -0,0 +1 @@
+MD5 9313986bae68514a31917de8f8fca999 ut2003lnx_2107to2225.sh.bin 8558900
diff --git a/games-fps/ut2003/files/ucc b/games-fps/ut2003/files/ucc
new file mode 100644
index 000000000000..596621803c8a
--- /dev/null
+++ b/games-fps/ut2003/files/ucc
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd GENTOO_DIR
+./ucc $@
diff --git a/games-fps/ut2003/files/ut2003 b/games-fps/ut2003/files/ut2003
new file mode 100644
index 000000000000..10d1914559f1
--- /dev/null
+++ b/games-fps/ut2003/files/ut2003
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+cd GENTOO_DIR
+./ut2003 $@
diff --git a/games-fps/ut2003/metadata.xml b/games-fps/ut2003/metadata.xml
new file mode 100644
index 000000000000..1dd95fa16097
--- /dev/null
+++ b/games-fps/ut2003/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 2003 is a first-person 3-D shooter and sequel to the 1999 Game of the Year, Unreal Tournament. 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 game is commercial software and requires data from the original retail discs to play. If you're interested in checking out the technology behind Unreal Tournament 2003, you can "emerge ut2003-demo" to get the playable demo.
+</longdescription>
+</pkgmetadata>
diff --git a/games-fps/ut2003/ut2003-2225.ebuild b/games-fps/ut2003/ut2003-2225.ebuild
new file mode 100644
index 000000000000..bb1f3cc5de1b
--- /dev/null
+++ b/games-fps/ut2003/ut2003-2225.ebuild
@@ -0,0 +1,191 @@
+# 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/ut2003-2225.ebuild,v 1.1 2003/09/09 18:10:15 vapier Exp $
+
+inherit games
+
+IUSE="dedicated"
+DESCRIPTION="Unreal Tournament 2003 - Sequel to the 1999 Game of the Year multi-player first-person shooter"
+HOMEPAGE="http://www.unrealtournament2003.com/"
+SRC_URI="ftp://david.hedbor.org/ut2k3/updates/${PN}lnx_2107to${PV}.sh.bin"
+
+LICENSE="ut2003"
+SLOT="0"
+KEYWORDS="x86"
+RESTRICT="nostrip"
+
+DEPEND="virtual/glibc"
+RDEPEND="dedicated? ( app-games/ut2003-ded )
+ !dedicated? ( virtual/opengl )"
+
+S=${WORKDIR}
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ ewarn "The installed game takes about 2.7GB of space!"
+ games_pkg_setup
+}
+
+src_unpack() {
+ unpack_makeself || die "unpacking patch"
+}
+
+src_install() {
+ dodir ${dir}
+ dodir ${dir}/System
+
+ games_get_cd System/Packages.md5
+ if [ -z "${GAMES_CDROM}" ]; then
+ # Disk 1
+ games_verify_cd "UT2003 Disk1"
+ einfo "Copying files from Disk 1..."
+ cp -r ${GAMES_CD}/{Animations,ForceFeedback,Help,KarmaData,Maps,Sounds,Textures} ${Ddir} || die "copying files"
+ cp -r ${GAMES_CD}/System/{editorres,*.{bmp,dat,det,est,frt,ini,int,itt,md5,u,upl,url}} ${Ddir}/System || die "copying files"
+ mkdir -p ${Ddir}/Benchmark/Stuff
+ cp -r ${GAMES_CD}/Benchmark/Stuff/* ${Ddir}/Benchmark/Stuff || die "copying benchmark files"
+
+ # Disk 2
+ einfo "Please mount UT2003 Disk 2 and press return when ready (or CTRL+C to abort)"
+ read
+ games_get_cd StaticMeshes/AWHardware.usx.uz2
+ games_verify_cd "UT2003 Disk 2"
+ einfo "Copying files from Disk 2..."
+ cp -r ${GAMES_CD}/{Music,Sounds,StaticMeshes,Textures} ${Ddir} || die "copying files"
+
+ # Disk 3
+ einfo "Please mount UT2003 Disk 3 and press return when ready (or CTRL+C to abort)"
+ read
+ games_get_cd Extras/MayaPLE/Maya4PersonalLearningEditionEpic.exe
+ games_verify_cd "UT2003 Disk 3"
+ einfo "Copying files from Disk 3..."
+ cp -r ${GAMES_CD}/Sounds ${Ddir} || die "copying files"
+ else
+ # Copying from local disk
+ einfo "Copying files... this may take a while..."
+ cp -r ${GAMES_CD}/{Animations,ForceFeedback,Help,KarmaData,Maps,Music,Sounds,StaticMeshes,Textures,Web} ${Ddir} || die "copying files"
+ cp -r ${GAMES_CD}/System/{editorres,*.{bmp,dat,det,est,frt,ini,int,itt,md5,u,upl,url}} ${Ddir}/System || die "copying files"
+ mkdir -p ${Ddir}/Benchmark/Stuff
+ cp -r ${GAMES_CD}/Benchmark/Stuff/* ${Ddir}/Benchmark/Stuff || die "copying benchmark files"
+ fi
+
+ # create empty files in Benchmark
+ for j in {CSVs,Logs,Results} ; do
+ mkdir -p ${Ddir}/Benchmark/${j} || die "creating folders"
+ touch ${Ddir}/Benchmark/${j}/DO_NOT_DELETE.ME || die "creating files"
+ done
+
+ # remove Default, DefUser, UT2003 and User ini files
+ rm ${Ddir}/System/{Def{ault,User},UT2003,User}.ini || die "deleting ini files"
+
+ # unpack_makeself won't take absolute path
+ cd ${S}
+ tail +266 ${GAMES_CD}/linux_installer.sh | tar xf -
+
+ # install extra help files
+ insinto ${dir}/Help
+ doins ${S}/Help/Unreal.bmp
+
+ # install Default and DefUser ini files
+ insinto ${dir}/System
+ doins ${S}/System/Def{ault,User}.ini
+
+ # install eula
+ insinto ${dir}
+ doins ${S}/eula/License.int
+
+ # uncompress original binaries/libraries
+ tar xf ut2003lnxbins.tar || die "unpacking original binaries/libraries"
+
+ # copying extra/updater
+ cp -r ${S}/{extras,updater} ${Ddir} || die "copying extras/updater"
+
+ # install benchmarks
+ exeinto ${dir}/Benchmark
+ doexe ${S}/Benchmark/botmatch-* ${S}/Benchmark/flyby-* || die "copying benchmark files"
+
+ # copy ut2003/ucc
+ exeinto ${dir}
+ doexe ${S}/bin/ut2003 ${S}/ucc || die "copying ut2003/ucc"
+
+ # copy binaries/libraries
+ exeinto ${dir}/System
+ doexe ${S}/System/{*-bin,*.so.0,*.so} || die "copying system binaries/libraries"
+
+ # uncompressing files
+ einfo "Uncompressing files... this may take a while..."
+ for j in {Animations,Maps,Sounds,StaticMeshes,Textures} ; do
+ games_ut_unpack ${Ddir}/${j} || die "uncompressing files"
+ done
+
+ # installing documentation/icon
+ dodoc ${S}/README.linux || die "dodoc README.linux"
+ insinto /usr/share/pixmaps ; newins ${S}/Unreal.xpm UT2003.xpm || die "copying pixmap"
+ insinto ${dir}
+ doins ${S}/README.linux ${S}/Unreal.xpm || die "copying readme/icon"
+
+ sed -e "s:GENTOO_DIR:${dir}:" ${FILESDIR}/ucc > ucc
+ sed -e "s:GENTOO_DIR:${dir}:" ${FILESDIR}/ut2003 > ut2003
+ dogamesbin ucc ut2003
+
+ rm ${Ddir}/System/{UT2003,User}.ini || die "deleting ini files"
+
+ # this brings our install up to the newest version
+ cd ${S}
+ bin/Linux/x86/loki_patch --verify patch.dat
+ bin/Linux/x86/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
+
+ # now, since these files are coming off a cd, the times/sizes/md5sums wont
+ # be different ... that means portage will try to unmerge some files (!)
+ # we run touch on ${D} so as to make sure portage doesnt do any such thing
+ find ${Ddir} -exec touch '{}' \;
+
+ prepgamesdirs
+ make_desktop_entry ut2003 "UT2003" UT2003.xpm
+}
+
+pkg_postinst() {
+ # here is where we check for the existence of a cdkey...
+ # if we don't find one, we ask the user for it
+ if [ -f ${dir}/System/cdkey ]; then
+ einfo "A cdkey file is already present in ${dir}/System"
+ else
+ ewarn "Your CD key is NOT checked for validity here."
+ ewarn " Make sure you type it in correctly."
+ eerror "If you CTRL+C out of this, the game will not run!"
+ echo
+ while true
+ do
+ einfo "Please enter your CD key: "
+ read CDKEY1
+ einfo "Please re-enter your CD key: "
+ read CDKEY2
+
+ if [ "$CDKEY1" == "" ]; then
+ echo "You entered a blank CD key. Try again."
+ else
+ if [ "$CDKEY1" == "$CDKEY2" ]; then
+ echo "$CDKEY1" | tr a-z A-Z > ${dir}/System/cdkey
+ einfo "Thank you!"
+ sleep 1
+ exit 0
+ else
+ eerror "Your CD key entries don't match. Try again."
+ fi
+ fi
+ done
+ fi
+
+ einfo "This game should be working, please assign any bugs to games@gentoo.org"
+ echo
+ einfo "To play the game run:"
+ einfo " ut2003"
+
+ games_pkg_postinst
+}
+
+pkg_postrm() {
+ ewarn "This package leaves a cdkey file in ${dir}/System that you need"
+ ewarn "to remove to completely get rid of this game's files."
+}