Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
app-games/quake3-rq3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
KBAKEP
n00b
n00b


Joined: 07 Dec 2002
Posts: 58
Location: Russia

PostPosted: Sat Apr 26, 2003 8:05 am    Post subject: app-games/quake3-rq3 Reply with quote

Here I post an ebuild for Reaction Quake III v.3.1.
Any suggestions and comment are welcome.
I made it from Navy Seals' ebuild.
So, it neeeds server.cfg

quake3-rq3-3.1.ebuild
Code:

# 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-rq3/quake3-rq3-3.1.ebuild,v 1.0 2003/04/27 22:22:22 vapier Exp $

inherit games

DESCRIPTION="Reaction Quake III"
HOMEPAGE="http://www.rq3.com/"
SRC_URI="ftp://ftp.rq3.com/pub/RQ3/ReactionQuake3-v3.1-Full.zip"

LICENSE="freedist"
SLOT="0"
KEYWORDS="x86"
IUSE="opengl"

DEPEND="app-arch/unzip
        app-games/quake3"
RDEPEND="app-misc/screen
        opengl? ( virtual/opengl )"

S=${WORKDIR}

src_install() {
        dodir /opt/quake3/rq3
        mv ${S}/* ${D}/opt/quake3/rq3
        gamesperms -R ${D}/opt/quake3/rq3
        chmod g+w ${D}/opt/quake3/rq3 ${D}/opt/quake3/rq3/*.cfg

        dogamesbin ${FILESDIR}/playrq3

        exeinto /etc/init.d
        newexe ${FILESDIR}/rq3.rc q3ded-rq3

        exeinto /opt/quake3
        doexe ${FILESDIR}/startrq3

        prepgamesdirs /opt/quake3
}


files/digest-quake3-rq3-3.1
Code:

MD5 a92ce9de07ce3e232038c05d557efd19 ReactionQuake3-v3.1-Full.zip 327488276


files/playrq3
Code:

cd /opt/quake3/
./quake3 +set fs_game rq3


files/rq3.rc
Code:

#!/sbin/runscript
# 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-rq3/files/rq3.rc,v 1.0 2003/04/27 22:22:22 vapier Exp $

depend() {
        need net
}

start() {
        ebegin "Starting Reaction Quake III dedicated..."
        export HOME=/root
        screen -A -m -d -S rq3 su - q3 -c /opt/quake3/startrq3
        eend $?
}

stop() {
        ebegin "Stopping Reaction Quake III dedicated..."
        pid=`screen -list | grep rq3 | awk -F . '{ print $1 }' | sed -e s/.//`
        kill $pid
        eend $?
}


files/startrq3
Code:

cd /opt/quake3
./q3ded +set fs_game rq3 +set dedicated 1 +set net_port 27965 +exec server.cfg
Back to top
View user's profile Send private message
KBAKEP
n00b
n00b


Joined: 07 Dec 2002
Posts: 58
Location: Russia

PostPosted: Fri Jun 13, 2003 5:45 pm    Post subject: Reply with quote

Does anybody interested in it? :cry:
Back to top
View user's profile Send private message
sebgarden
Guru
Guru


Joined: 21 Dec 2002
Posts: 353

PostPosted: Sun Jun 15, 2003 9:59 pm    Post subject: Reply with quote

I didn't try your ebuild because I'm just installing quake3 yet but be sure, some people are interesting in it.
Maybe you should have posted it in the "Games forum", not in "Portage and programming" though.

Regards,
Sébastien.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum