Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help editing Enemy-territory-2.60b ebuild
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
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Mon May 29, 2006 6:48 pm    Post subject: Need help editing Enemy-territory-2.60b ebuild Reply with quote

Hi all!

I like to play TC:E, an enemy-territory mod, and am having a little prob with the newest version 2.60b.

The problem is, that when I connect to any server, I get kicked within a couple of minutes saying:
Quote:
violation (game integrity) #20004


I found out, that as a client, I should still be using version 2.60. The according ebuild is no longer available though, since it has a security issue, but I'd still want to play! :(

Sadly, I know close to nothing about bash. So I'd really appreciate some help editing the 2.60b ebuild back to version 2.60. I bet it isn't that hard for someone more knowledgeable. :wink:


Quote:

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/enemy-territory/enemy-territory-2.60b.ebuild,v 1.4 2006/05/22 19:53:31 wolf31o2 Exp $

inherit eutils games

DESCRIPTION="standalone multi-player game based on Return to Castle Wolfenstein"
HOMEPAGE="http://www.idsoftware.com/"
SRC_URI="mirror://3dgamers/wolfensteinet/et-linux-2.60.x86.run
mirror://idsoftware/et/linux/et-linux-2.60.x86.run
ftp://ftp.red.telefonica-wholesale.net/GAMES/ET/linux/et-linux-2.60.x86.run
mirror://idsoftware/et/ET-${PV}.zip
dedicated? (
http://dev.gentoo.org/~wolf31o2/sources/dump/${PN}-all-0.1.tar.bz2
mirror://gentoo/${PN}-all-0.1.tar.bz2 )"

LICENSE="RTCW-ETEULA"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="dedicated opengl"
RESTRICT="mirror strip"

DEPEND="app-arch/unzip"
RDEPEND="sys-libs/glibc
dedicated? ( app-misc/screen )
!dedicated? ( virtual/opengl )
opengl? ( virtual/opengl )
amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0-r1 )"

S="${WORKDIR}"

GAMES_CHECK_LICENSE="yes"
dir="${GAMES_PREFIX_OPT}/${PN}"
Ddir="${D}/${dir}"

src_unpack() {
unpack_makeself et-linux-2.60.x86.run
if use dedicated; then
unpack ${PN}-all-0.1.tar.bz2 || die
fi
unpack ET-${PV}.zip
}

src_install() {
exeinto ${dir}
doexe openurl.sh || die "doexe failed"
doexe "Enemy Territory 2.60b"/linux/et.x86 || die "doexe et"
insinto ${dir}
dodoc CHANGES README || die "doins failed"
doicon ET.xpm

cp -r Docs pb etmain "${Ddir}" || die "cp failed"

games_make_wrapper et ./et.x86 "${dir}" "${dir}"

if use dedicated ; then
doexe "Enemy Territory 2.60b"/linux/etded.x86 || die "doexe failed"
games_make_wrapper et-ded ./etded.x86 ${dir}
newinitd ${S}/et-ded.rc et-ded || die "newinitd failed"
dosed "s:GAMES_USER_DED:${GAMES_USER_DED}:" /etc/init.d/et-ded
dosed "s:GENTOO_DIR:${GAMES_BINDIR}:" /etc/init.d/et-ded
newconfd ${S}/et-ded.conf.d et-ded || die "newconfd failed"
# newenvd ${S}/et-ded.env.d et-ded || die "newenvd failed"
# TODO: move this to /var/ perhaps ?
dodir "${dir}/etwolf-homedir"
dosym "${dir}/etwolf-homedir" "${GAMES_PREFIX}/.etwolf"
fi

make_desktop_entry et "Enemy Territory" ET.xpm

prepgamesdirs
chmod g+rw "${Ddir}" "${Ddir}/etwolf-homedir" "${Ddir}/etmain"
}

