mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
340cd4aa31
- Pass maintainership to submitter PR: ports/101339 Submitted by: Alexander Logvinov <ports at logvinov.com>
59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
--- NetGamesUSA.com/ngStats/ngStatsUT Thu Oct 18 18:27:19 2001
|
|
+++ NetGamesUSA.com/ngStats/ngStatsUT Thu Oct 18 18:44:01 2001
|
|
@@ -1,20 +1,27 @@
|
|
#!/bin/sh
|
|
+##
|
|
+## written by abfackeln@abfackeln.com, based on the original epic code
|
|
+##
|
|
+## 2000-10-10 (abfackeln)
|
|
+## added a lot of conditions to ensure that the files are actually found
|
|
+## 2001-06-15 (abfackeln)
|
|
+## added "at -b" as per suggestion from Matthew Hall <leareth@angui.sh>
|
|
+## 2001-10-18 (matuska)
|
|
+## modifications to suit FreeBSD UT installation
|
|
+
|
|
+INSTALL_DIR="%%UTDIR%%/System"
|
|
+
|
|
+# set three possible locations for the java executable
|
|
+
|
|
+JAVA1="%%LOCALBASE%%/linux-jdk1.2.2/bin/java"
|
|
+JAVA2=`which java`
|
|
+JAVA3="/usr/local/java/bin/java"
|
|
+
|
|
+# set three possible locations for the ngStats directory
|
|
|
|
-#######
|
|
-## this next bit written by abfackeln@abfackeln.com
|
|
-## to ensure that the files are actually found
|
|
-## this has not really been tested, hence the debug.
|
|
-## modified by abfackeln, 2000-10-10
|
|
-#######
|
|
-
|
|
-INSTALL_DIR=`cat $HOME/.loki/ut/install_dir`
|
|
-
|
|
-JAVA1=`which java`
|
|
-JAVA2="/usr/local/java/bin/java"
|
|
-JAVA3="/usr/jdk1.2/bin/java"
|
|
NGHOME1="../NetGamesUSA.com/ngStats"
|
|
NGHOME2="$INSTALL_DIR/../NetGamesUSA.com/ngStats"
|
|
-NGHOME3="$HOME/UnrealTournament/NetGamesUSA.com/ngStats"
|
|
+NGHOME3="%%UTDIR%%/NetGamesUSA.com/ngStats"
|
|
|
|
# try each of the above to see if they work
|
|
|
|
@@ -52,11 +59,13 @@
|
|
NGHOME="$NGHOME1"
|
|
fi
|
|
|
|
-#######
|
|
+# export the vars for the java process to use
|
|
|
|
export CLASSPATH="$NGHOME/ngusa.jar"
|
|
export NGCONFIG="$NGHOME/ngStatsUT.cfg"
|
|
export NGHOME
|
|
+
|
|
+# execute java
|
|
|
|
echo "ngLS: $JAVA ngStatsUT -c $NGCONFIG -j $NGHOME $*"
|
|
$JAVA ngStatsUT -c $NGCONFIG -j $NGHOME $* &
|