1 |
commit: 90898938b0b3defca76f5b383386c6ad987feb36 |
2 |
Author: Aaron Bauman <bman <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 4 19:43:04 2019 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 4 19:43:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90898938 |
7 |
|
8 |
app-backup/tsm: drop vulnerable wrt bug #644496 |
9 |
|
10 |
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org> |
11 |
|
12 |
app-backup/tsm/Manifest | 1 - |
13 |
app-backup/tsm/tsm-7.1.4.4-r3.ebuild | 231 ----------------------------------- |
14 |
2 files changed, 232 deletions(-) |
15 |
|
16 |
diff --git a/app-backup/tsm/Manifest b/app-backup/tsm/Manifest |
17 |
index b35b13df6d7..6fcba5100fe 100644 |
18 |
--- a/app-backup/tsm/Manifest |
19 |
+++ b/app-backup/tsm/Manifest |
20 |
@@ -1,3 +1,2 @@ |
21 |
-DIST 7.1.4.4-TIV-TSMBAC-LinuxX86.tar 220456960 BLAKE2B 1deb7f40b0db899dba475d83d4f22d602563b30c491d280f478e69c558677b9d09e49050eace4275e083eeeb670df2e545ad65abc2abf9dade1e35c947e581f6 SHA512 5f0b0262ad4b8f1dc6d9763735c3390a9ea0d559a3efd08593c6aa81e89978387906ff728a5dee575725da7d0b7e4f4e6d207111b79625c6487b6e8d56d767de |
22 |
DIST 7.1.8.0-TIV-TSMBAC-LinuxX86.tar 221849600 BLAKE2B a57d15885c802925e92afca45bfd25c1aa56c33329f03d3de89f00dd139239da3b835ef514dd8d881e76e04e84656d3d630b8e8e44fe8ef331c3f2c5d6acf816 SHA512 68dce2463554b7bd6100d5bf6a617316a04898b747fcaec182c9c4870c34bceb16eea47d073c587c7184945a3cef0f6c98d9a59364589a4745fd1fdc195e3af9 |
23 |
DIST 8.1.6.0-TIV-TSMBAC-LinuxX86.tar 215961600 BLAKE2B de7e3083a87e72763ffee5adbabc20f546edbc771a9ea0017af591b677cb55832c366ec42da6258ccbb81368f7934acfd116eee77236737d8015cc7588d95d3e SHA512 82897f8af6e1408b25eb95206500fa2e05f17983843de3a3456d71ee3cc25188e31a0a2b11c7ee5cf02c3a6aa46fbba03e2a31e697868905739e97c75bfd5984 |
24 |
|
25 |
diff --git a/app-backup/tsm/tsm-7.1.4.4-r3.ebuild b/app-backup/tsm/tsm-7.1.4.4-r3.ebuild |
26 |
deleted file mode 100644 |
27 |
index ef3867988c2..00000000000 |
28 |
--- a/app-backup/tsm/tsm-7.1.4.4-r3.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,231 +0,0 @@ |
31 |
-# Copyright 1999-2018 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=5 |
35 |
- |
36 |
-inherit versionator multilib eutils readme.gentoo rpm systemd user pax-utils |
37 |
- |
38 |
-DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API" |
39 |
-HOMEPAGE="http://www.tivoli.com/" |
40 |
- |
41 |
-MY_PV_MAJOR=$(get_major_version) |
42 |
-MY_PV_MINOR=$(get_version_component_range 2) |
43 |
-MY_PV_TINY=$(get_version_component_range 3) |
44 |
-MY_PV_PATCH=$(get_version_component_range 4) |
45 |
- |
46 |
-MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}" |
47 |
-MY_PVR_ALLDOTS=${PV} |
48 |
- |
49 |
-if [[ ${MY_PV_PATCH} == 0 ]]; then |
50 |
- MY_RELEASE_PATH=maintenance |
51 |
-else |
52 |
- MY_RELEASE_PATH=patches |
53 |
-fi |
54 |
-BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/" |
55 |
-BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/" |
56 |
-BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/" |
57 |
-SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar" |
58 |
-SRC_URI="${BASE_URI}${SRC_TAR}" |
59 |
- |
60 |
-RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so |
61 |
-LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab |
62 |
- dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a |
63 |
- ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C |
64 |
- || ( BSD GPL-2+ ) gSOAP libpng tsm" |
65 |
- |
66 |
-SLOT="0" |
67 |
-KEYWORDS="-* ~amd64" |
68 |
-IUSE="acl java +tsm_cit +tsm_hw" |
69 |
-QA_PREBUILT="*" |
70 |
- |
71 |
-# not available (yet?) |
72 |
-#MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT ja:JA_JP |
73 |
-# ko:KO_KR pl:PL_PL pt-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW" |
74 |
-MY_LANG_PV="${MY_PVR_ALLDOTS}-" |
75 |
-for lang in ${MY_LANGS}; do |
76 |
- IUSE="${IUSE} l10n_${lang%:*}" |
77 |
- SRC_URI="${SRC_URI} l10n_${lang%:*}? ( \ |
78 |
-${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \ |
79 |
-${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )" |
80 |
-done |
81 |
-unset lang |
82 |
- |
83 |
-DEPEND="" |
84 |
-RDEPEND=" |
85 |
- dev-libs/expat |
86 |
- dev-libs/libxml2 |
87 |
- sys-fs/fuse:0 |
88 |
- acl? ( sys-apps/acl ) |
89 |
- java? ( >=virtual/jre-1.7 ) |
90 |
-" |
91 |
- |
92 |
-S="${WORKDIR}/bacli" |
93 |
- |
94 |
-pkg_setup() { |
95 |
- enewgroup tsm |
96 |
- DOC_CONTENTS=" |
97 |
- Note that you have to be either root or member of the group tsm to |
98 |
- be able to use the Tivoli Storage Manager client." |
99 |
-} |
100 |
- |
101 |
-src_unpack() { |
102 |
- local rpm rpms lang |
103 |
- unpack ${SRC_TAR} |
104 |
- |
105 |
- cd "${S}" |
106 |
- for rpm in *.rpm; do |
107 |
- case ${rpm} in |
108 |
- TIVsm-APIcit.*|TIVsm-BAcit.*) |
109 |
- use tsm_cit && rpms="${rpms} ./${rpm}" |
110 |
- ;; |
111 |
- TIVsm-BAhdw.*) |
112 |
- use tsm_hw && rpms="${rpms} ./${rpm}" |
113 |
- ;; |
114 |
- TIVsm-JBB.*|*-filepath-*) |
115 |
- # "journal based backup" for all filesystems |
116 |
- # requires a kernel module. |
117 |
- # "Linux Filepath source code" available |
118 |
- # by request from vendor |
119 |
- ;; |
120 |
- *) |
121 |
- rpms="${rpms} ./${rpm}" |
122 |
- ;; |
123 |
- esac |
124 |
- done |
125 |
- for rpm in ${A}; do |
126 |
- case ${rpm} in |
127 |
- *.rpm) |
128 |
- rpms="${rpms} ${rpm}" |
129 |
- ;; |
130 |
- esac |
131 |
- done |
132 |
- |
133 |
- rpm_unpack ${rpms} |
134 |
- |
135 |
- # Avoid strange error messages caused by read-only files |
136 |
- chmod -R u+w "${S}" || die |
137 |
-} |
138 |
- |
139 |
-src_install(){ |
140 |
- cp -a opt "${D}" || die |
141 |
- cp -a usr "${D}" || die |
142 |
- |
143 |
- # The RPM files contain postinstall scripts which can be extracted |
144 |
- # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 . |
145 |
- # Below we try to mimic the behaviour of these scripts. |
146 |
- # We don't deal with SELinux compliance (yet), though. |
147 |
- local RPM_INSTALL_PREFIX CLIENTDIR i |
148 |
- RPM_INSTALL_PREFIX=/opt |
149 |
- CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client |
150 |
- |
151 |
- # Create links for messages; this is spread over several postin scripts. |
152 |
- #for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do |
153 |
- # dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i} |
154 |
- # dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i} |
155 |
- #done |
156 |
- |
157 |
- # Mimic TIVsm-API64 postinstall script |
158 |
- for i in libgpfs.so libdmapi.so; do |
159 |
- dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i} |
160 |
- done |
161 |
- |
162 |
- # The TIVsm-BA postinstall script only does messages and ancient upgrades |
163 |
- |
164 |
- # The gscrypt64 postinstall script only deals with s390[x] SELinux |
165 |
- # and the symlink for the iccs library which we handle in the loop below. |
166 |
- |
167 |
- # Move stuff from /usr/local to /opt, #452332 |
168 |
- mv "${D}"/usr/local/ibm "${D}"/opt/ || die |
169 |
- rmdir "${D}"/usr/local || die |
170 |
- |
171 |
- # Mimic gskssl64 postinstall script |
172 |
- for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do |
173 |
- dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \ |
174 |
- /usr/lib64/libgsk8${i}_64.so |
175 |
- done |
176 |
- for i in capicmd ver; do |
177 |
- dosym ../../opt/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/gsk${i}_64 |
178 |
- done |
179 |
- |
180 |
- # Done with the postinstall scripts as the RPMs contain them. |
181 |
- # Now on to some more Gentoo-specific installation. |
182 |
- |
183 |
- [[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system" |
184 |
- |
185 |
- # Avoid "QA Notice: Found an absolute symlink in a library directory" |
186 |
- local target |
187 |
- find "${D}"usr/lib* -lname '/*' | while read i; do |
188 |
- target=$(readlink "${i}") |
189 |
- rm -v "${i}" || die |
190 |
- dosym "../..${target}" "${i#${D}}" |
191 |
- done |
192 |
- |
193 |
- fowners :tsm /opt/tivoli/tsm/client/ba/bin/dsmtca |
194 |
- fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca |
195 |
- |
196 |
- keepdir /var/log/tsm |
197 |
- insinto /etc/logrotate.d |
198 |
- newins "${FILESDIR}/tsm.logrotate" tsm |
199 |
- |
200 |
- keepdir /etc/tivoli |
201 |
- |
202 |
- cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die |
203 |
- echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys |
204 |
- echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys |
205 |
- |
206 |
- # Added the hostname to be more friendly, the admin will need to edit this file anyway |
207 |
- echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys |
208 |
- echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys |
209 |
- echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys |
210 |
- dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys |
211 |
- |
212 |
- cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt" |
213 |
- dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt |
214 |
- |
215 |
- # Setup the env |
216 |
- dodir /etc/env.d |
217 |
- ENV_FILE="${D}/etc/env.d/80tivoli" |
218 |
- echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE} |
219 |
- echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE} |
220 |
- echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE} |
221 |
- echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE} |
222 |
- |
223 |
- echo 'SEARCH_DIRS_MASK="/opt/tivoli/tsm/client/ba/bin"' > "${T}/80${PN}" || die |
224 |
- insinto "/etc/revdep-rebuild" |
225 |
- doins "${T}/80${PN}" |
226 |
- |
227 |
- newconfd "${FILESDIR}/dsmc.conf.d" dsmc |
228 |
- newinitd "${FILESDIR}/dsmc.init.d" dsmc |
229 |
- newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad |
230 |
- |
231 |
- # Need this for hardened, otherwise a cryptic "connection to server lost" message appears |
232 |
- pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc" |
233 |
- |
234 |
- systemd_dounit "${FILESDIR}/dsmc.service" |
235 |
- systemd_dounit "${FILESDIR}/dsmcad.service" |
236 |
- |
237 |
- readme.gentoo_create_doc |
238 |
-} |
239 |
- |
240 |
-pkg_postinst() { |
241 |
- local i dirs |
242 |
- for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do |
243 |
- if [[ ! -e $i ]]; then |
244 |
- touch $i || die |
245 |
- chown :tsm $i || die |
246 |
- chmod 0660 $i || die |
247 |
- fi |
248 |
- done |
249 |
- |
250 |
- # Bug #375041: the log directory itself should not be world writable. |
251 |
- # Have to do this in postinst due to bug #141619 |
252 |
- chown root:tsm /var/log/tsm || die |
253 |
- chmod 0750 /var/log/tsm || die |
254 |
- |
255 |
- # Bug 508052: directories used to be too restrictive, have to widen perms. |
256 |
- dirs=( /opt/tivoli $(find /opt/tivoli/tsm -type d) ) |
257 |
- chown root:root "${dirs[@]}" || die |
258 |
- chmod 0755 "${dirs[@]}" || die |
259 |
- |
260 |
- readme.gentoo_print_elog |
261 |
-} |