# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-games/quake3-osp/quake3-osp-1.01-r1.ebuild,v 1.7 2003/02/13 07:52:51 vapier Exp $ IUSE="opengl" S=${WORKDIR}/${P} DESCRIPTION="Quake III - OSP" SRC_URI="http://www.orangesmoothie.org/downloads/osp-Quake3-1.02_full.zip" HOMEPAGE="http://www.orangesmoothie.org/" LICENSE="GPL-2" DEPEND="app-arch/unzip" RDEPEND="virtual/glibc >=app-games/quake3-1.31 app-misc/screen opengl? ( virtual/opengl )" SLOT="0" KEYWORDS="x86 -ppc" src_unpack() { unzip -q ${DISTDIR}/osp-Quake3-1.02_full.zip || die } src_compile () { chown -R root.games ${WORKDIR}/osp find ${WORKDIR}/osp -type d -print0 | xargs --null chmod 755 find ${WORKDIR}/osp -type f -print0 | xargs --null chmod 744 } src_install() { dodir /opt/quake3 mv ${WORKDIR}/osp ${D}/opt/quake3 insinto /opt/quake3 doins ${FILESDIR}/startosp fperms 754 /opt/quake3/startosp fowners root.games /opt/quake3/startosp if [ ! -f /opt/quake3/osp/server.cfg ]; then insinto /opt/quake3/osp doins ${FILESDIR}/server.cfg fowners root.games /opt/quake3/osp/server.cfg fi insinto /etc/init.d newins ${FILESDIR}/osp.rc q3ded-osp fperms u+x /etc/init.d/q3ded-osp } pkg_postinst() { einfo "To start an osp server, run" einfo "" einfo "\t/etc/init.d/q3ded-osp start" echo "" einfo "The server is started under the q3 user account." }