blob: ee591576fb5ae3a5af21c6c8031b6fc2979d06a6 (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3/quake3-1.31.ebuild,v 1.20 2005/09/21 20:43:46 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="Quake III Arena - 3rd installment of the classic id 3D first-person shooter"
HOMEPAGE="http://www.idsoftware.com/"
SRC_URI="ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-${PV}.x86.run"
LICENSE="Q3AEULA"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="dedicated opengl"
RESTRICT="nostrip"
RDEPEND="virtual/libc
opengl? ( virtual/opengl
virtual/x11 )
dedicated? ( app-misc/screen )
amd64? (
app-emulation/emul-linux-x86-baselibs
opengl? (
app-emulation/emul-linux-x86-xlibs
|| ( >=media-video/nvidia-glx-1.0.6629-r3
>=media-video/ati-drivers-8.8.25-r1 ) ) )"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
pkg_setup() {
check_license Q3AEULA
games_pkg_setup
}
src_unpack() {
unpack_makeself
}
src_install() {
insinto ${dir}/baseq3
doins baseq3/*.pk3
mv Help ${Ddir}
insinto ${dir}/missionpack
doins missionpack/*.pk3
exeinto ${dir}
insinto ${dir}
doexe bin/x86/{quake3.x86,q3ded}
doins quake3.xpm README* Q3A_EULA.txt
games_make_wrapper quake3 ./quake3.x86 ${dir}
games_make_wrapper q3ded ./q3ded ${dir}
newinitd ${FILESDIR}/q3ded.rc q3ded
newconfd ${FILESDIR}/q3ded.conf.d q3ded
doicon quake3.xpm
prepgamesdirs
make_desktop_entry quake3 "Quake III Arena" quake3.xpm
}
pkg_postinst() {
games_pkg_postinst
echo
ewarn "There are two possible security bugs in this package, both causing a denial"
ewarn "of service. One affects the game when running a server, the other when running"
ewarn "as a client. For more information, see bug #82149."
echo
einfo "You need to copy pak0.pk3 from your Quake3 CD into ${dir}/baseq3."
einfo "Or if you have got a Window installation of Q3 make a symlink to save space."
echo
if use dedicated; then
einfo "To start a dedicated server, run"
einfo "\t/etc/init.d/q3ded start"
echo
einfo "The dedicated server is started under the ${GAMES_USER_DED} user account."
fi
}
|