pkg_postinst() {
games_pkg_postinst
ewarn "There are two possible security bugs in this package, both causing a"
ewarn "denial of service. One affects the game when running a server, the"
ewarn "other when running as a client."
ewarn "For more information, see bug #82149."
echo
einfo "To play the game run:"
einfo " et"
echo
if use dedicated; then
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"
echo
ewarn "Store your configurations under ${dir}/etwolf-homedir or they"
ewarn "will be erased on the next upgrade."
einfo "See bug #132795 for more info."
fi
if use amd64; then
einfo "If you are running an amd64 system and using ALSA, you must have"
einfo "ALSA 32-bit emulation enabled in your kernel for this to function properly."
echo
fi
}

Thanks in advance!
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Mon May 29, 2006 7:34 pm    Post subject: Reply with quote

Hi,

why do you wanna edit the ebuild, when you can take the original one?
First create your own portage-overlay:
Code:
mkdir -pv /usr/local/portage

Then tell portage where your overlay is located
Code:
echo "PORTDIR_OVERLAY=\"/usr/local/portage\"" >> /etc/make.conf

Now you have to create the exact cathegory/packet-name directory-structure for the desired ebuild
Code:
mkdir -pv /usr/local/portage/games-fps/enemy-territory/files

Now copy the old ebuild from http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/enemy-territory/enemy-territory-2.60.ebuild to /usr/local/portage/games-fps/enemy-territory/ and create the digest with
Code:
ebuild /usr/local/portage/games-fps/enemy-territory/enemy-territory-2.60.ebuild digest

Mask the new ebuild and unmask the old one:
Code:
echo "~games-fps/enemy-territory-2.60b" >> /etc/portage/package.mask
echo "~games-fps/enemy-territory-2.60" >> /etc/portage/package.unmask

Now you can downgrade to the old version of enemy-territory.

Cheers
Poly-C

[edit]corrected link to the old ebuild.[/edit]
[edit2]corrected link to old ebuild again[/edit]
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)


Last edited by Polynomial-C on Tue Aug 01, 2006 8:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Tue May 30, 2006 9:41 am    Post subject: Reply with quote

Thanks a lot, Poly-C, for the nice howto! :D

I wasn't aware that there is a repository for old ebuilds; - that makes things somehow easier. :lol:

Ps: Just for the record: Enemy-territory works like a charme again!
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1611
Location: indiana

PostPosted: Wed Jun 07, 2006 5:53 pm    Post subject: Reply with quote

thx man :D now i got some big holes more ;)
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
Rukie
l33t
l33t


Joined: 26 Jan 2004
Posts: 692
Location: SE Wi, Home of cheese and cowtippers.......

PostPosted: Thu Jul 06, 2006 5:46 pm    Post subject: Reply with quote

the link doesn't seem to work.....

Edit:

just right click/save as
http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/games-fps/enemy-territory/Attic/enemy-territory-2.60.ebuild?rev=1.16
_________________
Gentoomania! Support the Open Source!
http://www.rukie.ath.cx
Back to top
View user's profile Send private message
Mad Merlin
Veteran
Veteran


Joined: 09 May 2005
Posts: 1155

PostPosted: Sat Jul 08, 2006 1:16 am    Post subject: Reply with quote

I just started seeing this today. ET was fine with 2.60b since it came out for me. I haven't changed anything since ET was last working.

I'm thinking this might be more widespread, my usual server was very empty in comparison to what's typical for it (~8 people, rather than 30-50).

Edit: looks like there's a new PB client/server as of very recently: http://www.punkbuster.com/index.php?page=support-et.php

I suspect this is the issue.

Edit2: That was the issue, updating PB manually using pbweb.x86 did the trick.
_________________
Game! - Where the stick is mightier than the sword!
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 778

PostPosted: Sat Jul 08, 2006 3:09 am    Post subject: Reply with quote

Mad Merlin,

How did you update, exactly?

I'm having the same problem.

Thanks.

EDIT:
To solve the problem, I downloaded the file lc001253.htm from the punkbuster web site downloads
http://www.punkbuster.com/index.php?page=dl-et.php
and copied it into my ~/.etwolf/pb/htm folder
Back to top
View user's profile Send private message
GerManson
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2005
Posts: 86
Location: Sonora, Mexico.

PostPosted: Sat Jul 08, 2006 4:28 am    Post subject: Reply with quote

