summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-09-18 21:38:38 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-09-18 21:42:37 +0200
commit1e485b1e96c060fd46cd02337575f49e59eb40db (patch)
treead5dd7d16e8e39e1448577763804cfc6421f7753 /games-action/supermariowar/files
parentdev-python/psycopg: Bump (diff)
downloadgentoo-1e485b1e96c060fd46cd02337575f49e59eb40db.tar.gz
gentoo-1e485b1e96c060fd46cd02337575f49e59eb40db.tar.bz2
gentoo-1e485b1e96c060fd46cd02337575f49e59eb40db.zip
games-action/supermariowar: improvements.
This commit: * enables png and jpeg USE flags on media-libs/sdl-image * enables vorbis USE flag on media-libs/sdl-mixer * modifies dynamically the smw_serverdir variable in swmd init script. Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'games-action/supermariowar/files')
-rw-r--r--games-action/supermariowar/files/smwd.initd8
1 files changed, 4 insertions, 4 deletions
diff --git a/games-action/supermariowar/files/smwd.initd b/games-action/supermariowar/files/smwd.initd
index 6aa83cc3e1b2..da4fa9a87ee4 100644
--- a/games-action/supermariowar/files/smwd.initd
+++ b/games-action/supermariowar/files/smwd.initd
@@ -7,7 +7,7 @@ command_background="true"
pidfile="/var/run/${RC_SVCNAME}.pid"
name="Super Mario War server"
description="The Super Mario War server process is in charge of hosting Super Mario War games"
-smw_server_dir="/usr/share/supermariowar-2.0_beta1/server"
+smw_serverdir="@SMW_SERVERDIR@"
depend() {
use net
@@ -15,11 +15,11 @@ depend() {
}
start() {
- if [[ ! -d "${smw_server_dir}" ]]; then
- eerror "Cannot cd into ${smw_server_dir}"
+ if [[ ! -d "${smw_serverdir}" ]]; then
+ eerror "Cannot cd into ${smw_serverdir}"
return 1
fi
- cd "${smw_server_dir}" || return 1
+ cd "${smw_serverdir}" || return 1
ebegin "Starting ${name}"
start-stop-daemon \
--start \