Updated tsm client

This commit is contained in:
layman 2021-03-22 11:30:42 +01:00
parent fd32a33771
commit 3e45e947ad
5 changed files with 274 additions and 47 deletions

View File

@ -5,7 +5,9 @@ AUX dsmcad.init.d-r1 531 BLAKE2B 840b6431f083df2da7f42d79a1b28a87ed3b90d497e54a1
AUX dsmcad.service 224 BLAKE2B cb84b8616daa3649b8b29c58aa91fffbb119dfd1e84810ed61564fd45380ac792c89c20da1f8296f617467c411605f86a5cc2190d2135be771348c1d58b7c56c SHA512 e3572098abf5b2831d10a3b649337b5c9f1cd9fda4ed58844408b6fe31fdc68a3bbc197eab227f9808bc9ab4b4a7488c766aaa472e801d88631b6b8ec398eb45
AUX tsm.logrotate 60 BLAKE2B bb367d3da53f8061d71e3753ab8c46595d5cf91485da920f032473a99d3241d22fdbe576cc99088c99e97c63d3f2af920d4602878830fb815a58dc8321d37a2a SHA512 2f412c61a21dbb2c69b2c12130ae12844787d998098de269da2b8a284c2ed86f7244c2854d7050f2a521b3fbe7239f1ec4339f3b434c67b9cd57980fe5de5a92
DIST 8.1.10.0-TIV-TSMBAC-LinuxX86.tar 582656000 BLAKE2B 04c10c05e58e46a30333c72092fca2d19398bb95274b22ed162ec86c1190feb8037988a7ef37600f698ba0791fa6b5d5db1cb41581df172d9953c0dbd59946d8 SHA512 8947fcb89d777d544db4d32dd7c5522487a7fae628c9c884b85a6b07612139ee9696a9878491c090c9a23fb03936193345315d121733b5509f8be63fc5b16249
DIST 8.1.11.0-TIV-TSMBAC-LinuxX86.tar 614348800 BLAKE2B 7b92e8e77b652483231f2a024f527df6945e54f61e66d36b217f39518b76777cd1e114091a1fb42ffea4733eda8447b09500aca35389729742f1202f63ef2ce8 SHA512 b6d5cc6dd359143900479859c083b3676201cd8c883f7a472b5c496a7bb9fe5e33ef49b951400002a329c1f7401f85498a4a837cb5c811b18dbb8de65460ea7d
DIST 8.1.9.0-TIV-TSMBAC-LinuxX86.tar 545669120 BLAKE2B 8f8af95ae15ef5355a816417092dbea264726c7488b78efd8252e416a4674d6f5621af58c588dbd764dfd17937e16db076f515f16af107178ebde670a58cc4bb SHA512 16cca15cea4e14d2277bcf8eb25d47c69301a99785d380429f402eff4e47ca91aca3e6cb1860e83bad1cf2550788723241e5ad8cca240c6a1ebdc0d4060f3a68
EBUILD tsm-8.1.10.0.ebuild 7410 BLAKE2B 8deb1fba803adb7a66b60d0ee69df109aeacd620349cf329e8dcf9c1c3f2c04fe2c2677971303bbe896491ff7765b92b459b2927450408cc033427bc73f23701 SHA512 786d9804de1194406d8803a33508e1526b225309f6b6bd29f6791ca07296464cd555042af5af331de57d6dc620fc45641baf07625d4f6b5447d015383b965c5a
EBUILD tsm-8.1.11.0.ebuild 7410 BLAKE2B 8deb1fba803adb7a66b60d0ee69df109aeacd620349cf329e8dcf9c1c3f2c04fe2c2677971303bbe896491ff7765b92b459b2927450408cc033427bc73f23701 SHA512 786d9804de1194406d8803a33508e1526b225309f6b6bd29f6791ca07296464cd555042af5af331de57d6dc620fc45641baf07625d4f6b5447d015383b965c5a
EBUILD tsm-8.1.9.0.ebuild 7410 BLAKE2B 8deb1fba803adb7a66b60d0ee69df109aeacd620349cf329e8dcf9c1c3f2c04fe2c2677971303bbe896491ff7765b92b459b2927450408cc033427bc73f23701 SHA512 786d9804de1194406d8803a33508e1526b225309f6b6bd29f6791ca07296464cd555042af5af331de57d6dc620fc45641baf07625d4f6b5447d015383b965c5a
MISC metadata.xml 398 BLAKE2B fb4d250c3bf724349ac31d66b1c43e766d4ba9b001e88b47949c6fe188a629eb1b87321ef3391d2886e9b74daf235cff0139079fd6f72b7342119542438e30e6 SHA512 bd6ec11787dd6f2ff1a59e7e1027a01b80b22256530d35d6a2fb5b3398ee641b9c778f6a8c2555b7098a199bbb1eda1a5204be53509e5eb47399dbad83798547

View File

