From 6d0a14515b11176b94bd9b675b8d0f61e0969df5 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 30 Nov 2020 14:58:28 +0100 Subject: [PATCH] Remove tsm tsm ("Tivoli Storage Manager" which is now "IBM Spectrum Protect") is used by a single application (archives). The installation of the current client with bee on all systems would be much more complex now than it was in the past, because - there is now a plugin machinery where shared libraries get loaded at runtime. So it is no longer trivial to see, which libraries are needed. A complete installation, on the other hand, consists of about 600 files which seems to be kind of overkill when these files get distributed to and backed up on each system. - the client maintains more "local" data like keys generated for the client and certificates downloaded from the server. These maintained files, of course, would need to be special handled, otherwise they would be overwritten by the distmaster. This would require a lot of reverse engineering to identify everything and special code to handle it. For our only application using tsm, I've created a installation in its project directory (at /confidential/archive/tsm ). The tsm backup and archive client is no longer needed in the system. So remove it. It binary anyway. --- tsm-molgen.be0 | 72 ---------------------------------------- tsm.be0 | 89 -------------------------------------------------- 2 files changed, 161 deletions(-) delete mode 100755 tsm-molgen.be0 delete mode 100755 tsm.be0 diff --git a/tsm-molgen.be0 b/tsm-molgen.be0 deleted file mode 100755 index 94598d62d..000000000 --- a/tsm-molgen.be0 +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/env beesh -# -# ./tsm-6.3.0.0-0.bee --no-archive-build -c -# - -# BEE_VERSION tsm-molgen-1.0-1 - -SRCURL[0]="" - -SRC="/project/admin/tsm" - -PATCHURL[0]="" - -PREFIX=/usr/local/tsm - -PGRP=( uncategorized ) - -BEE_CONFIGURE=none - -# EXCLUDE="" - -mee_extract() { - : -} - -mee_patch() { - : -} - -mee_configure() { - : -} - -mee_build() { - hostname=`hostname` - for h in void.molgen.mpg.de; do - if [ ${hostname} == $h ]; then - if [ -d ${PREFIX} ]; then - TSMPWD=${SRC}/TSM.PWD - echo "TSM client detected. password-file update" - md5=( `md5sum ${TSMPWD}` ); - if [ ! -e ${TSMPWD}.${md5} ]; then - cp -v ${TSMPWD} ${TSMPWD}.${md5} - fi - cp ${TSMPWD} ${PREFIX}/ - cp ${SRC}/dsm.sys ${PREFIX}/ - - dsmc q se # generate/add password to TSM.PWD and /etc/ - - if [ $? = 0 ]; then - cp ${PREFIX}/TSM.PWD ${SRC}/TSM.PWD - else - echo "dsmc failed." - exit 1 - fi - - else - echo "need and already installed tsm/dsmc binary" - fi - fi - done -} - -mee_install() { - mkdir -pv ${D}${PREFIX}/etc - cp -v ${SRC}/TSM.PWD ${D}${PREFIX} - cp -v ${SRC}/dsm.sys ${D}${PREFIX} - cp -v ${SRC}/dsm.opt ${D}${PREFIX} - mkdir -pv ${D}/var/run/tsm - mkdir -pv ${D}/etc - ln -vs /var/run/tsm/TIVGUID ${D}/etc/TIVGUID -} diff --git a/tsm.be0 b/tsm.be0 deleted file mode 100755 index 2c7feee49..000000000 --- a/tsm.be0 +++ /dev/null @@ -1,89 +0,0 @@ -#!/usr/bin/env beesh - -# BEE_VERSION tsm-6.3.2.0-2 - -# /project/admin/tsm/6.3.2.0-TIV-TSMBAC-LinuxX86.tar -SRCURL[0]="https://beehive.molgen.mpg.de/493a3384e615fb955a02b9e9612dca84/6.3.2.0-TIV-TSMBAC-LinuxX86.tar" -SRCURL[1]="https://beehive.molgen.mpg.de/00d73a88539cc74399b364d1262ee6aa/rpm2cpio.c" - -# PATCHURL+=() - -PREFIX=/usr/local/tsm - -BEE_CONFIGURE=none - -# build_in_sourcedir - -# sourcesubdir_append src - -mee_extract() { - tar xof ${1} -C ${S} -} - -#mee_patch() { -# bee_patch "${@}" -#} - -#mee_configure() { -# bee_configure -#} - -mee_build() { - - cc ${F}/rpm2cpio.c -o rpm2cpio `pkg-config glib-2.0 --cflags --libs ` -DCPIO_PATH=\"/usr/bin/cpio\" - - for i in \ - TIVsm-BA \ - TIVsm-API64 \ - gskssl64-8.0.14.14.linux \ - gskcrypt64-8.0.14.14.linux \ - ; do - ./rpm2cpio ${S}/${i}.x86_64.rpm -idv - done -} - -mee_install() { - mkdir -pv ${D}${PREFIX}/EN_US - - for i in \ - usr/bin/dsmc \ - usr/bin/dsmadmc \ - opt/tivoli/tsm/client/api/bin64/libgpfs.so \ - opt/tivoli/tsm/client/api/bin64/libdmapi.so \ - usr/local/ibm/gsk8_64/lib64/libgsk8cms_64.so \ - usr/local/ibm/gsk8_64/lib64/libgsk8iccs_64.so \ - usr/local/ibm/gsk8_64/lib64/libgsk8ssl_64.so \ - usr/local/ibm/gsk8_64/lib64/libgsk8sys_64.so \ - ; do - cp -vx --dereference ${B}/$i ${D}${PREFIX} - done - - for i in \ - dsmclientV3.cat \ - dsmc.hlp \ - ; do - cp -vx ${B}/opt/tivoli/tsm/client/lang/EN_US/$i ${D}${PREFIX}/EN_US - done - - mkdir -pv ${D}/usr/local/tsm/icc/icclib - mkdir -pv ${D}/usr/local/tsm/icc/osslib - - cp -vax ${B}/usr/local/ibm/gsk8_64/lib64/N/icc/icclib/libicclib081.so ${D}${PREFIX}/icc/icclib - cp -vax ${B}/usr/local/ibm/gsk8_64/lib64/N/icc/osslib/libcryptoIBM081.so.0.9.8 ${D}${PREFIX}/icc/osslib - cp -vax ${B}/usr/local/ibm/gsk8_64/lib64/C/icc/icclib/libicclib080.so ${D}${PREFIX}/icc/icclib - cp -vax ${B}/usr/local/ibm/gsk8_64/lib64/C/icc/osslib/libcryptoIBM080.so.0.9.8 ${D}${PREFIX}/icc/osslib - - mkdir -pv ${D}/usr/local/bin - - for p in dsmc dsmadmc ; do - echo ${p} - cat > ${D}/usr/local/bin/${p} <