[72006] trunk/dports/games/PlasmaClient
ryandesign at macports.org
ryandesign at macports.org
Wed Sep 29 18:16:07 PDT 2010
Revision: 72006
http://trac.macports.org/changeset/72006
Author: ryandesign at macports.org
Date: 2010-09-29 18:16:06 -0700 (Wed, 29 Sep 2010)
Log Message:
-----------
PlasmaClient: detect absence of MOULa data files in wrapper script and advise user how to fix
Modified Paths:
--------------
trunk/dports/games/PlasmaClient/Portfile
trunk/dports/games/PlasmaClient/files/PlasmaClient.in
Modified: trunk/dports/games/PlasmaClient/Portfile
===================================================================
--- trunk/dports/games/PlasmaClient/Portfile 2010-09-30 00:51:36 UTC (rev 72005)
+++ trunk/dports/games/PlasmaClient/Portfile 2010-09-30 01:16:06 UTC (rev 72006)
@@ -6,6 +6,7 @@
name PlasmaClient
version 0.0-244
+revision 1
categories games
platforms darwin
maintainers ryandesign
Modified: trunk/dports/games/PlasmaClient/files/PlasmaClient.in
===================================================================
--- trunk/dports/games/PlasmaClient/files/PlasmaClient.in 2010-09-30 00:51:36 UTC (rev 72005)
+++ trunk/dports/games/PlasmaClient/files/PlasmaClient.in 2010-09-30 01:16:06 UTC (rev 72006)
@@ -5,11 +5,21 @@
PREFIX="@PREFIX@"
fi
+MOULDATADIR="${PREFIX}/share/mystonline/data"
LOGDIR="${PREFIX}/var/log/PlasmaClient"
LOGFILE="PlasmaClient.$(date '+%s').log"
LOGLINK="PlasmaClient.log"
PLIST="org.macports.PlasmaClient"
+if [ ! -d "${MOULDATADIR}" ]; then
+ osascript \
+ -e 'tell app "Finder"' \
+ -e 'activate' \
+ -e "display dialog \"PlasmaClient needs the Myst Online: URU Live again game data files. Install the “mystonline-cider” port and run the application to let it download all the game data. Then come back to PlasmaClient.\" buttons {\"OK\"} default button \"OK\" with title \"PlasmaClient\" with icon note" \
+ -e 'end'
+ exit
+fi
+
USERNAME="$(defaults read $PLIST username)"
PASSWORD="$(defaults read $PLIST password)"
LASTLOGINFAILED=0
@@ -53,5 +63,5 @@
ln -s "${LOGFILE}" "${LOGDIR}/${LOGLINK}"
echo "Logging to ${LOGDIR}/${LOGFILE}"
-cd "${PREFIX}/share/mystonline/data" || exit 1
+cd "${MOULDATADIR}"
"${PREFIX}/bin/PlasmaClient" "${USERNAME}" "${PASSWORD}" > "${LOGDIR}/${LOGFILE}" 2>&1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100929/a3422308/attachment.html>
More information about the macports-changes
mailing list