blob: 2af048d41e3c43db781e4648f6c70590d618f5aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
inherit games
DESCRIPTION="Return to Castle Wolfenstein: Enemy Territory - standalone multi-player game based on Return to Castle Wolfenstein"
HOMEPAGE="http://www.idsoftware.com/"
SRC_URI="ftp://3dgamers.in-span.net/pub/3dgamers3/games/wolfensteinet/et-linux-${PV}-2.x86.run
ftp://theuser:Xyz3y@ftp4.3dgamers.com/pub/3dgamers/games/wolfensteinet/et-linux-${PV}-2.x86.run
http://3dgamers.planetmirror.com/pub/3dgamers/games/wolfensteinet/et-linux-${PV}-2.x86.run
ftp://freeftp.game.net/pub/games/enemyterritory/full_game/et-linux-${PV}-2.x86.run"
LICENSE="RTCW-ETEULA"
SLOT="0"
KEYWORDS="x86"
IUSE="dedicated opengl"
RESTRICT="nomirror nostrip"
DEPEND="virtual/glibc"
RDEPEND="dedicated? ( app-misc/screen )
!dedicated? ( virtual/opengl )
opengl? ( virtual/opengl )"
S=${WORKDIR}
pkg_setup() {
check_license || die "License check failed"
games_pkg_setup
}
src_unpack() {
unpack_makeself
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/${PN}
dodir ${dir}
cp -r Docs pb etmain ${D}/${dir}/
exeinto ${dir} ; doexe bin/Linux/x86/* openurl.sh
insinto ${dir} ; doins CHANGES v1.02_Readme.htm
insinto /usr/share/pixmaps ; doins ET.xpm
dogamesbin ${FILESDIR}/et
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/et
if [ "`use dedicated`" ];
then
dogamesbin ${FILESDIR}/et-ded
dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/et-ded
dosed "s:GAMES_USER_DED:${GAMES_USER_DED}:" ${GAMES_BINDIR}/et-ded
exeinto /etc/init.d
newexe ${FILESDIR}/et-ded.rc et-ded
dosed "s:GENTOO_DIR:${dir}:" /etc/init.d/et-ded
fi
prepgamesdirs
make_desktop_entry et "Enemy Territory" ET.xpm
}
pkg_postinst() {
echo
einfo "To play the game run:"
einfo " et"
if [ "`use dedicated`" ];
then
echo
einfo "To start a dedicated server run:"
einfo " /etc/init.d/et-ded start"
echo
einfo "To run the dedicated server at boot, type:"
einfo " rc-update add et-ded default"
echo
einfo "The dedicated server is started under the ${GAMES_USER_DED} user account"
fi
games_pkg_postinst
}
|