Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum (dertobi123)" <dertobi123@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-backup/tsm: tsm-6.1.3.1.ebuild ChangeLog
Date: Tue, 11 May 2010 16:49:06
Message-Id: 20100511164858.4839F2C4F8@corvid.gentoo.org
1 dertobi123 10/05/11 16:48:57
2
3 Modified: ChangeLog
4 Added: tsm-6.1.3.1.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 app-backup/tsm/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/tsm/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/tsm/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/tsm/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-backup/tsm/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 12 Feb 2010 22:27:57 -0000 1.3
23 +++ ChangeLog 11 May 2010 16:48:57 -0000 1.4
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-backup/tsm
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/ChangeLog,v 1.3 2010/02/12 22:27:57 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/ChangeLog,v 1.4 2010/05/11 16:48:57 dertobi123 Exp $
29 +
30 +*tsm-6.1.3.1 (11 May 2010)
31 +
32 + 11 May 2010; Tobias Scherbaum <dertobi123@g.o> +tsm-6.1.3.1.ebuild:
33 + Version bump
34
35 12 Feb 2010; Diego E. Pettenò <flameeyes@g.o> tsm-5.5.2.7.ebuild:
36 Stop restricting binary checks for the wrong reason.
37
38
39
40 1.1 app-backup/tsm/tsm-6.1.3.1.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/tsm/tsm-6.1.3.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-backup/tsm/tsm-6.1.3.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: tsm-6.1.3.1.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/app-backup/tsm/tsm-6.1.3.1.ebuild,v 1.1 2010/05/11 16:48:57 dertobi123 Exp $
50
51 inherit versionator multilib eutils
52
53 DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
54 HOMEPAGE="http://www.tivoli.com/"
55
56 MY_PV_MAJOR=$(get_major_version)
57 MY_PV_MINOR=$(get_version_component_range 2)
58 MY_PV_TINY=$(get_version_component_range 3)
59
60 MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
61 MY_PVR_ALLDOTS=${PV}
62
63 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}/"
64 SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
65 SRC_URI="${BASE_URI}${SRC_TAR}"
66
67 RESTRICT="strip" # Breaks libPiIMG.ss and libPiSNAP.so
68 LICENSE="as-is Apache-1.1 JDOM gSOAP"
69 SLOT="0"
70 KEYWORDS="~x86 ~amd64"
71 IUSE="hsm"
72
73 DEPEND="app-arch/rpm2targz"
74 RDEPEND="sys-libs/libstdc++-v3"
75
76 S="${WORKDIR}"
77
78 pkg_setup() {
79 enewgroup tsm
80 }
81
82 src_unpack() {
83 unpack ${A}
84
85 # Avoid "is setXid, dynamically linked and using lazy bindings" QA notices
86 # (doesn't help, since they are binaries?)
87
88 RPMS=("TIVsm-BA.i386.rpm" "TIVsm-API.i386.rpm")
89 if use amd64 ; then
90 RPMS=("${RPMS[@]}" "TIVsm-API64.rpm")
91 fi
92 if use hsm ; then
93 RPMS=("${RPMS[@]}" "TIVsm-HSM.i386.rpm")
94 fi
95
96 for rpm in ${RPMS[@]}
97 do
98 einfo "Extracting: ${rpm}"
99 rpm2tar -O ${rpm} | tar xfp -
100 done
101
102 # Avoid strange error messages caused by read-only files
103 chmod -R u+w "${S}"
104 }
105
106 src_install() {
107 cp -a opt "${D}"
108 cp -a usr "${D}"
109
110 chgrp -R tsm "${D}/opt/tivoli"
111 fperms -R g+rX,o-rX /opt/tivoli # Allow only tsm group users to access TSM tools
112 fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
113
114 keepdir /etc/tivoli
115
116 cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys"
117 echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
118 echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
119
120 # Added the hostname to be more friendly, the admin will need to edit this file anyway
121 echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
122 echo ' ErrorLogName "/var/log/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
123 echo ' SchedLogName "/var/log/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
124 dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
125
126 cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
127 dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
128
129 # This creates the symlinks for the API libs
130 dodir /usr/$(get_libdir)
131 dosym ../../opt/tivoli/tsm/client/api/bin/libct_cu.so /usr/$(get_libdir)/libct_cu.so
132 dosym ../../opt/tivoli/tsm/client/api/bin/libdmapi.so /usr/$(get_libdir)/libdmapi.so
133 dosym ../../opt/tivoli/tsm/client/api/bin/libgpfs.so /usr/$(get_libdir)/libgpfs.so
134 dosym ../../opt/tivoli/tsm/client/api/bin/libha_gs_r.so /usr/$(get_libdir)/libha_gs_r.so
135 dosym ../../opt/tivoli/tsm/client/api/bin/libApiDS.so /usr/$(get_libdir)/libApiDS.so
136
137 # Fix the client's inability to find dsmclientV3.cat
138 dosym ../../lang/EN_US /opt/tivoli/tsm/client/ba/bin/EN_US
139
140 # Setup the env
141 dodir /etc/env.d
142 ENV_FILE="${D}/etc/env.d/80tivoli"
143 echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
144 echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
145 echo 'DSM_LOG="/var/log"' >> ${ENV_FILE}
146 echo 'PATH="/opt/tivoli/tsm/client/admin/bin:/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
147 echo 'ROOTPATH="/opt/tivoli/tsm/client/admin/bin:/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
148
149 newconfd "${FILESDIR}/dsmc.conf.d" dsmc
150 newinitd "${FILESDIR}/dsmc.init.d" dsmc
151 newinitd "${FILESDIR}/dsmcad.init.d" dsmcad
152
153 elog
154 elog "Note that you have to be either root or member of the group tsm to be able to use the"
155 elog "Tivoli Storage Manager client."
156 elog
157
158 }