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-server/ut2004-ded: ut2004-ded-3369.3.ebuild ChangeLog
Date: Thu, 03 Sep 2009 07:29:03
Message-Id: E1MjBZL-00076d-8H@stork.gentoo.org
1 nyhm 09/09/03 12:37:39
2
3 Modified: ChangeLog
4 Added: ut2004-ded-3369.3.ebuild
5 Log:
6 Apply patch to fix remote DOS, bug #239557; new init script, bug #161019
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.22 games-server/ut2004-ded/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/ChangeLog?rev=1.22&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/ChangeLog?rev=1.22&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/ChangeLog?r1=1.21&r2=1.22
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v
19 retrieving revision 1.21
20 retrieving revision 1.22
21 diff -u -r1.21 -r1.22
22 --- ChangeLog 28 Apr 2007 16:06:50 -0000 1.21
23 +++ ChangeLog 3 Sep 2009 12:37:38 -0000 1.22
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-server/ut2004-ded
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v 1.21 2007/04/28 16:06:50 tove Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ChangeLog,v 1.22 2009/09/03 12:37:38 nyhm Exp $
30 +
31 +*ut2004-ded-3369.3 (03 Sep 2009)
32 +
33 + 03 Sep 2009; Tristan Heaven <nyhm@g.o> +files/ut2004-ded.confd,
34 + +ut2004-ded-3369.3.ebuild, +files/ut2004-ded.initd:
35 + Apply patch to fix remote DOS, bug #239557; new init script, bug #161019
36
37 28 Apr 2007; Torsten Veller <tove@g.o> ut2004-ded-3369.ebuild:
38 Use newinitd
39
40
41
42 1.1 games-server/ut2004-ded/ut2004-ded-3369.3.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/ut2004-ded-3369.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-server/ut2004-ded/ut2004-ded-3369.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ut2004-ded-3369.3.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-server/ut2004-ded/ut2004-ded-3369.3.ebuild,v 1.1 2009/09/03 12:37:38 nyhm Exp $
52
53 inherit games
54
55 BONUSPACK_P="dedicatedserver3339-bonuspack.zip"
56 PATCH_P="ut2004-lnxpatch${PV%.*}-2.tar.bz2"
57 DESCRIPTION="Unreal Tournament 2004 Linux Dedicated Server"
58 HOMEPAGE="http://www.unrealtournament.com/"
59 SRC_URI="mirror://3dgamers/unrealtourn2k4/${BONUSPACK_P}
60 http://downloads.unrealadmin.org/UT2004/Patches/Linux/${BONUSPACK_P}
61 http://sonic-lux.net/data/mirror/ut2004/${BONUSPACK_P}
62 mirror://3dgamers/unrealtourn2k4/${PATCH_P}
63 http://downloads.unrealadmin.org/UT2004/Server/${PATCH_P}
64 http://sonic-lux.net/data/mirror/ut2004/${PATCH_P}
65 mirror://gentoo/ut2004-v${PV/./-}-linux-dedicated.7z"
66
67 LICENSE="ut2003"
68 SLOT="0"
69 KEYWORDS="~amd64 ~x86"
70 IUSE=""
71 RESTRICT="mirror strip"
72 PROPERTIES="interactive"
73
74 DEPEND="app-arch/unzip
75 app-arch/p7zip"
76 RDEPEND="sys-libs/glibc"
77
78 S=${WORKDIR}
79
80 GAMES_CHECK_LICENSE="yes"
81 dir=${GAMES_PREFIX_OPT}/${PN}
82
83 src_unpack() {
84 unpack ${A}
85 cp -rf UT2004-Patch/* . || die
86 rm -rf System/{ucc-bin*,ut2004-bin*,*.dll,*.exe} UT2004-Patch
87 if use amd64 ; then
88 mv -f ut2004-ucc-bin-09192008/ucc-bin-linux-amd64 System/ucc-bin || die
89 else
90 mv -f ut2004-ucc-bin-09192008/ucc-bin System/ || die
91 fi
92 rm -rf ut2004-ucc-bin-09192008
93 }
94
95 src_install() {
96 einfo "This will take a while... go get a pizza or something"
97
98 insinto "${dir}"
99 doins -r * || die "doins failed"
100 fperms +x "${dir}"/System/ucc-bin || die "fperms failed"
101
102 sed \
103 -e "s:@USER@:${GAMES_USER_DED}:" \
104 -e "s:@GROUP@:${GAMES_GROUP}:" \
105 "${FILESDIR}"/${PN}.confd > "${T}"/${PN}.confd \
106 || die "sed confd failed"
107 newconfd "${T}"/${PN}.confd ${PN} || die "newconfd failed"
108
109 sed \
110 -e "s:@DIR@:${dir}/System:g" \
111 "${FILESDIR}"/${PN}.initd > "${T}"/${PN}.initd \
112 || die "sed initd failed"
113 newinitd "${T}"/${PN}.initd ${PN} || die "initd failed"
114
115 prepgamesdirs
116 }
117
118 pkg_postinst() {
119 games_pkg_postinst
120 elog "The server can be started using the /etc/init.d/ut2004-ded script."
121 ewarn "You should take the time to edit the default server INI."
122 ewarn "Consult the INI Reference at http://unrealadmin.org/"
123 ewarn "for assistance in adjusting the following file:"
124 ewarn "${dir}/System/Default.ini"
125 ewarn
126 ewarn "To have your server authenticate properly to the"
127 ewarn "central server, you MUST visit the following site"
128 ewarn "and request a key. This is not required if you"
129 ewarn "want an unfindable private server. [DoUplink=False]"
130 ewarn
131 ewarn "http://unreal.epicgames.com/ut2004server/cdkey.php"
132 }