summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2016-03-15 15:27:35 +0100
committerMichael Weber <xmw@gentoo.org>2016-03-15 17:50:03 +0100
commit1172083f913dec394d8d96c75793814ec7b13ee2 (patch)
tree1e5d6e2376fde65c71eb1c06e6c5d84521f36544 /app-backup/tsm
parentdev-libs/unittest++: make tests optional (diff)
downloadgentoo-1172083f913dec394d8d96c75793814ec7b13ee2.tar.gz
gentoo-1172083f913dec394d8d96c75793814ec7b13ee2.tar.bz2
gentoo-1172083f913dec394d8d96c75793814ec7b13ee2.zip
app-backup/tsm: Version bump to latest 7.1.0.x
Package-Manager: portage-2.2.27
Diffstat (limited to 'app-backup/tsm')
-rw-r--r--app-backup/tsm/Manifest14
-rw-r--r--app-backup/tsm/tsm-7.1.0.3.ebuild240
2 files changed, 254 insertions, 0 deletions
diff --git a/app-backup/tsm/Manifest b/app-backup/tsm/Manifest
index 2f293c5c8ca4..6098d57c705b 100644
--- a/app-backup/tsm/Manifest
+++ b/app-backup/tsm/Manifest
@@ -12,6 +12,20 @@ DIST 7.1.0.0-TIVsm-msg.PT_BR.x86_64.rpm 3731332 SHA256 0b49e4f8b1443a01484790992
DIST 7.1.0.0-TIVsm-msg.RU_RU.x86_64.rpm 4384394 SHA256 a720846965211440c9f8b8fd31d1efe281328fbd24e1373a58a64c43c084b391 SHA512 908ea5b9e2ef33b81d5234b99b352bd342e5d78bb19c75057f7b50a14eae175aae7aec977b98aabc063f8acf78c7fd6985481dc0b040029e4bd6d93252085656 WHIRLPOOL a7b33ef40851dc464eaee5310ceb53ad76002cccf118dd063b904de2a736cb8ce13766e15f7b8a43d917ec517ab25e192905dcaab7829e0b57c9dea6ec6b61d1
DIST 7.1.0.0-TIVsm-msg.ZH_CN.x86_64.rpm 3438735 SHA256 8995b622b35bfb3cc4aeb8612f853751e5f329a86306d22a4de3b4265e7c96dc SHA512 54b21264a05b86af9c4900b32ce1a28fb18cb331582d5d907f6d9563b410b0f0599c141cc3f1e23f0772e1b3185271a5dedb8f0b976e4c7718d01659b4930eb7 WHIRLPOOL 667b5ad42f2caeb2ca81c0fb7c33852b54f682d46b81355ae8f255bdd610e86314f4e3acd89a918c450c9eef6c5c4e8fb70326313d37fbccb9ef8327d3c3857c
DIST 7.1.0.0-TIVsm-msg.ZH_TW.x86_64.rpm 3524254 SHA256 655c75b9e3ff85c3b2919091d345d8fda04367340f77d27ed63ff64a22f1c7e3 SHA512 b08a690e3a0ac57a201cb6da47d41ded365e6b9d6a85084d182590f193f71146e1eba98ffdf5389375a94e50b5ad8ceabccf39e7be61f46ead25b638b3e706e8 WHIRLPOOL 9e4d308e38427ebe68a2cebae3b0819bed00bcf7d99d1b13ebecb94177ee49727f87f7aa107a09e7548a5b169be2c2f5a08030c45b106d936616cacf31170722
+DIST 7.1.0.3-TIV-TSMBAC-LinuxX86.tar 98653163 SHA256 cf609457005a14fe8780f6ed9614daf5c55c89e8f981e3eb57b4400e122f69e3 SHA512 fe15406f9b9e2e099cede6752c0e5431b81877f4167871dae04be95837fc15da85860a68809d9e0d121ccefbb72aef947655c94aadf1fde2b87bf581848ab689 WHIRLPOOL 07083fdb389ade842876a681b6f3a6c1d28d123691f7cf03eee7a7fed9b0e2a186802dfb951fb86c336b4ced17af143a2d42ea96fd40e08798e16d31960a679c
+DIST 7.1.0.3-TIVsm-msg.CS_CZ.x86_64.rpm 4450698 SHA256 d400c6ce9792a011068434c022aecdad222531ae99583edad887f676f0454b23 SHA512 8f5e59c5fece331fd2a743854fcf7bf9248ec7eacccd94124078442718cbc52d70aed6ad2f543f017f13a17b0f03e46e40e707a7f4548c70b00d5740ff93d0ca WHIRLPOOL 02286623b96622035a446c15559ca829b3b24b026a980846187e9b08e45eb8d7e44d064b45256d7ae119686abe61c5f975ccc9d143329dd0cdcae35105e79671
+DIST 7.1.0.3-TIVsm-msg.DE_DE.x86_64.rpm 3748176 SHA256 b6da84a0750b90a3ba7643a3565c57436cde1964d57a9c7be86bc4fcb279df22 SHA512 f8ac6f01678502a9e2f296a8c84e11e2e0ea45e8c7584977bd4eee9f519468ab611c0ebed979c6a493f6830eb7490f057e60d6a027394dbc247b34ecadea16ec WHIRLPOOL 4c0be4309a1c628ea939d7c99c859982bbeaf0d7963345b83222470ca7357e7061879fedb83e98cf6018f1461fdfd5c4c8022dcdd8d5e0d2bf17d2d8bf3e00ff
+DIST 7.1.0.3-TIVsm-msg.ES_ES.x86_64.rpm 3787713 SHA256 50deefaaf9f5760a562ce7b139ce2464faa8515b58d1733050fb094f2a796cad SHA512 f7dd5745c1f9dcf5cfb910e64367d876d2f8e845a8cbb4e14e1a465f7fe11806be00d3778e8e0d9c44740aa36edcd74fe4015217312ed820a8be0b95d4d15486 WHIRLPOOL 338ca05370174b520fa2277b0e51cb345a3b64c6c362c76b81e299628829665ea402957031405d7473daf46257b5c4b6cffcf864dd9a2d89c4bb0a4b982133ac
+DIST 7.1.0.3-TIVsm-msg.FR_FR.x86_64.rpm 3741153 SHA256 217fbbfb180154ad2668d1d1ba76ea1751f712cf9314bf29e727c012d83096b5 SHA512 b4feebe4200a6c4e8c63164b6efbee75474cf85b2fd103465485c47c007d8ffc20235af482d6e77c0e55008fea55622d3f0f4596f47de36d91d858ca1a7c78d2 WHIRLPOOL 57e3a13b294f27195686ca8d25f25f58d4eeb8405e97d0a675574e4e74f4f5231733c5fd1b3a71c7d979ce5b2d5b2168871d95f8bf9694badd2b6bdafe072fdb
+DIST 7.1.0.3-TIVsm-msg.HU_HU.x86_64.rpm 3830832 SHA256 9656ec46402b5574475a2cc4510432ab1880d2a23c6042f8fea38979b3effd0b SHA512 fd404434954997d6f3131dbd0b4952d17f25cbf2f764250b5deda269482873e386e04d45f9e4ebf0d94ee50fe5f1928d88def146e0859adcb5ed3766d970550e WHIRLPOOL 02fd19fd7fb131a38452d0c6e032776434f9e7666ca83d1c84ce399070f3e72fc9137b7b6f7b77742673b580c4aa1e8a459b3b1cf8b6188cc38670d9bb0a9220
+DIST 7.1.0.3-TIVsm-msg.IT_IT.x86_64.rpm 3651505 SHA256 e6eb362e878102e410f80d206832e66a76e87b2f1388d247f4de3bdfd859c75a SHA512 15f009ac86e488bff2edee3a8b050132935d895d1d53cc91481220f8687acf27d33f1dcb95849edd0462cf296fa47481cefde32f72bfe2e270fb4c6b9ced8990 WHIRLPOOL cb63e3a6d4dd71d1d4b5fe12f8939616676f27066afccef7c73cff892841e74a04d3e2e3a327cfe4d44d47acda3b6f08f2d0247895fdfb8825ba37424dcf9f99
+DIST 7.1.0.3-TIVsm-msg.JA_JP.x86_64.rpm 3770577 SHA256 da8b974c1041688f02bad88b7eb614c80f1fef0421e70dcf632f724227505e73 SHA512 cbfb5781ac8c68c6ff7ffe0f65b1fa9f153d73312f971ecf10251d0f250c1e16f2a21d985b2aa79893775ede325c31d6424cb00e8f0edb36e5d69467a15f1068 WHIRLPOOL 36b84470a9fa3f1b0c4c0489380c8270d5475fbe29f707ec618bf518b2e50b691c5e5426847e61f8321365c245aabf305744aa25ee64ad0ca8302bd54969db27
+DIST 7.1.0.3-TIVsm-msg.KO_KR.x86_64.rpm 3326626 SHA256 c348d13f22d8776bceec4ca86e1b3443a589c7a311ae3355a2e83b9ffa4c61d2 SHA512 d575e0385a0786f80adb69b2fdfd35d96802a5f22ef4179cf11fee3f184bd5cf7f79191027c089bf262caaa998d927343bc532eb5a4a02a9eb9e10cc82df8607 WHIRLPOOL fa4e17eccfd942f0f979e3d0bed785f6565790bb6c631bc6ee04b3e12fb4448d334e8a3dc473f17c4a5238ee41d45632fadcb83db2b73d418558ddb088b754e6
+DIST 7.1.0.3-TIVsm-msg.PL_PL.x86_64.rpm 3719845 SHA256 ab4d58b29759a13c4849cd6bae303f75dfa54361995bb6d0ecae84a1c218c683 SHA512 61268028e0f35e3da4a1477b3f164714eaa05ad2f2c54d934018909d1887dc990017d30f7c0c92c22d4f6342aa85f59fe314bbe6be0e639d0f456ec134e5bbdf WHIRLPOOL 62a2cce91c6ef13f2a39eba88f6c30aab839f7dd3643694ca3507bb4341dbafc7b615d11ae113a6be25af9d25723581394b109e11a96845dc0e2da519539f8b7
+DIST 7.1.0.3-TIVsm-msg.PT_BR.x86_64.rpm 3730125 SHA256 f1cde1ca9a74145382f9c1e6ecb69d1cf10d7cc6ba9bb9415e390254d912e07d SHA512 471e8a668ed3c12785e2469127e2aaf6c2e36e24f49f367db0a5b7b292ee4ce215d6e5bd53fd50c14e121d4f75fa9ce22482c0f21f2e8ffdfe897c5aa39d15e7 WHIRLPOOL 8e253af14525b374d7bf52b33b7e70d3147d3d8237edfb04924edb0d52957b5d89295a857e094fde98ba622049b714e4256a6f42e39f9b3f575e33ba1c61d386
+DIST 7.1.0.3-TIVsm-msg.RU_RU.x86_64.rpm 4383399 SHA256 0d1b2559c09bada269b46cfa92c5201dd88594ab0fbac982f40cc647a8fe4804 SHA512 d4d39251a5b5c0507897855289cc7516fb4fdb60ef788b083332a9e15ff31788c74de64950cc04f67f0c16d64f7bccc85bbda07106f1cd1eba63c2f45df8cdee WHIRLPOOL 9b005c286968f7d2f74a32572e7094879ea5618b676d1e08cc3cb487df6e07aefeebdc48e9a2a0b1321ba010cae8dc341d610289411fc61d59bb8247f1fdb472
+DIST 7.1.0.3-TIVsm-msg.ZH_CN.x86_64.rpm 3439170 SHA256 3ec55d3165b69c3d22d1d5fe96ab2398ce72952b8e6a3bc1b0e71011caefdf5d SHA512 acaaed9f3f5bf2e442b45b511cbfe6b6075b36be8073e61ba1fcc4bd794a717c436245febeb5f2198bc7a025600c006ef1cfa2b2380be00c5c9d38d8aea50a91 WHIRLPOOL 94b163b61e5a66aeb628f73228557a44812d25a3bbf2f804a8ef7feeae6990e0f0e7516133f07dea608ef88dbfa0f711510351ed8d161510a5e5d74ba6133d31
+DIST 7.1.0.3-TIVsm-msg.ZH_TW.x86_64.rpm 3524512 SHA256 45962815b4deaa83a7202a7381cb02681b6f1edaa5c704000a8ef186a2955f85 SHA512 440c5d16d8681b60493f33b800d20cd4e4cec7cd60ae59d76b67043e7e9693a7654b5975e8ce5dffe29cafbafe9741bb1651630d65188ebc83bf29f572fb7ac4 WHIRLPOOL 37c2e7a0b3ddf4d87438cc2148c55c9d254f8954f2a78bed605ab02632cd9ac527d07dfb2b8b4161e4c96c75b08ba638f4925d157130ea94d517fa5859948d70
DIST 7.1.2.0-TIV-TSMBAC-LinuxX86.tar 113049600 SHA256 955291e82ae5e207a46a52c7b97d7cb4a05b623afcb3cf59e0e13e5cff4c4f9d SHA512 9b8722bd87794a01fdb3db2bf0db7a5d05e9c278d8469e43e2af1f84bbaa3a40efbffb19da3ef5fa5445b8f1e1b39aa603992994b0aa4654d00c431c14efb5f4 WHIRLPOOL 2ee25e928fb671452324ff6fa9616bc74a3481e93138974ffd55ade16e9028a22b367c29ca13ce6774fd819c075235cf01bdb5dd8d43995bb456f1b6b086cf64
DIST 7.1.2.0-TIVsm-msg.CS_CZ.x86_64.rpm 4436432 SHA256 d126520652fb95254609c8c4767a7e266bcdd76c1fa8d86d5cf6cee7b0cf6263 SHA512 18f2bd339d455250967823969b7b0b4ead32bd99260854b247729fb36884d8e8d5e211505b72f31e88e33ec4054653eb1ab0db3c28287200e71ac080616850b9 WHIRLPOOL 671b8e0e96f64430b8bed49926b925a16bc97036e901b0b98f6e3cc21246b1916d023b16896dfeabf0d9d8afc87adcf888d6162f22945662104e804194a4d555
DIST 7.1.2.0-TIVsm-msg.DE_DE.x86_64.rpm 3746180 SHA256 b113096752920643332ca41c6ade89d38e446659d1ca018088efc6b09b67c4cc SHA512 9c56719271d9a1f6bf01c0af023c59d8850010fd8a4cb34ec792369b9b652259d3a4548c4ce8ed9ed6fd3097fafa3ed6ed5014146841f1dd5686ec01e6fdc7f2 WHIRLPOOL 5522f1a971babee9574eeccdc24c15e44d5aa57699ccbab1ada5eb79f987443c974ab1b8c9daf26d039396ad5fd43dc267c287dbf0485b6fb9c18e80aff21c44
diff --git a/app-backup/tsm/tsm-7.1.0.3.ebuild b/app-backup/tsm/tsm-7.1.0.3.ebuild
new file mode 100644
index 000000000000..33d605b68355
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.0.3.ebuild
@@ -0,0 +1,240 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo-r1 rpm systemd user
+
+DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
+HOMEPAGE="http://www.tivoli.com/"
+
+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="*"
+
+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:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} linguas_${lang%:*}"
+ SRC_URI="${SRC_URI} linguas_${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-2*
+ acl? ( sys-apps/acl )
+ java? ( virtual/jre:1.7 )
+"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup tsm
+ DOC_CONTENTS="
+ Note that you have to be either root or member of the group tsm to
+ be able to use the Tivoli Storage Manager client."
+}
+
+src_unpack() {
+ local rpm rpms lang
+ unpack ${SRC_TAR}
+
+ 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_prepare() {
+ # Avoid unnecessary dependency on ksh
+ sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
+ opt/tivoli/tsm/client/ba/bin/dsmj || 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
+
+ # We don't bother setting timestamps to build dates.
+ # But we should delete the corresponding files.
+ rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
+
+ # 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
+
+ # Install symlinks for sonames of libraries, bug #416503
+ dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
+ dosym libvixDiskLibVim.so.5.5.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
+ dosym libvixDiskLib.so.5.5.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
+
+ fowners :tsm /opt/tivoli/tsm/client/ba/bin/dsmtca
+ fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
+
+ 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}
+
+ newconfd "${FILESDIR}/dsmc.conf.d" dsmc
+ newinitd "${FILESDIR}/dsmc.init.d" dsmc
+ newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
+
+ 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
+
+ readme.gentoo_print_elog
+}