diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-25 17:53:43 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2008-08-25 17:53:43 +0000 |
commit | c416c2b71bdcc0579a8f1418316de296b438f3c9 (patch) | |
tree | 49c19f875b9fb691291778dd33bee0ccc080a027 /games-puzzle | |
parent | Stable on ppc wrt bug 235017 (diff) | |
download | gentoo-2-c416c2b71bdcc0579a8f1418316de296b438f3c9.tar.gz gentoo-2-c416c2b71bdcc0579a8f1418316de296b438f3c9.tar.bz2 gentoo-2-c416c2b71bdcc0579a8f1418316de296b438f3c9.zip |
additional patching for USE=dedicated from mattenklicker@gmx.net
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/londonlaw/ChangeLog | 6 | ||||
-rw-r--r-- | games-puzzle/londonlaw/files/londonlaw.rc | 4 | ||||
-rw-r--r-- | games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild | 18 |
3 files changed, 20 insertions, 8 deletions
diff --git a/games-puzzle/londonlaw/ChangeLog b/games-puzzle/londonlaw/ChangeLog index eeedad846f74..69c7fa7619c2 100644 --- a/games-puzzle/londonlaw/ChangeLog +++ b/games-puzzle/londonlaw/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-puzzle/londonlaw # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/ChangeLog,v 1.14 2008/08/24 06:36:05 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/ChangeLog,v 1.15 2008/08/25 17:53:42 mr_bones_ Exp $ + + 25 Aug 2008; Michael Sterrett <mr_bones_@gentoo.org> files/londonlaw.rc, + londonlaw-0.2.1-r2.ebuild: + additional patching for USE=dedicated from mattenklicker@gmx.net *londonlaw-0.2.1-r2 (24 Aug 2008) diff --git a/games-puzzle/londonlaw/files/londonlaw.rc b/games-puzzle/londonlaw/files/londonlaw.rc index 9626a3d61a7d..fbc185c60018 100644 --- a/games-puzzle/londonlaw/files/londonlaw.rc +++ b/games-puzzle/londonlaw/files/londonlaw.rc @@ -7,8 +7,8 @@ depend() { start() { ebegin "Starting londonlaw server" start-stop-daemon --start --pidfile /var/run/london-server.pid \ - --user GAMES_USER_DED --background --stdout /var/log/londonlaw.log \ - --stderr /var/log/londonlaw.log --make-pidfile \ + --user GAMES_USER_DED --background --stdout GAMES_LOGDIR/PN.log \ + --stderr GAMES_LOGDIR/PN.log --make-pidfile \ --exec GAMES_BINDIR/london-server -- -p $LONDONLAW_PORT eend $? } diff --git a/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild b/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild index 698826c9eded..789e10607c7c 100644 --- a/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild +++ b/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild,v 1.1 2008/08/24 06:36:05 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild,v 1.2 2008/08/25 17:53:42 mr_bones_ Exp $ EAPI=1 inherit eutils python games @@ -45,9 +45,15 @@ src_unpack() { sed \ -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \ -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \ + -e "s:GAMES_LOGDIR:${GAMES_LOGDIR}:" \ + -e "s:PN:${PN}:" \ "${FILESDIR}/${f}" > "${T}/${f}" \ || die "sed failed" done + sed -i \ + -e "/serverdata/ s:\"$:\"\n dbDir = \"${GAMES_STATEDIR}/${PN}\":" \ + londonlaw/server/GameRegistry.py \ + || die "sed failed" fi } @@ -59,14 +65,16 @@ src_install() { --install-lib=/usr/lib/python${PYVER}/site-packages \ --install-data="${GAMES_DATADIR}" \ || die "install failed" - dodoc ChangeLog README + dodoc ChangeLog README doc/TODO doc/manual.tex doc/readme.protocol if use dedicated ; then newinitd "${T}/londonlaw.rc" londonlaw newconfd "${T}/londonlaw.confd" londonlaw - insinto /var/log - newins /dev/null londonlaw.log - fowners ${GAMES_USER_DED}:${GAMES_GROUP} /var/log/londonlaw.log + keepdir "${GAMES_STATEDIR}/${PN}" + dodir "${GAMES_LOGDIR}" + touch "${D}/${GAMES_LOGDIR}"/${PN}.log + fowners ${GAMES_USER_DED}:${GAMES_GROUP} \ + "${GAMES_STATEDIR}/${PN}" "${GAMES_LOGDIR}"/${PN}.log fi prepgamesdirs |