Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master z-rejected grimoire by Dr. Thomas Orgis (af1f8662056553540070d9056bfa1f334b11b54f)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • 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 (af1f8662056553540070d9056bfa1f334b11b54f)
  • Date: Wed, 6 Jul 2016 15:48:11 +0000

GIT changes to master z-rejected grimoire by Dr. Thomas Orgis
<thomas.orgis AT uni-hamburg.de>:

ChangeLog | 3 +
z-backup/tsmclient/BUILD | 1
z-backup/tsmclient/DEPENDS | 1
z-backup/tsmclient/DETAILS | 16 ++++++++++
z-backup/tsmclient/HISTORY | 19 ++++++++++++
z-backup/tsmclient/INSTALL | 61
+++++++++++++++++++++++++++++++++++++++
z-backup/tsmclient/PRE_BUILD | 15 +++++++++
z-backup/tsmclient/dsm.opt | 7 ++++
z-backup/tsmclient/dsm.sys | 18 +++++++++++
z-backup/tsmclient/init.d/dsmcad | 12 +++++++
10 files changed, 153 insertions(+)

New commits:
commit af1f8662056553540070d9056bfa1f334b11b54f
Author: Dr. Thomas Orgis <thomas.orgis AT uni-hamburg.de>
Commit: Dr. Thomas Orgis <thomas.orgis AT uni-hamburg.de>

tsmclient: new spell

diff --git a/ChangeLog b/ChangeLog
index b08477b..c806016 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2016-07-06 Thomas Orgis <sobukus AT sourcemage.org>
+ * z-backup/tsmclient: Tivoli Storage Manager backup client
+
2016-05-03 Ismael Luceno <ismael AT sourcemage.org>
* z-x11/openmotif: spell deprecated in favor of motif

