Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194428 - ebuild: Enemy Territory - Quake Wars (nomedia) dedicated server
Summary: ebuild: Enemy Territory - Quake Wars (nomedia) dedicated server
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://enemyterritory.com
Whiteboard:
Keywords: EBUILD
: 194222 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-01 19:00 UTC by jon R-B
Modified: 2008-09-03 21:18 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ETQW-server-1.1.ebuild (ETQW-server-1.1.ebuild,819 bytes, text/plain)
2007-10-01 19:02 UTC, jon R-B
Details
etqw-ded-1.1.ebuild (etqw-ded-1.1.ebuild,1.26 KB, text/plain)
2007-10-07 10:10 UTC, Paul Bredbury
Details
etqw-ded-1.1.4.ebuild (etqw-ded-1.1.4.ebuild,1.37 KB, text/plain)
2007-10-10 20:47 UTC, Paul Bredbury
Details
etqw-ded-nomedia-1.1.4.ebuild (etqw-ded-nomedia-1.1.4.ebuild,1.61 KB, text/plain)
2007-10-14 00:23 UTC, jon R-B
Details
etqw-ded-1.1_p10.ebuild (etqw-ded-1.1_p10.ebuild,1.34 KB, text/plain)
2007-10-26 07:37 UTC, Paul Bredbury
Details
etqw-ded-1.2.ebuild (etqw-ded-1.2.ebuild,1.35 KB, text/plain)
2007-11-01 19:03 UTC, Paul Bredbury
Details
games-fps/etqw-ded-1.2.3.ebuild (etqw-ded-1.2.3.ebuild,1.45 KB, text/plain)
2007-12-23 16:23 UTC, jon R-B
Details
conf file (etqw-ded.confd,260 bytes, text/plain)
2007-12-23 16:24 UTC, jon R-B
Details
init file (etqw-ded.rc,702 bytes, text/plain)
2007-12-23 16:24 UTC, jon R-B
Details
games-fps/etqw-ded-1.4.ebuild (etqw-ded-1.4.ebuild,1.60 KB, text/plain)
2008-04-22 12:36 UTC, n4cer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jon R-B 2007-10-01 19:00:36 UTC
ebuild for QuakeWars server for linux
ebuild been used to put under package management a QW server for a clan that uses gentoo for its server

first stab, a bit crude (will revbump soon). 
This is nomedia so you need to have the game data (pak000.pk4...) for it to function AND download source is via fileplanet-like network at the moment (a direct link may be aval at a later date)

So pre-fetch on server *.run & manual fetching of PAK data (am working on the -media installer ebuild that comes with the PAK)

Reproducible: Always
Comment 1 jon R-B 2007-10-01 19:02:04 UTC
Created attachment 132333 [details]
ETQW-server-1.1.ebuild

stoopid *.run package is an "invalid" zip archive so "unpack" ebuild command doesnt work
Comment 2 Paul Bredbury 2007-10-01 19:13:50 UTC
See example ebuilds:
find /usr/portage/ -name \*.ebuild | xargs grep unpack_makeself | grep run

And see ebuild at http://forums.gentoo.org/viewtopic-t-591320.html

Rename the summary and attachment to be meaningful.
Comment 3 jon R-B 2007-10-01 19:31:09 UTC
that is my post on forums.gentoo.org that you are referencing 

will do the find command 
Comment 4 jon R-B 2007-10-01 19:33:29 UTC
plus did initially try the "unpack_makeself"  since I used the doom3 ebuild for reference HOWEVER... the *>run that splashdamage provides is
1) invalid zip archive (so unpack fails)
2) there is no make within the *>run so unpack_makeself fails hence reverting to crude "unzip"

as stated will refine the build
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-03 00:25:21 UTC
*** Bug 194222 has been marked as a duplicate of this bug. ***
Comment 6 Paul Bredbury 2007-10-07 10:10:59 UTC
Created attachment 132803 [details]
etqw-ded-1.1.ebuild

Ebuild for the full server download. Category is "games-server".
Comment 7 Paul Bredbury 2007-10-10 20:47:39 UTC
Created attachment 133096 [details]
etqw-ded-1.1.4.ebuild

New "revision" (why can't hugely-successful games developers use proper version numbers?).
Comment 8 jon R-B 2007-10-10 21:02:03 UTC
hehe yer I know.... thats what minor-numbers in version numbers are for

yr ebuild layout alot better then my quick-n-dirty hack and the:
MY_PV="${VER}-full.r${REV}"
just needs to be changed to

MY_PV="${VER}-nomedia.r${REV}"
for that to work (an 11meg d/l is great for us that have the game but also admin a server).

I was looking at a way of using a USE flag (say nomedia) which if set choses the different source as well as prints the final post_install message BUT since MY_PV and SRC_URL get set before things like USE flags are check (I think) don't think that will work

Would be good if it was just one ebuild that did full&nomedia
Comment 9 jon R-B 2007-10-14 00:23:02 UTC
Created attachment 133393 [details]
etqw-ded-nomedia-1.1.4.ebuild

ebuild for nomedia etqw server
Comment 10 Paul Bredbury 2007-10-26 07:37:03 UTC
Created attachment 134402 [details]
etqw-ded-1.1_p10.ebuild

Better version number.
Comment 11 Paul Bredbury 2007-11-01 19:03:21 UTC
Created attachment 134934 [details]
etqw-ded-1.2.ebuild

Version bump.
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-04 18:38:38 UTC
Err...

Did anybody think to use the cdinstall USE flag for choosing whether to use the media or not?  I won't accept two ebuilds when it isn't necessary.  SRC_URI can use a USE flag, just fine.  You'll just need two different MY_PV for the different downloads.  Otherwise, it's looking good, guys.  Keep up the good work.
Comment 13 Paul Bredbury 2007-11-04 21:27:24 UTC
Gentoo gamers are quite capable of screwing up such a seemingly simple task as copying several files from the DVD into a specific directory and ensuring that the "games" group can read them, and also ignoring elog messages. And then the game gives a cryptic error message, rather than mentioning that zpakblah from the installation DVD is missing. So we just end up with stupid "bug" reports on the forums or bugzilla.

So, in my opinion, "cdinstall" is just asking for annoyance.
Comment 14 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-05 01:13:35 UTC
... What?

I'm talking about for the installation to determine whether to use the nomedia download or not.  If USE=cdinstall, download the right upstream file and pull the rest from the CD, otherwise, download the larger upstream that doesn't require the media.
Comment 15 jon R-B 2007-12-23 16:23:40 UTC
Created attachment 139189 [details]
games-fps/etqw-ded-1.2.3.ebuild

updated ebuild
Comment 16 jon R-B 2007-12-23 16:24:00 UTC
Created attachment 139190 [details]
conf file
Comment 17 jon R-B 2007-12-23 16:24:14 UTC
Created attachment 139191 [details]
init file
Comment 18 n4cer 2008-04-22 12:36:59 UTC
Created attachment 150585 [details]
games-fps/etqw-ded-1.4.ebuild

new version including the hotfix
Comment 19 Tristan Heaven (RETIRED) gentoo-dev 2008-09-03 21:18:40 UTC
Fixed, thanks.