Gentoo Archives: gentoo-commits

From: "Tristan Heaven (nyhm)" <nyhm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-fps/ut2004: ChangeLog ut2004-3369.3.ebuild
Date: Thu, 03 Sep 2009 08:26:56
Message-Id: E1MjCTL-0000Hz-LE@stork.gentoo.org
1 nyhm 09/09/03 13:35:31
2
3 Modified: ChangeLog
4 Added: ut2004-3369.3.ebuild
5 Log:
6 Apply patch to fix remote DoS in the dedicated server, bug #239557
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.65 games-fps/ut2004/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/ut2004/ChangeLog?rev=1.65&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/ut2004/ChangeLog?rev=1.65&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/ut2004/ChangeLog?r1=1.64&r2=1.65
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-fps/ut2004/ChangeLog,v
19 retrieving revision 1.64
20 retrieving revision 1.65
21 diff -u -r1.64 -r1.65
22 --- ChangeLog 5 Feb 2009 16:56:21 -0000 1.64
23 +++ ChangeLog 3 Sep 2009 13:35:31 -0000 1.65
24 @@ -1,6 +1,11 @@
25 # ChangeLog for games-fps/ut2004
26 -# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004/ChangeLog,v 1.64 2009/02/05 16:56:21 mr_bones_ Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004/ChangeLog,v 1.65 2009/09/03 13:35:31 nyhm Exp $
30 +
31 +*ut2004-3369.3 (03 Sep 2009)
32 +
33 + 03 Sep 2009; Tristan Heaven <nyhm@g.o> +ut2004-3369.3.ebuild:
34 + Apply patch to fix remote DoS in the dedicated server, bug #239557
35
36 05 Feb 2009; Michael Sterrett <mr_bones_@g.o>
37 ut2004-3369-r4.ebuild:
38
39
40
41 1.1 games-fps/ut2004/ut2004-3369.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/ut2004/ut2004-3369.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/ut2004/ut2004-3369.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ut2004-3369.3.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004/ut2004-3369.3.ebuild,v 1.1 2009/09/03 13:35:31 nyhm Exp $
51
52 inherit eutils multilib games
53
54 MY_P="ut2004-lnxpatch${PV%.*}-2.tar.bz2"
55 DESCRIPTION="Editor's Choice Edition plus Mega Pack for the critically-acclaimed first-person shooter"
56 HOMEPAGE="http://www.unrealtournament2004.com/"
57 SRC_URI="mirror://3dgamers/unrealtourn2k4/${MY_P}
58 http://speculum.twistedgamer.com/pub/0day.icculus.org/${PN}/${MY_P}
59 http://treefort.icculus.org/${PN}/${MY_P}
60 http://sonic-lux.net/data/mirror/ut2004/${MY_P}
61 mirror://gentoo/ut2004-v${PV/./-}-linux-dedicated.7z"
62
63 LICENSE="ut2003"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE="dedicated opengl"
67 RESTRICT="mirror strip"
68 PROPERTIES="interactive"
69
70 RDEPEND=">=games-fps/ut2004-data-3186-r2
71 >=games-fps/ut2004-bonuspack-ece-1-r1
72 >=games-fps/ut2004-bonuspack-mega-1-r1
73 =virtual/libstdc++-3.3
74 x11-libs/libXext
75 x11-libs/libX11
76 x11-libs/libXau
77 x11-libs/libXdmcp
78 media-libs/libsdl
79 media-libs/openal
80 opengl? ( virtual/opengl )"
81 DEPEND="app-arch/p7zip"
82
83 S=${WORKDIR}/UT2004-Patch
84
85 GAMES_CHECK_LICENSE="yes"
86 dir=${GAMES_PREFIX_OPT}/${PN}
87
88 # The executable pages are required #114733
89 QA_EXECSTACK_x86="${dir:1}/System/ut2004-bin
90 ${dir:1}/System/ucc-bin"
91
92 src_unpack() {
93 unpack ${A}
94 cd "${S}"/System
95
96 # These files are owned by ut2004-bonuspack-mega
97 rm -f Manifest.in{i,t} Packages.md5
98
99 rm -f ucc-bin*
100
101 if use amd64 ; then
102 mv -f ut2004-bin-linux-amd64 ut2004-bin || die
103 else
104 rm -f ut2004-bin-linux-amd64
105 fi
106
107 cd "${WORKDIR}"/ut2004-ucc-bin-09192008
108 if use amd64 ; then
109 mv -f ucc-bin-linux-amd64 "${S}"/System/ucc-bin || die
110 else
111 mv -f ucc-bin "${S}"/System/ || die
112 fi
113 }
114
115 src_install() {
116 insinto "${dir}"
117 doins -r * || die "doins failed"
118 fperms +x "${dir}"/System/{ucc-bin,ut2004-bin} || die
119
120 dosym /usr/$(get_libdir)/libopenal.so "${dir}"/System/openal.so || die
121 dosym /usr/$(get_libdir)/libSDL-1.2.so.0 "${dir}"/System/libSDL-1.2.so.0 \
122 || die
123
124 games_make_wrapper ut2004 ./ut2004 "${dir}" "${dir}"
125 make_desktop_entry ut2004 "Unreal Tournament 2004"
126
127 prepgamesdirs
128 }
129
130 pkg_postinst() {
131 games_pkg_postinst
132
133 # Here is where we check for the existence of a cdkey...
134 # If we don't find one, we ask the user for it
135 if [[ -f ${dir}/System/cdkey ]] ; then
136 einfo "A cdkey file is already present in ${dir}/System"
137 else
138 ewarn "You MUST run this before playing the game:"
139 ewarn "emerge --config =${CATEGORY}/${PF}"
140 ewarn "That way you can [re]enter your cdkey."
141 fi
142 elog "Starting with 3369, the game supports render-to-texture. To enable"
143 elog "it, you will need the Nvidia drivers of at least version 7676 and"
144 elog "you should edit the following:"
145 elog 'Set "UseRenderTargets=True" in the "[OpenGLDrv.OpenGLRenderDevice]"'
146 elog 'section of your UT2004.ini or Default.ini and set "bPlayerShadows=True"'
147 elog 'and "bBlobShadow=False" in the "[UnrealGame.UnrealPawn]" section of'
148 elog 'your User.ini or DefUser.ini.'
149 }
150
151 pkg_postrm() {
152 ewarn "This package leaves a cdkey file in ${dir}/System that you need"
153 ewarn "to remove to completely get rid of this game's files."
154 }
155
156 pkg_config() {
157 ewarn "Your CD key is NOT checked for validity here so"
158 ewarn "make sure you type it in correctly."
159 ewarn "If you CTRL+C out of this, the game will not run!"
160 echo
161 einfo "CD key format is: XXXXX-XXXXX-XXXXX-XXXXX"
162 while true ; do
163 einfo "Please enter your CD key:"
164 read CDKEY1
165 einfo "Please re-enter your CD key:"
166 read CDKEY2
167 if [[ -z ${CDKEY1} ]] || [[ -z ${CDKEY2} ]] ; then
168 echo "You entered a blank CD key. Try again."
169 else
170 if [[ ${CDKEY1} == ${CDKEY2} ]] ; then
171 echo "${CDKEY1}" | tr [:lower:] [:upper:] > "${dir}"/System/cdkey
172 einfo "Thank you!"
173 break
174 else
175 eerror "Your CD key entries do not match. Try again."
176 fi
177 fi
178 done
179 }