Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master z-rejected grimoire by Alexander Tsamutali (7f84599d79c055ed3f1677aea21d3ddb3abb68e6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Alexander Tsamutali <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master z-rejected grimoire by Alexander Tsamutali (7f84599d79c055ed3f1677aea21d3ddb3abb68e6)
  • Date: Sun, 3 Feb 2008 06:04:56 -0600

GIT changes to master z-rejected grimoire by Alexander Tsamutali
<astsmtl AT gmail.com>:

ChangeLog | 6 ++++
FUNCTIONS | 64
+++++++++++++++++++++++++++++++++++++++++++
z-games/FUNCTIONS | 7 ++++
z-games/warsow-bin/DETAILS | 13 +++++---
z-games/warsow-bin/HISTORY | 5 +++
z-games/warsow-bin/INSTALL | 7 ++--
z-games/warsow-bin/PRE_BUILD | 10 +++++-
7 files changed, 102 insertions(+), 10 deletions(-)

New commits:
commit 7f84599d79c055ed3f1677aea21d3ddb3abb68e6
Author: Alexander Tsamutali <astsmtl AT gmail.com>
Commit: Alexander Tsamutali <astsmtl AT gmail.com>

z-games/warsow-bin: updated to 0.4, INSTALL now uses find_and_scam

commit 8e9d1f2d45a8faabcf59bec118a8985a2a8b0fdf
Author: Alexander Tsamutali <astsmtl AT gmail.com>
Commit: Alexander Tsamutali <astsmtl AT gmail.com>

FUNCTIONS: added find_and_scam, games_make_proper_binary,
default_games_post_install from games grimoire
z-games/FUNCTIONS: default_post_install is now default_games_post_install

diff --git a/ChangeLog b/ChangeLog
index 9b770f0..b1606dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-02-03 Alexander Tsamutali <astsmtl AT gmail.com>
+ * FUNCTIONS: added find_and_scam, games_make_proper_binary,
+ default_games_post_install from games grimoire
+ * z-games/FUNCTIONS: default_post_install is now
+ default_games_post_install
+
2008-01-31 Eric Sandall <sandalle AT sourcemage.org>
* z-http/wine-gecko: Added WINE MSHTML Gecko code

diff --git a/FUNCTIONS b/FUNCTIONS
index a49ce9d..b3be95c 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -416,6 +416,70 @@ function default_games_build() {
default_build
}

+#---
+## @Synopsis A function to find all dirs and files and set them to
+## @Synopsis proper permissions.
+#---
+
+function find_and_scam() {
+ find ./ -type d -print0 | xargs -r -0 -n 1 chmod 0750
+ find ./ -type d -print0 | xargs -r -0 -n 1 chown root:games
+ find ./ -type f -print0 | xargs -r -0 -n 1 chmod 0640
+ find ./ -type f -print0 | xargs -r -0 -n 1 chown root:games
+}
+
+#---
+## @Synopsis games_make_proper_binary function to make all
+## @Synopsis binaries in /usr/games chown root:games and
+## @Synopsis chmod 0750.
+#---
+
+function games_make_proper_binary() {
+if grep -q "usr/games/" $IW_LOG > /dev/null 2>&1
+then
+ grimoire_parse_iw $IW_LOG | grimoire_exists | sort | grep "usr/games/" |
xargs -r -n 1 chmod -f 0750
+ grimoire_parse_iw $IW_LOG | grimoire_exists | sort | grep "usr/games/" |
xargs -r -n 1 chown -f root:games
+elif [[ $STAGED_INSTALL == on ]]
+then
+ echo "doing the stage root thing"
+ find $STAGE_DIRECTORY/TRANSL/ | sed "s#$STAGE_DIRECTORY/##" | grep
'^TRANSL/usr/games' | xargs -r -n 1 chmod -f 0750
+ find $STAGE_DIRECTORY/TRANSL/ | sed "s#$STAGE_DIRECTORY/##" | grep
'^TRANSL/usr/games' | xargs -r -n 1 chown -f root:games
+else
+message "${QUERY_COLOR}If you see this message and you're not \n \
+installing a data spell then report this at the following url: \n \
+http://bugs.sourcemage.org/enter_bug.cgi?product=Codex&bug_status=NEW&version=games%20grimoire&component=games%20grimoire&re
+p_platform=Other&op_sys=other&priority=P2&bug_severity=minor&assigned_to=games%40sourcemage.org&cc=&bug_file_loc=http%3A%2F%
+2F&short_desc=${SPELL}%20not%20installing%20binaries%20properly&comment=&dependson=&blocked=9312&maketemplate=Remember%20val
+ues%20as%20bookmarkable%20template&form_name=enter_bug \
+${DEFAULT_COLOR}"
+fi
+}
+
+#---
+## @Synopsis default_games_post_install function to
+## @Synopsis clean out any empty share/games/SPELL dirs
+## @Synopsis clean out any empty gather docs dirs
+## @Synopsis and run the real_default_post_install afterwards
+#---
+
+function default_games_post_install() {
+ games_make_proper_binary &&
+ if [[ $STAGED_INSTALL == on ]]; then
+ rmdir --ignore-fail-on-non-empty
${STAGE_DIRECTORY}/TRANSL/usr/share/games/${SPELL} &&
+ rmdir --ignore-fail-on-non-empty
${STAGE_DIRECTORY}/TRANSL/usr/share/games &&
+ rmdir --ignore-fail-on-non-empty
${STAGE_DIRECTORY}/TRANSL/usr/share/doc/${SPELL} &&
+ rmdir --ignore-fail-on-non-empty ${STAGE_DIRECTORY}/TRANSL/usr/share/doc
&&
+ rmdir --ignore-fail-on-non-empty ${STAGE_DIRECTORY}/TRANSL/usr/share
+ else
+ rmdir --ignore-fail-on-non-empty
${INSTALL_ROOT}/usr/share/games/${SPELL} &&
+ rmdir --ignore-fail-on-non-empty ${INSTALL_ROOT}/usr/share/games
&&
+ rmdir --ignore-fail-on-non-empty ${INSTALL_ROOT}/usr/share/doc/${SPELL}
&&
+ rmdir --ignore-fail-on-non-empty ${INSTALL_ROOT}/usr/share/doc
&&
+ rmdir --ignore-fail-on-non-empty ${INSTALL_ROOT}/usr/share
+ fi
+ real_default_post_install
+}
+
#-------------------------------------------------------------------------
## Print the version of the running kernel.
#-------------------------------------------------------------------------
diff --git a/z-games/FUNCTIONS b/z-games/FUNCTIONS
new file mode 100755
index 0000000..ae41882
--- /dev/null
+++ b/z-games/FUNCTIONS
@@ -0,0 +1,7 @@
+#-------------------------------------------------------------------------
+## Section-default post install script.
+#-------------------------------------------------------------------------
+
+function default_post_install() {
+ default_games_post_install
+}
diff --git a/z-games/warsow-bin/DETAILS b/z-games/warsow-bin/DETAILS
index cb683ee..ccee325 100755
--- a/z-games/warsow-bin/DETAILS
+++ b/z-games/warsow-bin/DETAILS
@@ -1,9 +1,12 @@
SPELL=warsow-bin
- VERSION=0.32
- SOURCE=warsow_0.32_linux.tar.gz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/warsow
- SOURCE_URL[0]=http://www.megami.de/warsow/releases/$SOURCE
- SOURCE_HASH=sha1:05691ca3aea23de5280b88004a05491339a6eee6
+ VERSION=0.4
+ SOURCE=warsow_0.4_unified.zip
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/warsow_0.4_unified
+ SOURCE_URL[0]=ftp://ftp.snt.utwente.nl/pub/games/warsow/linux/$SOURCE
+ SOURCE_URL[1]=http://www.enkydia.eu/warsow/$SOURCE
+ SOURCE_URL[2]=http://www.gamezoo.it/downloads/wsw/$SOURCE
+ SOURCE_URL[3]=http://67250.com/warsow/0.4/$SOURCE
+ SOURCE_HASH=md5:fcf88aeada971a108895eb5480005c49
LICENSE[0]="GPL for engine, freeware content"
WEB_SITE=http://www.warsow.net/
ENTERED=20071122
diff --git a/z-games/warsow-bin/HISTORY b/z-games/warsow-bin/HISTORY
index 6589421..bc418d9 100644
--- a/z-games/warsow-bin/HISTORY
+++ b/z-games/warsow-bin/HISTORY
@@ -1,3 +1,8 @@
+2008-02-03 Alexander Tsamutali <astsmtl AT gmail.com>
+ * DETAILS: Updated to 0.4, new mirrors
+ * PRE_BUILD: Adopted for 0.4
+ * INSTALL: Adopted for 0.4, now uses find_and_scam
+
2007-11-22 Alexander Tsamutali <astsmtl AT gmail.com>
* DETAILS, DEPENDS, PRE_BUILD, BUILD, INSTALL, HISTORY:
Created this spell
diff --git a/z-games/warsow-bin/INSTALL b/z-games/warsow-bin/INSTALL
index 0aa761d..42bfece 100755
--- a/z-games/warsow-bin/INSTALL
+++ b/z-games/warsow-bin/INSTALL
@@ -1,6 +1,7 @@
INSTALL_DIR=${INSTALL_ROOT}/opt/warsow &&
mkdir $INSTALL_DIR &&
-mv -v warsow ${INSTALL_ROOT}/usr/games &&
+mv -v warsow wsw_server wswtv_server ${INSTALL_ROOT}/usr/games &&
cp -rv * $INSTALL_DIR &&
-chown -R root:games ${INSTALL_ROOT}/usr/games/warsow $INSTALL_DIR &&
-chmod 750 ${INSTALL_ROOT}/usr/games/warsow $INSTALL_DIR
+cd $INSTALL_DIR &&
+find_and_scam &&
+chmod 755 {warsow,wsw_server,wswtv_server}.{i386,x86_64}
diff --git a/z-games/warsow-bin/PRE_BUILD b/z-games/warsow-bin/PRE_BUILD
index faede36..9c40731 100755
--- a/z-games/warsow-bin/PRE_BUILD
+++ b/z-games/warsow-bin/PRE_BUILD
@@ -1,6 +1,12 @@
-default_pre_build &&
+mk_source_dir $SOURCE_DIRECTORY &&
cd $SOURCE_DIRECTORY &&
+unpack_file &&
+rm *.exe && # Ouch!..
+
INSTALL_DIR=${TRACK_ROOT}/opt/warsow &&
sedit "s:BINARY_DIR=:BINARY_DIR=${INSTALL_DIR}:" warsow &&
sedit "s:DATA_DIR=:DATA_DIR=${INSTALL_DIR}:" warsow &&
-sedit "s:USEHOMEDIR=:USEHOMEDIR=1:" warsow
+sedit "s:BINARY_DIR=:BINARY_DIR=${INSTALL_DIR}:" wsw_server &&
+sedit "s:DATA_DIR=:DATA_DIR=${INSTALL_DIR}:" wsw_server &&
+sedit "s:BINARY_DIR=:BINARY_DIR=${INSTALL_DIR}:" wswtv_server &&
+sedit "s:DATA_DIR=:DATA_DIR=${INSTALL_DIR}:" wswtv_server



  • [SM-Commit] GIT changes to master z-rejected grimoire by Alexander Tsamutali (7f84599d79c055ed3f1677aea21d3ddb3abb68e6), Alexander Tsamutali, 02/03/2008

Archive powered by MHonArc 2.6.24.

Top of Page