@ -0,0 +1,238 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit versionator multilib eutils readme.gentoo-r1 rpm systemd user pax-utils
DESCRIPTION="IBM Spectrum Protect (former Tivoli Storage Manager) Backup/Archive Client, API"
HOMEPAGE="https://www.ibm.com/us-en/marketplace/data-protection-and-recovery"
MY_PV_MAJOR=$(get_major_version)
MY_PV_MINOR=$(get_version_component_range 2)
MY_PV_TINY=$(get_version_component_range 3)
MY_PV_PATCH=$(get_version_component_range 4)
MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
MY_PVR_ALLDOTS=${PV}
if [[ ${MY_PV_PATCH} == 0 ]]; then
MY_RELEASE_PATH=maintenance
else
MY_RELEASE_PATH=patches
fi
BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
SRC_URI="${BASE_URI}${SRC_TAR}"
RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
|| ( BSD GPL-2+ ) gSOAP libpng tsm"
SLOT="0"
KEYWORDS="~amd64"
IUSE="acl java +tsm_cit +tsm_hw"
QA_PREBUILT="*"
# not available (yet?)
#MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT ja:JA_JP
# ko:KO_KR pl:PL_PL pt-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
MY_LANG_PV="${MY_PVR_ALLDOTS}-"
for lang in ${MY_LANGS}; do
IUSE="${IUSE} l10n_${lang%:*}"
SRC_URI="${SRC_URI} l10n_${lang%:*}? ( \
${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
done
unset lang
DEPEND=""
RDEPEND="
dev-libs/expat
dev-libs/libxml2
sys-fs/fuse:0
acl? ( sys-apps/acl )
java? ( >=virtual/jre-1.7 )
"
S="${WORKDIR}/bacli"
pkg_setup() {
enewgroup tsm
DOC_CONTENTS="
Note that you have to be root to be able to use the Tivoli Storage Manager
client. The dsmtca trusted agent binary does not exist anymore.
For information on how to give other users access, please see the following
URLs:
https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.8/client/c_cfg_nonadmin.html#c_macuninst_nonadmin
https://www.ibm.com/support/knowledgecenter/SSGSG7_7.1.8/client/c_secure_pwd.html#c_secure_pwd__sec_no_tca
"
}
src_unpack() {
local rpm rpms lang
mkdir bacli || die
cd bacli || die
unpack ${SRC_TAR}
cd "${S}"
for rpm in *.rpm; do
case ${rpm} in
TIVsm-APIcit.*|TIVsm-BAcit.*)
use tsm_cit && rpms="${rpms} ./${rpm}"
;;
TIVsm-BAhdw.*)
use tsm_hw && rpms="${rpms} ./${rpm}"
;;
TIVsm-JBB.*|*-filepath-*)
# "journal based backup" for all filesystems
# requires a kernel module.
# "Linux Filepath source code" available
# by request from vendor
;;
*)
rpms="${rpms} ./${rpm}"
;;
esac
done
for rpm in ${A}; do
case ${rpm} in
*.rpm)
rpms="${rpms} ${rpm}"
;;
esac
done
rpm_unpack ${rpms}
# Avoid strange error messages caused by read-only files
chmod -R u+w "${S}" || die
}
src_install(){
cp -a opt "${D}" || die
cp -a usr "${D}" || die
# The RPM files contain postinstall scripts which can be extracted
# e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
# Below we try to mimic the behaviour of these scripts.
# We don't deal with SELinux compliance (yet), though.
local RPM_INSTALL_PREFIX CLIENTDIR i
RPM_INSTALL_PREFIX=/opt
CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
# Create links for messages; this is spread over several postin scripts.
#for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
# dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
# dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
#done
# Mimic TIVsm-API64 postinstall script
for i in libgpfs.so libdmapi.so; do
dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
done
# The TIVsm-BA postinstall script only does messages and ancient upgrades
# The gscrypt64 postinstall script only deals with s390[x] SELinux
# and the symlink for the iccs library which we handle in the loop below.
# Move stuff from /usr/local to /opt, #452332
mv "${D}"/usr/local/ibm "${D}"/opt/ || die
rmdir "${D}"/usr/local || die
# Mimic gskssl64 postinstall script
for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
/usr/lib64/libgsk8${i}_64.so
done
for i in capicmd ver; do
dosym ../../opt/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/gsk${i}_64
done
# Done with the postinstall scripts as the RPMs contain them.
# Now on to some more Gentoo-specific installation.
[[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
# Avoid "QA Notice: Found an absolute symlink in a library directory"
local target
find "${D}"usr/lib* -lname '/*' | while read i; do
target=$(readlink "${i}")
rm -v "${i}" || die
dosym "../..${target}" "${i#${D}}"
done
keepdir /var/log/tsm
insinto /etc/logrotate.d
newins "${FILESDIR}/tsm.logrotate" tsm
keepdir /etc/tivoli
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
# Added the hostname to be more friendly, the admin will need to edit this file anyway
echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
# Setup the env
dodir /etc/env.d
ENV_FILE="${D}/etc/env.d/80tivoli"
echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
echo 'SEARCH_DIRS_MASK="/opt/tivoli/tsm/client/ba/bin"' > "${T}/80${PN}" || die
insinto "/etc/revdep-rebuild"
doins "${T}/80${PN}"
newconfd "${FILESDIR}/dsmc.conf.d" dsmc
newinitd "${FILESDIR}/dsmc.init.d" dsmc
newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
# Need this for hardened, otherwise a cryptic "connection to server lost" message appears
pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc"
systemd_dounit "${FILESDIR}/dsmc.service"
systemd_dounit "${FILESDIR}/dsmcad.service"
readme.gentoo_create_doc
}
pkg_postinst() {
local i dirs
for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
if [[ ! -e $i ]]; then
touch $i || die
chown :tsm $i || die
chmod 0660 $i || die
fi
done
# Bug #375041: the log directory itself should not be world writable.
# Have to do this in postinst due to bug #141619
chown root:tsm /var/log/tsm || die
chmod 0750 /var/log/tsm || die
# Bug 508052: directories used to be too restrictive, have to widen perms.
dirs=( /opt/tivoli $(find /opt/tivoli/tsm -type d) )
chown root:root "${dirs[@]}" || die
chmod 0755 "${dirs[@]}" || die
FORCE_PRINT_ELOG=1
DISABLE_AUTOFORMATTING=1
readme.gentoo_print_elog
}

View File

@ -1,2 +1,2 @@
DIST xmedcon-0.14.1.tar.bz2 806103 SHA256 a6d194bf44d3d6c96cd8d6e1ad586b5d5e20de1c09dbbb51c76f9e5fd4ae6949 SHA512 7d9af10c5eec3f999c5b919594671c900f27cfb47c65178f96ea7d2f5ae421a373fdc46297c91efafe96ce04728767b0a176402fe186b2c1d7e7b2b47d5e884e WHIRLPOOL ffd29e9bfd326f50da90f87fa93165f551ff4d3f0d8bd9388292781d0024c0b070b30d1c1d1eb5e510a9104d7c819c02b1bcd022075321e72c2bbc8e23b2553e
EBUILD xmedcon-0.14.1.ebuild 1395 SHA256 36025163b1199dead35ae20a4da21371ccd9d93b32cf10e34a84fc4395a17d46 SHA512 eff10c8eae7fd9a40ac3488d8110963fb749d515b55d040e26c3772391355eec4c5213a6920def5fb7e81d78d59c9b23862ee349727e2adf590b36efdaf8c39f WHIRLPOOL 369ef16ecc3d856cb690ecc7f0bb2d16e0276f3da4cb1990024e246cd0c28a94324737489ee914c42c2e1836df80fafcb961fbd0d364ff44ef2efa138310b166
DIST xmedcon-0.16.2.tar.bz2 836840 BLAKE2B 80b1df3b6c905463d4ab7e3e4284cfcad6b6f1aabf0845758f5f62f45e910112ea48bc74b17f8a8fd7f7299587e8a96a46d681fbb6394796907fd13c8acfd7ef SHA512 520159c784c3dedf7f3a1c58840ff178dd00211cc71b7f59fdbd515d6907333cb864f99ee3505c1ff45c376c548a0182cb6a90ad34c898e44475350c4e7dd851
EBUILD xmedcon-0.16.2.ebuild 569 BLAKE2B 9f5f8f5ec9ad1f7b1fe0ae81a0dfc41199ac93e109f8c5d208886f9f83ab091ac6322976d8bb60c526cb71f5c18552878064b38f530f7479fdbb0dd1b7c82ddb SHA512 9562dfa88b68915e05b301d9421d1f428a6ee556a5c7a1fb2bca2b52fdebde168f59766b70e4b1945634501b009efa208307ea6a9edc9a923f97dc88f9f12d6b

View File

@ -1,45 +0,0 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# filename: xmedcon.ebuild.in #
# #
# UTILITY text: Medical Image Conversion Utility #
# #
# purpose : our Gentoo's portage ebuild template #
# #
# project : (X)MedCon by Erik Nolf #
# #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# $Id: xmedcon.ebuild.in,v 1.12 2015/12/27 00:42:27 enlf Exp $
#
EAPI=5
DESCRIPTION="Medical Image Conversion Utility"
HOMEPAGE="http://${PN}.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
#KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86"
KEYWORDS="x86 ~amd64"
IUSE="png gtk"
DEPEND="=x11-libs/gtk+-2*
png? ( >=media-libs/libpng-1.2.1 )
dev-util/pkgconfig"
src_configure() {
econf $(use_enable gtk gui) $(use_enable png)
}
src_compile() {
emake
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS COPYING* INSTALL NEWS README REMARKS
}

View File

@ -0,0 +1,32 @@
EAPI=6
DESCRIPTION="Medical Image Conversion Utility"
HOMEPAGE="http://${PN}.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
#KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86"
KEYWORDS="x86 ~amd64"
IUSE="png gtk"
DEPEND="=x11-libs/gtk+-2*
png? ( >=media-libs/libpng-1.2.1 )
dev-util/pkgconfig"
src_configure() {
econf $(use_enable gtk gui) $(use_enable png)
}
src_compile() {
emake
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS COPYING* INSTALL NEWS README REMARKS
}