diff --git a/z-backup/tsmclient/BUILD b/z-backup/tsmclient/BUILD
new file mode 100755
index 0000000..27ba77d
--- /dev/null
+++ b/z-backup/tsmclient/BUILD
@@ -0,0 +1 @@
+true
diff --git a/z-backup/tsmclient/DEPENDS b/z-backup/tsmclient/DEPENDS
new file mode 100755
index 0000000..c376826
--- /dev/null
+++ b/z-backup/tsmclient/DEPENDS
@@ -0,0 +1 @@
+depends rpm2targz
diff --git a/z-backup/tsmclient/DETAILS b/z-backup/tsmclient/DETAILS
new file mode 100755
index 0000000..b8be41b
--- /dev/null
+++ b/z-backup/tsmclient/DETAILS
@@ -0,0 +1,16 @@
+ SPELL=tsmclient
+ VERSION=7.1.3.2
+ VERSIONX=v7r1
+ VERSIONXX=v713
+ SOURCE=$VERSION-TIV-TSMBAC-LinuxX86.tar
+
SOURCE_URL[0]=ftp://public.dhe.ibm.com/storage/tivoli-storage-management/patches/client/$VERSIONX/Linux/LinuxX86/BA/$VERSIONXX/$VERSION-TIV-TSMBAC-LinuxX86.tar
+
SOURCE_URL[1]=http://ftp.scc.kit.edu/pub/tsm/mirror/patches/client/$VERSIONX/Linux/LinuxX86/BA/$VERSIONXX/$VERSION-TIV-TSMBAC-LinuxX86.tar
+SOURCE_HASH=sha512:451280deabae62c6c2acd281165cbcdec7421aed17531bcc387e46be57fcbb85960fb0a6c8686e5d65d24a732c2778ce8610407f0c1fba21cd5bfce1c2c29fef
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+ SHORT="IBM Tivoli Storage Manager (TSM) client software, x86-64
only"
+ ARCHIVE=off
+
WEBSITE=http://www.rrz.uni-hamburg.de/de/services/datenhaltung/backup.html
+cat << EOF
+This is a hacky spell for installing the TSM backup client. The version
+is not necessarily the newest, but a tested and current-enough one.
+EOF
diff --git a/z-backup/tsmclient/HISTORY b/z-backup/tsmclient/HISTORY
new file mode 100644
index 0000000..7fe4ed6
--- /dev/null
+++ b/z-backup/tsmclient/HISTORY
@@ -0,0 +1,19 @@
+2016-07-05 Thomas Orgis <sobukus AT sourcemage.org>
+ * DETAILS: update to 7.1.3.2
+ * dsm.sys: more generic example
+ created at runtime in installation prefix
+ * PRE_BUILD: explain why separate extraction is needed
+ * INSTALL: streamlined, stuff everything into /opt/tivoli,
+ not using mv but cp to avoid stumbling over runtime-created
+ files
+
+2015-02-11 Thomas Orgis <sobukus AT sourcemage.org>
+ * INSTALL: Use recommended locale settings in wrapper.
+ Why did it even work before with 6.4.1.7?
+
+2015-02-09 Thomas Orgis <sobukus AT sourcemage.org>
+ * DETAILS, PRE_BUILD: 6.4.2.2, with download
+ * 6.4.1.7-*.tar: removed old source
+
+2014-10-16 Thomas Orgis <sobukus AT sourcemage.org>
+ * DETAILS, PRE_BUILD, DEPENDS, BUILD, INSTALL: created
diff --git a/z-backup/tsmclient/INSTALL b/z-backup/tsmclient/INSTALL
new file mode 100755
index 0000000..049a847
--- /dev/null
+++ b/z-backup/tsmclient/INSTALL
@@ -0,0 +1,61 @@
+# Copy things, to avoid breakage if stuff already exists.
+# Using tar for that job seems to break installwatch.
+mkdir -p /opt/tivoli &&
+cd /opt/tivoli &&
+# cp -a breaks castfs
+cp -r "$SOURCE_DIRECTORY"/opt/tivoli/* . &&
+cp -r "$SOURCE_DIRECTORY"/usr . &&
+# Relative links in ./usr need that.
+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) &&
+tivolib=$(cd usr/lib*/ && pwd) &&
+binlib=$(cd tsm/client/ba/bin/lib*/ && pwd) &&
+apilib=$(cd tsm/client/api/bin*/ && pwd) &&
+
+dsm_dir=/opt/tivoli/tsm/client/ba/bin &&
+ln -sf /etc/tivoli/dsm.opt $dsm_dir/dsm.opt &&
+ln -sf /etc/tivoli/dsm.sys $dsm_dir/dsm.sys &&
+
+mkdir -p /etc/tivoli &&
+install_config_file "$SCRIPT_DIRECTORY"/dsm.sys /etc/tivoli/dsm.sys &&
+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 &&
+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
+# dsmj can use openjdk wahou # export
PATH=/usr/lib/jvm/java-6-sun/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+export DSM_DIR=$dsm_dir
+export LANG=POSIX
+export LC_TYPE=en_US.UTF-8
+export LD_LIBRARY_PATH='$ldpath'
+
+appname=\$(basename "\$0")
+exec "\$DSM_DIR/\$appname" "\$@"
+EOF
+
+chmod +x $tsm_wrapper &&
+
+for i in \
+ dsmadmc \
+ dsmagent \
+ dsmc \
+ dsmcad \
+ dsmj \
+ dsmswitch \
+ dsmtca \
+ dsmtrace
+do
+ ln -svf $tsm_wrapper /usr/bin/$i
+done
+
+# Running with other locales is risky, and this symlink for some reason
+# is (was?) required for EN_US to work properly. Do not remove unless you
+# really understand how the TSM client works (that would be a first)!
+#ln -sfv ../../lang/EN_US $dsm_dir/EN_US
diff --git a/z-backup/tsmclient/PRE_BUILD b/z-backup/tsmclient/PRE_BUILD
new file mode 100755
index 0000000..3bcae72
--- /dev/null
+++ b/z-backup/tsmclient/PRE_BUILD
@@ -0,0 +1,15 @@
+mk_source_dir "$SOURCE_DIRECTORY" &&
+cd "$SOURCE_DIRECTORY" &&
+unpack_file &&
+# This is hugely wasteful, copying the binaries multiple times.
+# But castfs and also installwatch break when I try to directly
+# extract the rpms in INSTALL.
+for rpm in \
+ gskcrypt64-*.rpm \
+ gskssl64-*.rpm \
+ TIVsm-API64.*.rpm \
+ TIVsm-BA.*.rpm
+do
+ rpm2tar -O "$rpm" | tar -xvf- || exit 1
+done
+
diff --git a/z-backup/tsmclient/dsm.opt b/z-backup/tsmclient/dsm.opt
new file mode 100644
index 0000000..d5095c7
--- /dev/null
+++ b/z-backup/tsmclient/dsm.opt
@@ -0,0 +1,7 @@
+*********************************************************************
+ * dsm.opt - TSM-Server TSMSRV1
+*********************************************************************
+ SErvername TSMSRV1
+ Subdir Yes
+ DOmain all-local
+*********************************************************************
diff --git a/z-backup/tsmclient/dsm.sys b/z-backup/tsmclient/dsm.sys
new file mode 100644
index 0000000..a42d368
--- /dev/null
+++ b/z-backup/tsmclient/dsm.sys
@@ -0,0 +1,18 @@
+*********************************************************************
+ * dsm.sys - TSM-Server TSMSRV1
+*********************************************************************
+SErvername TSMSRV1
+TCPServeraddress [configure me]
+TCPPort [configure me]
+COMMmethod TCPIP
+Passwordaccess GENERATE
+Nodename [configure me]
+TCPWindowsize 0
+TCPNodelay Yes
+TXNBytelimit 1G
+ERRORLOGname /var/log/dsmerror.log
+ERRORLOGretention 30 D
+SCHEDLOGname /var/log/dsmsched.log
+SCHEDLOGretention 30 D
+MANAGEDServices schedule
+********************************************************************
diff --git a/z-backup/tsmclient/init.d/dsmcad
b/z-backup/tsmclient/init.d/dsmcad
new file mode 100644
index 0000000..9e20903
--- /dev/null
+++ b/z-backup/tsmclient/init.d/dsmcad
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+#. /etc/sysconfig/dsmcad
+
+PROGRAM=/usr/bin/dsmcad
+ARGS=""
+RUNLEVEL=3
+PIDFILE=/var/run/dsmcad.pid
+
+. /etc/init.d/smgl_init
+
+# Hm, is that enough? Need to take care for forked-off instance of dsmcad?



  • [SM-Commit] GIT changes to master z-rejected grimoire by Dr. Thomas Orgis (af1f8662056553540070d9056bfa1f334b11b54f), Dr. Thomas Orgis, 07/06/2016

Archive powered by MHonArc 2.6.24.

Top of Page