summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-08-25 17:53:43 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-08-25 17:53:43 +0000
commit2605a9ae883c50fb80e4b4b5036b16ff07e30fe1 (patch)
tree96fb1c468659e7c7282f966056a169036ced10a1 /games-puzzle/londonlaw
parentStable on ppc wrt bug 235017 (diff)
downloadhistorical-2605a9ae883c50fb80e4b4b5036b16ff07e30fe1.tar.gz
historical-2605a9ae883c50fb80e4b4b5036b16ff07e30fe1.tar.bz2
historical-2605a9ae883c50fb80e4b4b5036b16ff07e30fe1.zip
additional patching for USE=dedicated from mattenklicker@gmx.net
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-puzzle/londonlaw')
-rw-r--r--games-puzzle/londonlaw/ChangeLog6
-rw-r--r--games-puzzle/londonlaw/Manifest6
-rw-r--r--games-puzzle/londonlaw/files/londonlaw.rc4
-rw-r--r--games-puzzle/londonlaw/londonlaw-0.2.1-r2.ebuild18
4 files changed, 23 insertions, 11 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/Manifest b/games-puzzle/londonlaw/Manifest
index 49ed81c92422..6820f0eb548e 100644
--- a/games-puzzle/londonlaw/Manifest
+++ b/games-puzzle/londonlaw/Manifest
@@ -1,9 +1,9 @@
AUX londonlaw-0.2.1-setup.py.patch 1528 RMD160 4d59b71a4414d34aa7b16a75b34528ad2754e173 SHA1 60beee67b982007c9ada3df857db7325f51fb7ef SHA256 a1db2a03caaeee25a7df02ed95a93de722cdde3550179fae0e1c68bcab3256b1
AUX londonlaw-0.2.1-wxversion.patch 639 RMD160 7b2ea38340b1ac527b1bbaac06e2bf7a543b2f7f SHA1 0cc60a78121b250b10ee2763bef90858ea6510a0 SHA256 f5e9b1f8be713443e506b678a262f8dab1044e85a90a66e4ce4f0a092ffbcc10
AUX londonlaw.confd 60 RMD160 6d230b5a42f264c17f5190aff9ab59a9f25899c6 SHA1 a39653106438fb3794313d9a3cf3def226f9828d SHA256 c849dc072ada1f84619754111401ddeaf391aee9c891d531bcc02fc9fcf201c7
-AUX londonlaw.rc 504 RMD160 949a1a462bcf1295179df7360b591ddc751e65fd SHA1 c418294bf0fd6a0b447e32ba86a09f56a3cce724 SHA256 c15c1c87eb76c66cf55e65f22863a646d23d355002c240932bfb7513a744d1ae
+AUX londonlaw.rc 498 RMD160 d85ca5c3438904dfe1f15b000a155abe34289753 SHA1 cd414c00776f2440b2f8d667af46d3159b122799 SHA256 cc132dfe41eb7cf17ade769de975d3dd5c52f1c580abcd3a3af09f76567762e9
DIST londonlaw-0.2.1.tar.gz 3139208 RMD160 20a32d4b527b220a0ae0e261c5f84dd5563db7b2 SHA1 e38b536d6966c460edd7211c09601a63ee64c1c7 SHA256 e7453f2e261315384d991ecde31de16e0024fc5f14bacd4642e1daf5d9a4eb87
EBUILD londonlaw-0.2.1-r1.ebuild 1191 RMD160 e9657e8de51dbab42443396788cab523545f93f8 SHA1 2a2bee41b8aeab0231594dee190645d0f077efc6 SHA256 a769f104c883b10ab1c225212f99bda5586b6ab5772180bebbe43f31e30649af
-EBUILD londonlaw-0.2.1-r2.ebuild 2214 RMD160 a0246e718a4e3bdff076d0831a1eaeb8a11c0435 SHA1 f8b8696073e3b042f18a54f6812d006163893493 SHA256 04284b0a61fc7b3138b1ffa5ec427e269e0caf14bfe8512214269624eb467f99
-MISC ChangeLog 2197 RMD160 efe50f52793b578b5aa79b27ad1c7ee1a28c2ce7 SHA1 ba7f28cfd79d8d294452540cb60d7aa564a387e6 SHA256 cd98c9df9eb2ab306897b7a52929e02e7c86fa1d668d465f8dc6ea737c36d655
+EBUILD londonlaw-0.2.1-r2.ebuild 2559 RMD160 852c3799f12503380aeb8d87e823182541a788f6 SHA1 48263cf7e2cbef25a00d6976db2e27843b10b1e8 SHA256 80273df3b3898664856818bf19b45a0a918bc2282d3e1a255c9126a9a7a7939d
+MISC ChangeLog 2369 RMD160 36e0cbcc798ce5416227eed2febf53cae3580605 SHA1 44156614edeea58d64a722544a992042947d9aee SHA256 8417d2366f5742d58190ffa9bbfcfa18ef9ae19ed4ce6266c250b03cc9ae3f30
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
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