Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108126 - Updated version of games-strategy/wesnoth
Summary: Updated version of games-strategy/wesnoth
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-04 14:58 UTC by Brice Arnould (un_brice)
Modified: 2006-01-07 07:32 UTC (History)
0 users

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


Attachments
wesnoth-1.0_rc1.ebuild (wesnoth-1.0_rc1.ebuild,1.76 KB, text/plain)
2005-10-04 14:59 UTC, Brice Arnould (un_brice)
Details
wesnothd.rc (wesnothd.rc,459 bytes, text/plain)
2005-10-04 15:00 UTC, Brice Arnould (un_brice)
Details
Updated version, thanks to Mr. Bones (wesnoth-1.0.ebuild,1.77 KB, text/plain)
2005-10-04 15:47 UTC, Brice Arnould (un_brice)
Details
wesnoth-1.0.ebuild (wesnoth-1.0.ebuild,1.59 KB, text/plain)
2005-10-04 16:34 UTC, Brice Arnould (un_brice)
Details
wesnothd.rc (wesnothd.rc,493 bytes, text/plain)
2005-10-04 16:38 UTC, Brice Arnould (un_brice)
Details
wesnoth-1.0.ebuild (wesnoth-1.0.ebuild,1.74 KB, text/plain)
2005-10-04 23:53 UTC, Brice Arnould (un_brice)
Details
wesnothd.rc (wesnothd.rc,473 bytes, text/plain)
2005-10-04 23:54 UTC, Brice Arnould (un_brice)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brice Arnould (un_brice) 2005-10-04 14:58:19 UTC
The following ebuild is an updated version wich allow installation of wesnoth   
as a server on a headless system (without X). 
It also update the package to 1.0_rc1, because newer version of the client   
aren't compatible with olders version of the server. And add a rc.d daemon.  
  
I needed this and so distribute it. Hope it can help.
Comment 1 Brice Arnould (un_brice) 2005-10-04 14:59:33 UTC
Created attachment 69880 [details]
wesnoth-1.0_rc1.ebuild
Comment 2 Brice Arnould (un_brice) 2005-10-04 15:00:40 UTC
Created attachment 69881 [details]
wesnothd.rc

The rc script
Comment 3 Brice Arnould (un_brice) 2005-10-04 15:01:10 UTC
Comment on attachment 69880 [details]
wesnoth-1.0_rc1.ebuild

The ebuild
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-10-04 15:10:10 UTC
well, 1.0 is out and in portage so this won't go in as presented.  However, the
concept is good.  Care to update it to the 1.0 ebuild?  Instead of the X use
flag, the dedicated use flag should be used.
Comment 5 Brice Arnould (un_brice) 2005-10-04 15:47:05 UTC
Created attachment 69886 [details]
Updated version, thanks to Mr. Bones

I now use the "keepdir" directive, put enewuser in both pkg_setup and
pkg_preinst sections, and removed enewgroup.

So it is much better now ! Thanks a lot !
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2005-10-04 16:12:03 UTC
Why are we adding a new user for this?  None of the other dedicated servers do
that afaik.  That's why we have GAMES_USER_DED.

Also, use newinitd for the init.d install please.
Comment 7 Brice Arnould (un_brice) 2005-10-04 16:34:11 UTC
Created attachment 69888 [details]
wesnoth-1.0.ebuild

(In reply to comment #6) 
> Why are we adding a new user for this?  None of the other dedicated servers 
do 
> that afaik.  That's why we have GAMES_USER_DED. 
I hadn't read the game eclass. I know I should have. 
It use GAMES_USER_DED and GAMES_GROUP now.

> Also, use newinitd for the init.d install please. 
Done.
Comment 8 Brice Arnould (un_brice) 2005-10-04 16:38:51 UTC
Created attachment 69889 [details]
wesnothd.rc

This version of the rc script run wesnothd as
${GAMES_USER_DED:-games}:${GAMES_GROUP:-games}
Comment 9 SpanKY gentoo-dev 2005-10-04 19:57:11 UTC
GAMES_USER_DED and GAMES_GROUP are build time options, not runtime
Comment 10 Brice Arnould (un_brice) 2005-10-04 23:53:22 UTC
Created attachment 69896 [details]
wesnoth-1.0.ebuild

It now use sed to inject GAMES_USER_DED and GAMES_GROUP in the rc script.
Comment 11 Brice Arnould (un_brice) 2005-10-04 23:54:00 UTC
Created attachment 69897 [details]
wesnothd.rc

The corresponding rc file. Hope I'm rigth this time.
Comment 12 SpanKY gentoo-dev 2005-10-05 22:32:12 UTC
looks good to me ...

ive never used wesnoth, but does the server daemonize itself and allow for all
these options ?  or is using ssd the only option ?
Comment 13 Brice Arnould (un_brice) 2005-10-06 08:04:33 UTC
(In reply to comment #12) 
> looks good to me ... 
^_^ If it his not, i'll do what is necessary 
 
> ive never used wesnoth, but does the server daemonize itself and allow for 
all 
> these options ?  or is using ssd the only option ? 
wesnothd can demonize itself, but then don't keep track of PID (at least the 
doc say nothing about it) 
Furthermore, it doesn't allow to run itself as another user (could do it with 
suid but i think it would be worst) 
The manpage is available here : 
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/doc/man/wesnothd.6?rev=HEAD&content-type=text/vnd.viewcvs-markup 
Comment 14 SpanKY gentoo-dev 2005-10-06 21:02:14 UTC
then the best option we have atm is ssd ... unless someone feels up to adding
these features to wesnoth itself and sending the patches upstream :)
Comment 15 Sebastian Roeder 2006-01-07 06:49:26 UTC
The requested versions are in portage for a long time now. This bug can be CLOSED! 

BTW there is a new "unstable" release 1.1 upstream.
Comment 16 Brice Arnould (un_brice) 2006-01-07 07:32:31 UTC
Newer ebuilds in portage include this feature. Thanks !