# Copyright 2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/quake3/quake3-1.32.ebuild,v 1.4 2002/12/09 04:17:42 manson Exp $ inherit games DESCRIPTION="Quake III" SRC_URI="ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3apoint-${PV}.x86.run" HOMEPAGE="http://www.idsoftware.com/" LICENSE="Q3AEULA" SLOT="0" KEYWORDS="x86 -ppc -sparc " IUSE="X opengl" RDEPEND="virtual/glibc opengl? ( virtual/opengl ) X? ( x11-base/xfree )" S=${WORKDIR} RESTRICT="nostrip" DEBUG="yes" src_unpack() { tail +179 ${DISTDIR}/linuxq3apoint-${PV}.x86.run | gzip -cd | tar xf - } src_install() { dodir /opt/quake3/ insinto /opt/quake3/baseq3 doins baseq3/*.pk3 mv Docs ${D}/opt/quake3/ insinto /opt/quake3/missionpack doins missionpack/*.pk3 mv pb ${D}/opt/quake3/ exeinto /opt/quake3/ insinto /opt/quake3/ doexe bin/x86/{quake3.x86,q3ded} ${FILESDIR}/startq3ded doins quake3.xpm README* Q3A_EULA.txt dogamesbin ${FILESDIR}/quake3 exeinto /etc/init.d newexe ${FILESDIR}/q3ded.rc q3ded prepgamesdirs /opt/quake3 } pkg_postinst() { id &>/dev/null q3 || useradd -g games -d /opt/quake3 -c "Quake3 dedicated server user" -s /bin/bash q3 einfo "You need to copy pak0.pk3 from your Quake3 CD into /opt/quake3/baseq3." einfo "Or if you have got a Window installation of Q3 make a symlink to save space." echo einfo "Only users in the games group can play quake3." echo einfo "To start a dedicated server, run" einfo "" einfo "\t/etc/init.d/q3ded start" echo einfo "The dedicated server is started under the q3 user account." games_pkg_postinst }