Polynomial-C wrote:
Hi,
...
Now you can downgrade to the old version of enemy-territory.

Cheers
Poly-C


thank you very much!
_________________
GerManson - Gentoo Linux i686 Dual Intel(R) Pentium(R) 4 CPU 2.80GHz Processor
http://www.ebrios.com.mx

Do The Evolution!! -> ∂f/∂y = ∫e^(x^2)+y^2 dx + ∫x^2+y^2 dy
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Sat Jul 08, 2006 5:22 am    Post subject: Reply with quote

Hi,

Rukie, you linked to the wrong revision of the ebuild. Your link points to revision 1.16 mine points to 1.17 (I fixed the link in my previous post).

And just for clarification: et-2.60b works quite well as long as you don't use any mods that compare the versions of et (like <=etpro-3.2.5 is doing). So if a client has et-2.60b installed and tries to play on an etpro-server one gets kicked immediately. On the other hand, a server having et-2.60b and etpro-3.2.5 installed is no problem for players to connect.

For etpro it is planned to fix this with version 3.2.6 but that may take a while as most developers of etpro currently seem to be busy with other stuff :-(

Cheers
Poly-C
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
Mad Merlin
Veteran
Veteran


Joined: 09 May 2005
Posts: 1155

PostPosted: Sun Jul 09, 2006 6:29 am    Post subject: Reply with quote

Progman3K wrote:
Mad Merlin,

How did you update, exactly?

I'm having the same problem.

Thanks.

EDIT:
To solve the problem, I downloaded the file lc001253.htm from the punkbuster web site downloads
http://www.punkbuster.com/index.php?page=dl-et.php
and copied it into my ~/.etwolf/pb/htm folder


I ran the pbweb.x86 that comes with ET. Something like this:
Code:
su -c 'chmod +x /opt/enemy-territory/pb/pbweb.x86'
cd ~/.etwolf/pb
ln -s /opt/enemy-territory/pb/pbweb.x86 pbweb.x86
./pbweb.x86


It's not executable by default, and has to be run from the pb directory, hence the excessive fiddling.
_________________
Game! - Where the stick is mightier than the sword!
Back to top
View user's profile Send private message
mikl
n00b
n00b


Joined: 27 Jun 2004
Posts: 51
Location: Gentofte, Denmark

PostPosted: Thu Jul 13, 2006 3:16 pm    Post subject: Reply with quote

Mad Merlin wrote:

I ran the pbweb.x86 that comes with ET. Something like this:
Code:
su -c 'chmod +x /opt/enemy-territory/pb/pbweb.x86'
cd ~/.etwolf/pb
ln -s /opt/enemy-territory/pb/pbweb.x86 pbweb.x86
./pbweb.x86


It's not executable by default, and has to be run from the pb directory, hence the excessive fiddling.

Ah, great :D
_________________
An admin might not always be right, but he's always an admin...
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1611
Location: indiana

PostPosted: Tue Aug 01, 2006 6:10 pm    Post subject: Reply with quote

Polynomial-C wrote:
Hi,

why do you wanna edit the ebuild, when you can take the original one?
First create your own portage-overlay:
Code:
mkdir -pv /usr/local/portage

Then tell portage where your overlay is located
Code:
echo "PORTDIR_OVERLAY=\"/usr/local/portage\"" >> /etc/make.conf

Now you have to create the exact cathegory/packet-name directory-structure for the desired ebuild
Code:
mkdir -pv /usr/local/portage/games-fps/enemy-territory/files

Now copy the old ebuild from http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/games-fps/enemy-territory/Attic/enemy-territory-2.60.ebuild?rev=HEAD&content-type=text/plain to /usr/local/portage/games-fps/enemy-territory/ and create the digest with
Code:
ebuild /usr/local/portage/games-fps/enemy-territory/enemy-territory-2.60.ebuild digest

Mask the new ebuild and unmask the old one:
Code:
echo "~games-fps/enemy-territory-2.60b" >> /etc/portage/package.mask
echo "~games-fps/enemy-territory-2.60" >> /etc/portage/package.unmask

Now you can downgrade to the old version of enemy-territory.

Cheers
Poly-C

[edit]corrected link to the old ebuild.[/edit]


your link doesnt work anymore.. :( do you know where i can still find it?
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Aug 01, 2006 6:14 pm    Post subject: Reply with quote

The Gentoo CVS history URL has changed.
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1611
Location: indiana

PostPosted: Tue Aug 01, 2006 6:21 pm    Post subject: Reply with quote

http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-fps/enemy-territory/

thx for that hint, but theres no 2.60 ebuild anymore... so where do i find an ebuild for 2.60 ? thx again
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Aug 01, 2006 6:28 pm    Post subject: Reply with quote

The old ebuilds are "dead". Click on show dead files.
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1611
Location: indiana

PostPosted: Tue Aug 01, 2006 7:27 pm    Post subject: Reply with quote

PaulBredbury wrote:
The old ebuilds are "dead". Click on show dead files.

thx paul, not the first time that you helped me out ... ;)
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Tue Aug 01, 2006 8:07 pm    Post subject: Reply with quote

Hi,

URL is fixed again...

Poly-C
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
Polynomial-C
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 1432
Location: Germany

PostPosted: Thu Sep 21, 2006 11:12 pm    Post subject: Reply with quote

Hi,

etpro-3.2.6 is out since monday 18th september. You can download it @ http://etpro.anime.net/etpro-3_2_6.zip and find the announcement with ChangeLog here.
etpro-3.2.6 requires the client to have et-2.60b installed. with et-2.60 or older etpro-3.2.6 doesn't work.
If you wanna have both, old and new et, I just did the following:

copy old et.x86 binary to /usr/local/bin/
Code:
cp -v /opt/enemy-territory/et.x86 /usr/local/bin/

then update your et-installation to 2.60b
Now you have to create the file et_old.sh in /usr/local/bin/
Code:
touch /usr/local/bin/et_old.sh

Give that file the right permissions
Code:
chown -v root:games /usr/local/bin/et_old.sh
chmod -v 0750 /usr/local/bin/et_old.sh

At this point you should open /usr/local/bin/et_old.sh with your favourite editor, writing this into the file:
Code:
#!/bin/bash

cd /opt/enemy-territory
if [ -n "/opt/enemy-territory" ] ; then
        if [ "${LD_LIBRARY_PATH+set}" = "set" ] ; then
                export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/enemy-territory"
        else
                export LD_LIBRARY_PATH="/opt/enemy-territory"
        fi
fi
exec /usr/local/bin/et.x86 $@

Save the file and if you wanna play on old et-/etpro-servers, use something like:
Code:
/usr/local/bin/et_old.sh +connect [IP:PORT]


Cheers
Poly-C
_________________
The manual said "Requires Windows10 or better" so I installed GNU/Linux...

my portage overlay

Need a stage1 tarball? (Unofficial builds)
Back to top
View user's profile Send private message
Jimmy Jazz
Guru
Guru


Joined: 04 Oct 2004
Posts: 331
Location: Strasbourg

PostPosted: Mon Oct 02, 2006 4:46 pm    Post subject: Reply with quote

Mad Merlin wrote:
Progman3K wrote:
Mad Merlin,

How did you update, exactly?

I'm having the same problem.

Thanks.

EDIT:
To solve the problem, I downloaded the file lc001253.htm from the punkbuster web site downloads
http://www.punkbuster.com/index.php?page=dl-et.php
and copied it into my ~/.etwolf/pb/htm folder


I ran the pbweb.x86 that comes with ET. Something like this:
Code:
su -c 'chmod +x /opt/enemy-territory/pb/pbweb.x86'
cd ~/.etwolf/pb
ln -s /opt/enemy-territory/pb/pbweb.x86 pbweb.x86
./pbweb.x86


It's not executable by default, and has to be run from the pb directory, hence the excessive fiddling.


Thx :)

Jj
_________________
« La seule condition au triomphe du mal, c'est l'inaction des gens de bien » E.Burke
Code:

+----+----+----+
|    |::::|    |
|    |::::|    |
+----+----+----+

motto: WeLCRO
WritE Less Code, Repeat Often
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