sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master z-rejected grimoire by Dr. Thomas Orgis (34ac7304d6736eade58211fcb3324b0d31622db7)
- From: "Dr. Thomas Orgis" <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master z-rejected grimoire by Dr. Thomas Orgis (34ac7304d6736eade58211fcb3324b0d31622db7)
- Date: Tue, 22 Nov 2016 17:13:52 +0000
GIT changes to master z-rejected grimoire by Dr. Thomas Orgis
<thomas.orgis AT uni-hamburg.de>:
z-backup/tsmclient/DETAILS | 1 +
z-backup/tsmclient/HISTORY | 4 ++++
z-backup/tsmclient/INSTALL | 20 ++++++++++++++++++++
3 files changed, 25 insertions(+)
New commits:
commit 34ac7304d6736eade58211fcb3324b0d31622db7
Author: Dr. Thomas Orgis <thomas.orgis AT uni-hamburg.de>
Commit: Dr. Thomas Orgis <thomas.orgis AT uni-hamburg.de>
tsmclient: add wrapper for gsk binaries
diff --git a/z-backup/tsmclient/DETAILS b/z-backup/tsmclient/DETAILS
index b8be41b..c114570 100755
--- a/z-backup/tsmclient/DETAILS
+++ b/z-backup/tsmclient/DETAILS
@@ -8,6 +8,7 @@
SOURCE_HASH=sha512:451280deabae62c6c2acd281165cbcdec7421aed17531bcc387e46be57fcbb85960fb0a6c8686e5d65d24a732c2778ce8610407f0c1fba21cd5bfce1c2c29fef
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SHORT="IBM Tivoli Storage Manager (TSM) client software, x86-64
only"
+ PATCHLEVEL=1
ARCHIVE=off
WEBSITE=http://www.rrz.uni-hamburg.de/de/services/datenhaltung/backup.html
cat << EOF
diff --git a/z-backup/tsmclient/HISTORY b/z-backup/tsmclient/HISTORY
index 7fe4ed6..415d03f 100644
--- a/z-backup/tsmclient/HISTORY
+++ b/z-backup/tsmclient/HISTORY
@@ -1,3 +1,7 @@
+2016-11-22 Thomas Orgis <sobukus AT sourcemage.org>
+ * INSTALL: added gsk_wrapper
+ * DETAILS: PATCHLEVEL++
+
2016-07-05 Thomas Orgis <sobukus AT sourcemage.org>
* DETAILS: update to 7.1.3.2
* dsm.sys: more generic example
diff --git a/z-backup/tsmclient/INSTALL b/z-backup/tsmclient/INSTALL
index 049a847..e510630 100755
--- a/z-backup/tsmclient/INSTALL
+++ b/z-backup/tsmclient/INSTALL
@@ -11,6 +11,7 @@ ln -sf ../../opt . &&
# Contain everything in /opt/tivoli.
# Assumption: There is either lib/ or lib64/ (also bin64/).
gsklib=$(cd usr/local/ibm/gsk*/lib*/ && pwd) &&
+gskbin=$(cd usr/local/ibm/gsk*/bin && pwd) &&
tivolib=$(cd usr/lib*/ && pwd) &&
binlib=$(cd tsm/client/ba/bin/lib*/ && pwd) &&
apilib=$(cd tsm/client/api/bin*/ && pwd) &&
@@ -25,8 +26,10 @@ install_config_file "$SCRIPT_DIRECTORY"/dsm.opt
/etc/tivoli/dsm.opt &&
message "${MESSAGE_COLOR}Remember to edit configuration under /etc/tivoli
the first time.${NORMAL_COLOR}" &&
tsm_wrapper=/opt/tivoli/tsm/bin/tsm-wrapper &&
+gsk_wrapper=/opt/tivoli/tsm/bin/gsk-wrapper &&
ldpath="$apilib:$gsklib:$tivolib:$binlib" &&
mkdir $(dirname $tsm_wrapper) &&
+
cat <<EOF > $tsm_wrapper &&
#!/bin/sh
# dsmj can use openjdk wahou # to force the use of Sun's Java
@@ -42,6 +45,18 @@ EOF
chmod +x $tsm_wrapper &&
+cat <<EOF > $gsk_wrapper &&
+#!/bin/sh
+export LANG=POSIX
+export LC_TYPE=en_US.UTF-8
+export LD_LIBRARY_PATH='$ldpath'
+
+appname=\$(basename "\$0")
+exec "$gskbin/\$appname" "\$@"
+EOF
+
+chmod +x $gsk_wrapper &&
+
for i in \
dsmadmc \
dsmagent \
@@ -53,6 +68,11 @@ for i in \
dsmtrace
do
ln -svf $tsm_wrapper /usr/bin/$i
+done &&
+
+for i in $gskbin/*
+do
+ ln -svf $gsk_wrapper /usr/bin/$(basename $i)
done
# Running with other locales is risky, and this symlink for some reason
- [SM-Commit] GIT changes to master z-rejected grimoire by Dr. Thomas Orgis (34ac7304d6736eade58211fcb3324b0d31622db7), Dr. Thomas Orgis, 11/22/2016
Archive powered by MHonArc 2.6.24.