Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 4022 Details for
Bug 8081
ut2003demo Server not working
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ut2003-demo-20020918-r2.ebuild
ut2003-demo-20020918-r2.ebuild (text/plain), 3.70 KB, created by
SpanKY
on 2002-09-19 19:14:07 UTC
(
hide
)
Description:
ut2003-demo-20020918-r2.ebuild
Filename:
MIME Type:
Creator:
SpanKY
Created:
2002-09-19 19:14:07 UTC
Size:
3.70 KB
patch
obsolete
># Copyright 1999-2002 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/app-games/ut2003-demo/ut2003-demo-20020918-r1.ebuild,v 1.1 2002/09/19 17:51:04 phoenix Exp $ > >RESTRICT="nostrip" >FILENAME="UT2003-demo-Linux.sh.bin" >PATCH="ut2003lnx_demo1080c.sh.bin" >DESCRIPTION="Unreal Tournament 2003 Demo - with Patch 1080" >HOMEPAGE="http://www.unrealtournament2003.com" >SRC_URI="mirror://ibiblio/${FILENAME} > ftp://david.hedbor.org/ut2k3/updates/${PATCH}" > >LICENSE="ut2003-demo" >SLOT="0" >KEYWORDS="x86" >DEPEND="opengl ? ( media-video/nvidia-glx )" > >src_unpack () { > mkdir ${S} > # Copying and extracting the archive > cp ${DISTDIR}/${PATCH} ${S} > cp ${DISTDIR}/${FILENAME} ${S} > chmod 755 ${S}/${PATCH} ${S}/${FILENAME} > einfo "Extracting the demo (build 1077)." > ${S}/${FILENAME} --target ${S}/extracted --confirm --nox11 << EOF &> /dev/null >n >EOF > echo > einfo "Extracting the patch (build 1080)." > ${S}/${PATCH} --target ${S}/patch --confirm --nox11 << EOF &> /dev/null >n >EOF > echo > # ~Convince~ the patch that our setup isnt borked. > mv ${S}/patch/update.sh ${S}/patch/update.sh.orig > sed -e 's/loki_patch patch.dat \$installed/loki_patch ${S}\/patch\/patch.dat ${D}\/opt\/ut2003-demo/' \ > ${S}/patch/update.sh.orig > ${S}/patch/update.sh > > # Delete the archives in order to save space > rm -f ${S}/${FILENAME} ${S}/${PATCH} >} > >src_install () { > mkdir -p ${D}/opt/ut2003-demo > > einfo "Installing the game. This can take quite some time." > tar jxvf ${S}/extracted/ut2003lnx_demo.tar.bz2 \ > -C ${D}/opt/ut2003-demo &> /dev/null > tar jxvf ${FILESDIR}/misc.tar.bz2 \ > -C ${D}/opt/ut2003-demo &> /dev/null > > einfo "Patching the game to the new version." > > cd ${S}/patch > chmod a+x ${S}/patch/update.sh > ./update.sh << EOF &> /dev/null >n >y >${D}/opt/ut2003-demo/ >EOF > einfo "Fixing the benchmark scripts" > cd ${D}/opt/ut2003-demo/Benchmark > for FILE in *-*.sh > do > mv ${FILE} ${FILE}.orig > sed -e 's/..\/ut2003/..\/ut2003_demo/' ${FILE}.orig > ${FILE} > chmod 755 ${FILE} > rm ${FILE}.orig > done > > einfo "Fixing the benchmark configs" > cd ${D}/opt/ut2003-demo/Benchmark/Stuff > for FILE in {"MaxDetail.ini","MinDetail.ini"} > do > mv ${FILE} ${FILE}.orig > sed -e 's/RenderDevice=D3DDrv.D3DRenderDevice/\;RenderDevice=D3DDrv.D3DRenderDevice/' \ > -e 's/ViewportManager=WinDrv.WindowsClient/\;ViewportManager=WinDrv.WindowsClient/' \ > -e 's/\;RenderDevice=OpenGLDrv.OpenGLRenderDevice/RenderDevice=OpenGLDrv.OpenGLRenderDevice/' \ > -e 's/\;ViewportManager=SDLDrv.SDLClient/ViewportManager=SDLDrv.SDLClient/' ${FILE}.orig > ${FILE} > rm ${FILE}.orig > done > > # Wrapper and benchmark-scripts > insinto /usr/bin > doins ${FILESDIR}/ut2003-demo > chmod 755 ${D}/usr/bin/ut2003-demo > insinto /opt/ut2003-demo/Benchmark > doins ${FILESDIR}/{benchmark,results.py} > chmod 755 ${D}/opt/ut2003-demo/Benchmark/{benchmark,results.py} > chown root.root ${D}/opt/ut2003-demo -R >} > >pkg_postinst() { > einfo "********************************************************" > einfo "* Installation complete. *" > einfo "* Use '/usr/bin/ut2003-demo' to launch the game. *" > einfo "* Benchmark UT2003 with '/usr/bin/ut2003-demo --bench' *" > einfo "* *" > einfo "* NOTE: The ut2003-demo can now be played by ANY USER. *" > einfo "* You don't need to be member of the group games *" > einfo "* anymore. This version of ut2003 works with *" > einfo "* nvidia gfx cards, only. Read README.linux in *" > einfo "* /opt/ut2003-demo for instructions on how to *" > einfo "* start a dedicated server. *" > einfo "********************************************************" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8081
: 4022