summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Scherbaum <dertobi123@gentoo.org>2010-01-26 19:40:32 +0000
committerTobias Scherbaum <dertobi123@gentoo.org>2010-01-26 19:40:32 +0000
commitf44f8a4b5748b5f3d026aaeb01de636f4ba9278d (patch)
treeba357d13e2c8418a1cb15b08edf010d3dc4cb915 /app-backup
parentAdd haskell-updater-1.0.0.0, that works with the soon committed dev-lang/ghc-... (diff)
downloadgentoo-2-f44f8a4b5748b5f3d026aaeb01de636f4ba9278d.tar.gz
gentoo-2-f44f8a4b5748b5f3d026aaeb01de636f4ba9278d.tar.bz2
gentoo-2-f44f8a4b5748b5f3d026aaeb01de636f4ba9278d.zip
Initial import, #20291. Thanks to all people who participated in writing this ebuild.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/tsm/ChangeLog11
-rw-r--r--app-backup/tsm/files/dsmc.conf.d8
-rw-r--r--app-backup/tsm/files/dsmc.init.d29
-rw-r--r--app-backup/tsm/metadata.xml12
-rw-r--r--app-backup/tsm/tsm-5.5.2.7.ebuild111
5 files changed, 171 insertions, 0 deletions
diff --git a/app-backup/tsm/ChangeLog b/app-backup/tsm/ChangeLog
new file mode 100644
index 000000000000..d1c6c30cb9c3
--- /dev/null
+++ b/app-backup/tsm/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-backup/tsm
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/ChangeLog,v 1.1 2010/01/26 19:40:31 dertobi123 Exp $
+
+*tsm-5.5.2.7 (26 Jan 2010)
+
+ 26 Jan 2010; Tobias Scherbaum <dertobi123@gentoo.org> +tsm-5.5.2.7.ebuild,
+ +files/dsmc.conf.d, +files/dsmc.init.d, +metadata.xml:
+ Initial import, #20291. Thanks to all people who participated in writing
+ this ebuild.
+
diff --git a/app-backup/tsm/files/dsmc.conf.d b/app-backup/tsm/files/dsmc.conf.d
new file mode 100644
index 000000000000..3ac275167ea0
--- /dev/null
+++ b/app-backup/tsm/files/dsmc.conf.d
@@ -0,0 +1,8 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/files/dsmc.conf.d,v 1.1 2010/01/26 19:40:32 dertobi123 Exp $
+
+# Config file for /etc/init.d/tivoli
+
+# See your TSM manual for valid ops
+#DSMC_OPTS=""
diff --git a/app-backup/tsm/files/dsmc.init.d b/app-backup/tsm/files/dsmc.init.d
new file mode 100644
index 000000000000..856006c2f3bd
--- /dev/null
+++ b/app-backup/tsm/files/dsmc.init.d
@@ -0,0 +1,29 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/files/dsmc.init.d,v 1.1 2010/01/26 19:40:32 dertobi123 Exp $
+
+depend() {
+ use net
+ after dns
+}
+
+start() {
+ ebegin "Starting dsmc"
+ source /etc/profile
+ cd /var/log/tivoli
+ start-stop-daemon --start --background --nicelevel 15 \
+ --make-pidfile --pidfile /var/run/dsmc.pid \
+ --exec /opt/tivoli/tsm/client/ba/bin/dsmc sched ${DSMC_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dsmc"
+ # For whatever reason SIGTERM doesn't affect the dsmc process, but
+ # SIGHUP makes it exit cleanly
+ start-stop-daemon --stop \
+ --signal 1 \
+ --pidfile /var/run/dsmc.pid
+ eend $?
+}
diff --git a/app-backup/tsm/metadata.xml b/app-backup/tsm/metadata.xml
new file mode 100644
index 000000000000..29a1f446f30e
--- /dev/null
+++ b/app-backup/tsm/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>dertobi123@gentoo.org</email>
+ <name>Tobias Scherbaum</name>
+</maintainer>
+<use>
+ <flag name='hsm'>Installs Tivoli Storage Manager for Space Management</flag>
+</use>
+</pkgmetadata>
diff --git a/app-backup/tsm/tsm-5.5.2.7.ebuild b/app-backup/tsm/tsm-5.5.2.7.ebuild
new file mode 100644
index 000000000000..0bd1d65db0a3
--- /dev/null
+++ b/app-backup/tsm/tsm-5.5.2.7.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/tsm-5.5.2.7.ebuild,v 1.1 2010/01/26 19:40:31 dertobi123 Exp $
+
+inherit versionator multilib eutils
+
+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_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
+MY_PVR_ALLDOTS=${PV}
+
+BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/patches/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/Linux/LinuxX86/v${MY_PV_NODOTS}/"
+SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
+SRC_URI="${BASE_URI}${SRC_TAR}"
+
+RESTRICT="strip binchecks" # Breaks libPiIMG.ss and libPiSNAP.so
+LICENSE="as-is Apache-1.1 JDOM gSOAP"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="hsm"
+
+DEPEND="app-arch/rpm2targz"
+RDEPEND="sys-libs/libstdc++-v3"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup tsm
+}
+
+src_unpack() {
+ unpack ${A}
+
+ # Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
+ # (doesn't help, since they are binaries?)
+
+ RPMS=("TIVsm-BA.i386.rpm" "TIVsm-API.i386.rpm")
+ if use amd64 ; then
+ RPMS=("${RPMS[@]}" "TIVsm-API64.rpm")
+ fi
+ if use hsm ; then
+ RPMS=("${RPMS[@]}" "TIVsm-HSM.i386.rpm")
+ fi
+
+ for rpm in ${RPMS[@]}
+ do
+ einfo "Extracting: ${rpm}"
+ rpm2tar -O ${rpm} | tar xfp -
+ done
+
+ # Avoid strange error messages caused by read-only files
+ chmod -R u+w "${S}"
+}
+
+src_install() {
+ cp -a opt "${D}"
+ cp -a usr "${D}"
+
+ chgrp -R tsm "${D}/opt/tivoli"
+ fperms -R g+rX,o-rX /opt/tivoli # Allow only tsm group users to access TSM tools
+ fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
+
+ keepdir /etc/tivoli
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys"
+ 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/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' SchedLogName "/var/log/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
+
+ # This creates the symlinks for the API libs
+ dodir /usr/$(get_libdir)
+ dosym ../../opt/tivoli/tsm/client/api/bin/libct_cu.so /usr/$(get_libdir)/libct_cu.so
+ dosym ../../opt/tivoli/tsm/client/api/bin/libdmapi.so /usr/$(get_libdir)/libdmapi.so
+ dosym ../../opt/tivoli/tsm/client/api/bin/libgpfs.so /usr/$(get_libdir)/libgpfs.so
+ dosym ../../opt/tivoli/tsm/client/api/bin/libha_gs_r.so /usr/$(get_libdir)/libha_gs_r.so
+ dosym ../../opt/tivoli/tsm/client/api/bin/libApiDS.so /usr/$(get_libdir)/libApiDS.so
+
+ # Fix the client's inability to find dsmclientV3.cat
+ dosym ../../lang/en_US /opt/tivoli/tsm/client/ba/bin/en_US
+
+ # 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"' >> ${ENV_FILE}
+ echo 'PATH="/opt/tivoli/tsm/client/admin/bin:/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+ echo 'ROOTPATH="/opt/tivoli/tsm/client/admin/bin:/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+
+ insinto /etc/conf.d && newins "${FILESDIR}/dsmc.conf.d" dsmc
+ exeinto /etc/init.d && newexe "${FILESDIR}/dsmc.init.d" dsmc
+
+ elog
+ elog "Note that you have to be either root or member of the group tsm to be able to use the"
+ elog "Tivoli Storage Manager client."
+ elog
+
+}